/* ======= VARIABLES Y BASE ======= */
:root {
  --primary: #0677c8;
  --primary-light: rgba(6, 119, 200, 0.1);
  --primary-dark: #0564a8;
  --white: #ffffff;
  --gray-light: #f5f7fa;
  --gray-medium: #e1e5eb;
  --gray-dark: #4a5568;
  --black: #1a1a1a;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.12);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background-color: var(--white);
  color: var(--black);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* ¡CLAVE! Asegura que nada desborde horizontalmente */
}

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

/* ======= TYPOGRAPHY ======= */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

p {
  margin-bottom: 1rem;
}

/* ======= MODERN HEADER ======= */
/* ======= HEADER PRINCIPAL ======= */
/* Estilos base: Aplican a todas las pantallas, con unidades relativas */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap; /* Permite que se acomode si no cabe */
  padding: 14px clamp(15px, 5vw, 40px); /* Reducido max padding para tablets */
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: padding 0.3s ease, box-shadow 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.logo img {
  height: clamp(45px, 6vw, 65px);
  width: auto;
  transition: transform 0.3s ease, height 0.3s ease;
}

.logo img:hover {
  transform: scale(1.02);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 16px);
  flex-wrap: wrap; /* Evita cortes si no cabe */
}

nav a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: #0677c8;
  font-weight: 500;
  font-size: clamp(0.9rem, 1vw, 1rem);
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.3s, background 0.3s, transform 0.2s;
  white-space: nowrap;
}

nav a:hover {
  color: #045fa0;
  background: rgba(6, 119, 200, 0.08);
  transform: translateY(-2px);
}

nav a span.material-icons-round {
  font-size: clamp(1rem, 1vw, 1.1rem);
  transition: transform 0.3s;
}

nav a:hover span.material-icons-round {
  transform: translateY(-1px);
}

.btn-primary {
  background: #0677c8;
  color: #ffffff;
  border: none;
  padding: 8px clamp(12px, 2vw, 18px);
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  transition: background 0.3s, transform 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.btn-primary:hover {
  background: #0565a8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

/* ======= HAMBURGER ======= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1100;
}

.hamburger .bar {
  width: 24px;
  height: 3px;
  background-color: #0677c8;
  border-radius: 2px;
  transition: all 0.3s;
}

/* --- Responsive Activation --- */

@media (max-width: 992px) {
  .hamburger {
    display: flex;
  }

  nav {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: clamp(250px, 85vw, 350px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 25px 30px;
    gap: 16px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 12px rgba(0, 0, 0, 0.08);
    overflow-y: auto;
    box-sizing: border-box;
  }

  nav.show {
    right: 0;
  }

  nav a {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    padding: 10px 0;
    width: 100%;
    box-sizing: border-box;
  }

  .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .logo img {
    height: clamp(50px, 8vw, 70px);
  }
}

@media (max-width: 576px) {
  header {
    padding: 10px clamp(10px, 4vw, 20px);
  }

  .logo img {
    height: clamp(48px, 10vw, 65px);
  }

  nav {
    width: clamp(220px, 90vw, 300px);
    padding: 70px 20px 25px;
  }

  nav a {
    font-size: clamp(1rem, 4.5vw, 1.2rem);
  }
}

/* Hamburger Animation */
.hamburger.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
  opacity: 0;
}

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


/* ======= MODERN HERO ======= */
.modern-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background: linear-gradient(135deg, rgba(245, 243, 255, 0.8) 0%, rgba(255, 255, 255, 1) 100%);
}

.hero-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.4rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.title-line {
  display: block;
}

.title-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.title-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.2rem;
  left: 0;
  width: 100%;
  height: 0.4rem;
  background-color: rgba(6, 119, 200, 0.2);
  z-index: -1;
  border-radius: 0.2rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--gray-dark);
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.btn-large {
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
  border-radius: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

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

.hero-stats {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.stat-item {
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-dark);
}

.hero-visual {
  flex: 1;
  min-width: 300px;
  position: relative;
}

.visual-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  height: auto;
  transition: var(--transition);
  display: block;
  object-fit: cover;
}



.floating-element {
  position: absolute;
  background-color: var(--white);
  border-radius: 0.5rem;
  padding: 0.6rem 1rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
  transition: var(--transition);
}

.floating-element:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: var(--shadow-md);
}

.el1 {
  top: 10%;
  left: -5%;
  animation-delay: 0s;
}

