/* ==========================================================
   VARIABLES GLOBALES Y CONFIGURACIÓN BASE
   ========================================================== */
:root {
  --c-bg: #F8FAFC;
  --c-primary: #0284C7;
  --c-accent: #00D8F6;
  --c-dark-navy: #0F172A;
  --c-text-main: #1E293B;
  --c-text-muted: #64748B;
  --c-white: #FFFFFF;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* Elimina desbordes y la franja blanca lateral en móvil */
}

html {
  scroll-padding-top: 80px;
  font-family: var(--font-main);
  background-color: var(--c-bg);
  color: var(--c-text-main);
}

body {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(180deg, #F8FAFC 0%, #F1F5F9 50%, #E2E8F0 100%);
}

/* ==========================================================
   ELEMENTOS GLOBALES: CANVAS, PROGRESS BAR Y DIVISOR
   ========================================================== */
#windParticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-accent), var(--c-primary));
  width: 0%;
  z-index: 200;
  transition: width 0.1s ease-out;
}

.faded-divider {
  width: 100%;
  max-width: 750px;
  height: 2px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent 0%, rgba(2, 132, 199, 0.35) 20%, #94A3B8 50%, rgba(2, 132, 199, 0.35) 80%, transparent 100%);
}

/* ==========================================================
   HEADER / NAVBAR DINÁMICA
   ========================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 2rem;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(15, 23, 42, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.nav-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--c-white);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 110;
}

.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--c-accent);
  box-shadow: 0 0 10px var(--c-accent);
}

.logo-accent {
  background: linear-gradient(135deg, var(--c-accent), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 1.6rem;
  align-items: center;
}

.nav-links a.nav-item {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a.nav-item:hover {
  color: var(--c-accent);
}

.btn-nav {
  padding: 0.55rem 1.35rem;
  background: rgba(0, 216, 246, 0.12);
  color: var(--c-accent) !important;
  border: 1px solid rgba(0, 216, 246, 0.4);
  border-radius: 10px;
  font-weight: 700 !important;
  text-decoration: none;
  font-size: 0.92rem;
  transition: all 0.25s ease !important;
}

.btn-nav:hover {
  background: var(--c-primary);
  color: var(--c-white) !important;
  border-color: var(--c-primary);
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.4);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 120;
}

.nav-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: #FFFFFF;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

.navbar.scrolled-light {
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

.navbar.scrolled-light .logo {
  color: var(--c-dark-navy);
}

.navbar.scrolled-light .nav-links a.nav-item {
  color: #334155;
}

.navbar.scrolled-light .nav-links a.nav-item:hover {
  color: var(--c-primary);
}

.navbar.scrolled-light .btn-nav {
  background: var(--c-primary);
  color: var(--c-white) !important;
  border-color: var(--c-primary);
}

.navbar.scrolled-light .nav-toggle span {
  background-color: var(--c-dark-navy);
}

/* ==========================================================
   SECCIÓN 0: VIDEO HERO
   ========================================================== */
.video-hero-section {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 20;
  overflow: hidden;
  background-color: #0F172A;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-bottom-fade {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 160px;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(to bottom,
    rgba(248, 250, 252, 0) 0%,
    rgba(248, 250, 252, 0.25) 35%,
    rgba(248, 250, 252, 0.65) 65%,
    rgba(248, 250, 252, 0.95) 90%,
    #F8FAFC 100%
  );
}

.video-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68vw;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  z-index: 5;
}

.video-content h1 {
  font-size: 3.2rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  text-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
  margin-bottom: 0.8rem;
}

.video-content p {
  font-size: 1.2rem;
  color: #F1F5F9;
  line-height: 1.5;
  max-width: 620px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.scroll-down-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.85rem 1.8rem;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
}

.scroll-down-hint:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.4);
}

/* ==========================================================
   SECCIÓN 1: NUESTROS SERVICIOS (CARRUSEL SLIDE-UP)
   ========================================================== */
main {
  position: relative;
  z-index: 10;
  width: 100%;
}

.services-section {
  padding: 4rem 0 4.5rem;
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.services-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
}

.services-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.services-header h2 {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--c-dark-navy);
  margin-bottom: 0.3rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: var(--c-primary);
  font-weight: 700;
  letter-spacing: -0.2px;
  margin-bottom: 1.2rem;
}

.services-carousel-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0 2rem;
  mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
}

