/* ============== IMPORTACIÓN DE FUENTES ============== */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* ============== VARIABLES CSS - PALETA CORPORATIVA GECOVSA ============== */
:root {
  /* --- Paleta de Colores Principal --- */
  --color-primary: #00AEEF;
  /* Azul Eléctrico/Cian */
  --color-primary-dark: #0077B6;
  /* Azul más profundo */

  /* --- Colores de UI y Roles --- */
  --color-dark-bg: #0A192F;
  /* Azul Navy muy oscuro, casi negro */
  --color-dark-bg-alt: #172A45;
  /* Azul un poco más claro para cards oscuras */

  --color-heading-light: #E6F1FF;
  /* Blanco azulado para títulos en fondos oscuros */
  --color-text-light-theme: #CCD6F6;
  /* Gris azulado claro para texto en fondos oscuros */
  --color-text-subtle: #8892B0;
  /* Gris más apagado para descripciones en fondos oscuros */

  --color-heading-dark-theme: #0A192F;
  /* Títulos para temas claros */
  --color-text-dark-theme: #5A646A;
  /* Texto para temas claros */

  --color-bg: #FFFFFF;
  /* Fondo principal blanco */
  --color-bg-alt: #F0F4F8;
  /* Un gris muy frío y sutil para secciones claras */
  --color-border: #DDE4E9;
  --color-white: #FFFFFF;
  --color-success: #64FFDA;
  /* Verde menta neón para acentos de éxito */

  /* --- Tipografía y Layout --- */
  --font-primary: 'Onest', sans-serif;
  --font-secondary: 'Onest', sans-serif;
  --container-width: 1140px;
  --section-padding: 6rem 0;
  --border-radius: 16px;
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --transition: all 0.3s ease-in-out;
}

/* ============== RESET Y CONFIGURACIÓN GLOBAL ============== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  overflow-x: hidden;
}

body.sidebar-open {
  overflow: hidden;
}

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

h1 {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.3rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

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

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* ============== ESTILOS DE COMPONENTES GLOBALES ============== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 700px;
  margin: 1rem auto 0 auto;
}

.section-eyebrow {
  display: block;
  font-weight: 600;
  color: var(--color-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cta-button,
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
  cursor: pointer;
}

.cta-button {
  background-color: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 5px 15px rgba(13, 71, 161, 0.25);
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(13, 71, 161, 0.3);
}

.outline-button {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.outline-button:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.text-gradient {
  background: linear-gradient(95deg, var(--color-primary-dark), var(--color-primary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* =================================================================== */
/* ===    HEADER & SIDEBAR (VERSIÓN OBRA MAESTRA v3)               === */
/* =================================================================== */

#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: padding 0.4s ease;
}

.nav-capsule {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: calc(100% - 2rem);
  margin: 0 auto;
  padding: 0.75rem 1rem;
  background-color: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 50px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#header.scrolled .nav-capsule {
  width: 100%;
  border-radius: 0;
  padding: 0.5rem 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.07);
}

.logo img {
  height: 40px;
}

.nav-menu {
  display: none;
}

@media (min-width: 992px) {
  .nav-menu {
    display: block;
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .nav-link {
    position: relative;
    padding: 0.7rem 1.3rem;
    border-radius: 50px;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--color-text);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease, background-color 0.3s ease;
  }

  .nav-link:hover {
    color: var(--color-primary);
    background-color: var(--color-bg-alt);
  }
}

.nav-item.has-megamenu {
  position: relative;
}

.megamenu-wrapper {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(10px) rotateX(-5deg);
  transform-origin: top center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
}

.nav-item.has-megamenu:hover .megamenu-wrapper {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) rotateX(0deg);
}

.nav-item.has-megamenu .expand-icon {
  transition: transform 0.3s ease;
}

.nav-item.has-megamenu:hover .expand-icon {
  transform: rotate(180deg);
}

.megamenu-content {
  width: 340px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--color-border);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.megamenu-header {
  padding: 0.5rem 1rem;
  color: var(--color-text-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.megamenu-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.megamenu-item:hover {
  background-color: var(--color-bg-alt);
  transform: translateX(5px);
}

.megamenu-item .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 2rem;
}

.megamenu-text h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-heading);
}

.megamenu-text p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-actions .cta-button {
  font-size: 0.9rem;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 991px) {
  .nav-actions .cta-button {
    display: none;
  }
}

.hamburger {
  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
}

.hamburger:hover {
  border-color: var(--color-primary);
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: var(--color-heading);
  border-radius: 10px;
  transition: all 0.35s cubic-bezier(0.645, 0.045, 0.355, 1);
  transform-origin: center;
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }
}

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(26, 35, 39, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 90%;
  max-width: 320px;
  height: 100vh;
  z-index: 999;
  background-color: var(--color-white);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s;
  display: flex;
  flex-direction: column;
}

body.sidebar-open {
  overflow: hidden;
}

body.sidebar-open .sidebar-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.sidebar-open .sidebar {
  transform: translateX(0);
  visibility: visible;
  box-shadow: var(--shadow);
}

body.sidebar-open .hamburger {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background-color: var(--color-white);
  gap: 0;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

body.sidebar-open .hamburger:hover {
  transform: rotate(90deg);
}

body.sidebar-open .hamburger span {
  background-color: var(--color-primary);
}

body.sidebar-open .hamburger span:nth-child(1) {
  transform: translateY(1px) rotate(45deg);
}

body.sidebar-open .hamburger span:nth-child(2) {
  transform: translateY(-1px) rotate(-45deg);
}


.sidebar-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.sidebar-nav ul {
  list-style: none;
  text-align: left;
}

.sidebar-nav li {
  opacity: 0;
  transform: translateX(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.sidebar-link {
  display: block;
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-heading);
  padding: 0.75rem 0;
  transition: color 0.3s ease;
}

.sidebar-link:hover {
  color: var(--color-primary);
}

body.sidebar-open .sidebar-nav li {
  opacity: 1;
  transform: translateX(0);
}

body.sidebar-open .sidebar-nav li:nth-child(1) {
  transition-delay: 0.2s;
}

body.sidebar-open .sidebar-nav li:nth-child(2) {
  transition-delay: 0.25s;
}

body.sidebar-open .sidebar-nav li:nth-child(3) {
  transition-delay: 0.3s;
}

body.sidebar-open .sidebar-nav li:nth-child(4) {
  transition-delay: 0.35s;
}

body.sidebar-open .sidebar-nav li:nth-child(5) {
  transition-delay: 0.4s;
}

.sidebar-actions {
  margin-top: 4rem;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease 0.5s;
}

body.sidebar-open .sidebar-actions {
  opacity: 1;
}

.sidebar-cta {
  width: 100%;
}


/* ============== SECCIÓN HERO ============== */
.hero {
  padding: 180px 0 120px 0;
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
  opacity: 0.12;
}

.hero-blob.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -150px;
  left: -200px;
}

.hero-blob.blob-2 {
  width: 450px;
  height: 450px;
  background: var(--color-accent-gold);
  bottom: -200px;
  right: -200px;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero-text>* {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-social-proof {
  animation-delay: 0.2s;
}

.hero-text h1 {
  animation-delay: 0.3s;
}

.hero-description {
  animation-delay: 0.4s;
}

.hero-buttons {
  animation-delay: 0.5s;
}

.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
}

.user-avatars {
  display: flex;
}

.user-avatars img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--color-bg-alt);
  margin-left: -12px;
}

