/* ==========================================================================
   BLOQUE 1: VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================================================== */
:root {
  --navy-dark: #0E1929;
  --navy-light: #16243A;
  --cyan-brand: #10B3F7;
  --cyan-glow: rgba(16, 179, 247, 0.35);
  --bg-white: #FFFFFF;
  --bg-subtle: #F4F7FB;
  --text-dark: #0E1929;
  --text-body: #4A5568;
  --text-muted: #718096;
  --font-title: 'Montserrat', sans-serif;
  --font-body: 'Figtree', sans-serif;
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-white);
  color: var(--text-body);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* ==========================================================================
   BLOQUE 2: TIPOGRAFÍA Y TÍTULOS CORPORATIVOS
   ========================================================================== */
h1, h2, h3, h4, .title-font {
  font-family: var(--font-title);
  text-transform: uppercase;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.two-line-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.two-line-title span {
  display: block;
  color: var(--cyan-brand);
}

.section-tagline {
  font-family: var(--font-title);
  font-size: 0.85rem;
  letter-spacing: 2px;
  color: var(--cyan-brand);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 0.5rem;
  display: inline-block;
}

/* ==========================================================================
   BLOQUE 3: HEADER, NAVEGACIÓN Y MENÚS (FONDO BLANCO Y TEXTOS AZUL MARINO)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 0.9rem 6%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 25, 41, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 20px rgba(14, 25, 41, 0.04);
}

.logo-container img {
  height: 38px;
  width: auto;
  display: block;
}

/* Enlaces del menú en escritorio */
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.2rem;
}

.desktop-nav a {
  color: var(--navy-dark);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.3px;
  transition: color 0.3s ease;
}

.desktop-nav a:hover {
  color: var(--cyan-brand);
}

/* Menú desplegable para Servicios con puente anti-pérdida de hover */
.nav-dropdown {
  position: relative;
  padding-bottom: 12px;
  margin-bottom: -12px;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: -20px;
  background: #FFFFFF;
  min-width: 270px;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(14, 25, 41, 0.12);
  border: 1px solid rgba(16, 179, 247, 0.25);
  padding: 0.6rem 0;
  z-index: 1001;
}

/* Puente invisible que garantiza que el cursor no pierda el hover */
.nav-dropdown-content::before {
  content: "";
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: flex;
  flex-direction: column;
}

.nav-dropdown-content a {
  padding: 0.75rem 1.4rem;
  font-size: 0.88rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--navy-dark);
  text-transform: none;
  letter-spacing: normal;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.nav-dropdown-content a:hover {
  background: rgba(16, 179, 247, 0.08);
  color: var(--cyan-brand);
  padding-left: 1.6rem;
}

/* Botón Cotizar en el Header */
.btn-header-cotizar {
  background: var(--cyan-brand);
  color: #FFFFFF !important;
  font-family: var(--font-title);
  font-weight: 800;
  padding: 0.65rem 1.6rem;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0 4px 14px var(--cyan-glow);
}

.btn-header-cotizar:hover {
  background: #0ea1de;
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--cyan-glow);
}

/* Menú Hamburguesa en Móviles */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1.5px solid rgba(14, 25, 41, 0.2);
  border-radius: 8px;
  padding: 0.4rem;
  color: var(--navy-dark);
  cursor: pointer;
  transition: all 0.3s ease;
}

.mobile-toggle:hover {
  border-color: var(--cyan-brand);
  color: var(--cyan-brand);
}

.mobile-menu-drawer {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  width: 100%;
  background: #FFFFFF;
  padding: 1.8rem 6% 2.2rem;
  flex-direction: column;
  gap: 1.2rem;
  z-index: 999;
  border-bottom: 2px solid var(--cyan-brand);
  box-shadow: 0 16px 30px rgba(14, 25, 41, 0.08);
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer a {
  color: var(--navy-dark);
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #F1F5F9;
  transition: color 0.3s ease;
}

.mobile-menu-drawer a:hover {
  color: var(--cyan-brand);
}

/* ==========================================================================
   BLOQUE 4: HERO SECTION (CON EDIFICIO, FRANJAS DIAGONALES Y BOTONES RESPONSIVOS)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  background-color: var(--navy-dark);
  background-image: 
    linear-gradient(to right, #0E1929 0%, #0E1929 40%, rgba(14, 25, 41, 0.85) 60%, rgba(14, 25, 41, 0.4) 100%),
    url('/images/hero-building.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #FFFFFF;
  padding: 9.5rem 6% 6.5rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Franjas diagonales celestes características de la marca */
.hero-stripes {
  position: absolute;
  top: -20%;
  right: 5%;
  width: 320px;
  height: 140%;
  display: flex;
  gap: 24px;
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 1;
}

.hero-stripe-thick {
  width: 90px;
  height: 100%;
  background-color: var(--cyan-brand);
  box-shadow: 0 0 35px rgba(16, 179, 247, 0.4);
}

.hero-stripe-thin {
  width: 38px;
  height: 100%;
  background-color: var(--cyan-brand);
  box-shadow: 0 0 25px rgba(16, 179, 247, 0.35);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

/* Línea decorativa previa al título */
.hero-pretitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cyan-brand);
  margin-bottom: 1.2rem;
  text-transform: uppercase;
}