.services-carousel-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: scrollRight 36s linear infinite;
}

.services-carousel-wrapper:hover .services-carousel-track {
  animation-play-state: paused;
}

@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

.service-card {
  position: relative;
  width: 340px;
  min-height: 490px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22);
  border-color: rgba(2, 132, 199, 0.45);
}

.service-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.service-card-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.95) 75%);
}

.service-card:hover .service-card-bg {
  transform: translateY(0);
}

.service-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.service-card .service-number {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.service-card:hover .service-number {
  color: var(--c-accent);
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--c-dark-navy);
  line-height: 1.35;
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}

.service-card p.service-desc {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 400;
  transition: color 0.4s ease;
}

.service-card p.service-highlight {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #1E293B;
  font-weight: 600;
  border-left: 3px solid var(--c-primary);
  padding-left: 0.75rem;
  transition: color 0.4s ease, border-left-color 0.4s ease;
}

.service-card .service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.6rem;
}

.service-card .service-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369A1;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

/* Botón dentro de las Cartillas de Servicios (Azul Primario) */
.service-card-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.8rem;
  padding: 0.8rem 1.3rem;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.88rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all 0.3s ease;
  width: fit-content;
}

.service-card-btn:hover {
  background: #0369A1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* BOTÓN DEL FORMULARIO (AZUL CORPORATIVO FORZADO) */
.btn-submit-whatsapp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 1rem !important;
  margin-top: 0.4rem !important;
  background-color: #0284C7 !important; /* Azul primario Airclim */
  color: #FFFFFF !important;
  font-size: 1.02rem !important;
  font-weight: 800 !important;
  border: none !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35) !important;
  transition: all 0.3s ease !important;
}

.btn-submit-whatsapp:hover {
  background-color: #0369A1 !important; /* Azul oscuro hover */
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5) !important;
}

/* ==========================================================
   SECCIÓN 2: ¿POR QUÉ ELEGIRNOS?
   ========================================================== */
.why-us-section {
  position: relative;
  width: 100%;
  padding: 3.5rem 0;
  background-color: var(--c-dark-navy);
  background-image: 
    radial-gradient(circle at 80% 0%, rgba(2, 132, 199, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 20% 100%, rgba(0, 216, 246, 0.12) 0%, transparent 50%);
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.why-us-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
}

.why-us-header {
  text-align: center;
  margin-bottom: 2rem;
}

.why-us-header h2 {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--c-white);
  margin-bottom: 0.35rem;
}

.why-us-header p {
  font-size: 1.05rem;
  color: #94A3B8;
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  align-items: stretch;
}

.benefit-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.4rem 1.15rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 216, 246, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3), inset 0 0 15px rgba(2, 132, 199, 0.12);
}

.b-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(2, 132, 199, 0.18);
  border: 1px solid rgba(2, 132, 199, 0.35);
  border-radius: 12px;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
  transition: all 0.3s ease;
}

.b-icon svg {
  width: 22px;
  height: 22px;
}

.benefit-card:hover .b-icon {
  background: var(--c-primary);
  color: var(--c-white);
  transform: scale(1.06) rotate(4deg);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.45);
}

.benefit-card h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: 0.45rem;
  line-height: 1.3;
}

.benefit-card p {
  font-size: 0.86rem;
  line-height: 1.45;
  color: #94A3B8;
  margin-top: auto;
}

/* ==========================================================
   SECCIÓN 3: SECTORES EN LOS QUE ATENDEMOS
   ========================================================== */
.sectors-section {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 5rem;
  background: transparent;
  display: flex;
  justify-content: center;
}

.sectors-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
}

.sectors-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.sectors-header h2 {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--c-dark-navy);
  margin-bottom: 0.4rem;
}

.sectors-header p {
  font-size: 1.15rem;
  color: #475569;
  font-weight: 450;
  max-width: 650px;
  margin: 0 auto 1.4rem;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.sector-card {
  position: relative;
  min-height: 460px;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2rem 1.8rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
}

.sector-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(2, 132, 199, 0.22);
  border-color: rgba(2, 132, 199, 0.45);
}

.sector-bg-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.sector-bg-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.55) 0%, rgba(15, 23, 42, 0.95) 75%);
}

.sector-card:hover .sector-bg-img {
  transform: translateY(0);
}

.sector-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}

.sector-icon {
  font-size: 1.8rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 132, 199, 0.08);
  border-radius: 12px;
  transition: background 0.4s ease, transform 0.4s ease;
}