.user-avatars img:first-child {
  margin-left: 0;
}

.rating-info .stars {
  color: #FFC107;
  font-size: 1.1rem;
  line-height: 1;
}

.rating-info span {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.rating-info span strong {
  color: var(--color-text);
}

.hero-text h1 {
  letter-spacing: -1.5px;
  margin-bottom: 1.5rem;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--color-text-light);
  max-width: 550px;
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.outline-button .material-symbols-outlined {
  transition: transform 0.3s ease;
}

.outline-button:hover .material-symbols-outlined {
  transform: translateX(4px);
}


.hero-image-container {
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
  opacity: 0;
}

.hero-image-container img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(0, 0, 0, 0.08);
}

.hero-trust-badge {
  position: absolute;
  bottom: -20px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--color-white);
  padding: 1rem 1.25rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-border);
}

.hero-trust-badge .material-symbols-outlined {
  font-size: 2rem;
  color: var(--color-success);
}

.hero-trust-badge p {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading);
}

/* ============== SECCIÓN PILARES ============== */
.pillars-section {
  background-color: var(--color-bg-alt);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.pillar-card {
  position: relative;
  background-color: var(--color-white);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--color-border);
  text-align: left;
  overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pillar-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -150%;
  width: 100%;
  height: 100%;
  transform: skewX(-25deg);
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  transition: left 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(26, 35, 39, 0.1);
}

.pillar-card:hover::after {
  left: 150%;
}

.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.5rem;
  background: linear-gradient(145deg, var(--color-bg-alt), var(--color-white));
  border-radius: 18px;
  border: 1px solid var(--color-border);
  transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.pillar-card:hover .pillar-icon {
  transform: translateY(-4px);
}

.pillar-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.pillar-card h3 {
  margin-bottom: 0.75rem;
}

.pillar-card p {
  color: var(--color-text-light);
}

/* ============== SECCIÓN SOBRE NOSOTROS ============== */
.about-section {
  padding: var(--section-padding);
  position: relative;
  overflow: hidden;
}

.about-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 0;
}

.about-blob.blob-1 {
  width: 600px;
  height: 600px;
  background: rgba(13, 71, 161, 0.08);
  top: 50%;
  left: -200px;
  transform: translateY(-50%);
}

.about-blob.blob-2 {
  width: 500px;
  height: 500px;
  background: rgba(197, 157, 95, 0.08);
  bottom: -150px;
  right: -150px;
}

.about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-grid {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5rem;
  }
}

.about-image-wrapper {
  position: relative;
  padding: 1rem;
}

.about-image-wrapper .image-bg-element {
  position: absolute;
  inset: 0;
  background-color: var(--color-bg-alt);
  border-radius: 30px;
  transform: rotate(-3deg);
  transition: transform 0.4s ease;
}

.about-image-wrapper img {
  position: relative;
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(26, 35, 39, 0.1);
  transition: transform 0.4s ease;
}

.about-image-wrapper:hover img {
  transform: scale(1.03) rotate(1deg);
}

.about-image-wrapper:hover .image-bg-element {
  transform: rotate(3deg);
}

.about-text .section-eyebrow,
.about-text .section-title {
  text-align: left;
  margin-left: 0;
}

.about-text .section-title {
  margin-bottom: 1.5rem;
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 3rem;
}

.about-description strong {
  color: var(--color-heading);
  font-weight: 600;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 2rem;
}

.stat-card {
  background-color: var(--color-bg-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  text-align: center;
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 3rem);
  font-weight: 700;
  line-height: 1;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  font-weight: 500;
}

/* ============== SECCIÓN CTA INTERMEDIO ============== */
.cta-mid-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  padding: 5rem 1.5rem;
  text-align: center;
}

.cta-mid-section .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-mid-icon {
  font-size: 3rem !important;
  opacity: 0.8;
}

.cta-mid-title {
  color: var(--color-white);
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  font-weight: 700;
  max-width: 25ch;
  line-height: 1.3;
  margin: 0;
}

.cta-mid-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
}

.cta-button-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid var(--color-white);
  cursor: pointer;
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.cta-button-white:hover {
  background-color: transparent;
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* ============== SECCIÓN SERVICIOS ============== */
.services-tabs-wrapper {
  display: none;
  justify-content: center;
  margin-bottom: 4rem;
}

.service-tabs {
  display: inline-flex;
  background-color: var(--color-bg-alt);
  border-radius: 50px;
  padding: 0.5rem;
  position: relative;
  border: 1px solid var(--color-border);
}

.service-tab {
  background: none;
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  color: var(--color-text-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  z-index: 2;
  transition: color 0.4s ease;
}

.service-tab:not(.active):hover {
  color: var(--color-heading);
}

.service-tab.active {
  color: var(--color-heading);
}

.active-tab-indicator {
  position: absolute;
  top: 0.5rem;
  height: calc(100% - 1rem);
  background-color: var(--color-white);
  border-radius: 50px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: all 0.6s cubic-bezier(0.645, 0.045, 0.355, 1);
  z-index: 1;
}

.services-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}

.accordion-item {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.accordion-item.active {
  background-color: var(--color-white);
  border-color: var(--color-primary);
}

.accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading);
}

.accordion-header>span {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.accordion-icon {
  transition: transform 0.4s ease;
}

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

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-inner-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  margin: 0 1.25rem;
}

.service-content-wrapper {
  display: none;
}

.service-content-pane {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  width: 100%;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}

.service-content-pane.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  position: relative;
}

.service-image img {
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.service-details p {
  margin-bottom: 2rem;
}

.key-focus-list li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-weight: 500;
}

.key-focus-list .material-symbols-outlined {
  color: var(--color-success);
}

.service-details .cta-button {
  margin-top: 1rem;
}

