/* =========================================
   CASONA DEL ABUELO — ESTILO RÚSTICO/FOLCLÓRICO
   ========================================= */

:root {
  --color-terracota: #b5502c;
  --color-terracota-oscuro: #8a3a1f;
  --color-ocre: #d99a3d;
  --color-crema: #f5ecd9;
  --color-marron: #4a2f21;
  --color-marron-oscuro: #2e1c14;
  --color-verde: #6b7a3a;
  --color-whatsapp: #25d366;
  --color-whatsapp-oscuro: #1ebe57;

  --font-titulo: 'Playfair Display', serif;
  --font-texto: 'Nunito Sans', sans-serif;

  --radius: 10px;
  --shadow: 0 10px 25px rgba(46, 28, 20, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-texto);
  color: var(--color-marron-oscuro);
  background-color: var(--color-crema);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(181, 80, 44, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 20%, rgba(217, 154, 61, 0.05) 0%, transparent 45%);
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-titulo);
  color: var(--color-marron-oscuro);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* =========================================
   TAGS / ETIQUETAS
   ========================================= */

.tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-terracota);
  background: rgba(181, 80, 44, 0.08);
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.tag--center {
  display: block;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.tag--light {
  color: var(--color-ocre);
  background: rgba(217, 154, 61, 0.15);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
  font-size: 2rem;
}

/* =========================================
   BOTONES
   ========================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  background: var(--color-terracota);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn--primary:hover {
  background: var(--color-terracota-oscuro);
}

.btn--outline {
  background: transparent;
  color: var(--color-terracota);
  border-color: var(--color-terracota);
}

.btn--outline:hover {
  background: var(--color-terracota);
  color: #fff;
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-oscuro);
}

.icon-wsp {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* =========================================
   HEADER
   ========================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-crema);
  border-bottom: 3px solid var(--color-ocre);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}

.logo {
  font-family: var(--font-titulo);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-marron-oscuro);
}

.logo span {
  color: var(--color-terracota);
}

.nav {
  display: flex;
  gap: 32px;
}

.nav a {
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  padding-bottom: 4px;
}

.nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-terracota);
  transition: width 0.25s ease;
}

.nav a:hover::after {
  width: 100%;
}

/* =========================================
   HERO
   ========================================= */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(160deg, rgba(46, 28, 20, 0.85), rgba(138, 58, 31, 0.7)),
    url('https://www.casonadelabuelo.cl/wp-content/uploads/2021/05/Porotos2.webp');
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-ocre);
  font-weight: 700;
  margin-bottom: 16px;
}

.hero h1 {
  color: #fff;
  font-size: 2.8rem;
  margin-bottom: 20px;
}

.hero__text {
  font-size: 1.1rem;
  margin-bottom: 32px;
  color: #f2e6d8;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* =========================================
   NOSOTROS / ABOUT
   ========================================= */

.about {
  padding: 100px 0;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about__text h2 {
  font-size: 2.2rem;
  margin-bottom: 24px;
}

.about__text p {
  margin-bottom: 18px;
  color: #5a4736;
}

blockquote {
  border-left: 4px solid var(--color-terracota);
  padding-left: 20px;
  margin-top: 28px;
  font-family: var(--font-titulo);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--color-terracota-oscuro);
}

blockquote span {
  display: block;
  margin-top: 8px;
  font-size: 0.9rem;
  font-style: normal;
  font-weight: 600;
  color: var(--color-marron);
}

.about__decor {
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__frame {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, var(--color-ocre), var(--color-terracota)),
    url('https://www.casonadelabuelo.cl/wp-content/uploads/2021/05/fd844c_3efd392097c440e2b67ba1bb3c0d3b41_mv2.webp');
  background-size: cover;
  background-blend-mode: multiply;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  outline: 3px solid var(--color-ocre);
  outline-offset: 6px;
}

/* =========================================
   MENÚ
   ========================================= */

.menu {
  padding: 100px 0;
  background: var(--color-marron-oscuro);
  color: #fff;
}

.menu .section-title {
  color: #fff;
}

.menu__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.menu__card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(217, 154, 61, 0.3);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.menu__card:hover {
  transform: translateY(-6px);
  border-color: var(--color-ocre);
}

.menu__card h3 {
  color: var(--color-ocre);
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.menu__card p {
  color: #d9cdbd;
  font-size: 0.95rem;
}

.menu__cta {
  text-align: center;
  margin-top: 48px;
}

/* =========================================
   CONTACTO
   ========================================= */

.contact {
  padding: 100px 0;
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact__info h2 {
  font-size: 2.2rem;
  margin-bottom: 28px;
}

.contact__list {
  margin-bottom: 32px;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 0;
  border-bottom: 1px dashed rgba(74, 47, 33, 0.25);
}

.contact__list strong {
  color: var(--color-terracota);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact__list span {
  font-weight: 600;
  color: var(--color-marron-oscuro);
}

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #fff;
  outline: 3px solid var(--color-ocre);
}

.contact__map iframe {
  width: 100%;
  height: 380px;
  border: 0;
  display: block;
}

/* =========================================
   FOOTER
   ========================================= */

.footer {
  background: var(--color-marron-oscuro);
  color: #d9cdbd;
  padding: 24px 0;
  text-align: center;
  font-size: 0.9rem;
  border-top: 3px solid var(--color-ocre);
}

/* =========================================
   BOTÓN FLOTANTE DE WHATSAPP
   ========================================= */

.wsp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.5s infinite;
  transition: transform 0.2s ease;
}

.wsp-float:hover {
  transform: scale(1.08);
}

.wsp-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 900px) {
  .about__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .about__decor {
    order: -1;
  }

  .menu__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .nav {
    display: none;
  }

  .hero h1 {
    font-size: 2.1rem;
  }

  .hero__text {
    font-size: 1rem;
  }

  .about,
  .menu,
  .contact {
    padding: 70px 0;
  }

  .menu__grid {
    grid-template-columns: 1fr;
  }

  .section-title,
  .about__text h2,
  .contact__info h2 {
    font-size: 1.7rem;
  }

  .wsp-float {
    width: 54px;
    height: 54px;
    bottom: 16px;
    right: 16px;
  }

  .wsp-float svg {
    width: 28px;
    height: 28px;
  }
}

@media (max-width: 480px) {
  .hero {
    min-height: 100vh;
  }

  .hero__buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .contact__map iframe {
    height: 280px;
  }
}