/* ============================================================
   LAS PARRAS — Landing Page
   Paleta: vino #7B1C2E · verde #2C5F2E · dorado #C9922A
   ============================================================ */

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --wine:        #7B1C2E;
  --wine-light:  #9B2D3F;
  --wine-dark:   #560F1E;
  --green:       #2C5F2E;
  --gold:        #C9922A;
  --gold-light:  #E0AC45;
  --cream:       #FDFAF5;
  --cream-alt:   #F4EDE0;
  --dark:        #130810;
  --dark-2:      #0D0508;
  --text:        #2C1810;
  --text-muted:  #6B5044;
  --white:       #FFFFFF;

  --ff-head: 'Playfair Display', Georgia, serif;
  --ff-body: 'Lato', system-ui, sans-serif;

  --shadow-xs: 0 1px 4px rgba(0,0,0,.08);
  --shadow-sm: 0 2px 10px rgba(0,0,0,.10);
  --shadow-md: 0 8px 28px rgba(0,0,0,.14);
  --shadow-lg: 0 16px 56px rgba(0,0,0,.20);

  --radius:    12px;
  --radius-sm: 8px;
  --ease:      .3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }

.container { width: min(1180px, 92vw); margin-inline: auto; }

.section { padding: 96px 0; }

.accent { color: var(--wine); }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 2rem;
  border-radius: 50px;
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), border-color var(--ease),
              transform var(--ease), box-shadow var(--ease);
}
.btn--primary {
  background: var(--wine);
  color: var(--white);
  border-color: var(--wine);
}
.btn--primary:hover {
  background: var(--wine-light);
  border-color: var(--wine-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.65);
}
.btn--outline:hover {
  background: rgba(255,255,255,.1);
  border-color: var(--white);
  transform: translateY(-2px);
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section__label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .7rem;
}
.section__title {
  font-family: var(--ff-head);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1rem;
}
.section__header { text-align: center; margin-bottom: 3.5rem; }
.section__divider {
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--wine), var(--gold));
  border-radius: 2px;
  margin: 0 auto;
}
.section__divider--left { margin: 0; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset-block-start: 0; inset-inline: 0;
  z-index: 900;
  padding: 1.2rem 0;
  transition: background var(--ease), padding var(--ease), box-shadow var(--ease);
}
.header.scrolled {
  background: rgba(13, 5, 8, .96);
  padding: .75rem 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  color: var(--white);
  flex-shrink: 0;
}
.nav__logo-img {
  display: none;
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 32px; height: 32px;
  color: var(--gold);
}
.nav__logo-text {
  font-family: var(--ff-head);
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}
.nav__logo--footer .nav__logo-text { color: var(--white); }

.nav__menu {
  display: flex;
  gap: 2rem;
  margin-left: auto;
}
.nav__link {
  color: rgba(255,255,255,.8);
  font-size: .85rem;
  font-weight: 400;
  letter-spacing: .06em;
  text-transform: uppercase;
  position: relative;
  transition: color var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: width var(--ease);
}
.nav__link:hover { color: var(--white); }
.nav__link:hover::after { width: 100%; }

.nav__cta { padding: .55rem 1.3rem; font-size: .78rem; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--ease);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: url('https://images.unsplash.com/photo-1544025162-d76694265947?w=1920&q=85&auto=format&fit=crop')
              center / cover no-repeat;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(13, 5, 8, .90) 0%,
    rgba(86, 15, 30, .65) 55%,
    rgba(13, 5, 8, .80) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  padding-top: 80px;
}
.hero__eyebrow {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.hero__title {
  font-family: var(--ff-head);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  color: var(--white);
  margin-bottom: 1.4rem;
}
.hero__desc {
  font-size: 1.05rem;
  line-height: 1.75;
  color: rgba(255,255,255,.75);
  max-width: 480px;
  margin-bottom: 2.5rem;
}
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  color: rgba(255,255,255,.4);
  animation: bounce 2.4s infinite ease-in-out;
}
.hero__scroll svg { width: 26px; height: 26px; }
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(9px); }
}

/* ============================================================
   ESPECIALIDADES
   ============================================================ */