@media (min-width: 992px) {
  .services-tabs-wrapper {
    display: flex;
  }

  .services-accordion {
    display: none;
  }

  .service-content-wrapper {
    display: block;
    position: relative;
    min-height: 450px;
  }

  .service-content-pane {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ============== SECCIÓN PROCESO ============== */
.journey-section {
  background-color: var(--color-bg-alt);
  position: relative;
  overflow: hidden;
  padding-bottom: 100px !important;
}

.journey-timeline {
  display: none;
}

.journey-content {
  display: none;
}

@media (min-width: 992px) {
  .journey-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
  }

  .journey-timeline {
    display: block;
    position: relative;
  }

  .journey-content {
    display: block;
    position: relative;
    min-height: 500px;
  }

  .journey-accordion {
    display: none;
  }
}

.timeline-track {
  position: absolute;
  height: 100%;
  width: 2px;
  background-color: var(--color-border);
  left: 35px;
  top: 0;
}

.timeline-progress {
  width: 100%;
  background-color: var(--color-primary);
  height: 0;
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline-step {
  display: flex;
  align-items: center;
  cursor: pointer;
  position: relative;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background-color: var(--color-white);
  border: 2px solid var(--color-border);
  transition: all 0.4s ease;
}

.timeline-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-text-light);
  transition: color 0.4s ease;
}

.timeline-label {
  font-weight: 600;
  color: var(--color-text-light);
  transition: color 0.4s ease;
  padding-left: 1.5rem;
}

.timeline-label p {
  font-weight: 500;
  font-size: 0.9rem;
}

.timeline-step.active .timeline-icon {
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(13, 71, 161, 0.2);
}

.timeline-step.active .timeline-icon .material-symbols-outlined,
.timeline-step.active .timeline-label {
  color: var(--color-primary);
}

.journey-content-pane {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  padding: 3rem;
  display: block;
  position: absolute;
  width: 100%;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.19, 1, 0.22, 1), transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
  pointer-events: none;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.journey-content-pane.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.step-bg-number {
  position: absolute;
  top: -30px;
  right: 10px;
  font-size: 10rem;
  font-weight: 700;
  color: var(--color-bg-alt);
  z-index: -1;
}

.step-details {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.step-details h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.step-details p {
  max-width: 45ch;
  margin-bottom: 2.5rem;
}

.step-image {
  width: 100%;
  margin-top: auto;
}

.step-image img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

.journey-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.journey-accordion-item {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  transition: all 0.4s ease;
}

.journey-accordion-item.active {
  border-color: var(--color-primary);
}

.journey-accordion-item .accordion-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1.25rem;
  text-align: left;
}

.accordion-header-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.accordion-header-title .step-number {
  color: var(--color-primary);
}

.journey-accordion-item .accordion-icon {
  transition: transform 0.4s ease;
}

.journey-accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.journey-accordion-item .accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-content .journey-content-pane {
  display: flex;
  flex-direction: column;
  padding: 0 1.25rem 1.25rem;
  background: none;
  border: none;
  opacity: 1;
  transform: none;
  position: static;
  pointer-events: auto;
  box-shadow: none;
}

.accordion-content .step-bg-number {
  display: none;
}

/* ============== PORTFOLIO SECTION ============== */
.portfolio-section {
  background-color: var(--color-bg);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.portfolio-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow);
  transition: transform 0.4s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px);
}

.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.portfolio-card:hover img {
  transform: scale(1.05);
}

.portfolio-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(26, 35, 39, 0.9), transparent);
  color: var(--color-white);
}

.portfolio-content h3 {
  color: var(--color-white);
  margin-bottom: 0.5rem;
}

.portfolio-content p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* ============== SECCIÓN TESTIMONIOS ============== */
.testimonials {
  background-color: var(--color-bg-alt);
}

