/* =========================================
   VARIABLES LATIN PIZZA
   ========================================= */
:root {
  --c-gold: #ffbd59;
  --c-gold-light: #ffc876;
  --c-gold-soft: #f1c88b;
  --c-white: #ffffff;
  --c-black: #000000;
  --c-black-light: #111111;
  --c-red: #DC3545;
  --bg-light: #f9f9f9;
  --text-grey: #646262;
  
  --font-primary: 'ITC Bauhaus', 'Bauhaus 93', 'Arial Rounded MT Bold', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
  
  --sp-sm: 1rem;
  --sp-md: 2rem;
  --sp-lg: 4rem;
  --sp-xl: 6rem;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-secondary);
  background-color: var(--c-black);
  color: var(--c-white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 5%; }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; }

/* TIPOGRAFÍA */
.section-title { font-family: var(--font-primary); font-size: clamp(2.5rem, 4vw, 3.5rem); line-height: 1.1; margin-bottom: 0.5rem; text-transform: uppercase; }
.section-subtitle { font-family: var(--font-primary); font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 1.5rem; text-transform: uppercase;}
.bene-subtitle { font-family: var(--font-primary); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.1; font-weight: 800; text-transform: uppercase; margin-bottom: 2rem; display: block; }
.feature-title-large { font-size: clamp(1.5rem, 2.5vw, 2.2rem); line-height: 1.2; margin-top: 1rem; }

.body-text { font-size: 1.1rem; margin-bottom: 1rem; }
.text-lg { font-size: 1.3rem; }
.text-xl { font-size: 1.6rem; }
.small { font-size: 0.95rem; margin: 0; }

.text-gold { color: var(--c-gold); }
.text-red { color: var(--c-red); }
.text-white { color: var(--c-white); }
.text-black { color: var(--c-black); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-uppercase { text-transform: uppercase; }
.fw-bold { font-weight: 700; }
.fw-black { font-weight: 800; }

.mt-sm { margin-top: var(--sp-sm); }
.mt-md { margin-top: var(--sp-md); }
.mt-lg { margin-top: var(--sp-lg); }
.mb-sm { margin-bottom: var(--sp-sm); }
.mb-lg { margin-bottom: var(--sp-lg); }
.p-lg { padding: var(--sp-lg); }
.ml-sm { margin-left: 1rem; }

/* BOTONES Y BADGES */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 35px; font-family: var(--font-secondary); font-weight: 700;
  font-size: 1.1rem; text-transform: uppercase; text-decoration: none;
  border-radius: 8px; transition: all 0.3s ease; cursor: pointer;
}
.btn-large { padding: 18px 45px; font-size: 1.15rem; border-radius: 12px; }
.btn-red { background: var(--c-red); color: var(--c-white); border: 2px solid var(--c-red); box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4); }
.btn-red:hover { transform: translateY(-3px); background: #b21f2d; border-color: #b21f2d; box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6); }
.btn-outline { background: transparent; color: var(--c-white); border: 2px solid var(--c-white); }
.btn-outline:hover { background: var(--c-white); color: var(--c-black); }
.btn-outline-white { background: transparent; color: var(--c-white); border: 2px solid var(--c-white); }
.btn-outline-white:hover { background: var(--c-white); color: var(--c-black); }

.badge { display: inline-block; padding: 6px 20px; border-radius: 50px; font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px;}
.badge-red { background: var(--c-red); color: var(--c-white); }

/* LAYOUTS GLOBALES */
.section { padding: var(--sp-xl) 0; position: relative; }
.section-dark { background-color: var(--c-black); }
.section-light { background-color: var(--bg-light); }
.section-gold-gradient { background: linear-gradient(135deg, var(--c-gold), var(--c-gold-soft)); }
.section-center { text-align: center; }

.grid-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-lg); }
.grid-layout-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-md); }
.align-center { align-items: center; }

/* NAVBAR */
.navbar { position: fixed; top: 0; left: 0; width: 100%; padding: 15px 0; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(10px); z-index: 1000; transition: all 0.3s ease; border-bottom: 1px solid #333;}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.nav-logo { height: 45px; }

/* =========================================
   1. HERO SECTION
   ========================================= */
.hero { 
  position: relative; 
  min-height: 100vh; 
  display: flex; 
  align-items: center; 
  justify-content: center; 
  background: url('img/imagenes-ia-solo-arriba.jpg') center/cover no-repeat; 
  background-color: #111; /* Fallback */
  padding-top: 80px; 
  padding-bottom: 40px; 
}
.hero-overlay { 
  position: absolute; 
  inset: 0; 
  background: rgba(0, 0, 0, 0.7); 
  z-index: 1; 
}
.hero-container { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero-content-wrapper { display: flex; flex-direction: column; align-items: center; width: 100%; }

.hero-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, rgba(255, 189, 89, 0.95) 0%, rgba(241, 200, 139, 0.85) 100%);
  border-radius: 20px;
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2rem;
  box-shadow: 0 20px 40px rgba(0,0,0,0.35);
}

