/* =============================================
   GRUPO FOODIE — style.css
   ============================================= */

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

:root {
  --bg:       #000000;
  --card-bg:  #050505;
  --surface:  #050505;
  --orange:   #ff4a18;
  --orange2:  #ff6a00;
  --green:    #4f9f00;
  --green2:   #78c400;
  --white:    #ffffff;
  --muted:    #aaaaaa;
  --line:     rgba(255,255,255,.10);
  --radius:   20px;
  --header-h: 72px;
  --font:     'Montserrat', Arial, sans-serif;
  --font-h:   'Oswald', 'Montserrat', sans-serif;
  /* alto fijo de la foto de cada card — igual en todas */
  --card-photo-h: 210px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--white);
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* =============================================
   BOTONES
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 11px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .05em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity .18s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { opacity: .85; }
.btn:active { transform: scale(.97); }

.btn-orange {
  background: linear-gradient(135deg, var(--orange), var(--orange2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(255,74,24,.32);
}
.btn-dark {
  background: #1a1a1a;
  color: var(--white);
  border: 1px solid rgba(255,255,255,.2);
}
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green2));
  color: #fff;
  box-shadow: 0 6px 20px rgba(79,159,0,.32);
}

/* =============================================
   HEADER
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(9,9,9,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

/* Logo: altura acotada para no desbordar el header */
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img {
  height: 44px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
}

/* Nav links */
.navlinks { display: flex; gap: 28px; }

.navlinks a {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  transition: color .2s;
  position: relative;
  padding-bottom: 3px;
}
.navlinks a:hover { color: var(--white); }
.navlinks a.active { color: var(--orange); }
.navlinks a.active::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 201;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =============================================
   HERO — imagen full-width + gradiente negro izq
   ============================================= */
.hero {
  background: #000;
  padding: 0;
}

/* El container del hero limita el ancho igual que las cards */
.hero-container {
  position: relative;
  height: 520px;
  overflow: hidden;
}

/* Slides full-width como fondo */
.slider-track {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 0;
  transition: opacity 1s ease;
}

.slide.active  { opacity: 1; z-index: 1; }
.slide.leaving { opacity: 0; z-index: 1; }

/* Capa negra sólida izquierda + transición — cubre todo el hero */
.hero-gradient {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    #000 0%,
    #000 40%,
    rgba(0,0,0,.75) 53%,
    rgba(0,0,0,.1)  68%,
    transparent     78%
  );
}

/* Texto encima del gradiente */
.hero-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.hero-copy { max-width: 480px; }

.hero-copy h1 {
  font-family: var(--font-h);
  font-size: clamp(56px, 8vw, 106px);
  font-weight: 700;
  line-height: .88;
  letter-spacing: -.01em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-copy h1 span { color: var(--orange); }

.hero-copy p {
  font-size: 18px;
  color: rgba(255,255,255,.88);
  line-height: 1.45;
  margin-bottom: 30px;
  padding-left: 14px;
  border-left: 4px solid var(--orange);
}
.hero-copy .btn {
  padding: 16px 28px;
  font-size: 14px;
  border-radius: 13px;
}

/* Dots */
.slider-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  gap: 10px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.4);
  background: transparent;
  cursor: pointer;
  transition: background .3s, border-color .3s, transform .2s;
}
.dot.active {
  background: var(--orange);
  border-color: var(--orange);
  transform: scale(1.2);
}

/* =============================================
   SECTION TITLE
   ============================================= */
.section-title {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 52px 0 26px;
}
.section-title::before,
.section-title::after {
  content: '';
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}
.section-title h2 {
  font-family: var(--font-h);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* =============================================
   CARDS DE LOCALES
   ============================================= */
.cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 36px;
}

.card {
  display: grid;
  /* foto fija | info | meta | botones */
  grid-template-columns: 260px 1fr minmax(190px,230px) 195px;
  gap: 0 28px;          /* <-- gap entre columnas para separar texto de foto */
  align-items: center;
  background: var(--card-bg);   /* negro */
  border: 1px solid rgba(255,74,24,.5);
  border-radius: var(--radius);
  overflow: hidden;
  padding-right: 22px;
}
.card.veggie { border-color: rgba(79,159,0,.55); }

/* --- Foto: dimensiones fijas iguales en todas las cards --- */
.card-photo {
  position: relative;
  width: 260px;
  height: var(--card-photo-h);
  flex-shrink: 0;
  overflow: hidden;
}
.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
/* Sombra interior sobre la foto */
.card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow:
    inset 0    0   60px rgba(0,0,0,.65),
    inset -40px 0  50px rgba(0,0,0,.6),
    inset  40px 0  50px rgba(0,0,0,.6),
    inset 0   40px  40px rgba(0,0,0,.55),
    inset 0  -40px  40px rgba(0,0,0,.55);
  pointer-events: none;
  z-index: 1;
}