.testimonials-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 992px) {
  .testimonials-container {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.testimonial-intro-text {
  text-align: center;
}

@media (min-width: 992px) {

  .testimonial-intro-text,
  .testimonial-intro-text .section-title,
  .testimonial-intro-text .section-eyebrow,
  .testimonial-intro-text .section-subtitle {
    text-align: left;
  }
}

.testimonial-navigation {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

@media (min-width: 992px) {
  .testimonial-navigation {
    justify-content: flex-start;
  }
}

.nav-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background-color: var(--color-bg);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: var(--transition);
}

.nav-arrow:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.testimonial-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.testimonial-slider {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.testimonial-card {
  flex: 0 0 100%;
  padding: 0.5rem;
  box-sizing: border-box;
}

.card-content {
  background-color: var(--color-bg);
  border-radius: var(--border-radius);
  padding: 2.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.quote-icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 4rem !important;
  color: var(--color-border);
  transform: rotate(180deg);
}

blockquote {
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

.author-info {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}

.author-info img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

cite {
  font-style: normal;
  font-weight: 700;
}


/* ============== SECCIÓN FAQ ============== */
.faq {
  background-color: var(--color-bg);
}

.faq-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 992px) {
  .faq-container {
    grid-template-columns: 0.8fr 1.2fr;
    align-items: flex-start;
  }
}

.faq-intro .section-title,
.faq-intro .section-eyebrow,
.faq-intro .section-subtitle {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.faq-cta-box {
  background-color: var(--color-bg-alt);
  border-radius: var(--border-radius);
  padding: 2rem;
  border-left: 4px solid var(--color-primary);
}

.faq-cta-box h4 {
  margin-bottom: 0.5rem;
}

.faq-cta-box p {
  margin-bottom: 1.5rem;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  transition: var(--transition);
}

.faq-item.active {
  border-color: var(--color-primary);
  box-shadow: 0 5px 20px rgba(13, 71, 161, 0.1);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
}

.faq-question .icon {
  transition: transform 0.4s ease;
  font-weight: bold;
}

.faq-item.active .faq-question .icon {
  transform: rotate(135deg);
  color: var(--color-primary);
}

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

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.8;
}


/* ============== SECCIÓN CTA FINAL ============== */
.cta-final-section {
  background-color: var(--color-bg-alt);
  padding: 4rem 1.5rem;
}

.cta-content-wrapper {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1f2a2e, var(--color-dark-bg));
  border-radius: 24px;
  padding: clamp(3rem, 10vw, 5rem) 1.5rem;
  text-align: center;
  box-shadow: 0 20px 50px -20px rgba(26, 35, 39, 0.4);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.cta-blob.blob-1 {
  width: 300px;
  height: 300px;
  background-color: var(--color-primary);
  opacity: 0.15;
  top: -100px;
  left: -100px;
}

.cta-blob.blob-2 {
  width: 250px;
  height: 250px;
  background-color: var(--color-accent-gold);
  opacity: 0.1;
  bottom: -80px;
  right: -80px;
}

.cta-inner-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-inner-content .section-eyebrow {
  color: var(--color-accent-gold);
}

.cta-title {
  color: var(--color-white);
  margin-bottom: 1rem;
}

.cta-description {
  color: rgba(255, 255, 255, 0.8);
  max-width: 550px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.cta-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.cta-button.large {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.cta-action .cta-button {
  background-color: var(--color-white);
  color: var(--color-heading);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.cta-action .cta-button:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.cta-reassurance {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============== FOOTER ============== */
.footer {
  background-color: var(--color-dark-bg);
  color: rgba(255, 255, 255, 0.7);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-shape {
  position: absolute;
  width: 600px;
  height: 600px;
  background-color: rgba(13, 71, 161, 0.05);
  border-radius: 50%;
  filter: blur(150px);
  bottom: -200px;
  left: -150px;
  z-index: 0;
  pointer-events: none;
}

.footer .container {
  position: relative;
  z-index: 1;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1fr;
  padding-bottom: 4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1.2fr repeat(3, 1fr);
    gap: 2.5rem;
  }
}

.footer-logo img {
  height: 45px;
  margin-bottom: 1.5rem;
}

.footer-description {
  margin-bottom: 2rem;
  max-width: 300px;
}

.footer-heading {
  color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.footer-links li,
.contact-list li {
  margin-bottom: 1rem;
}

.footer-links a:hover {
  color: var(--color-accent-gold);
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-list a:hover {
  color: var(--color-accent-gold);
}

.contact-list .material-symbols-outlined {
  color: var(--color-primary);
  margin-top: 3px;
}

.newsletter-description {
  margin-bottom: 1.5rem;
}

.newsletter-form {
  display: flex;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-form input {
  flex-grow: 1;
  background: transparent;
  border: none;
  color: var(--color-white);
  padding: 0 1rem;
}

.newsletter-form input:focus {
  outline: none;
}

.newsletter-form button {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: var(--color-white);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease;
}

.newsletter-form button:hover {
  background-color: var(--color-primary-dark);
}

.footer-bottom {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-legal-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.footer-legal-links a:hover {
  color: var(--color-white);
}

/* ============== ANIMACIONES Y SCROLLBAR ============== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.19, 1, 0.22, 1), transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.pillars-grid .pillar-card:nth-child(1) {
  transition-delay: 0.1s;
}

.pillars-grid .pillar-card:nth-child(2) {
  transition-delay: 0.2s;
}

.pillars-grid .pillar-card:nth-child(3) {
  transition-delay: 0.3s;
}

.pillars-grid .pillar-card:nth-child(4) {
  transition-delay: 0.15s;
}

.pillars-grid .pillar-card:nth-child(5) {
  transition-delay: 0.25s;
}

.pillars-grid .pillar-card:nth-child(6) {
  transition-delay: 0.35s;
}


/* Scrollbar Personalizado */
::-webkit-scrollbar {
  width: 12px;
  background-color: var(--color-bg-alt);
}

::-webkit-scrollbar-thumb {
  background-color: transparent;
  border-radius: 10px;
  border: 3px solid var(--color-bg-alt);
  transition: background-color 0.4s ease-in-out;
}

body.scrolling::-webkit-scrollbar-thumb {
  background-color: var(--color-primary);
}

body.scrolling::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-primary-dark);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--color-primary) var(--color-bg-alt);
}

/* ========================================================== */
/* === CORRECCIÓN DE VISIBILIDAD: SECCIÓN METODOLOGÍA     === */
/* ========================================================== */

/* --- Por defecto (vista móvil) --- */
/* Ocultamos los componentes específicos de escritorio. */
.journey-timeline,
.journey-content {
  display: none;
}

/* Y nos aseguramos de que el acordeón móvil esté visible. */
.journey-accordion {
  display: flex;
  /* O 'block', flex funciona bien con tu layout. */
}


/* --- Vista de Escritorio (cuando la pantalla es de 992px o más ancha) --- */
@media (min-width: 992px) {

  /* Ocultamos el acordeón que es solo para móviles. */
  .journey-accordion {
    display: none;
  }

  /* Mostramos la línea de tiempo y el contenedor de contenido de escritorio. */
  .journey-timeline,
  .journey-content {
    display: block;
  }

}


/* --- TEMA OSCURO (por defecto o en .dark-section) --- */
.dark-section {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light-theme);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-heading-light);
}

.dark-section .section-eyebrow {
  color: var(--color-primary);
}

.dark-section .section-subtitle,
.dark-section .hero-description {
  color: var(--color-text-subtle);
}

.dark-section .outline-button {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.dark-section .outline-button:hover {
  background-color: rgba(0, 174, 239, 0.1);
}

.dark-section .user-avatars img {
  border-color: var(--color-dark-bg);
}

.dark-section .hero-trust-badge {
  background: var(--color-dark-bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-section .hero-trust-badge p {
  color: var(--color-heading-light);
}

.dark-section .stat-card {
  background-color: var(--color-dark-bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-section .stat-label {
  color: var(--color-text-subtle);
}

.dark-section .journey-content-pane {
  background-color: var(--color-dark-bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-section .journey-accordion-item {
  background-color: var(--color-dark-bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-section .journey-accordion-item.active {
  border-color: var(--color-primary);
}

.dark-section .timeline-icon {
  background-color: var(--color-dark-bg);
  border-color: var(--color-dark-bg-alt);
}

.dark-section .timeline-step.active .timeline-icon {
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.3);
}

/* --- TEMA CLARO (en .light-section) --- */
.light-section {
  background-color: var(--color-bg);
  color: var(--color-text-dark-theme);
}

.light-section.bg-alt {
  background-color: var(--color-bg-alt);
}

.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4 {
  color: var(--color-heading-dark-theme);
}

.light-section .section-eyebrow {
  color: var(--color-primary-dark);
}

.light-section .section-subtitle {
  color: var(--color-text-dark-theme);
}

.light-section .pillar-card {
  background-color: var(--color-white);
  border-color: var(--color-border);
}

/* ============== IMPORTACIÓN DE FUENTES ============== */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700&display=swap');

/* ============== VARIABLES CSS - PALETA TECNOLÓGICA ECOPROYECTOS ============== */
:root {
  --color-primary: #00AEEF;
  --color-primary-dark: #0077B6;
  --color-dark-bg: #0A192F;
  --color-dark-bg-alt: #172A45;
  --color-heading-light: #E6F1FF;
  --color-text-light-theme: #CCD6F6;
  --color-text-subtle: #8892B0;
  --color-heading-dark-theme: #0A192F;
  --color-text-dark-theme: #5A646A;
  --color-bg: #FFFFFF;
  --color-bg-alt: #F0F4F8;
  --color-border: #DDE4E9;
  --color-white: #FFFFFF;
  --color-success: #64FFDA;
  --font-primary: 'Onest', sans-serif;
  --font-secondary: 'Onest', sans-serif;
  --container-width: 1140px;
  --section-padding: 6rem 0;
  --border-radius: 16px;
  --shadow: 0 10px 30px -15px rgba(2, 12, 27, 0.7);
  --transition: all 0.3s ease-in-out;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.7;
  overflow-x: hidden;
  background-color: var(--color-dark-bg);
  /* Fondo oscuro por defecto */
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

/* ============== COMPONENTES GLOBALES ============== */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -1px;
  font-size: clamp(2.2rem, 4vw, 3rem);
}

.section-subtitle {
  font-size: 1.1rem;
  margin-top: 1rem;
}

.section-eyebrow {
  display: block;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.cta-button {
  background-color: var(--color-primary);
  color: var(--color-dark-bg);
  font-weight: 700;
}

.cta-button:hover {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
}

.outline-button {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.outline-button:hover {
  background-color: rgba(0, 174, 239, 0.1);
}

.text-gradient {
  background: linear-gradient(95deg, var(--color-success), var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============== HEADER OSCURO Y SIDEBAR ============== */
#header.dark-header .nav-capsule {
  background-color: rgba(23, 42, 69, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.1);
}

#header.dark-header.scrolled .nav-capsule {
  background-color: var(--color-dark-bg-alt);
}

#header.dark-header .nav-link {
  color: var(--color-text-light-theme);
}

#header.dark-header .nav-link:hover {
  color: var(--color-white);
  background-color: transparent;
}

#header.dark-header .hamburger span {
  background-color: var(--color-heading-light);
}

.sidebar {
  background-color: var(--color-dark-bg-alt);
}

.sidebar-link {
  color: var(--color-heading-light);
}

/* (El resto de los estilos del header y sidebar son reutilizados del CSS anterior) */

/* ============== SECCIONES CLARAS Y OSCURAS ============== */
.dark-section {
  background-color: var(--color-dark-bg);
  color: var(--color-text-light-theme);
}

.dark-section h1,
.dark-section h2,
.dark-section h3,
.dark-section h4 {
  color: var(--color-heading-light);
}

.dark-section .section-eyebrow {
  color: var(--color-primary);
}

.dark-section .section-subtitle,
.dark-section .hero-description {
  color: var(--color-text-subtle);
}

.light-section {
  background-color: var(--color-bg);
  color: var(--color-text-dark-theme);
}

.light-section h1,
.light-section h2,
.light-section h3,
.light-section h4 {
  color: var(--color-heading-dark-theme);
}

.light-section .section-eyebrow {
  color: var(--color-primary-dark);
}

.light-section .section-subtitle {
  color: var(--color-text-dark-theme);
}

/* ============== HERO SECTION ============== */
.hero.dark-section .user-avatars img {
  border-color: var(--color-dark-bg);
}

.hero.dark-section .hero-trust-badge {
  background: var(--color-dark-bg-alt);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero.dark-section .hero-trust-badge p {
  color: var(--color-heading-light);
}

/* ============== NUEVA SECCIÓN: VENTAJAS INTERACTIVAS ============== */
.advantages-section {
  padding-bottom: 8rem;
}

.advantages-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 992px) {
  .advantages-wrapper {
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
  }
}

.advantages-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.advantage-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  border-radius: var(--border-radius);
  border: 1px solid var(--color-border);
  background-color: var(--color-white);
  font-size: 1.1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.advantage-link .material-symbols-outlined {
  color: var(--color-primary-dark);
  transition: color 0.3s ease;
}

.advantage-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.advantage-link.active {
  background-color: var(--color-primary-dark);
  color: var(--color-white);
  border-color: var(--color-primary-dark);
}

.advantage-link.active .material-symbols-outlined {
  color: var(--color-white);
}

.advantages-content {
  position: relative;
  min-height: 400px;
}

.advantage-pane {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.advantage-pane.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.advantage-pane img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  margin-bottom: 1.5rem;
}

.advantage-pane h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

/* ============== NUEVA SECCIÓN: SOBRE NOSOTROS V2 ============== */
.about-v2-section {
  position: relative;
  padding: 8rem 0;
  text-align: center;
  overflow: hidden;
}

.about-v2-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1621253243527-7f8a42d43615?w=1200');
  background-size: cover;
  background-position: center;
  filter: blur(5px);
  transform: scale(1.1);
  z-index: 0;
}

.about-v2-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.85);
}

.about-v2-section .container {
  position: relative;
  z-index: 1;
}

.about-v2-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-v2-description {
  font-size: 1.2rem;
  margin: 1.5rem 0 3rem 0;
  color: var(--color-text-light-theme);
}

.about-v2-section .about-stats {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.about-v2-section .stat-card {
  background-color: transparent;
  border: none;
}

.about-v2-section .stat-number {
  color: var(--color-white);
}

/* ============== NUEVA SECCIÓN: SERVICIOS EN GRID ============== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card-v2 {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
}

.service-card-v2:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--color-primary);
}

.service-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 1.5rem auto;
  border-radius: 50%;
  background-color: var(--color-primary-dark);
  display: grid;
  place-items: center;
}

.service-icon .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-white);
}

.service-card-v2 h3 {
  margin-bottom: 0.75rem;
}

/* ============== NUEVA SECCIÓN: PROCESO EN PASOS ============== */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  counter-reset: step-counter;
}

.step-card {
  background-color: var(--color-dark-bg-alt);
  padding: 2rem;
  border-radius: var(--border-radius);
  position: relative;
  padding-top: 4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card::before {
  counter-increment: step-counter;
  content: "0" counter(step-counter);
  position: absolute;
  top: 1.5rem;
  left: 2rem;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
}

.step-card h3 {
  margin-bottom: 1rem;
}

/* ============== NUEVA SECCIÓN: SHOWCASE DE PROYECTOS ============== */
.showcase-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background-color: var(--color-white);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

@media (min-width: 992px) {
  .showcase-wrapper {
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    padding: 3rem;
  }
}

.showcase-image-container {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.showcase-image-container img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.showcase-details {
  text-align: center;
}

@media (min-width: 992px) {
  .showcase-details {
    text-align: left;
  }
}

.showcase-details h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.showcase-navigation {
  margin-top: 2rem;
}

.showcase-section.changing .showcase-image-container,
.showcase-section.changing .showcase-details {
  opacity: 0;
}

.showcase-image-container,
.showcase-details {
  transition: opacity 0.3s ease-in-out;
}


/* ============== FOOTER (CON HOVER ARREGLADO) ============== */
.footer-links a:hover {
  color: var(--color-primary);
  /* Arreglado */
}

/* (El resto de los estilos del footer son reutilizados) */

/* ==================================================================== */
/* ============== ESTILOS: SOBRE NOSOTROS V3 (MEJORADA) =============== */
/* ==================================================================== */

.about-v3-section {
  position: relative;
  padding: 10rem 0;
  /* ¡Mucho más grande! Más espacio vertical */
  overflow: hidden;
}

/* --- Fondo animado para darle vida --- */
.about-v2-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1621253243527-7f8a42d43615?w=1200');
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  /* Un poco más de desenfoque */
  /* Animación sutil de zoom para un efecto dinámico */
  animation: subtle-zoom 20s infinite alternate ease-in-out;
  z-index: 0;
}

@keyframes subtle-zoom {
  from {
    transform: scale(1.1);
  }

  to {
    transform: scale(1.2);
  }
}

.about-v2-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(10, 25, 47, 0.88);
  /* Overlay un poco más opaco */
}

.about-v3-section .container {
  position: relative;
  z-index: 1;
}

/* --- Nuevo Layout en Grid --- */
.about-v3-grid {
  display: grid;
  grid-template-columns: 1fr;
  /* Layout de una columna para móvil */
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .about-v3-grid {
    grid-template-columns: 1.2fr 1fr;
    /* Dos columnas en escritorio */
  }
}

/* --- Estilos de la columna de texto --- */
.about-v3-text {
  text-align: center;
}

@media (min-width: 992px) {
  .about-v3-text {
    text-align: left;
    /* Alineado a la izquierda en escritorio */
  }
}

.about-v3-section .section-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  /* Título más grande e impactante */
}

.about-v3-description {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-top: 1.5rem;
  color: var(--color-text-light-theme);
  max-width: 50ch;
  /* Mejora la legibilidad */
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 992px) {
  .about-v3-description {
    margin-left: 0;
    margin-right: 0;
  }
}

/* --- Estilos de las nuevas tarjetas de estadísticas --- */
.about-v3-stats {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-v3-stats .stat-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  border-radius: var(--border-radius);
  /* Efecto "Glassmorphism" para un look premium */
  background-color: rgba(23, 42, 69, 0.5);
  /* Azul oscuro semi-transparente */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 174, 239, 0.2);
  /* Borde con el color primario transparente */
  text-align: left;
  transition: all 0.3s ease;
}

.about-v3-stats .stat-card:hover {
  transform: translateY(-5px);
  background-color: rgba(23, 42, 69, 0.7);
  border-color: rgba(0, 174, 239, 0.4);
}

.about-v3-stats .stat-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--color-primary);
}

.about-v3-stats .stat-number {
  font-size: clamp(2.2rem, 5vw, 2.8rem);
  color: var(--color-white);
  line-height: 1;
}

.about-v3-stats .stat-label {
  color: var(--color-text-subtle);
  font-weight: 500;
}

/* --- Animaciones escalonadas para las tarjetas --- */
.about-v3-stats .stat-card[data-delay="1"] {
  transition-delay: 0.2s;
}

.about-v3-stats .stat-card[data-delay="2"] {
  transition-delay: 0.3s;
}

.about-v3-stats .stat-card[data-delay="3"] {
  transition-delay: 0.4s;
}

/* ==================================================================== */
/* ============ ESTILOS: PROCESO INTERACTIVO V2 ===================== */
/* ==================================================================== */

.process-timeline-section {
  padding-bottom: 8rem;
}

.process-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

/* La línea de fondo (el "track") */
.process-timeline::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background-color: var(--color-dark-bg-alt);
  border-radius: 2px;
  z-index: 1;
}

/* La barra de progreso animada */
.timeline-progress-bar {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  z-index: 2;
  height: 0;
  /* JS controlará la altura */
  transition: height 0.1s ease-out;
}

/* Cada paso en la línea de tiempo */
.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 2rem;
  min-height: 250px;
  /* Más espacio entre pasos */
}

/* El punto numerado */
.timeline-dot {
  grid-column: 2;
  grid-row: 1;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--color-dark-bg);
  border: 2px solid var(--color-dark-bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.4s ease;
}

.timeline-dot::before {
  content: attr(data-step);
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--color-text-subtle);
  transition: color 0.4s ease;
}

/* Estilos cuando el paso es visible */
.timeline-step.is-visible .timeline-dot {
  border-color: var(--color-primary);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(0, 174, 239, 0.3);
}

.timeline-step.is-visible .timeline-dot::before {
  color: var(--color-primary);
}

/* El contenido de texto */
.timeline-content {
  padding: 2rem;
  border-radius: var(--border-radius);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease-out;
}

.timeline-step.is-visible .timeline-content {
  opacity: 1;
  transform: translateY(0);
}

/* Posicionamiento alterno */
.timeline-step--right .timeline-content {
  grid-column: 3;
  text-align: left;
}

.timeline-step--left .timeline-content {
  grid-column: 1;
  text-align: right;
}

/* Tipografía del contenido */
.step-eyebrow {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.step-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.step-description {
  font-size: 1.1rem;
  color: var(--color-text-subtle);
  line-height: 1.7;
  max-width: 400px;
}

.timeline-step--right .step-description {
  margin-right: auto;
}

.timeline-step--left .step-description {
  margin-left: auto;
}

/* --- VERSIÓN MÓVIL --- */
@media (max-width: 768px) {

  .process-timeline::after,
  .timeline-progress-bar {
    left: 30px;
    /* Mueve la línea a la izquierda */
  }

  .timeline-step {
    grid-template-columns: auto 1fr;
    /* Dos columnas: punto y contenido */
    gap: 1.5rem 0;
    /* CORRECCIÓN: Asegura que no haya gap vertical extra */
    min-height: auto;
    margin-bottom: 3rem;

  }

  .timeline-dot {
    grid-column: 1;
    width: 50px;
    height: 50px;
  }

  .timeline-content {
    grid-column: 2;
    text-align: left !important;
    /* Siempre a la izquierda */
    padding: 0;
    margin-left: 20px;
  }

  .step-description {
    margin-left: 0 !important;
  }

  /* Forzamos a que TODOS los pasos se comporten igual en móvil */
  .timeline-step--left,
  .timeline-step--right {
    grid-template-columns: auto 1fr;
    /* Asegura el layout de 2 columnas */
  }

  /* Forzamos a que el contenido de los pasos izquierdos también ocupe la segunda columna */
  .timeline-step--left .timeline-content {
    grid-column: 2;
    text-align: left !important;
    /* Mantiene la alineación a la izquierda */
  }
}

/* ==================================================================== */
/* ============ ESTILOS: SHOWCASE DE PROYECTOS V3 ===================== */
/* ==================================================================== */

.showcase-v3-section {
  background-color: var(--color-bg-alt);
  overflow: hidden;
  /* Evita desbordamientos del carrusel */
}

.showcase-v3-wrapper {
  position: relative;
}

/* --- Contenedor del Carrusel --- */
.showcase-v3-carousel-container {
  position: relative;
  width: 100%;
  height: 550px;
  /* Altura fija para el carrusel */
  margin-bottom: 3rem;
}

.showcase-v3-carousel {
  position: relative;
  width: 100%;
  height: 100%;
}

/* --- Tarjeta de Proyecto --- */
.showcase-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    z-index 0.6s;
}

.card-image {
  width: 100%;
  height: 65%;
  flex-shrink: 0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-text {
  padding: 1.5rem 2rem;
}

.card-text h3 {
  font-size: 1.8rem;
  margin-bottom: 0.75rem;
}

.card-text p {
  font-size: 1rem;
  line-height: 1.6;
}

/* --- Estados de las Tarjetas (La Magia del Apilamiento) --- */
.showcase-card {
  opacity: 0;
  transform: scale(0.7);
  z-index: 0;
}

.showcase-card.active {
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.showcase-card.prev {
  opacity: 0.6;
  transform: translateX(-55%) scale(0.85);
  z-index: 1;
}

.showcase-card.next {
  opacity: 0.6;
  transform: translateX(55%) scale(0.85);
  z-index: 1;
}

/* --- Controles (Flechas) --- */
.showcase-v3-controls {
  display: none;
  /* Oculto en móvil, visible en escritorio */
}

@media (min-width: 768px) {
  .showcase-v3-controls {
    display: block;
  }

  .control-arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: grid;
    place-items: center;
    z-index: 10;
    transition: all 0.3s ease;
  }

  .control-arrow:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
  }

  #prev-project-btn {
    left: -25px;
  }

  #next-project-btn {
    right: -25px;
  }
}

/* --- Navegación por Títulos --- */
.showcase-v3-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.nav-title-item {
  background: none;
  border: none;
  padding: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-dark-theme);
  cursor: pointer;
  position: relative;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nav-title-item:hover {
  opacity: 1;
  color: var(--color-primary);
}

.nav-title-item.active {
  opacity: 1;
  color: var(--color-primary-dark);
}

/* Indicador de progreso circular */
.nav-title-item .progress-ring {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  background-color: var(--color-primary);
  border-radius: 50%;
  transition: all 0.4s ease;
}

.nav-title-item.active .progress-ring {
  width: 8px;
  height: 8px;
}

/* --- Responsividad --- */
@media (max-width: 767px) {
  .showcase-v3-carousel-container {
    height: 500px;
    /* Un poco más bajo en móvil */
  }

  .showcase-card.prev,
  .showcase-card.next {
    display: none;
    /* Oculta las tarjetas laterales en móvil */
  }

  .card-text {
    padding: 1.5rem;
  }

  .card-text h3 {
    font-size: 1.5rem;
  }
}

/* ==================================================================== */
/* =================== ESTILOS: FAQ V2 ============================== */
/* ==================================================================== */

.faq-v2-section {
  padding: 8rem 0;
}

.faq-v2-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  align-items: flex-start;
}