.hero-pretitle::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 2px;
  background-color: var(--cyan-brand);
}

.hero-title-mockup {
  font-family: var(--font-title);
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -1px;
}

.hero-title-mockup span {
  color: var(--cyan-brand);
}

.hero-subtitle {
  font-size: 1.12rem;
  color: #CBD5E1;
  margin-bottom: 2.2rem;
  line-height: 1.65;
  max-width: 520px;
}

/* Grupo de botones en escritorio (en fila horizontal) */
.hero-btn-group {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
  width: 100%;
}

.btn-solid-cyan {
  background: var(--cyan-brand);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  text-transform: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-solid-cyan:hover {
  background: #0ea1de;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--cyan-glow);
}

.btn-outline-white {
  background: transparent;
  color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-family: var(--font-title);
  font-weight: 700;
  padding: 0.95rem 2rem;
  border-radius: 6px;
  text-decoration: none;
  text-transform: none;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  border-color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.6rem;
  color: #CBD5E1;
  font-size: 0.92rem;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero-badge-item svg {
  color: var(--cyan-brand);
}

/* Adaptación para pantallas de tablet y móviles */
@media (max-width: 900px) {
  .hero-wrapper {
    background-image: 
      linear-gradient(to bottom, rgba(14, 25, 41, 0.95) 0%, rgba(14, 25, 41, 0.8) 100%),
      url('/images/hero-building.jpg');
    background-position: center center;
    padding-top: 7.5rem;
  }
  
  .hero-stripes {
    right: -10%;
    opacity: 0.4;
  }
}

/* Adaptación exclusiva de botones para teléfonos móviles (apilados y en una sola línea) */
@media (max-width: 768px) {
  .hero-btn-group {
    flex-direction: column;
    width: 100%;
    gap: 0.85rem;
    margin-bottom: 2rem;
  }

  .hero-btn-group .btn-solid-cyan,
  .hero-btn-group .btn-outline-white {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    padding: 0.95rem 1.4rem;
    font-size: 0.95rem;
  }
}

/* ==========================================================================
   BLOQUE 5: DISPOSICIÓN GENERAL DE SECCIONES (FONDOS CLAROS Y OSCUROS)
   ========================================================================== */
section {
  padding: 6rem 6%;
}

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

.section-dark {
  background: var(--navy-dark);
  color: #FFFFFF;
}

.section-subtle {
  background: var(--bg-subtle);
}

/* ==========================================================================
   BLOQUE 6: SECCIÓN ¿QUÉ HACEMOS? EN SIMPLE
   ========================================================================== */
.que-hacemos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 1rem;
}

.step-cards-column {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.simple-step-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 1.6rem 2rem;
  box-shadow: 0 4px 20px rgba(14, 25, 41, 0.05);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  border-left: 4px solid var(--cyan-brand);
}

.simple-step-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 179, 247, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan-brand);
  flex-shrink: 0;
}

/* ==========================================================================
   BLOQUE 7: TARJETAS DE SERVICIOS (01, 02...)
   ========================================================================== */
.services-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.8rem;
  margin-top: 3rem;
}

.service-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  box-shadow: 0 6px 25px rgba(14, 25, 41, 0.06);
  border: 1px solid #E2E8F0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--cyan-brand);
  box-shadow: 0 12px 30px rgba(16, 179, 247, 0.15);
}

.service-num-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cyan-brand);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.service-title {
  font-size: 1.25rem;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
}

.service-desc {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.service-link {
  color: var(--cyan-brand);
  font-family: var(--font-title);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.card-custom-solution {
  background: var(--navy-dark);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 2.2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-custom-solution .service-title {
  color: #FFFFFF;
}

/* ==========================================================================
   BLOQUE 8: LÍNEA DE 5 PASOS (DE UNA NECESIDAD A UNA SOLUCIÓN)
   ========================================================================== */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin: 3.5rem 0 2.5rem;
  position: relative;
}

.timeline-item {
  text-align: center;
  position: relative;
}

.timeline-circle {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cyan-brand);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  position: relative;
  z-index: 2;
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
  color: var(--navy-dark);
}

.timeline-item p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.highlight-banner-blue {
  background: var(--navy-dark);
  color: #FFFFFF;
  padding: 1.2rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-size: 1.05rem;
  margin-top: 2rem;
}

.highlight-banner-blue span {
  color: var(--cyan-brand);
  font-weight: 700;
}

/* ==========================================================================
   BLOQUE 9: SECCIÓN ¿POR QUÉ UNO MÁS? (IMAGEN CONTROLADA Y RESPONSIVA)
   ========================================================================== */
.why-section-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1150px;
  margin: 0 auto;
}