.hero-text-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-brand-logo { max-width: 250px; margin-bottom: 1.5rem; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.3)); }
.hero-title-main { font-family: var(--font-primary); font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; color: var(--c-black); margin-bottom: 1rem; }
.hero-subtitle { font-family: var(--font-secondary); font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; color: var(--c-black); margin-bottom: 1rem; text-transform: uppercase;}
.hero-description { font-size: 1.15rem; color: var(--c-black); max-width: 700px; font-weight: 500; }

.hero-btn-container { margin-top: 3rem; z-index: 10; display: flex; flex-wrap: wrap; justify-content: center; gap: 15px;}
.hero-subtext { font-size: 0.95rem; color: rgba(255, 255, 255, 0.9); margin-top: 1rem; font-weight: 500; width: 100%; text-align: center;}

/* =========================================
   2. QUÉ ES LATIN PIZZA
   ========================================= */
.rounded-img { width: 100%; border-radius: 20px; object-fit: cover; }
.shadow-lg { box-shadow: 0 20px 40px rgba(0,0,0,0.6); }

.quote-box { border-left: 5px solid var(--c-gold); padding-left: 20px; margin-top: 2rem; }
.quote-text { font-family: var(--font-primary); font-size: 1.8rem; line-height: 1.2; color: var(--c-white); }

/* NUEVO: Estilo para la frase centrada debajo de la sección 2 */
.quote-box-centered {
  max-width: 900px;
  margin: 3rem auto 0 auto;
  text-align: center;
}
.quote-box-centered .quote-text {
  font-size: clamp(1.8rem, 3vw, 2.5rem); /* Se adapta según el tamaño de pantalla */
  line-height: 1.3;
}


/* =========================================
   3. ECOSISTEMA Y PERTENENCIA
   ========================================= */
.ecosystem-graphic {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 2rem 0;
}
.eco-center img {
  width: 350px;
  height: 350px;
  border-radius: 50%;
  border: 4px solid var(--c-black);
  margin-bottom: 1rem;
}
.eco-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 900px;
}
.eco-tag {
  background: var(--c-black);
  color: var(--c-gold);
  font-family: var(--font-secondary);
  font-weight: 700;
  padding: 12px 25px;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.eco-tag:hover { transform: translateY(-3px) scale(1.05); background: var(--c-red); color: var(--c-white);}

/* Ajustes para alinear el ecosistema a la derecha armónicamente */
.ecosystem-graphic.align-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.ecosystem-graphic.align-right .eco-tags {
  justify-content: flex-end;
}

/* En teléfonos móviles, vuelve a centrarse para no romper el diseño */
@media (max-width: 868px) {
  .ecosystem-graphic.align-right {
    align-items: center;
    margin-top: 2rem;
  }
  .ecosystem-graphic.align-right .eco-tags {
    justify-content: center;
  }
}

/* =========================================
   4. NECESIDADES (POR QUÉ ASOCIARTE)
   ========================================= */
.need-card {
  background: var(--c-white);
  padding: 30px 20px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
  border-bottom: 4px solid var(--c-gold);
}
.need-card:hover { transform: translateY(-5px); }
.need-card .icon-large { font-size: 3rem; margin-bottom: 15px; display: block; }
.need-card p { color: var(--c-black); font-size: 1.1rem; margin: 0; }
.bg-red { background-color: var(--c-red); border-bottom: 4px solid var(--c-black); }
.bg-red p { color: var(--c-white); }
.highlight-card { transform: scale(1.05); }
.highlight-card:hover { transform: scale(1.05) translateY(-5px); }

/* =========================================
   5. MARKETING (BENEFICIOS)
   ========================================= */
.section-bg-overlay { position: relative; background-color: var(--c-black); }
.section-bg-overlay::before {
  content: ''; position: absolute; inset: 0;
  background: url('[IMAGEN_FONDO_OPCIONAL]') center/cover no-repeat;
  opacity: 0.15; z-index: 1;
}
.section-bg-overlay .container { position: relative; z-index: 2; }

.bg-black-card { background: var(--c-black-light); }
.rounded-xl { border-radius: 24px; }
.border-gold { border: 2px solid rgba(255, 189, 89, 0.3); }

.custom-list { list-style: none; padding: 0; margin: 0; }
.custom-list li {
  position: relative;
  padding-left: 35px;
  margin-bottom: 12px;
  font-size: 1.1rem;
  color: var(--c-white);
}
.custom-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  top: 2px;
  font-size: 1.2rem;
}