@media (min-width: 992px) {
  .faq-v2-grid {
    grid-template-columns: 1fr 1.5fr;
  }
}

.faq-intro .section-title,
.faq-intro .section-eyebrow {
  text-align: left;
  margin-left: 0;
}

.faq-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
  margin: 1.5rem 0 2.5rem 0;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--border-radius);
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(0, 174, 239, 0.2);
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: rgba(23, 42, 69, 0.7);
  border-color: rgba(0, 174, 239, 0.4);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-heading-light);
  cursor: pointer;
}

.faq-icon {
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.active .faq-question {
  color: var(--color-primary);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer p {
  padding: 0 1.5rem 1.5rem;
  line-height: 1.8;
  color: var(--color-text-subtle);
  border-top: 1px solid rgba(0, 174, 239, 0.2);
  padding-top: 1.5rem;
  margin-top: -0.5rem;
}

/* ==================================================================== */
/* =================== ESTILOS: CTA FINAL V2 ========================== */
/* ==================================================================== */

.cta-final-v2-section {
  position: relative;
  padding: 10rem 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1581292142590-573c8833b7a2?w=1200');
  background-size: cover;
  background-position: center;
  animation: subtle-zoom 20s infinite alternate ease-in-out;
  z-index: 0;
}

.cta-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.8));
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.cta-description {
  font-size: 1.2rem;
  color: var(--color-text-subtle);
  margin-bottom: 3rem;
}