.why-photo-wrap {
  width: 100%;
  max-width: 480px;
  height: 520px; /* Altura controlada en escritorio para que no se desborde */
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 auto;
}

.why-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Recorta y encuadra perfectamente sin deformar */
  object-position: center;
  display: block;
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.why-list-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
}

.why-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cyan-brand);
  color: #FFFFFF;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-item-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: #FFFFFF;
  letter-spacing: 0.3px;
}

.why-item-content p {
  color: #CBD5E1;
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Adaptación para pantallas de tablets y móviles */
@media (max-width: 900px) {
  .why-section-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .why-photo-wrap {
    max-width: 100%;
    height: 340px; /* Altura más compacta y proporcionada para teléfonos */
    border-radius: 14px;
  }
}

/* ==========================================================================
   BLOQUE 10: MÉTRICAS Y CONTADORES
   ========================================================================== */
.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.counter-number {
  font-family: var(--font-title);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--cyan-brand);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 1rem;
  color: #CBD5E1;
  font-weight: 500;
}

/* ==========================================================================
   BLOQUE 11: SECTORES DE EXPERIENCIA
   ========================================================================== */
.sectors-cloud {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.sector-pill {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--navy-dark);
}

/* ==========================================================================
   BLOQUE 12: EMPRESAS QUE CONFÍAN EN NOSOTROS (LOGOS)
   ========================================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  align-items: center;
  width: 100%;
}

.client-badge {
  background: #FFFFFF;
  border: 1px solid rgba(16, 179, 247, 0.2);
  padding: 1rem 1.2rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 95px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
  transition: all 0.3s ease;
  overflow: hidden;
  min-width: 0;
}

.client-badge:hover {
  border-color: var(--cyan-brand);
  box-shadow: 0 8px 25px rgba(16, 179, 247, 0.2);
  transform: translateY(-3px);
}

.client-logo {
  max-width: 100% !important;
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto;
  opacity: 0.95;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.client-badge:hover .client-logo {
  opacity: 1;
  transform: scale(1.05);
}

/* ==========================================================================
   BLOQUE 13: PREGUNTAS FRECUENTES (FAQ ACORDEÓN)
   ========================================================================== */
