/*
Theme Name: Compass Theme v17
Description: Tema premium diseñado para Compass - Abastecimiento Inteligente. v17 replica exacta de index.html
Author: Antigravity
Version: 1.7
*/

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --c-bg: #F4F6F9;
  --c-slate: #406093;
  --c-vibrant: #4C8CE4;
  --c-indigo: #1A05A2;
  --c-white: #ffffff;
  --c-text: #1E293B;
  --c-whatsapp: #25D366;

  --c-bento-1: #6B21A8;
  /* Púrpura */
  --c-bento-2: #2563EB;
  --c-bento-3: #EA580C;
  --c-bento-4: #059669;

  --shadow-float: 0 30px 60px -15px rgba(26, 5, 162, 0.15);
  --shadow-bento: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--c-bg);
  color: var(--c-text);
  padding-top: 80px;
}

/* CONTENEDOR FLUIDO */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
  /* vital para no desbordar en movil */
}

h1,
h2,
h3 {
  font-weight: 800;
  color: var(--c-indigo);
  line-height: 1.2;
  word-wrap: break-word;
}

h2 {
  font-size: 3rem;
}

h3 {
  font-size: 1.8rem;
}

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

/* GLOBALES */
.section-pad {
  padding: 4rem 0;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-vibrant);
  color: white;
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  text-decoration: none;
  transition: 0.3s;
  gap: 10px;
  border: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(76, 140, 228, 0.4);
}

/* WAPP FLOTANTE */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--c-whatsapp);
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* HEADER OPTIMIZADO */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo-container {
  text-decoration: none;
}

.logo-container img {
  height: 35px;
}

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--c-text);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--c-vibrant);
}

/* CTA EN HEADER */
.nav-cta {
  background: var(--c-vibrant);
  color: white !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  box-shadow: 0 4px 10px rgba(76, 140, 228, 0.3);
  transition: 0.3s;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(76, 140, 228, 0.5);
}

/* HERO */
.hero-bullets {
  margin: 1.5rem 0 2rem;
}

.hero-bullets h3 {
  font-size: 1.7rem;
  color: var(--c-indigo);
  font-weight: 800;
  margin-bottom: 0.8rem;
  line-height: 1.2;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
}

.hero-content h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
}

.hero-content p {
  font-size: 1.15rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.7;
}

.hero-image {
  border-radius: 30px;
  box-shadow: var(--shadow-float);
  object-fit: cover;
}

/* ESTILO BENTO CARD LÍQUIDO */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  margin-top: 4rem;
}

.bento-card {
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  background: var(--c-bento-1);
  color: white;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-bento);
  transition: transform 0.3s;
}

.bento-card:hover {
  transform: translateY(-8px);
}

.bento-card.bg-2 {
  background: var(--c-bento-2);
}

.bento-card.bg-3 {
  background: var(--c-bento-3);
  color: white;
}

.bento-card.bg-4 {
  background: var(--c-slate);
}

.bento-header {
  padding: 2.5rem 2.5rem 1rem;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.bento-header h3 {
  color: white;
  font-size: 1.7rem;
  margin-bottom: 0.5rem;
}

.bento-header p {
  opacity: 0.9;
  font-size: 1rem;
  line-height: 1.5;
}

/* La zona de la imagen inferior con solapa */
.bento-img-area {
  margin-top: auto;
  height: 250px;
  position: relative;
  background: #f8fafc;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
  overflow: hidden;
}

.bento-img-area img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* El "Botón de flecha" en la esquina - ELIMINADO POR PETICIÓN */
.mega-row p {
  line-height: 1.8;
  margin-bottom: 1.2rem;
  display: block;
}

.mega-row p br {
  margin-bottom: 0.8rem;
  display: block;
  content: "";
}

/* Separación artificial para BRs si se dejan */

/* CARDS ORIGINALES PASO A PASO / BENEFICIOS */
.mega-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 5rem;
}

.mega-row.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.m-img {
  border-radius: 30px;
  box-shadow: var(--shadow-float);
  width: 100%;
  object-fit: cover;
}

/* SEPARADOR ELEGANTE */
.section-divider {
  height: 2px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(26, 5, 162, 0.4), transparent);
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* REVIEWS MODO BENTO */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.review-bento {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 20px;
  padding: 2rem;
  position: relative;
  box-shadow: var(--shadow-bento);
  transition: transform 0.3s;
}

.review-bento:hover {
  transform: translateY(-5px);
  border-color: var(--c-vibrant);
}