.especialidades { background: var(--cream); }
.especialidades__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.75rem;
}
.categoria {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  cursor: default;
  transition: transform var(--ease);
}
.categoria:hover { transform: translateY(-6px); }
.categoria__icon {
  width: 88px; height: 88px;
  background: var(--cream-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2.5px solid transparent;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}
.categoria__icon svg { width: 38px; height: 38px; color: var(--wine); transition: color var(--ease); }
.categoria:hover .categoria__icon {
  border-color: var(--wine);
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.categoria:hover .categoria__icon svg { color: var(--gold); }
.categoria { cursor: pointer; }
.categoria.active { transform: translateY(-6px); }
.categoria.active .categoria__icon {
  border-color: var(--wine);
  background: var(--wine);
  box-shadow: var(--shadow-md);
}
.categoria.active .categoria__icon svg { color: var(--cream); }
.categoria.active .categoria__name { color: var(--wine); }
.plato-card.oculto { display: none; }
.categoria__name {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text);
}

/* ============================================================
   PLATOS DESTACADOS
   ============================================================ */
.platos { background: var(--cream-alt); }
.platos__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}
.plato-card {
  flex: 0 1 calc(33.333% - 1.4rem);
  min-width: 260px;
  max-width: 400px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--ease), box-shadow var(--ease);
}
.plato-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.plato-card__img-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.plato-card__img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.plato-card:hover .plato-card__img-wrap img { transform: scale(1.07); }
.plato-card__tag {
  position: absolute;
  top: .9rem; left: .9rem;
  background: var(--wine);
  color: var(--white);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .28rem .75rem;
  border-radius: 50px;
}
.plato-card__body { padding: 1.5rem; }
.plato-card__name {
  font-family: var(--ff-head);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.plato-card__desc {
  font-size: .88rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 1.1rem;
}
.plato-card__price {
  font-family: var(--ff-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--wine);
}

/* ============================================================
   NOSOTROS
   ============================================================ */
.nosotros { background: var(--cream); }
.nosotros__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.nosotros__images { position: relative; }
.nosotros__img {
  border-radius: var(--radius);
  object-fit: cover;
}
.nosotros__img--main {
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  box-shadow: var(--shadow-md);
}
.nosotros__img--accent {
  position: absolute;
  bottom: -2.5rem; right: -2.5rem;
  width: 46%;
  aspect-ratio: 1 / 1;
  border: 6px solid var(--cream);
  box-shadow: var(--shadow-lg);
}
.nosotros__badge {
  position: absolute;
  top: 2rem; left: -1.5rem;
  background: var(--wine);
  color: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: var(--shadow-md);
  text-align: center;
}
.nosotros__badge-num {
  font-family: var(--ff-head);
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--gold);
}
.nosotros__badge-txt {
  font-size: .75rem;
  line-height: 1.4;
  opacity: .85;
  margin-top: .25rem;
}

.nosotros__text {
  font-size: .95rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.nosotros__features {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  margin-top: 2rem;
}
.feature {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.feature__icon-wrap {
  width: 44px; height: 44px;
  background: rgba(123,28,46,.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.feature__icon-wrap svg { width: 22px; height: 22px; color: var(--wine); }
.feature strong {
  display: block;
  font-size: .92rem;
  font-weight: 700;
  margin-bottom: .2rem;
}
.feature p { font-size: .85rem; color: var(--text-muted); line-height: 1.55; }

/* ============================================================
   GALERÍA
   ============================================================ */
.galeria { background: var(--cream-alt); }
.galeria__item.oculto { display: none; }
.galeria__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  grid-auto-rows: 260px;
  gap: 1rem;
}
.galeria__item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
}
.galeria__item--tall {
  grid-row: span 2;
}
.galeria__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}
.galeria__item:hover img { transform: scale(1.06); }
.galeria__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,5,8,.5) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--ease);
}
.galeria__item:hover .galeria__overlay { opacity: 1; }

/* ============================================================
   CONTACTO
   ============================================================ */
.contacto { background: var(--dark); }
.contacto .section__label { color: var(--gold); }
.contacto .section__title { color: var(--white); }

.contacto__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.contacto__items {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 2rem;
}
.contacto__item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contacto__icon-wrap {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.07);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contacto__icon-wrap svg { width: 20px; height: 20px; color: var(--gold); }
.contacto__item strong {
  display: block;
  color: var(--white);
  font-size: .9rem;
  margin-bottom: .3rem;
}
.contacto__item p { color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.55; }

