@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary-color: #0a1128;
  --secondary-color: #00d166;
  --secondary-color-hover: #00b357;
  --bg-color: #ffffff;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #ffffff;
  --border-color: #e2e8f0;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 16px;
}

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

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden !important;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--primary-color);
}

/* Header */
header {
  background-color: transparent;
  padding: 20px 0;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: all 0.3s ease;
}

header.scrolled {
  background-color: var(--primary-color);
  padding: 12px 0;
  box-shadow: var(--shadow-md);
}

.logo {
  display: flex !important;
  align-items: center !important;
  max-width: 180px !important;
  width: 100% !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
  height: auto !important;
  overflow: hidden !important;
  transition: all 0.3s ease;
}

.logo img {
  height: 60px !important;
  max-height: 60px !important;
  max-width: 100% !important;
  width: auto !important;
  object-fit: contain !important;
  transition: all 0.3s ease;
}

header.scrolled .logo img {
  height: 45px !important;
  max-height: 45px !important;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--secondary-color);
}

/* Buttons */
.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -10px var(--secondary-color);
  background-color: var(--secondary-color-hover);
}

.btn-outline {
  background-color: rgba(255,255,255,0.05);
  color: var(--text-light);
  padding: 14px 28px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.2);
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s;
}

.btn-outline:hover {
  background-color: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.4);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 110px 0 80px;
  background-color: var(--primary-color);
  color: var(--text-light);
  display: flex;
  align-items: center;
  align-items: center;
  overflow: hidden;
}

/* --- HERO SPLIT LAYOUT OVERRIDES --- */
.hero-split-layout {
  background-color: var(--bg-color) !important; /* Usar el fondo del tema (blanco/claro) */
}
.hero-split-layout::before {
  display: none !important; /* Quitar el gradiente de fondo */
}
.hero-split-layout h1 {
  color: var(--text-dark) !important;
  text-shadow: none !important;
}
.hero-split-layout h1 span {
  color: var(--primary-color) !important;
}
.hero-split-layout p {
  color: var(--text-muted) !important;
  text-shadow: none !important;
}
.hero-split-layout .hero-subtitle {
  background: var(--bg-light) !important;
  color: var(--secondary-color) !important;
  border: 1px solid var(--border-color) !important;
}
.hero-split-layout .btn-outline {
  background-color: transparent !important;
  color: var(--tertiary-color) !important;
  border: 1.5px solid var(--tertiary-color) !important;
}
.hero-split-layout .btn-outline:hover {
  background-color: var(--tertiary-color) !important;
  color: #ffffff !important;
  box-shadow: 0 10px 20px -10px var(--tertiary-color) !important;
}


.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,209,102,0.15) 0%, rgba(10,17,40,0) 70%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  transition: all 0.4s ease-in-out;
}