.quote-box-solid {
  background: var(--c-gold);
  padding: 20px;
  border-radius: 12px;
}
.quote-text-sm {
  font-family: var(--font-primary);
  font-size: 1.2rem;
  color: var(--c-black);
  margin: 0;
}

/* =========================================
   ANIMACIONES GENERALES
   ========================================= */
[data-animate] { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
[data-animate].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================
   RESPONSIVE (MOBILE)
   ========================================= */
@media (max-width: 868px) {
  .section { padding: var(--sp-md) 0; }
  .grid-layout { text-align: center; }
  
  .hero-banner { padding: 2rem 1.5rem; width: 90%; }
  .hero-title-main { font-size: 2.2rem; }
  .hero-btn-container { flex-direction: column; width: 90%; align-items: center; }
  .btn-large { width: 100%; margin-left: 0; margin-bottom: 10px; }
  
  .eco-center { width: 100%; display: flex; justify-content: center; }
  .highlight-card { transform: scale(1); }
  .highlight-card:hover { transform: translateY(-5px); }
  
  .custom-list li { text-align: left; }
}

/* =========================================
   ESTILOS SECCIONES 6 A 10 (ACTUALIZADO)
   ========================================= */

/* Variación para listas en fondos blancos */
.custom-list.list-dark li {
  color: var(--c-black);
}

/* Lista dividida en 2 columnas (Sección Web) */
.list-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
}

/* Borde decorativo para las imágenes de los beneficios */
.border-gold { 
  border: 4px solid var(--c-gold); 
}

/* Botón Negro (Sección Financiación) */
.btn-black { 
  background: var(--c-black); 
  color: var(--c-white); 
  border: 2px solid var(--c-black); 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); 
}
.btn-black:hover { 
  transform: translateY(-3px); 
  background: #222; 
  border-color: #222; 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6); 
}

/* Grilla con imagen más grande (Sección Proveedores) */
.grid-layout-large-img {
  display: grid;
  grid-template-columns: 1fr 1.25fr; /* La 2da columna toma un 25% más de espacio */
  gap: var(--sp-lg);
}

/* RESPONSIVE MÓVIL */
@media (max-width: 868px) {
  .reverse-mobile {
    display: flex;
    flex-direction: column-reverse;
  }
  
  .grid-layout-large-img {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  /* En móviles, la cita de proveedores vuelve a centrarse */
  .grid-layout-large-img .quote-box {
    text-align: left;
  }

/* Lista dividida en 2 columnas con centrado perfecto (Sección Web) */
.list-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px 40px; /* Más espacio entre las columnas */
  width: fit-content; /* Hace que la caja mida exactamente lo que miden los textos */
  margin: 0 auto; /* Centra la caja en la pantalla */
}

/* =========================================
   ESTILOS SECCIONES 11 A 15
   ========================================= */

/* Fondo oscuro auxiliar */
.bg-black {
  background-color: var(--c-black);
}

/* Grilla para las imágenes de Antes y Después */
.grid-layout-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
}

@media (max-width: 868px) {
  .grid-layout-before-after {
    grid-template-columns: 1fr;
    gap: var(--sp-md);
  }
}

/* =========================================
   ESTILOS SECCIONES 16 A 25 (FAQ, FORM, FOOTER)
   ========================================= */

/* Borde rojo decorativo */
.border-red { border: 4px solid var(--c-red); }
.w-100 { width: 100%; }

/* --- Preguntas Frecuentes (FAQ) DEFINITIVO --- */
.faq-container { margin-top: 2rem; }
.faq-item {
  background-color: transparent !important;
  border-bottom: 2px solid var(--c-gold) !important;
  margin-bottom: 15px;
}

/* Forzamos TODO el texto dentro del FAQ a ser negro */
.faq-container * {
  color: var(--c-black) !important;
}