.contacto__social {
  display: flex;
  gap: .75rem;
  margin-top: 2.5rem;
}
.social-btn {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: background var(--ease), transform var(--ease);
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover { background: var(--wine); transform: translateY(-2px); }
.social-btn--wa:hover { background: #25D366; }

.contacto__map {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3.5;
}
.contacto__map iframe {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  border: none;
  display: block;
}
.map-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(255,255,255,.06) 0%, rgba(0,0,0,.2) 100%);
  border: 1.5px solid rgba(255,255,255,.12);
  text-align: center;
  padding: 2rem;
}
.map-fallback__pin {
  width: 52px; height: 52px;
  background: var(--wine);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.map-fallback__title {
  font-family: var(--ff-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.map-fallback__addr {
  font-size: .85rem;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
}
.map-fallback__btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .25rem;
  padding: .55rem 1.2rem;
  background: var(--gold);
  color: #1a0a0e;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  border-radius: 100px;
  text-decoration: none;
  transition: opacity var(--ease), transform var(--ease);
}
.map-fallback__btn:hover { opacity: .85; transform: translateY(-1px); }
.map-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3.5;
  background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  color: rgba(255,255,255,.35);
}
.map-placeholder svg { width: 56px; height: 56px; color: var(--gold); opacity: .5; }
.map-placeholder p { font-size: .95rem; }
.map-placeholder span { font-size: .8rem; opacity: .6; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--dark-2);
  padding-top: 5rem;
}
.footer__layout {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.footer__tagline {
  color: rgba(255,255,255,.35);
  font-size: .85rem;
  line-height: 1.7;
  margin-top: .85rem;
}
.footer__links h4 {
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.footer__links li,
.footer__links li a {
  color: rgba(255,255,255,.45);
  font-size: .88rem;
  line-height: 2.1;
  transition: color var(--ease);
}
.footer__links li a:hover { color: var(--gold); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
  color: rgba(255,255,255,.2);
  font-size: .8rem;
}
.footer__social { display: flex; gap: .75rem; }
.footer__social a {
  color: rgba(255,255,255,.3);
  transition: color var(--ease);
}
.footer__social a:hover { color: var(--gold); }
.footer__social svg { width: 16px; height: 16px; display: block; }

/* ============================================================
   WHATSAPP FAB
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 800;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #25D366;
  color: var(--white);
  border-radius: 50px;
  padding: .8rem 1.4rem .8rem 1rem;
  font-weight: 700;
  font-size: .88rem;
  box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: transform var(--ease), box-shadow var(--ease);
}
.whatsapp-fab svg { width: 22px; height: 22px; flex-shrink: 0; }
.whatsapp-fab:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 28px rgba(37,211,102,.5);
}

/* ============================================================
   ANIMACIONES ENTRADA
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .especialidades__grid { grid-template-columns: repeat(3, 1fr); }
  .nosotros__layout { gap: 3.5rem; }
  .nosotros__badge { left: -1rem; }
  .footer__layout { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
}

@media (max-width: 900px) {
  .platos__grid { gap: 1.5rem; }
  .plato-card   { flex: 0 1 calc(50% - .8rem); }
  .contacto__layout { grid-template-columns: 1fr; }
  .galeria__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
  }
  .galeria__item--tall { grid-row: span 1; }
  .galeria__item, .galeria__item--tall { aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  /* Mobile nav */
  .nav__menu {
    display: none;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: rgba(13,5,8,.98);
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 850;
    backdrop-filter: blur(12px);
  }
  .nav__menu.open { display: flex; }
  .nav__menu.open .nav__link {
    font-size: 1.4rem;
    letter-spacing: .06em;
  }
  .nav__cta    { display: none; }
  .nav__toggle { display: flex; z-index: 860; }

  /* Toggle → X cuando el menú está abierto */
  .nav__toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero__title { font-size: clamp(2.4rem, 9vw, 3.5rem); }

  .nosotros__layout { grid-template-columns: 1fr; }
  .nosotros__img--accent { display: none; }
  .nosotros__badge { top: 1rem; left: 1rem; }

  .especialidades__grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .categoria__icon { width: 72px; height: 72px; }
  .categoria__icon svg { width: 30px; height: 30px; }

  /* Footer: columna única desde 768px */
  .footer__layout { grid-template-columns: 1fr; }
  .footer__brand  { grid-column: span 1; }
}

@media (max-width: 540px) {
  .section      { padding: 48px 0; }
  .platos__grid { gap: 1.2rem; }
  .plato-card   { flex: 0 0 100%; max-width: 420px; }
  .especialidades__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .whatsapp-fab span { display: none; }
  .whatsapp-fab { padding: .85rem; border-radius: 50%; }
}