.el2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 1.5s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ======= PARTNERS SECTION ======= */
.partners-section {
  padding: 2rem 5%;
  background-color: var(--white);
  position: relative;
  overflow: hidden; /* Asegura que el contenido no desborde */
  /* Importante: no usar floats o position: absolute/fixed de forma descontrolada que saque elementos del flujo */
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-pre-title {
  text-align: center;
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
  margin-bottom: 1rem;
  /* Estas propiedades son importantes para evitar que el texto desborde */
  white-space: nowrap; /* Mantiene el texto en una sola línea */
  overflow: hidden; /* Oculta cualquier texto que no quepa */
  text-overflow: ellipsis; /* Añade "..." al final si el texto es muy largo */
  display: block; /* Asegura que ocupe todo el ancho disponible y no se posicione al lado de nada */
  width: 100%; /* Asegura que ocupe el ancho del contenedor */
  max-width: 100%; /* Limita su ancho al 100% */
}

.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 1rem 0;
}

.logo-item {
  opacity: 0.7;
  transition: var(--transition);
  flex: 0 0 auto;
  min-width: 80px;
  max-width: 120px;
}

.logo-item:hover {
  opacity: 1;
  transform: translateY(-5px) scale(1.05);
}

.logo-item img {
  height: 2rem;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.5);
  transition: var(--transition);
}

.logo-item:hover img {
  filter: grayscale(0%) brightness(1);
}

/* ======= ABOUT US SECTION ======= */

.about-section {
    padding: 5rem 2rem;
    background: #ffffff;
    text-align: center;
    color: #0f172a;
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header .section-pre-title {
    color: #2563eb;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.section-header .section-title {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
}

.section-header .section-description {
    font-size: 1.1rem;
    color: #475569;
    max-width: 600px;
    margin: 0 auto 3rem auto;
    line-height: 1.6;
}

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

.about-card {
    background: #f8fafc;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

.card-icon {
    background: #2563eb;
    color: #ffffff;
    border-radius: 50%;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.4);
    transition: background 0.3s ease, transform 0.3s ease;
}

.about-card:hover .card-icon {
    background: #1d4ed8;
    transform: scale(1.1);
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.card-text {
    font-size: 1rem;
    color: #475569;
    line-height: 1.5;
}

/* ======= STATS SECTION ======= */
/* ======= STATS SECTION FUTURISTA Y MODERNA ======= */
/* ======= STATS SECTION MODERNA, FONDO AZUL Y CUADROS BLANCOS ======= */
.stats-section {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 5%;
  background: #0677c8;
  color: #ffffff;
  overflow: hidden;
}

.stats-background {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.07) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.07) 0%, transparent 50%);
  z-index: 1;
}

.stats-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  text-align: center;
  align-items: center;
}

.stat-item {
  padding: 1.5rem 1rem;
  background: #ffffff; /* CUADROS BLANCOS */
  border-radius: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  cursor: default;
}

.stat-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: #0677c8; /* AZUL CORPORATIVO PARA CONTRASTE */
  line-height: 1.1;
}

.stat-label {
  font-size: 1rem;
  font-weight: 600;
  color: #333333;
}

.stat-description {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  color: #555555;
  max-width: 240px;
  margin-left: auto;
  margin-right: auto;
}

/* Mobile ajuste */
@media (max-width: 500px) {
  .stat-number {
    font-size: 2.2rem;
  }
}