.review-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.r-stars {
  color: #F59E0B;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.r-quote {
  font-size: 1.05rem;
  font-style: italic;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.r-author {
  font-weight: 700;
  color: var(--c-indigo);
  font-size: 1.1rem;
}

.r-role {
  font-size: 0.85rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 1px;
}


/* PREGUNTAS FRECUENTES (Acordeón) */
.faq-section {
  background: var(--c-white);
  padding: 5rem;
  border-radius: 40px;
  margin: 4rem 0;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.faq-container {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: 4rem;
  align-items: flex-start;
}

.details-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

details {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
}

details[open] {
  background: white;
  border-color: var(--c-vibrant);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

summary {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--c-indigo);
  outline: none;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details p {
  margin-top: 1rem;
  margin-bottom: 0;
  color: #475569;
  line-height: 1.5;
}

/* PÁGINA: ALGORITMO */
.alg-hero {
  background: var(--c-slate) url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80') center/cover;
  padding: 8rem 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.alg-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 5, 162, 0.8);
}

.alg-hero h1,
.alg-hero p {
  position: relative;
  z-index: 2;
  color: white;
}

.param-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.param-box {
  background: white;
  border: 2px solid #E2E8F0;
  border-radius: 30px;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  transition: border-color 0.3s;
}

.param-box:hover {
  border-color: var(--c-vibrant);
}

.p-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.comic-bubble {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 20px;
  padding: 2.5rem;
  position: relative;
  margin-bottom: 5rem;
  box-shadow: var(--shadow-bento);
}

.comic-speaker {
  position: absolute;
  bottom: -60px;
  width: 90px;
  z-index: 2;
}

.speaker-right {
  right: -20px;
}

.speaker-left {
  left: -20px;
}

/* PÁGINA: PRECIOS */
.precios-hero {
  background: var(--c-slate);
  padding: 8rem 0;
  color: white;
}

.precios-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.precio-gigante {
  font-size: 4rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin: 1rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 5rem;
}

.feat-item {
  display: flex;
  gap: 1.5rem;
}

.feat-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

/* CONTACTO */
.form-box {
  background: white;
  padding: 3rem;
  border-radius: 30px;
  box-shadow: var(--shadow-bento);
  max-width: 600px;
  margin: 4rem auto 0;
}

.form-grp {
  margin-bottom: 1.5rem;
}

.form-grp input,
.form-grp textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  font-family: inherit;
}

/* FOOTER */
.site-footer {
  background: var(--c-slate);
  color: white;
  padding: 4rem 0 2rem;
  text-align: center;
}


/* INTERACTIVIDAD BENTO (HOVER CON DESTELLO REAL) */
.bento-img-area {
  position: relative;
  overflow: hidden;
}

.bento-img-area img {
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.bento-img-area::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: all 0.6s;
}

.bento-card:hover .bento-img-area::after {
  left: 150%;
}

.bento-card:hover .bento-img-area img {
  filter: brightness(1.3) contrast(1.1);
  transform: scale(1.08);
}

/* FLOTACIÓN HERO */
@keyframes bentoFloat {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }

  100% {
    transform: translateY(0);
  }
}

.float-anim {
  animation: bentoFloat 4s ease-in-out infinite;
}

/* ========================================================
   💪 SUPER MOBILE RESPONSIVE OPTIMIZATION (Foco 90% Tráfico)
 ======================================================== */

@media(max-width: 992px) {

  .hero,
  .mega-row,
  .faq-container,
  .param-grid,
  .precios-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .mega-row.reverse {
    grid-template-columns: 1fr;
  }

  .mega-row>div:nth-child(2) {
    grid-row: 1;
  }

  /* Asegura img arriba en cel */

  .faq-container {
    text-align: center;
  }

  .faq-container img {
    margin: 0 auto;
    width: 120px !important;
  }
}

@media(max-width: 768px) {

  /* BODY & HEADER (Corrección del solapamiento del menú) */
  body {
    padding-top: 100px;
  }

  .nav-wrap {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: auto;
    padding: 15px 0;
    gap: 10px;
  }

  .nav-links {
    gap: 1rem;
  }

  .nav-links a {
    font-size: 0.9rem;
  }

  /* TIPOGRAFÍA GLOBAL MÓVIL (No gigantes) */
  h1 {
    font-size: 2.2rem !important;
    margin-bottom: 1rem;
  }

  h2 {
    font-size: 1.8rem !important;
  }

  h3 {
    font-size: 1.4rem !important;
  }

  p {
    font-size: 1rem !important;
  }

  /* MÁRGENES Y CAJAS (Respiración en vertical) */
  .section-pad {
    padding: 4rem 0;
  }

  .hero {
    text-align: center;
    padding: 2rem 0 0;
    gap: 2rem;
  }

  .bento-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  /* LAS BENTO CARDS EN MÓVIL (Menos altura, más contenido compacto) */
  .bento-card {
    min-height: auto;
    border-radius: 20px;
  }

  .bento-header {
    padding: 1.5rem 1.5rem 2rem;
  }

  .bento-header h3 {
    font-size: 1.4rem;
  }

  .bento-img-area {
    height: 180px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
  }

  /* MEGA ROW (Beneficios) */
  .mega-row {
    gap: 1.5rem;
    text-align: center;
    margin-bottom: 3.5rem;
  }


  /* ÚLTIMAS CORRECCIONES */
  /* PREGUNTAS FRECUENTES (Restricción de desbordes) */
  .faq-section {
    padding: 2rem 1rem;
    border-radius: 20px;
    margin: 2rem 0;
  }

  summary {
    font-size: 1rem;
    text-align: left;
  }

  details {
    padding: 1rem;
  }

  /* ALGORITMO MÓVIL */
  .param-box {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1rem;
    border-radius: 20px;
  }

  .comic-bubble {
    padding: 1.5rem;
    margin-bottom: 4rem;
  }

  .comic-speaker {
    bottom: -50px;
    width: 70px;
  }

  .speaker-right {
    right: 10px;
  }

  .speaker-left {
    left: 10px;
  }

  /* PRECIOS MÓVIL */
  .precios-hero {
    padding: 4rem 0;
  }

  .precio-gigante {
    font-size: 2.8rem;
  }

  .precios-grid>div:last-child {
    padding: 1.5rem;
    border-radius: 20px;
  }

  .feat-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  /* BOTONES & FLOTANTES */
  .btn-primary {
    width: 100%;
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    bottom: 1rem;
    right: 1rem;
  }

  /* FORMULARIO CONTACTO */
  .form-box {
    padding: 2rem 1.5rem;
  }
}