.faq-question {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none; /* Quita flecha nativa */
  position: relative;
  padding: 15px 30px 15px 0;
  margin: 0;
}
.faq-question::after {
  content: '▼';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-red) !important; /* Flechita roja para darle el toque de la marca */
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}
.faq-item[open] .faq-question::after {
  transform: translateY(-50%) rotate(180deg);
}
.faq-answer {
  background-color: transparent !important;
  padding: 10px 0 20px 0;
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Formulario de Contacto (En línea) --- */
.bg-white { background-color: var(--c-white); }

.grid-layout-contact {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--sp-lg);
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-group-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  text-align: left;
}
.form-group-inline.align-start {
  align-items: flex-start;
}
.form-group-inline label {
  flex: 0 0 35%;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--c-black);
  margin-bottom: 0;
}
.form-group-inline input, 
.form-group-inline select, 
.form-group-inline textarea {
  flex: 1;
  padding: 10px 15px;
  border: 2px solid #ccc;
  border-radius: 8px;
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.form-group-inline input:focus, 
.form-group-inline select:focus, 
.form-group-inline textarea:focus {
  outline: none;
  border-color: var(--c-red);
}

/* --- Footer Layout de 3 Columnas --- */
.grid-layout-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columnas exactamente iguales */
  gap: 2rem;
  align-items: start;
}
.footer-logo {
  max-width: 180px !important;
  width: 100%;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { 
  color: var(--c-white) !important;
  text-decoration: none; 
  transition: color 0.3s ease; 
}
.footer-links a:hover { color: var(--c-gold) !important; }

/* Iconos de Redes Sociales Limitados en Tamaño */
.social-link {
  display: inline-block;
  transition: transform 0.3s ease;
}
.social-link:hover {
  transform: scale(1.15);
}
.social-icon-img {
  width: 40px !important; /* Fuerza el tamaño para que no queden gigantes */
  height: 40px !important;
  object-fit: contain;
  display: block;
}

/* --- Responsive para Móviles (Se ajusta al final) --- */
@media (max-width: 868px) {
  .mt-mobile { margin-top: 15px; margin-left: 0; display: block; }
  
  .grid-layout-contact { 
    grid-template-columns: 1fr; 
  }
  
  .form-group-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }
  .form-group-inline label {
    flex: none;
  }

  .grid-layout-footer {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .col-redes {
    align-items: center !important;
  }
  .col-redes .social-icons {
    justify-content: center !important;
  }
  .footer-links {
    column-count: 1 !important; 
  }
}

/* --- ARREGLO TARJETA BENEFICIOS (MÓVIL) --- */
@media (max-width: 868px) {
  .bg-black-card.p-lg {
    padding: 2rem 1.5rem !important; /* Reduce el margen interno gigante en celulares */
  }
  .custom-list {
    display: inline-block; /* Centra el bloque de la lista completo */
    text-align: left;
    margin: 0 auto;
  }
}

/* =========================================
   MEJORAS PREMIUM E INTERACTIVAS
   ========================================= */

/* 1. SCROLLBAR PERSONALIZADO (Barra de desplazamiento dorada) */
::-webkit-scrollbar {
  width: 12px;
}
::-webkit-scrollbar-track {
  background: var(--c-black-light);
}
::-webkit-scrollbar-thumb {
  background-color: var(--c-gold);
  border-radius: 10px;
  border: 3px solid var(--c-black-light); /* Borde para que no toque los bordes del monitor */
}
::-webkit-scrollbar-thumb:hover {
  background-color: var(--c-gold-light);
}

/* 2. EFECTO GLOW DORADO EN TARJETAS */
/* Hace que la animación de elevación sea más elástica y añade resplandor */
.need-card {
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.need-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(255, 189, 89, 0.30); /* Glow dorado */
  border-color: var(--c-gold);
}
/* A la tarjeta roja destacada, le damos un glow rojo */
.need-card.bg-red:hover {
  box-shadow: 0 15px 35px rgba(220, 53, 69, 0.45);
  border-color: var(--c-red);
}

/* 3. ANIMACIÓN SUAVE EN PREGUNTAS FRECUENTES (FAQ) */
/* Hace que la respuesta aparezca deslizándose hacia abajo */
details[open] .faq-answer {
  animation: slideDownFAQ 0.4s ease-out forwards;
}
@keyframes slideDownFAQ {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* Efecto hover luminoso al pasar el mouse por la pregunta */
.faq-question:hover {
  color: var(--c-white) !important; 
  text-shadow: 0 0 10px rgba(255, 189, 89, 0.5) !important;
}

/* 4. BOTÓN FLOTANTE WHATSAPP (Con animación de pálpito) */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25D366;
  width: 65px;
  height: 65px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: all 0.3s ease;
  animation: pulso-wa 2s infinite; /* Pálpito continuo */
}
.whatsapp-float:hover {
  transform: scale(1.1) translateY(-5px);
  animation: none; /* Se detiene el pálpito al pasar el mouse */
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.7);
}
.whatsapp-icon {
  width: 38px;
  height: 38px;
  filter: brightness(0) invert(1); /* Asegura que el logo de WP sea blanco puro */
}

/* Animación del pálpito de WhatsApp */
@keyframes pulso-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Ajuste del botón para celulares */
@media (max-width: 868px) {
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
  }
  .whatsapp-icon {
    width: 32px;
    height: 32px;
  }
}

}