/* ======= PROCESS SECTION ======= */
/* ======= PROCESS SECTION MODERNO Y PREMIUM ======= */
.process-section {
  padding: clamp(2.5rem, 6vw, 4rem) 5%;
  background: linear-gradient(135deg, #f9fbfd 0%, #ffffff 100%);
}

.process-steps {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding-left: 2rem; /* ajuste para centrar la línea */
}

.process-line {
  position: absolute;
  top: 0;
  left: 2.5rem;
  height: 100%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  border-radius: 2px;
  z-index: 1;
}

.step-item {
  position: relative;
  padding: 0 0 2rem 4rem;
  z-index: 2;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 3rem;
  height: 3rem;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  transition: background 0.3s, color 0.3s, transform 0.3s;
}

.step-item:hover .step-number {
  background: var(--primary);
  color: #fff;
  transform: scale(1.05);
}

.step-content {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border: 1px solid var(--gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s;
}

.step-item:hover .step-content {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  border-color: var(--primary-light);
}

.step-title {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.step-description {
  color: var(--gray-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Ajustes en mobile */
@media (max-width: 600px) {
  .process-section {
    padding: 2rem 1.5rem;
  }
  .process-steps {
    padding-left: 1rem;
  }
  .process-line {
    left: 1.5rem;
  }
  .step-item {
    padding: 0 0 1.5rem 3rem;
  }
  .step-number {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
}

/* ======= PORTFOLIO SECTION ======= */
/* ================================
   Portfolio Section
   ================================ */

.portfolio-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--gray-light);
}

/* Centrado de títulos */
.portfolio-section .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.portfolio-section .section-pre-title {
  font-size: 1rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.portfolio-section .section-title {
  font-size: 2rem;
  color: var(--black);
  margin: 0.5rem 0;
}

.portfolio-section .section-description {
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-top: 0.5rem;
}

/* Carrusel */
.portfolio-carousel {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  background-color: var(--white);
  border: none;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  transition: var(--transition);
}

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

.prev {
  left: -1.5rem;
}

.next {
  right: -1.5rem;
}

.carousel-track {
  display: flex;
  gap: 1.5rem;
  padding: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 1rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.portfolio-item {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 280px;
  scroll-snap-align: start;
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.portfolio-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

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

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

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 119, 200, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-badge {
  display: inline-block;
  background-color: var(--primary-light);
  color: var(--primary);
  padding: 0.3rem 0.8rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.portfolio-title {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.portfolio-description {
  color: var(--gray-dark);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.portfolio-stats {
  display: flex;
  gap: 1rem;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--gray-dark);
}

/* ======= SECTORS SECTION ======= */
.sectors-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--white);
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center; /* centra todo el bloque */
  max-width: 700px;
  margin: 0 auto 3rem auto;
}

.section-pre-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 1rem;
  line-height: 1.2;
}

.section-description {
  font-size: 1rem;
  color: var(--gray-dark);
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.sector-card {
  background-color: var(--white);
  border-radius: 0.8rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-medium);
}

.sector-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.card-header {
  padding: 1.5rem;
  background-color: var(--primary-light);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.card-icon {
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.5rem;
}

.card-title {
  font-size: 1.2rem;
  color: var(--black);
  margin: 0;
}

.card-content {
  padding: 1.5rem;
}

.sector-list {
  list-style: none;
  margin-bottom: 1.5rem;
  padding: 0;
}

.sector-list li {
  padding: 0.5rem 0;
  color: var(--gray-dark);
  position: relative;
  padding-left: 1.5rem;
}

.sector-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 0.6rem;
  height: 0.6rem;
  background-color: var(--primary);
  border-radius: 50%;
}

.sector-stats {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.stat {
  flex: 1;
  text-align: center;
}

.stat-static {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray-dark);
  display: block;
}


/* ======= FEATURES SECTION ======= */
.features-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--gray-light);
}

.features-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}

.features-text {
  flex: 1;
  min-width: 300px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
}

.feature-icon {
  flex: 0 0 3rem;
  height: 3rem;
  background-color: var(--primary-light);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.5rem;
}

.feature-text h3 {
  font-size: 1.2rem;
  color: var(--black);
  margin-bottom: 0.3rem;
}

.feature-text p {
  color: var(--gray-dark);
  font-size: 0.95rem;
}

.features-visual {
  flex: 1;
  min-width: 300px;
  position: relative;
}

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

.floating-tag {
  position: absolute;
  background-color: var(--white);
  border-radius: 2rem;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 500;
  animation: float 4s ease-in-out infinite;
}

.tag1 {
  top: 20%;
  left: -5%;
  animation-delay: 0s;
}

.tag2 {
  bottom: 15%;
  right: -5%;
  animation-delay: 1s;
}

/* ======= TESTIMONIALS SECTION ======= */
.testimonials-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background-color: var(--white);
}

.testimonials-carousel {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.testimonial-item {
  background-color: var(--white);
  border-radius: 0.8rem;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-medium);
  margin-bottom: 2rem;
}

.testimonial-content {
  position: relative;
  margin-bottom: 1.5rem;
}

.quote-icon {
  position: absolute;
  top: -1rem;
  left: -1rem;
  color: var(--primary-light);
  font-size: 3rem;
  opacity: 0.5;
}

.testimonial-text {
  font-size: 1.1rem;
  color: var(--gray-dark);
  font-style: italic;
  position: relative;
  z-index: 2;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-image {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
}

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

.author-info {
  flex: 1;
}

.author-name {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.2rem;
}

.author-title {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 0.5rem;
}

.author-rating {
  color: var(--primary);
  display: flex;
  gap: 0.2rem;
}

/* ======= CTA SECTION ======= */
.cta-section {
  background: linear-gradient(135deg, #0677c8 0%);
  color: #ffffff;
  padding: clamp(2rem, 6vw, 4rem) 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cta-container {
  text-align: center;
  max-width: 600px;
  padding: 1rem;
}

.cta-title {
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta-text {
  font-size: 1rem;
  opacity: 0.9;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.btn-primary {
  background: #0677c8;
  color: white;
  border: none;
  border-radius: 0.5rem;
  padding: 0.7rem 1.2rem;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: #f5f5f5;
  transform: translateY(-2px);
}

.btn-primary:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 4px;
}



/* ======= FOOTER ======= */
.footer {
  background: #0677c8;
  color: #ffffff;
  padding: 3rem 5% 2rem;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.footer-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.footer-column h4 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.footer-column p {
  opacity: 0.9;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 0.5rem;
}

.footer-column a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-column a:hover {
  color: #ffffff;
}

.newsletter-form {
  display: flex;
  margin-top: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.5rem 0.8rem;
  border: none;
  border-radius: 0.3rem 0 0 0.3rem;
  font-size: 0.9rem;
}

.newsletter-form button {
  background: #ffffff;
  color: #0677c8;
  border: none;
  padding: 0 1rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 0 0.3rem 0.3rem 0;
  transition: background 0.3s;
}

.newsletter-form button:hover {
  background: #f0f0f0;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 2rem;
  padding-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.8;
}

/* ======= RESPONSIVENESS ======= */
@media (max-width: 1200px) {
  .features-content,
  .cta-container {
    flex-direction: column;
    text-align: center;
  }
  
  .features-list {
    align-items: center;
  }
  
  .feature-item {
    max-width: 500px;
  }
  
  .cta-buttons {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .title-highlight::after {
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
  }
  
  .process-steps {
    max-width: 600px;
  }

  .carousel-nav {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
  }

  .prev {
    left: 0.5rem;
  }

  .next {
    right: 0.5rem;
  }

  .portfolio-item {
    flex: 0 0 calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .hamburger {
    display: flex;
  }
  
  .logo-text {
    display: block; /* Muestra el texto del logo en móvil */
    font-size: 1.1rem; /* Ajusta el tamaño para que quepa mejor */
  }
  
  .hero-cta,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-outline {
    width: 100%;
    justify-content: center;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-line {
    left: 1.5rem; 
  }
  .step-item {
    padding-left: 3.5rem;
  }
  .step-number {
    left: 0; 
    width: 3.5rem;
    height: 3.5rem;
    font-size: 1.3rem;
  }

  .portfolio-item {
    flex: 0 0 100%;
  }
  
  .carousel-track {
    scroll-padding-left: 0;
    gap: 1rem;
  }

  /* Ajustes específicos para evitar que la sección de Partners se suba */
  .partners-section {
    margin-top: 0; /* Asegura que no haya márgenes negativos no deseados */
    padding-top: clamp(2rem, 5vw, 3rem); /* Ajusta el padding superior para móviles */
  }

  /* Asegurarse de que el header no tenga ningún "padding-right" oculto o similar que empuje */
  .sticky-header {
    padding-right: 5%; /* Mantiene el padding consistente en ambos lados */
  }
  .header-container {
    /* Aquí no deberían necesitarse más cambios, flexbox ya hace un buen trabajo */
  }
}
.btn-outline-primary {
  background: #ffffff;              /* fondo blanco */
  color: #0677c8;                   /* texto azul */
  border: 2px solid #0677c8;        /* borde azul */
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
}

.btn-outline-primary:hover {
  background: #0677c8;              /* azul en hover */
  color: #ffffff;                   /* texto blanco en hover */
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.1);
}


@media (max-width: 576px) {
  .stats-content {
    grid-template-columns: 1fr;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .author-info {
    text-align: center;
  }
  
  .author-rating {
    justify-content: center;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .legal-links {
    justify-content: center;
  }

  .logo-text {
    font-size: 1rem;
  }
}

.video-section {
  padding: clamp(4rem, 8vw, 6rem) 5%;
  background: linear-gradient(135deg, #f9fbfc 0%, #eef3f8 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-container {
  max-width: 900px;
  width: 100%;
  text-align: center;
}

.video-title {
  font-size: clamp(2rem, 5vw, 2.6rem);
  color: #0677c8; /* azul corporativo profundo */
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.25;
  letter-spacing: -0.5px;
}

.video-text {
  font-size: 1.125rem;
  color: #444;
  margin-bottom: 2.2rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  box-shadow: 0 12px 24px rgba(0,0,0,0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: scale(1.015);
  box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 1rem;
}

/* Animación al aparecer */
@media (prefers-reduced-motion: no-preference) {
  .video-section {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeSlideIn 0.8s ease-out forwards;
  }

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


/* ======= ANIMATIONS AND EFFECTS ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade {
  animation: fadeIn 0.8s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

/* Glow on hover effect for buttons and cards */
.glow-on-hover {
  position: relative;
  overflow: hidden;
}

.glow-on-hover::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    to bottom right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 35%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: rotate(30deg);
  transition: all 0.6s ease;
  opacity: 0;
}

.glow-on-hover:hover::before {
  opacity: 1;
  animation: shine 1.5s ease infinite;
}

@keyframes shine {
  0% { left: -50%; top: -50%; }
  100% { left: 150%; top: 150%; }
}

/* Wave effect in the footer */
.wave-effect {
  position: relative;
  overflow: hidden;
}

.wave-effect::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wave-effect:hover::after {
  opacity: 1;
}

/* Accessibility for Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .animate-fade,
  .floating-element,
  .floating-tag,
  .glow-on-hover::before,
  .wave-effect::after {
    animation: none !important;
    transition: none !important;
  }
}

.stat-static {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}