.sector-card:hover .sector-icon {
  background: rgba(255, 255, 255, 0.15);
  transform: scale(1.1);
}

.sector-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-dark-navy);
  line-height: 1.35;
  letter-spacing: -0.3px;
  transition: color 0.4s ease;
}

.sector-content p.sector-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #475569;
  font-weight: 400;
  transition: color 0.4s ease;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.7rem;
}

.sector-tags span {
  font-size: 0.76rem;
  font-weight: 700;
  color: #0369A1;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  padding: 0.35rem 0.75rem;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.sector-card:hover h3 {
  color: #FFFFFF;
}

.sector-card:hover p.sector-desc {
  color: #CBD5E1;
}

.sector-card:hover .sector-tags span {
  color: var(--c-white);
  background: rgba(2, 132, 199, 0.4);
  border-color: rgba(0, 216, 246, 0.4);
  backdrop-filter: blur(4px);
}

.sector-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 0.8rem 1.3rem;
  background: var(--c-primary);
  color: var(--c-white);
  font-size: 0.86rem;
  font-weight: 800;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(2, 132, 199, 0.35);
  transition: all 0.3s ease;
  width: fit-content;
}

.sector-btn:hover {
  background: #0369A1;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.5);
}

/* ==========================================================
   SECCIÓN 4: COBERTURA DE ATENCIÓN (COLLAGE POLAROID)
   ========================================================== */
.coverage-section {
  position: relative;
  width: 100%;
  padding: 4.5rem 0 1.5rem;
  background: transparent;
  display: flex;
  justify-content: center;
}

.coverage-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
}

.coverage-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.coverage-info {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  will-change: transform, opacity;
}

.coverage-info h2 {
  font-size: 2.7rem;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: var(--c-dark-navy);
  line-height: 1.2;
}

.coverage-highlight {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--c-primary);
  letter-spacing: -0.3px;
}

.coverage-desc {
  font-size: 1rem;
  line-height: 1.7;
  color: #475569;
  font-weight: 450;
}

.coverage-collage-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.polaroid-card {
  position: absolute;
  background: #FFFFFF;
  padding: 10px 10px 20px 10px;
  border-radius: 6px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16), 0 3px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, z-index 0.1s ease;
  cursor: pointer;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.polaroid-img-box {
  width: 215px;
  height: 155px;
  overflow: hidden;
  border-radius: 4px;
  background-color: #0F172A;
}

.polaroid-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.polaroid-card.p-1 { top: 10px; left: 10px; transform: rotate(-12deg); z-index: 2; }
.polaroid-card.p-2 { top: 5px; left: 180px; transform: rotate(5deg) scale(1.02); z-index: 3; }
.polaroid-card.p-3 { top: 25px; right: 10px; transform: rotate(-7deg); z-index: 2; }
.polaroid-card.p-4 { top: 150px; left: 0px; transform: rotate(9deg); z-index: 4; }
.polaroid-card.p-5 { top: 160px; right: 5px; transform: rotate(11deg); z-index: 3; }
.polaroid-card.p-6 { bottom: 15px; left: 25px; transform: rotate(-6deg); z-index: 5; }
.polaroid-card.p-7 { bottom: 20px; right: 35px; transform: rotate(-10deg); z-index: 4; }
.polaroid-card.p-8 { bottom: 35px; left: 195px; transform: rotate(4deg) scale(1.06); z-index: 6; }

.polaroid-card:hover {
  transform: scale(1.22) rotate(0deg) !important;
  z-index: 25 !important;
  box-shadow: 0 28px 50px rgba(2, 132, 199, 0.38), 0 8px 20px rgba(0, 0, 0, 0.18);
}

.polaroid-card:hover .polaroid-img-box img {
  transform: scale(1.08);
}

/* ==========================================================
   SECCIÓN 5: FORMULARIO DE CONTACTO
   ========================================================== */
.contact-section {
  position: relative;
  width: 100%;
  padding: 1.5rem 0 4.5rem;
  background: transparent;
  display: flex;
  justify-content: center;
}

.contact-container {
  width: 68vw;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 2.8rem;
}

.contact-header h2 {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--c-dark-navy);
  margin-bottom: 0.4rem;
}

.contact-intro {
  font-size: 1.1rem;
  line-height: 1.65;
  color: #475569;
  font-weight: 450;
  max-width: 750px;
  margin: 0 auto 1.4rem;
}