/* --- Info (logo + desc) --- */
.card-info { padding: 18px 0; }

.card-logo {
  width: auto;
  max-width: 215px;
  max-height: 80px;
  object-fit: contain;
  margin-bottom: 10px;
}
.veggie-logo {
  max-height: 92px;
  max-width: 185px;
}

.card-desc {
  font-size: 14px;
  color: rgba(255,255,255,.62);
  line-height: 1.55;
}

/* --- Meta --- */
.card-meta {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 18px 0;
}
.meta-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
}
.icon-meta {
  color: var(--orange);
  font-size: 14px;
  margin-top: 1px;
  flex-shrink: 0;
  width: 15px;
  text-align: center;
}
.veggie-icon { color: var(--green2) !important; }

/* --- Acciones --- */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0;
}
.card-actions .btn { width: 100%; }

/* =============================================
   FEATURES BAR
   ============================================= */
.features-section {
  background: transparent;
  padding-bottom: 40px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #050505;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 20px;
  border-right: 1px solid var(--line);
}
.feature:last-child { border-right: none; }
.feature-icon {
  font-size: 30px;
  color: var(--orange);
  flex-shrink: 0;
}
.feature-text strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.feature-text p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #060606;
  border-top: 1px solid var(--line);
  padding-top: 42px;
}
.footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 20px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.footer-brand img { width: 148px; }

.footer-center { text-align: center; }
.footer-center strong {
  display: block;
  font-size: 26px;
  font-weight: 800;
  color: var(--orange);
}
.footer-center p {
  font-size: 15px;
  color: rgba(255,255,255,.62);
  margin-top: 5px;
}

.footer-social { text-align: right; }
.footer-social > p {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 12px;
  color: rgba(255,255,255,.65);
}
.social-icons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.28);
  font-size: 18px;
  color: rgba(255,255,255,.75);
  transition: border-color .2s, background .2s, color .2s;
}
.social-icons a:hover {
  border-color: var(--orange);
  background: rgba(255,74,24,.14);
  color: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  font-size: 12px;
  color: #4e4e4e;
  gap: 12px;
}
.heart { color: #e74c3c; }

/* =============================================
   BOTON FLOTANTE WHATSAPP
   ============================================= */
.float-wa {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 300;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 28px rgba(37,211,102,.42);
  transition: transform .2s;
}
.float-wa:hover { transform: scale(1.08); }

/* Fondo mobile — oculto en desktop */
.hero-bg-mobile { display: none; }

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

@media (max-width: 1060px) {
  .card {
    grid-template-columns: 220px 1fr minmax(165px,205px) 180px;
    gap: 0 20px;
  }
  .card-photo { width: 220px; }
}

@media (max-width: 860px) {
  /* Hamburger */
  .nav-toggle { display: flex; }
  .nav-cta    { display: none; }

  .navlinks {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(9,9,9,.97);
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--line);
    z-index: 199;
    padding: 8px 0 16px;
  }
  .navlinks.open { display: flex; }
  .navlinks a {
    padding: 14px 28px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
  }
  .navlinks a.active::after { display: none; }

  .hero { height: 420px; }
  .hero-container { width: 100%; margin: 0; }
  .slider-track { display: none; }
  .slider-dots  { display: none; }
  .hero-bg-mobile {
    display: block;
    position: absolute; inset: 0;
    background-image: url('../assets/back.jpg');
    background-size: cover;
    background-position: center;
    opacity: .55;
    z-index: 0;
  }
  .hero-copy h1 { font-size: 60px; }

  /* Cards apiladas */
  .card {
    grid-template-columns: 1fr;
    gap: 0;
    padding-right: 0;
  }
  .card-photo {
    width: 100%;
    height: 220px;
  }
  .card-info  { padding: 16px 18px 0; }
  .card-meta  { padding: 12px 18px 0; }
  .card-actions {
    padding: 14px 18px 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature { border-bottom: 1px solid var(--line); }
  .feature:nth-child(2),
  .feature:nth-child(4) { border-right: none; }
  .feature:nth-child(3),
  .feature:nth-child(4) { border-bottom: none; }
}

@media (max-width: 580px) {
  :root { --header-h: 64px; }
  .brand img    { height: 38px; }
  .hero { height: 360px; }
  .hero-copy h1 { font-size: 46px; }
  .hero-copy p  { font-size: 15px; }

  .section-title h2 { font-size: 20px; }

  .card-actions { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }
  .feature       { border-right: none; }

  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 26px;
  }
  .footer-brand img { margin: 0 auto; }
  .footer-social    { text-align: center; }
  .social-icons     { justify-content: center; }
  .footer-bottom    { flex-direction: column; text-align: center; gap: 6px; }
}

@media (max-width: 380px) {
  .hero-copy h1 { font-size: 44px; }
  .btn          { font-size: 12px; padding: 11px 14px; }
}