.cta-button-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.2rem 3rem;
  border-radius: 50px;
  font-size: 1.2rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-dark-bg);
  border: none;
  box-shadow: 0 10px 30px rgba(0, 174, 239, 0.3);
  transition: all 0.3s ease;
}

.cta-button-large:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 174, 239, 0.4);
}

/* --- Partículas animadas --- */
.cta-particles {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }

  10% {
    opacity: 0.7;
  }

  90% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

.particle:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  animation-delay: -10s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 15s;
  animation-delay: -7s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 20s;
  animation-delay: -1s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 13s;
  animation-delay: -12s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 16s;
  animation-delay: -5s;
}

.particle:nth-child(7) {
  left: 5%;
  animation-duration: 14s;
  animation-delay: -8s;
}

.particle:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
  animation-delay: -14s;
}

/* ======================================================= */
/* === ESTILOS: VENTAJAS INTERACTIVAS V3 (RESPONSIVE) ==== */
/* ======================================================= */

.advantages-v3-section {
  background-color: var(--color-bg-alt);
  /* Fondo claro para la sección */
}

.advantages-v3-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  /* Una columna por defecto para la vista móvil */
  gap: 2rem;
}

/* --- Layout para Escritorio --- */
@media (min-width: 992px) {
  .advantages-v3-wrapper {
    grid-template-columns: 1fr 1.2fr;
    /* Dos columnas: imagen a la izquierda, acordeón a la derecha */
    gap: 4rem;
    align-items: flex-start;
    /* Alinea los items al inicio */
  }

  /* La magia del "sticky": la imagen se queda fija mientras se hace scroll en el acordeón */
  .advantage-image-display {
    position: sticky;
    top: 120px;
    /* Distancia desde la parte superior de la ventana */
  }
}