/* ALINEACIÓN DINÁMICA DEL HERO PARA PREVENIR SOLAPAMIENTOS Y LOGRAR ALTO CONTRASTE */
.hero-content.align-left {
  max-width: 680px !important;
  text-align: left !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

.hero-content.align-center {
  max-width: 850px !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.hero-content.align-right {
  max-width: 680px !important;
  text-align: left !important; /* Alineación tipográfica a la izquierda como el mockup */
  margin-left: auto !important;
  margin-right: 0 !important;
}

/* Forzar alineación en todos los elementos hijos */
.hero-content.align-left h1, 
.hero-content.align-left p, 
.hero-content.align-left .hero-subtitle,
.hero-content.align-left .trust-bar { 
  text-align: left !important; 
}

.hero-content.align-center h1, 
.hero-content.align-center p, 
.hero-content.align-center .hero-subtitle,
.hero-content.align-center .trust-bar { 
  text-align: center !important; 
}

.hero-content.align-right h1, 
.hero-content.align-right p, 
.hero-content.align-right .hero-subtitle,
.hero-content.align-right .trust-bar { 
  text-align: left !important; /* Alineación tipográfica a la izquierda en el bloque derecho */
}

@media (max-width: 1024px) {
  .hero-content.align-left, 
  .hero-content.align-right {
    margin: 0 auto !important;
    text-align: center !important;
  }
  .hero-content.align-left h1, 
  .hero-content.align-left p, 
  .hero-content.align-left .hero-subtitle,
  .hero-content.align-left .trust-bar,
  .hero-content.align-right h1, 
  .hero-content.align-right p, 
  .hero-content.align-right .hero-subtitle,
  .hero-content.align-right .trust-bar { 
    text-align: center !important; 
    justify-content: center !important;
  }
}

/* --- WHY US SPLIT RESPONSIVE --- */
@media (max-width: 992px) {
  .why-us-split .container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .why-us-left h2, .why-us-left p, .why-us-left span:first-child {
    text-align: center;
  }
  .why-us-left > div {
    max-width: 500px;
    margin: 0 auto 40px;
  }
  .timeline-container {
    flex-direction: column;
    gap: 40px !important;
  }
  .timeline-arrow {
    display: none !important;
  }
  .why-us-right {
    padding: 40px 20px !important;
  }
}

/* --- IDEAL FOR SPLIT RESPONSIVE --- */
@media (max-width: 992px) {
  .ideal-for-split .container {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .ideal-for-left {
    text-align: center;
  }
  .ideal-for-left a.btn-primary {
    margin: 0 auto;
  }
  .ideal-for-steps {
    grid-template-columns: 1fr 1fr !important; /* 2x2 grid on mobile */
  }
}
@media (max-width: 576px) {
  .ideal-for-steps {
    grid-template-columns: 1fr !important; /* 1 col on very small screens */
  }
}

/* Alinear botones flex */
.hero-content.align-left .hero-buttons { justify-content: flex-start !important; }
.hero-content.align-center .hero-buttons { justify-content: center !important; }
.hero-content.align-right .hero-buttons { justify-content: flex-start !important; } /* Botones a la izquierda */

/* Alinear trust-bar items */
.hero-content.align-left .trust-bar { justify-content: flex-start !important; }
.hero-content.align-center .trust-bar { justify-content: center !important; }
.hero-content.align-right .trust-bar { justify-content: flex-start !important; }

/* Posicionamiento dinámico del fondo para que la laptop / celular no se solapen con el texto */
.hero:has(.hero-content.align-left) .hero-bg img {
  left: -30% !important;
}
.hero:has(.hero-content.align-right) .hero-bg img {
  left: 0% !important;
}
.hero:has(.hero-content.align-center) .hero-bg img {
  left: -15% !important;
}


.hero-subtitle {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,209,102,0.1);
  border: 1px solid rgba(0,209,102,0.2);
  border-radius: 100px;
  color: var(--secondary-color);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: var(--hero-h1-size, clamp(40px, 5vw, 64px)) !important;
  line-height: 1.35; /* Aumentado a 1.35 para dar espacio vertical óptimo y legibilidad premium */
  color: white;
  margin-bottom: 30px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.6), 0 2px 5px rgba(0,0,0,0.4); /* Doble sombra para legibilidad cristalina */
}

.hero h1 span {
  color: var(--secondary-color);
}

.hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.9); /* Más claro para alto contraste */
  margin-bottom: 48px;
  line-height: 1.7; /* Aumentado para máxima legibilidad */
  text-shadow: 0 3px 15px rgba(0,0,0,0.6), 0 1px 3px rgba(0,0,0,0.4); /* Doble sombra premium */
}

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

/* Sections */
section:not(.hero):not(.social-proof) {
  padding: 80px 0;
}
section.container:not(.hero):not(.social-proof),
#form-contacto.container {
  padding: 80px 24px;
}