.form-image-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: stretch;
}

.contact-image-wrapper {
  width: 100%;
  height: 100%;
  min-height: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
}

.contact-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.contact-form-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 20px;
  padding: 2.6rem 2.2rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
}

.contact-form-card h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--c-dark-navy);
  margin-bottom: 0.35rem;
  letter-spacing: -0.5px;
}

.form-desc {
  font-size: 0.92rem;
  color: #64748B;
  margin-bottom: 1.8rem;
  font-weight: 450;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--c-dark-navy);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-family: inherit;
  background: #F8FAFC;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  color: var(--c-dark-navy);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  background: #FFFFFF;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.15);
}

.btn-submit-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 0.95rem;
  margin-top: 0.4rem;
  background: #25D366;
  color: #FFFFFF;
  font-size: 1.02rem;
  font-weight: 800;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.35);
  transition: all 0.3s ease;
}

.btn-submit-whatsapp:hover {
  background: #20BA5A;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5);
}

/* ==========================================================
   FOOTER CON DATOS INTEGRADOS
   ========================================================== */
.site-footer {
  position: relative;
  width: 100%;
  background-color: var(--c-dark-navy);
  color: #E2E8F0;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.footer-map-container {
  width: 90vw;
  max-width: 1550px;
  margin: 0 auto 3.5rem;
}

.footer-map-wrapper {
  position: relative;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-map-wrapper iframe {
  display: block;
  filter: contrast(1.05) saturate(1.1);
}

.map-overlay-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(15, 23, 42, 0.88);
  color: #FFFFFF;
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid rgba(0, 216, 246, 0.4);
  backdrop-filter: blur(10px);
  z-index: 2;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.footer-main-container {
  width: 90vw;
  max-width: 1550px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr 1.2fr 1.1fr;
  gap: 3.5rem;
  margin-bottom: 3.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-quote {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #94A3B8;
  font-style: italic;
  border-left: 3px solid var(--c-primary);
  padding-left: 0.9rem;
  margin: 0.2rem 0 0.5rem 0;
}

.footer-direct-contact {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.direct-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #CBD5E1;
  line-height: 1.45;
}

.direct-contact-item .d-icon {
  font-size: 1.1rem;
  line-height: 1.2;
}

.direct-contact-item a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.direct-contact-item a:hover {
  color: var(--c-accent);
}

.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  margin-bottom: 0.3rem;
}

.footer-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--c-accent);
  transform: translateX(4px);
}

.footer-callback p {
  font-size: 0.94rem;
  line-height: 1.5;
  color: #94A3B8;
}

.footer-input-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.35rem;
  margin-top: 0.2rem;
  transition: border-color 0.3s ease;
}

.footer-input-group:focus-within {
  border-color: var(--c-accent);
  box-shadow: 0 0 15px rgba(0, 216, 246, 0.2);
}

.footer-input-group input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 0.65rem 0.9rem;
  color: #FFFFFF;
  font-size: 0.92rem;
  font-family: inherit;
  outline: none;
}

.footer-input-group input::placeholder {
  color: #64748B;
}

.footer-input-group button {
  background: var(--c-primary);
  color: #FFFFFF;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.footer-input-group button:hover {
  background: #0369A1;
  transform: scale(1.05);
}

.footer-social-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.7rem 1.1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(4px);
  color: #FFFFFF;
}

.social-btn.facebook:hover {
  border-color: #1877F2;
  color: #1877F2;
}

.social-btn.email:hover {
  border-color: var(--c-accent);
  color: var(--c-accent);
}

.social-btn.whatsapp:hover {
  border-color: #25D366;
  color: #25D366;
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: #64748B;
}

/* ==========================================================
   BOTÓN FLOTANTE PERMANENTE DE WHATSAPP
   ========================================================== */
.whatsapp-float-btn {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float-btn svg {
  width: 38px;
  height: 38px;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.whatsapp-float-btn:hover {
  background-color: #20BA5A;
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.65);
}

.whatsapp-float-btn:hover svg {
  transform: scale(1.05);
}

.whatsapp-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: #25D366;
  opacity: 0.6;
  z-index: -1;
  animation: pulseRadar 2.2s infinite cubic-bezier(0.24, 0, 0.38, 1);
}