/* --- Contenedor de la Imagen --- */
.advantage-image-display {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.advantage-image-display img {
  width: 100%;
  height: 300px;
  /* Altura fija para la imagen en móvil */
  object-fit: cover;
  transition: opacity 0.4s ease;
  /* Transición suave al cambiar de imagen */
}

@media (min-width: 992px) {
  .advantage-image-display img {
    height: 500px;
    /* Imagen más alta en escritorio */
  }
}

/* --- Contenedor del Acordeón --- */
.advantage-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.advantage-item.active {
  border-color: var(--color-primary);
  /* Resalta el item activo */
}

/* --- Cabecera del Acordeón (el botón) --- */
.advantage-header {
  width: 100%;
  background: none;
  border: none;
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

.advantage-title {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-heading-dark-theme);
}

.advantage-title .material-symbols-outlined {
  color: var(--color-primary-dark);
}

.accordion-icon {
  transition: transform 0.4s ease;
}

.advantage-item.active .accordion-icon {
  transform: rotate(180deg);
  /* Gira el ícono de flecha */
}

/* --- Contenido Desplegable del Acordeón --- */
.advantage-content {
  max-height: 0;
  /* Oculto por defecto */
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  /* Animación de despliegue */
}

.advantage-content-inner {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  margin: 0 1.25rem;
}

.advantage-content-inner p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-dark-theme);
}

/* ======================================================= */
/* ============== ESTILOS: HERO SECTION V2 (MEJORADO) ==== */
/* ======================================================= */

.hero {
  padding: 180px 0 120px 0;
  position: relative;
  overflow: hidden;
  /* Muy importante para contener las partículas */
}