.social-proof {
  padding: 40px 0;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.section-title {
  font-size: clamp(32px, 4vw, 42px);
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 18px;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-item {
  padding: 40px;
  background: var(--bg-light);
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-align: center;
}

.feature-item:hover {
  background: white;
  box-shadow: var(--shadow-md);
  border-color: var(--border-color);
  transform: translateY(-5px);
}

.feature-icon svg {
  width: 48px !important;
  height: 48px !important;
  color: var(--secondary-color) !important;
  margin-bottom: 24px;
}

.feature-item h4 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Plans / Pricing */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.plan-card:not(.popular):hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px rgba(10, 17, 40, 0.08);
  border-color: var(--secondary-color);
}

.plan-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
  margin-bottom: 20px;
}

.plan-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: calc(var(--radius) - 1px);
  border-top-right-radius: calc(var(--radius) - 1px);
  border-bottom: 1px solid var(--border-color);
}

.plan-card.popular {
  border-color: var(--secondary-color);
  box-shadow: 0 20px 40px -12px rgba(0,209,102,0.15);
  transform: scale(1.05);
  z-index: 10;
}

.plan-card.popular:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow: 0 25px 45px rgba(0, 209, 102, 0.25);
  box-shadow: 0 25px 45px color-mix(in srgb, var(--secondary-color) 25%, transparent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--secondary-color);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.plan-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.plan-pricing-box {
  margin: 10px 0 5px 0;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plan-pricing-box span:last-child {
  font-size: 48px;
  font-weight: 800;
  color: var(--primary-color);
}

.plan-content {
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex-grow: 1;
}

.plan-features {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
  display: inline-block;
  text-align: left;
}

.plans-footer-text {
  text-align: center;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.btn-plan-outline {
  background-color: transparent;
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.btn-plan-outline:hover {
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.plan-features li {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.plan-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: 900;
}



/* FAQ */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
}

.faq-item button {
  padding: 24px;
  font-size: 17px;
}

/* Footer */
footer.main-footer {
  background: #0033aa; /* A darker shade for separation */
  color: white;
  padding: 40px 0;
}

.cta-section {
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../uploads/cta_bg.png') center/cover no-repeat;
  background-color: var(--primary-color);
  color: white;
  padding: 80px 0;
}

.cta-text h2 {
  color: white;
  font-size: 36px;
  margin-bottom: 15px;
  line-height: 1.2;
}

.cta-text p {
  color: rgba(255,255,255,0.9);
  font-size: 16px;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-phone {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
}

/* Hero Background Image */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden !important;
}

.hero-bg img {
  width: 130% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: -15% !important;
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  z-index: 1 !important;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2 !important;
  transition: background 0.8s cubic-bezier(0.16, 1, 0.3, 1) !important;
  /* Degradado por defecto (Izquierda) */
  background: linear-gradient(to right, 
    rgba(10, 17, 40, 0.98) 0%, 
    rgba(10, 17, 40, 0.85) 30%, 
    rgba(10, 17, 40, 0.35) 60%, 
    rgba(10, 17, 40, 0) 90%
  );
}

/* DEGRADADOS DINÁMICOS EN FUNCIÓN DE LA ALINEACIÓN DEL HERO */
.hero:has(.hero-content.align-left) .hero-bg::after {
  background: linear-gradient(to right, 
    rgba(10, 17, 40, 0.98) 0%, 
    rgba(10, 17, 40, 0.85) 30%, 
    rgba(10, 17, 40, 0.35) 60%, 
    rgba(10, 17, 40, 0) 90%
  ) !important;
}

.hero:has(.hero-content.align-right) .hero-bg::after {
  background: linear-gradient(to left, 
    rgba(10, 17, 40, 0.98) 0%, 
    rgba(10, 17, 40, 0.85) 30%, 
    rgba(10, 17, 40, 0.35) 60%, 
    rgba(10, 17, 40, 0) 90%
  ) !important;
}

.hero:has(.hero-content.align-center) .hero-bg::after {
  background: radial-gradient(circle, 
    rgba(10, 17, 40, 0.96) 0%, 
    rgba(10, 17, 40, 0.75) 45%, 
    rgba(10, 17, 40, 0.3) 75%, 
    rgba(10, 17, 40, 0) 100%
  ) !important;
}

/* Gallery */
.gallery-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.gallery-item {
  width: 100%;
  max-width: 320px;
  flex: 1 1 280px;
  height: auto;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.gallery-item:hover {
  transform: scale(1.03);
}

.gallery-btn {
  text-align: center;
  margin-top: 40px;
}

/* Plan Image */
.plan-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
}

/* Why Us */
.why-us-bg {
  background: var(--bg-light);
  padding: 80px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  text-align: center;
}

.why-item {
  padding: 32px 24px;
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
}

.why-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.why-item h4 {
  margin-bottom: 8px;
}

.why-item p {
  color: var(--text-muted);
  font-size: 15px;
}

/* About / Nosotros (Modern Split Layout) */
.about-section {
  background: var(--primary-color);
  color: white;
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* Background Blobs for a modern tech feel */
.about-section::before {
  content: '';
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}
.about-section::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  background: radial-gradient(circle, rgba(0, 209, 102, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about-content h2 {
  color: white;
  font-size: clamp(32px, 4.5vw, 48px);
  margin-bottom: 24px;
  font-weight: 800;
  line-height: 1.1;
}

.about-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.about-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px;
  border-radius: 16px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, background 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-glass-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

.about-glass-card .icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(0, 209, 102, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-color);
}

.about-glass-card span {
  font-size: 14px;
  font-weight: 700;
  color: white;
  line-height: 1.4;
}

.about-visual {
  position: relative;
  border-radius: 24px;
  perspective: 1000px;
}

.about-floating-img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.5s ease;
}

.about-visual:hover .about-floating-img {
  transform: rotateY(0deg) rotateX(0deg) translateY(-10px);
}

@media (max-width: 768px) {
  .about-split {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-features-grid {
    grid-template-columns: 1fr;
  }
  .about-content h2 {
    font-size: 32px;
  }
}

/* Testimonials */
.testimonials-bg {
  background: var(--bg-light);
  padding: 80px 0;
}

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

.test-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.test-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.test-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.test-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--primary-color);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 20px;
}

.test-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.test-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
}

.test-quote {
  color: var(--primary-color);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.test-author-info {
  margin-top: auto;
}

.test-author {
  font-weight: 800;
  color: var(--text-dark);
  font-size: 14px;
}

.test-company {
  font-size: 12px;
  color: var(--text-muted);
}

@media (max-width: 992px) {
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .test-grid {
    grid-template-columns: 1fr;
  }
}

/* CTA Flex */
.cta-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-info {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: rgba(255,255,255,0.5);
  transition: color 0.3s;
}

.social-icons a:hover {
  color: var(--secondary-color);
}

/* Floating WhatsApp */
.floating-wsp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25D366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37,211,102,0.4);
  z-index: 999;
  transition: transform 0.3s;
}

.floating-wsp:hover {
  transform: scale(1.1);
}

/* Hamburger Button */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 200;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  margin: 5px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Links reset */
a {
  text-decoration: none;
  color: inherit;
}

/* ========================================
   RESPONSIVE — TABLET (max 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .cta-flex {
    flex-direction: column;
    text-align: center;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .features-grid,
  .plans-grid,
  .why-grid,
  .test-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Forzar a mostrar la laptop (izquierda) y recortar la columna cyan (derecha) en tablet */
  .hero-bg img {
    width: 150% !important;
    min-width: 150% !important;
    max-width: none !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: left center !important;
  }
}