.faq-accordion {
  max-width: 850px;
  margin: 3rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.4rem 1.8rem;
  font-family: var(--font-title);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-trigger svg {
  transition: transform 0.3s ease;
  color: var(--cyan-brand);
}

.faq-item.active .faq-trigger svg {
  transform: rotate(180deg);
}

.faq-body {
  display: none;
  padding: 0 1.8rem 1.4rem;
  color: var(--text-body);
  line-height: 1.7;
}

.faq-item.active .faq-body {
  display: block;
}

/* ==========================================================================
   BLOQUE 14: CIERRE CTA CON EQUIPO Y FRANJAS DIAGONALES (REVISADO Y GARANTIZADO)
   ========================================================================== */
.cta-closing {
  position: relative;
  background-color: var(--navy-dark);
  background-image: 
    linear-gradient(to right, #0E1929 0%, #0E1929 42%, rgba(14, 25, 41, 0.88) 65%, rgba(14, 25, 41, 0.35) 100%),
    url('/images/cta-team.jpg');
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  color: #FFFFFF;
  padding: 7.5rem 6%;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
}

/* Franjas diagonales celestes idénticas a la muestra */
.cta-stripes {
  position: absolute;
  top: -25%;
  right: 32%;
  width: 260px;
  height: 150%;
  display: flex;
  gap: 20px;
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 1;
}

.cta-stripe-thick {
  width: 75px;
  height: 100%;
  background-color: var(--cyan-brand);
  box-shadow: 0 0 35px rgba(16, 179, 247, 0.4);
}

.cta-stripe-thin {
  width: 30px;
  height: 100%;
  background-color: var(--cyan-brand);
  box-shadow: 0 0 25px rgba(16, 179, 247, 0.35);
}

.cta-container {
  position: relative;
  z-index: 2;
  max-width: 580px;
  text-align: left;
  margin: 0;
}

.cta-title-mockup {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.08;
  color: #FFFFFF;
  margin-bottom: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}

.cta-title-mockup span {
  display: block;
  color: var(--cyan-brand);
}

.cta-desc {
  font-size: 1.12rem;
  color: #CBD5E1;
  margin-bottom: 2.2rem;
  line-height: 1.6;
  max-width: 480px;
}

.cta-btn-group {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

/* Adaptación a dispositivos móviles */
@media (max-width: 900px) {
  .cta-closing {
    background-image: 
      linear-gradient(to bottom, rgba(14, 25, 41, 0.95) 0%, rgba(14, 25, 41, 0.85) 100%),
      url('/images/cta-team.jpg');
    background-position: center center;
    padding: 5.5rem 6%;
    text-align: center;
    justify-content: center;
  }

  .cta-stripes {
    display: none;
  }

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

  .cta-btn-group {
    justify-content: center;
  }
}

/* ==========================================================================
   BLOQUE 15: FORMULARIOS Y PÁGINA DE CONTACTO
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
  width: 100%;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  padding: 1.4rem;
  border-radius: 12px;
}

.info-icon {
  color: var(--cyan-brand);
  margin-top: 3px;
  flex-shrink: 0;
}

.info-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.info-val {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy-dark);
}

.contact-form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 2.2rem 2rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  width: 100%;
}

.form-group {
  margin-bottom: 1.3rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  color: var(--navy-dark);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.form-input, .form-textarea {
  width: 100%;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  color: var(--navy-dark);
  font-family: var(--font-body);
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--cyan-brand);
  box-shadow: 0 0 0 3px rgba(16, 179, 247, 0.15);
}

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

.btn-submit {
  width: 100%;
  background: var(--cyan-brand);
  border: none;
  color: #FFFFFF;
  padding: 1rem;
  border-radius: 8px;
  font-weight: 800;
  font-family: var(--font-title);
  cursor: pointer;
  font-size: 0.95rem;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--cyan-glow);
}

.btn-submit:hover {
  background: #0ea1de;
  box-shadow: 0 6px 20px var(--cyan-glow);
}

/* ==========================================================================
   BLOQUE 16: FOOTER CORPORATIVO
   ========================================================================== */
footer {
  background: #09101A;
  color: #94A3B8;
  padding: 4.5rem 6% 2.5rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  color: #FFFFFF;
  font-size: 1rem;
  margin-bottom: 1.2rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  color: #94A3B8;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-col ul a:hover {
  color: var(--cyan-brand);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ==========================================================================
   BLOQUE 17: RESPONSIVIDAD PARA DISPOSITIVOS MÓVILES
   ========================================================================== */
@media (max-width: 900px) {
  .desktop-nav { 
    display: none; 
  }
  
  .mobile-toggle { 
    display: block; 
  }
  
  .hero-stripes { 
    opacity: 0.35; 
    width: 80%; 
  }
  
  .que-hacemos-grid, 
  .why-section-grid,
  .contact-container { 
    grid-template-columns: 1fr; 
    gap: 2.5rem; 
  }
  
  .steps-timeline { 
    grid-template-columns: 1fr; 
    text-align: left; 
  }
  
  .timeline-circle { 
    margin: 0 0 0.8rem; 
  }
  
  .counters-grid { 
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .footer-top-grid { 
    grid-template-columns: 1fr; 
  }
  
  .footer-bottom { 
    flex-direction: column; 
    gap: 1rem; 
    text-align: center; 
  }
}

/* ==========================================================================
   PLANTILLA DE DETALLE DE SERVICIOS RESPONSIVA
   ========================================================================== */
.service-detail-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: start;
  width: 100%;
}

.service-col-card {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 2.2rem;
  border: 1.5px solid rgba(16, 179, 247, 0.25);
  box-shadow: 0 10px 25px rgba(14, 25, 41, 0.04);
  width: 100%;
}

/* En pantallas móviles se apila verticalmente a 1 columna */
@media (max-width: 900px) {
  .service-detail-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .service-col-card {
    padding: 1.6rem 1.4rem;
  }
}

/* ==========================================================================
   ESTILOS RESPONSIVOS PARA TRABAJA CON NOSOTROS (FORMULARIO CV)
   ========================================================================== */
.cv-form-container {
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.cv-card-form {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(14, 25, 41, 0.04);
}

.form-row-responsive {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-bottom: 1.2rem;
}

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

.form-label-custom {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-dark);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.form-file-input {
  padding: 0.65rem !important;
  background-color: #F8FAFC !important;
  border: 1.5px dashed #CBD5E1 !important;
  cursor: pointer;
}

.btn-submit-full {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 1rem;
  border: none;
  cursor: pointer;
}

/* Adaptación estricta para teléfonos móviles */
@media (max-width: 768px) {
  .cv-card-form {
    padding: 1.6rem 1.2rem;
  }

  .form-row-responsive {
    grid-template-columns: 1fr; /* Pasa de 2 columnas a 1 sola columna espaciosa */
    gap: 1.2rem;
  }

  .form-label-custom {
    font-size: 0.88rem;
  }

  .form-input, .form-textarea {
    font-size: 1rem; /* Evita que Safari en iOS haga zoom al tocar el input */
  }
}