/* --- Contenedor de Partículas --- */
.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particle-float 15s infinite linear;
}

@keyframes particle-float {
  0% {
    transform: translateY(100vh) scale(1);
    opacity: 0;
  }

  10%,
  90% {
    opacity: 0.7;
  }

  100% {
    transform: translateY(-100vh) scale(1.5);
    opacity: 0;
  }
}

/* Más partículas con duraciones y retrasos variados */
.particle:nth-child(1) {
  left: 10%;
  animation-duration: 12s;
  animation-delay: -3s;
}

.particle:nth-child(2) {
  left: 25%;
  animation-duration: 18s;
  animation-delay: -10s;
}

.particle:nth-child(3) {
  left: 40%;
  animation-duration: 15s;
  animation-delay: -7s;
}

.particle:nth-child(4) {
  left: 55%;
  animation-duration: 20s;
  animation-delay: -1s;
}

.particle:nth-child(5) {
  left: 70%;
  animation-duration: 13s;
  animation-delay: -12s;
}

.particle:nth-child(6) {
  left: 85%;
  animation-duration: 16s;
  animation-delay: -5s;
}

.particle:nth-child(7) {
  left: 5%;
  animation-duration: 14s;
  animation-delay: -8s;
}

.particle:nth-child(8) {
  left: 95%;
  animation-duration: 19s;
  animation-delay: -14s;
}

.particle:nth-child(9) {
  left: 15%;
  animation-duration: 22s;
  animation-delay: -2s;
}

.particle:nth-child(10) {
  left: 30%;
  animation-duration: 17s;
  animation-delay: -9s;
}

.particle:nth-child(11) {
  left: 45%;
  animation-duration: 14s;
  animation-delay: -4s;
}

.particle:nth-child(12) {
  left: 60%;
  animation-duration: 21s;
  animation-delay: -11s;
}

.particle:nth-child(13) {
  left: 75%;
  animation-duration: 16s;
  animation-delay: -6s;
}

.particle:nth-child(14) {
  left: 90%;
  animation-duration: 13s;
  animation-delay: -15s;
}

.particle:nth-child(15) {
  left: 20%;
  animation-duration: 19s;
  animation-delay: -5s;
}

.particle:nth-child(16) {
  left: 35%;
  animation-duration: 12s;
  animation-delay: -13s;
}

.particle:nth-child(17) {
  left: 50%;
  animation-duration: 18s;
  animation-delay: -8s;
}

.particle:nth-child(18) {
  left: 65%;
  animation-duration: 15s;
  animation-delay: -3s;
}

.particle:nth-child(19) {
  left: 80%;
  animation-duration: 20s;
  animation-delay: -10s;
}

.particle:nth-child(20) {
  left: 100%;
  animation-duration: 14s;
  animation-delay: -1s;
}


/* --- Contenido Principal del Hero --- */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(150px);
  z-index: 1;
  opacity: 0.15;
}

.hero-blob.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--color-primary);
  top: -150px;
  left: -200px;
}

.hero-blob.blob-2 {
  width: 450px;
  height: 450px;
  background: var(--color-success);
  bottom: -200px;
  right: -200px;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* El contenido debe estar sobre los blobs y partículas */
  display: grid;
  gap: 4rem;
  align-items: center;
}

@media (min-width: 992px) {
  .hero-content {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

/* (El resto de los estilos de .hero-text, h1, etc., se mantienen igual) */

.hero-image-container {
  position: relative;
  animation: fadeInUp 0.8s cubic-bezier(0.19, 1, 0.22, 1) 0.6s forwards;
  opacity: 0;
}

.hero-image-container img {
  width: 100%;
  border-radius: var(--border-radius);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.4);
}

/* --- NUEVAS Insignias Flotantes --- */
.hero-floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(23, 42, 69, 0.6);
  /* Fondo semi-transparente */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 174, 239, 0.2);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: subtle-float 4s ease-in-out infinite;
}

.hero-floating-badge .material-symbols-outlined {
  font-size: 2rem;
  color: var(--color-primary);
}

.hero-floating-badge p {
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-heading-light);
}

@keyframes subtle-float {

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

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

/* Posicionamiento individual y retrasos de animación */
#badge-eficiencia {
  bottom: 20px;
  left: -30px;
  animation-delay: 0s;
}

#badge-gestion {
  top: 20px;
  right: -40px;
  animation-delay: -1s;
  /* Inicia la animación en un punto diferente */
}

#badge-normativo {
  bottom: 80px;
  right: -60px;
  animation-delay: -2.5s;
}

/* Ajustes para móvil */
@media (max-width: 768px) {
  .hero-floating-badge {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }

  .hero-floating-badge .material-symbols-outlined {
    font-size: 1.5rem;
  }

  .hero-floating-badge p {
    font-size: 0.8rem;
  }

  #badge-eficiencia {
    left: 10px;
    bottom: 10px;
  }

  #badge-gestion {
    right: 10px;
    top: 10px;
  }

  #badge-normativo {
    display: none;
  }

  /* Ocultamos una para no saturar */
}

/* ==================================================================== */
/* =================== ESTILOS: CONTACTO FINAL V2 ===================== */
/* ==================================================================== */

.contact-v2-section {
  padding: 8rem 0;
  background-color: var(--color-dark-bg);
  /* Asegura el fondo oscuro */
}

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

@media (min-width: 992px) {
  .contact-v2-grid {
    grid-template-columns: 1fr 1.2fr;
    /* Formulario un poco más grande */
  }
}

/* --- Columna Izquierda: Información --- */
.contact-info .section-title,
.contact-info .section-eyebrow {
  text-align: left;
  margin-left: 0;
}

.contact-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-subtle);
  margin: 1.5rem 0 2.5rem 0;
}

.contact-list-v2 {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-light-theme);
}

.contact-item .material-symbols-outlined {
  color: var(--color-primary);
  font-size: 1.8rem;
}

.contact-item a:hover {
  color: var(--color-primary);
}

/* --- Columna Derecha: Formulario --- */
.contact-form-wrapper {
  padding: 2.5rem;
  border-radius: var(--border-radius);
  /* Efecto Glassmorphism */
  background-color: rgba(23, 42, 69, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 174, 239, 0.2);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  /* Una columna en móvil */
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
    /* Dos columnas en escritorio */
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 500;
  color: var(--color-text-light-theme);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--font-secondary);
  font-size: 1rem;
  color: var(--color-heading-light);
  background-color: rgba(10, 25, 47, 0.7);
  /* Fondo de input más oscuro */
  border: 1px solid rgba(0, 174, 239, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--color-text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 1rem;
  font-size: 1.1rem;
  font-weight: 700;
  background-color: var(--color-primary);
  color: var(--color-dark-bg);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-button:hover {
  background-color: var(--color-white);
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 174, 239, 0.2);
}