/* ========================================
   RESPONSIVE — MOBILE (max 768px)
   ======================================== */
@media (max-width: 768px) {
  /* Hamburger desactivado/oculto en móviles para dejar espacio para logo y botón */
  .menu-toggle {
    display: none !important;
  }

  /* Header layout alineado y sin envoltura (flex-wrap) en móviles */
  .header-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100%;
  }

  .header-inner > .btn-primary {
    padding: 10px 18px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    white-space: nowrap !important;
  }

  /* Nav oculto por completo en móviles */
  nav {
    display: none !important;
  }

  header {
    overflow: hidden !important;
  }

  /* Tope máximo del logo en móviles */
  .logo {
    max-width: 110px !important;
  }
  .logo img {
    height: 38px !important;
    max-height: 38px !important;
  }
  header.scrolled .logo img {
    height: 32px !important;
    max-height: 32px !important;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    gap: 0;
  }

  nav ul li {
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  nav ul li a {
    display: block;
    padding: 14px 0;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 60px;
  }

  .hero-bg img {
    width: 160% !important;
    min-width: 160% !important;
    max-width: none !important;
    height: 100% !important;
    left: 0 !important;
    position: absolute !important;
    object-fit: cover !important;
    object-position: left center !important;
  }

  .hero-bg::after {
    background: rgba(10, 17, 40, 0.85) !important;
  }

  .hero-content {
    max-width: 100% !important;
    text-align: center !important;
    margin: 0 auto !important;
  }

  .hero-content h1, 
  .hero-content p, 
  .hero-content .hero-subtitle,
  .hero-content .trust-bar { 
    text-align: center !important; 
  }

  .hero h1 {
    font-size: var(--hero-h1-size, clamp(28px, 7vw, 38px)) !important;
  }

  .hero p {
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center !important;
    justify-content: center !important;
  }


  .hero-buttons a,
  .hero-buttons button {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .trust-bar {
    justify-content: center !important;
  }

  /* Sections spacing */
  section:not(.hero):not(.social-proof) {
    padding: 48px 0;
  }
  section.container:not(.hero):not(.social-proof),
  #form-contacto.container {
    padding: 48px 16px;
  }

  .why-us-bg,
  .testimonials-bg {
    padding: 48px 0;
  }

  .social-proof {
    padding: 30px 0;
  }

  .section-title {
    font-size: clamp(24px, 6vw, 32px);
  }

  .section-subtitle {
    font-size: 15px;
    margin-bottom: 24px;
  }

  /* Grids → 1 column */
  .features-grid,
  .why-grid,
  .test-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 40px; /* Evita que la etiqueta se monte en el paquete de arriba */
  }

  .feature-item {
    padding: 28px;
  }

  /* Plans */
  .plan-card {
    padding: 24px;
  }

  .plan-card.popular {
    transform: none;
    margin: 0;
  }

  /* About Section Mobile */
  .about-content {
    max-width: 100%;
  }
  .about-bg-image::after {
    background: linear-gradient(to bottom, var(--primary-color) 0%, var(--primary-color) 30%, transparent 100%);
  }
  .about-features {
    grid-template-columns: 1fr;
  }
  
  /* Gallery */
  .gallery-item {
    height: auto;
  }

  /* About */
  .about-section {
    padding: 48px 0;
  }

  .about-features {
    justify-content: center;
  }

  /* Footer / CTA */
  .cta-footer {
    padding: 48px 0 24px;
  }

  .cta-footer h2 {
    font-size: clamp(24px, 6vw, 32px);
  }

  .cta-flex {
    flex-direction: column;
    text-align: center;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-info {
    flex-direction: column;
    gap: 8px;
  }

  /* Floating WhatsApp — slightly smaller on mobile */
  .floating-wsp {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }

  /* Desactivar animaciones AOS por completo en móviles para evitar pantallas en blanco */
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   CONSECUTIVE SAME-COLOR SECTIONS SPACING CORRECTIONS (OPTIMAL SYMMETRY)
   ========================================================================== */

/* 1. Transition: Features (white) -> Specs (white) */
#features {
  padding-bottom: 40px !important;
}
#specs {
  padding-top: 40px !important;
}