@keyframes pulseRadar {
  0% { transform: scale(0.95); opacity: 0.75; }
  70% { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 74px;
  background: rgba(15, 23, 42, 0.92);
  color: #FFFFFF;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -6px;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent rgba(15, 23, 42, 0.92);
}

.whatsapp-float-btn:hover .whatsapp-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================
   DISEÑO RESPONSIVO (TABLETS Y SMARTPHONES)
   ========================================================== */
@media (max-width: 1200px) {
  .nav-container,
  .services-container,
  .why-us-container,
  .sectors-container,
  .coverage-container,
  .contact-container,
  .video-content {
    width: 86vw;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-map-container,
  .footer-main-container {
    width: 92vw;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 992px) {
  .nav-toggle {
    display: flex;
  }

  /* Menú desplegable completo en móvil sin solaparse */
  .nav-links {
    position: fixed;
    top: 65px;
    right: 0;
    left: 0;
    width: 100vw;
    height: calc(100vh - 65px);
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 2.5rem 1.5rem 5rem;
    gap: 1.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-120%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 105;
    overflow-y: auto;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a.nav-item {
    font-size: 1.15rem;
    color: #FFFFFF;
    width: 100%;
    max-width: 320px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.8rem;
  }

  .btn-nav {
    width: 100%;
    max-width: 320px;
    text-align: center;
    margin-top: 0.5rem;
    padding: 0.85rem;
  }

  .coverage-grid,
  .form-image-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  .coverage-image-wrapper,
  .contact-image-wrapper {
    height: 340px;
    min-height: auto;
  }
}

@media (max-width: 650px) {
  .nav-container,
  .why-us-container,
  .sectors-container,
  .coverage-container,
  .contact-container,
  .video-content {
    width: 90vw;
  }

  /* Sección de Servicios en móvil: ancho completo */
  .services-section {
    padding: 3rem 0 3.5rem;
    width: 100%;
  }

  .services-container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
  }

  /* Se quita la máscara borrosa en pantallas pequeñas */
  .services-carousel-wrapper {
    mask-image: none;
    -webkit-mask-image: none;
    padding: 0.5rem 0 1.5rem;
  }

  .services-carousel-track {
    gap: 1.2rem;
    animation-duration: 26s;
  }

  /* Ancho y altura fija de cartillas en móvil para ver múltiples tarjetas con botón visible */
  .service-card {
    width: 285px;
    min-height: 460px;
    padding: 1.5rem 1.3rem;
    border-radius: 18px;
    flex-shrink: 0;
  }

  .service-card h3 {
    font-size: 1.05rem;
  }

  .service-card p.service-desc {
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .service-card p.service-highlight {
    font-size: 0.8rem;
    line-height: 1.4;
  }

  .service-card-btn {
    padding: 0.7rem 1rem;
    font-size: 0.82rem;
    margin-top: 0.6rem;
  }

  .service-card .service-tags span {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
  }

  /* Sectores */
  .sector-card {
    width: 100%;
    min-height: 420px;
    padding: 1.6rem 1.3rem;
  }

  .benefits-grid,
  .sectors-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .video-content h1 {
    font-size: 2.2rem;
  }

  .services-header h2,
  .sectors-header h2,
  .coverage-info h2,
  .contact-header h2 {
    font-size: 2rem;
  }

  .coverage-collage-wrapper {
    height: 400px;
    max-width: 100%;
  }

  .polaroid-img-box {
    width: 145px;
    height: 105px;
  }

  .polaroid-card {
    padding: 8px 8px 16px 8px;
  }

  .polaroid-card.p-1 { left: -5px; top: 0px; }
  .polaroid-card.p-2 { left: 105px; top: -5px; }
  .polaroid-card.p-3 { right: -5px; top: 15px; }
  .polaroid-card.p-4 { left: -10px; top: 125px; }
  .polaroid-card.p-5 { right: -10px; top: 135px; }
  .polaroid-card.p-6 { left: 10px; bottom: 5px; }
  .polaroid-card.p-7 { right: 10px; bottom: 10px; }
  .polaroid-card.p-8 { left: 105px; bottom: 20px; }

  .contact-form-card {
    padding: 1.8rem 1.2rem;
  }

  .footer-map-container,
  .footer-main-container {
    width: 92vw;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.8rem;
    text-align: center;
  }

  .btn-whatsapp {
    width: 100%;
  }

  .whatsapp-float-btn {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float-btn svg {
    width: 32px;
    height: 32px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}