/* 2. Transition: Testimonials (gray) -> WhyUs (gray) */
#testimonials {
  padding-bottom: 40px !important;
}
#whyUs {
  padding-top: 40px !important;
}

/* 3. Transition: Plans (white) -> IdealFor (white) */
#plans {
  padding-bottom: 40px !important;
}
#idealFor {
  padding-top: 40px !important;
}

/* Responsive adjustments for same-color transitions */
@media (max-width: 768px) {
  #features {
    padding-bottom: 24px !important;
  }
  #specs {
    padding-top: 24px !important;
  }
  
  #testimonials {
    padding-bottom: 24px !important;
  }
  #whyUs {
    padding-top: 24px !important;
  }
  
  #plans {
    padding-bottom: 24px !important;
  }
  #idealFor {
    padding-top: 24px !important;
  }
}

/* BENTO SECTION */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.bento-box {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid #f1f5f9;
}

.bento-label {
    font-size: 12px;
    font-weight: 800;
    color: var(--secondary-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.bento-box h3 {
    font-size: 20px;
    color: var(--primary-color);
    margin: 0;
}

.bento-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}
.bento-pill i {
    width: 20px;
}

.cycle-icon {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px auto; color: white;
}
.tech-icon {
    width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px auto; background: #eff6ff; color: var(--secondary-color);
}

@media (max-width: 991px) {
    .bento-grid { grid-template-columns: 1fr; }
    .bento-box { grid-column: 1 / -1 !important; }
    .bento-header { grid-template-columns: 1fr !important; }
    .bento-row-1 { flex-direction: column; text-align: center; }
    .bento-pills { justify-content: center; }
    .bento-row1-graphic { margin-top: 30px; justify-content: center; }
}

/* FAQ & Form Split Layout */
.faq-demo-section {
  padding: 80px 0;
  background: var(--bg-light);
}

.faq-demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

/* Modern FAQ Accordion */
.faq-modern-container {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-modern-item {
  border-bottom: 1px solid #e2e8f0;
}

.faq-modern-item:last-child {
  border-bottom: none;
}

.faq-modern-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: color 0.3s ease;
}

.faq-modern-btn:hover {
  color: var(--primary-color);
}

.faq-modern-icon {
  color: var(--secondary-color);
  font-size: 20px;
  font-weight: 300;
  transition: transform 0.3s ease;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-modern-item.active .faq-modern-icon {
  transform: rotate(45deg);
}

.faq-modern-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-modern-answer-inner {
  padding-bottom: 20px;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 15px;
}

/* Purple Demo Form Card */
.demo-form-card {
  background: linear-gradient(135deg, #6c3ce9 0%, #4f21b3 100%);
  border-radius: 24px;
  padding: 40px;
  color: white;
  box-shadow: 0 20px 40px rgba(108, 60, 233, 0.2);
  position: relative;
  overflow: hidden;
}

/* Decorative background blobs for the form */
.demo-form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.demo-form-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  margin-bottom: 10px;
  color: rgba(255,255,255,0.8);
}

.demo-form-card h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 12px;
  color: white;
  line-height: 1.2;
}

.demo-form-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 30px;
  line-height: 1.5;
}

.demo-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.demo-input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.demo-input-group.full-width {
  grid-column: 1 / -1;
}

.demo-input-group label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.demo-input-group label span {
  color: #ef4444; /* Red asterisk */
}

.demo-input, .demo-select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.2);
  background: white;
  color: var(--text-dark);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.3s ease;
}

.demo-input:focus, .demo-select:focus {
  border-color: var(--secondary-color);
}

.demo-submit {
  width: 100%;
  padding: 16px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.demo-submit:hover {
  background: #005bb5;
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .faq-demo-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 576px) {
  .demo-form-grid {
    grid-template-columns: 1fr;
  }
  .demo-form-card {
    padding: 30px 20px;
  }
}

/* Fix Lucide Icon Sizes Override */
.about-glass-card .icon-wrap [data-lucide],
.about-glass-card .icon-wrap .lucide {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}

.test-stars [data-lucide],
.test-stars .lucide {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
}

.demo-submit [data-lucide],
.demo-submit .lucide {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
}
