/* ============================================================
   RIASEG - CSS PROFESIONAL
   Diseño corporativo premium para correduría de seguros
   Optimizado para performance y experiencia de usuario
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   1. VARIABLES CSS (Sistema de Diseño)
   ──────────────────────────────────────────────────────────── */
:root {
  /* Colores Principales - Paleta Azul Corporativa */
  --blue-primary:   #1B3A6B;
  --blue-deep:      #122848;
  --blue-mid:       #3A6BA5;
  --blue-light:     #C8D8EF;
  --blue-pale:      #EBF0F7;
  --blue-glow:      rgba(27,58,107,0.35);
  --blue-glow-sm:   rgba(27,58,107,0.18);
  
  /* Neutros */
  --black-pure:     #000000;
  --black-rich:     #0A0A0A;
  --black-soft:     #111119;
  --white-pure:     #FFFFFF;
  --white-soft:     #F7F9FC;
  
  /* Escala de Grises */
  --gray-100:       #F0F3F7;
  --gray-200:       #DDE4EE;
  --gray-300:       #B4C4D8;
  --gray-400:       #7E92A8;
  --gray-500:       #5C6E84;
  --gray-600:       #3D4F63;
  --gray-700:       #2A3A4D;
  
  /* Tipografía */
  --font-display:   'Cormorant Garamond', serif;
  --font-body:      'Montserrat', sans-serif;
  
  /* Easing (curvas de animación) */
  --ease:           cubic-bezier(0.4,0,0.2,1);
  --ease-elastic:   cubic-bezier(0.34,1.56,0.64,1);
  
  /* Espaciado */
  --section-pad:    120px;
  --container-max:  1400px;
}

/* ────────────────────────────────────────────────────────────
   2. RESET Y BASE
   ──────────────────────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--black-pure);
  color: var(--white-pure);
  overflow-x: hidden;
  line-height: 1.6;
  font-size: 16px;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

::selection {
  background: var(--blue-primary);
  color: #fff;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--black-rich);
}

::-webkit-scrollbar-thumb {
  background: var(--blue-mid);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-light);
}

/* ────────────────────────────────────────────────────────────
   3. BARRA DE PROGRESO
   ──────────────────────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ────────────────────────────────────────────────────────────
   4. LOADING SCREEN
   ──────────────────────────────────────────────────────────── */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--black-pure);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s var(--ease), visibility 0.8s var(--ease);
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loading-content {
  text-align: center;
  animation: fadeScale 1.2s var(--ease);
}

.loading-logo {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 300;
  letter-spacing: 10px;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-mid));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loading-bar {
  width: 200px;
  height: 2px;
  background: rgba(58,107,165,0.2);
  margin: 30px auto 0;
  overflow: hidden;
  border-radius: 999px;
}

.loading-progress {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-mid), var(--blue-light));
  animation: loadProg 2s var(--ease) forwards;
  box-shadow: 0 0 10px var(--blue-mid);
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes loadProg {
  to { width: 100%; }
}

/* ────────────────────────────────────────────────────────────
   5. CUSTOM CURSOR (desktop only)
   ──────────────────────────────────────────────────────────── */
.custom-cursor {
  width: 20px;
  height: 20px;
  border: 2px solid var(--blue-mid);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease);
  mix-blend-mode: difference;
  display: none;
}

@media(min-width: 1024px) {
  .custom-cursor {
    display: block;
  }
}

.custom-cursor.hover {
  transform: scale(1.5);
  border-color: var(--blue-light);
}

/* ────────────────────────────────────────────────────────────
   6. NAVBAR
   ──────────────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 60px;
  background: transparent;
  transition: all 0.4s var(--ease);
}

.navbar.scrolled {
  background: rgba(10,10,12,0.94);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 15px 60px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
  border-bottom: 1px solid rgba(58,107,165,0.12);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--blue-light);
  letter-spacing: 4px;
  transition: all 0.4s var(--ease);
  position: relative;
}

.nav-logo::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-mid);
  transition: width 0.3s var(--ease);
}

.nav-logo:hover {
  color: #fff;
  transform: scale(1.05);
}

.nav-logo:hover::after {
  width: 100%;
}

.nav-menu {
  display: flex;
  gap: 50px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 8px 0;
  transition: color 0.3s;
}

.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blue-mid), transparent);
  transition: width 0.3s var(--ease);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::before {
  width: 100%;
}

.nav-cta {
  padding: 12px 28px;
  background: var(--blue-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  border-radius: 4px;
}

.nav-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
}

.nav-cta:hover::before {
  width: 300px;
  height: 300px;
}

.nav-cta:hover {
  background: var(--blue-mid);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px var(--blue-glow);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--blue-light);
  border-radius: 999px;
  transition: all 0.4s var(--ease);
}

.menu-toggle:hover span {
  background: #fff;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ────────────────────────────────────────────────────────────
   7. HERO SECTION
   ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #060c18 0%, #0e1f3a 40%, #0b1828 100%);
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(27,58,107,0.2) 0%, transparent 55%),
              radial-gradient(circle at 80% 80%, rgba(58,107,165,0.08) 0%, transparent 50%);
  animation: bgPulse 8s ease-in-out infinite;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(58,107,165,0.03) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: gradShift 15s ease-in-out infinite;
}

@keyframes bgPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes gradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--blue-mid);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 15s infinite ease-in-out;
  box-shadow: 0 0 4px var(--blue-mid);
}

@keyframes particleFloat {
  0% { transform: translateY(100vh) translateX(0) scale(0); opacity: 0; }
  10% { opacity: 0.85; }
  90% { opacity: 0.85; }
  100% { transform: translateY(-100px) translateX(100px) scale(1.5); opacity: 0; }
}

.hero-content {
  max-width: 1200px;
  padding: 0 60px;
  text-align: center;
  z-index: 1;
  position: relative;
}

.hero-eyebrow {
  font-size: 14px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 30px;
  opacity: 0;
  animation: fadeInUp 1s 0.3s forwards;
  font-weight: 600;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(60px, 8vw, 120px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 30px;
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 60%, var(--blue-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  animation: fadeInUp 1s 0.6s forwards;
  letter-spacing: 2px;
}

.hero-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--gray-300);
  max-width: 850px;
  margin: 0 auto 50px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeInUp 1s 0.9s forwards;
}

.hero-cta-group {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeInUp 1s 1.2s forwards;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  opacity: 0;
  animation: fadeInUp 1s 1.5s forwards;
  transition: transform 0.3s var(--ease);
}

.hero-scroll:hover {
  transform: translateX(-50%) scale(1.1);
}

.scroll-text {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--blue-mid);
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--blue-mid), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(20px); opacity: 0; }
}

/* ────────────────────────────────────────────────────────────
   8. BUTTONS
   ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
  font-family: var(--font-body);
  border-radius: 4px;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s var(--ease), height 0.6s var(--ease);
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: var(--blue-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--blue-glow);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 2px solid var(--blue-mid);
}

.btn-secondary:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px var(--blue-glow);
}

.btn-secondary:active {
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
}

/* ────────────────────────────────────────────────────────────
   9. REVEAL ANIMATIONS
   ──────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-scale {
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-scale.active {
  opacity: 1;
  transform: scale(1);
}

/* ────────────────────────────────────────────────────────────
   10. SECTIONS
   ──────────────────────────────────────────────────────────── */
section {
  padding: var(--section-pad) 0;
  position: relative;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-eyebrow {
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 20px;
  display: block;
  font-weight: 600;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 25px;
}

.section-subtitle {
  font-size: 19px;
  color: var(--gray-400);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ────────────────────────────────────────────────────────────
   11. WHY SECTION (Por qué RIASEG)
   ──────────────────────────────────────────────────────────── */
.why {
  background: var(--white-soft);
  color: var(--black-rich);
}

.why .section-title {
  color: var(--black-rich);
}

.why .section-eyebrow {
  color: var(--blue-primary);
}

.why .section-subtitle {
  color: var(--gray-500);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.why-card,
.service-block {
  backdrop-filter: blur(12px);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.why-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-primary), var(--blue-mid));
  transition: width 0.4s var(--ease);
}

.why-card::after {
  content: '';
  position: absolute;
  bottom: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(27,58,107,0.04), rgba(58,107,165,0.02));
  transition: bottom 0.5s var(--ease);
  z-index: 0;
}

.why-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.08);
  border-color: var(--blue-light);
}

.why-card:hover::before {
  width: 100%;
}

.why-card:hover::after {
  bottom: 0;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-mid));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 25px;
  transition: all 0.6s var(--ease-elastic);
  position: relative;
  z-index: 1;
}

.why-card:hover .why-icon {
  transform: scale(1.1) rotate(360deg);
  box-shadow: 0 8px 24px var(--blue-glow);
}

.why-icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--black-rich);
  position: relative;
  z-index: 1;
}

.why-card p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--gray-500);
  position: relative;
  z-index: 1;
}

/* ────────────────────────────────────────────────────────────
   12. STATS
   ──────────────────────────────────────────────────────────── */
.stats {
  background: var(--black-rich);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(27,58,107,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 60px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.stat-item {
  position: relative;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(50px, 6vw, 80px);
  font-weight: 300;
  color: var(--blue-mid);
  line-height: 1;
  margin-bottom: 15px;
  display: block;
  text-shadow: 0 0 30px var(--blue-glow-sm);
}

.stat-label {
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray-400);
  font-weight: 500;
}

/* ────────────────────────────────────────────────────────────
   13. PARTNERS (Logos Aseguradoras)
   ──────────────────────────────────────────────────────────── */
.partners {
  background: var(--white-pure);
  padding: 90px 0;
}

.partners-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.partners .section-header {
  margin-bottom: 56px;
}

.partners .section-title {
  color: var(--black-rich);
  font-size: clamp(30px, 3.8vw, 46px);
}

.partners .section-eyebrow {
  color: var(--blue-primary);
}

.partners-slider {
  overflow: hidden;
  position: relative;
}

.partners-slider::before,
.partners-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.partners-slider::before {
  left: 0;
  background: linear-gradient(to right, var(--white-pure), transparent);
}

.partners-slider::after {
  right: 0;
  background: linear-gradient(to left, var(--white-pure), transparent);
}

.partners-track {
  display: flex;
  gap: 72px;
  width: max-content;
  animation: scrollPartners 40s linear infinite;
  align-items: center;
}

.partners-slider:hover .partners-track {
  animation-play-state: paused;
}

.partner {
  min-width: 140px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
}

.partner:hover {
  transform: scale(1.06);
}

.partner-logo-img {
  max-width: 130px;
  max-height: 56px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.35s var(--ease);
  object-fit: contain;
}

.partner:hover .partner-logo-img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes scrollPartners {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ────────────────────────────────────────────────────────────
   14. PROCESS
   ──────────────────────────────────────────────────────────── */
.process {
  background: var(--white-soft);
  color: var(--black-rich);
}

.process .section-title {
  color: var(--black-rich);
}

.process .section-eyebrow {
  color: var(--blue-primary);
}

.process .section-subtitle {
  color: var(--gray-500);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 36px;
}

.step {
  padding-top: 28px;
  border-top: 2px solid var(--blue-primary);
  transition: border-color 0.3s;
}

.step:hover {
  border-color: var(--blue-mid);
}

.step-num {
  font-size: 12px;
  color: var(--blue-mid);
  letter-spacing: 0.22em;
  display: block;
  margin-bottom: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  color: var(--black-rich);
  margin-bottom: 14px;
}

.step p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-500);
}

/* ────────────────────────────────────────────────────────────
   15. AREAS (Servicios)
   ──────────────────────────────────────────────────────────── */
.areas {
  background: var(--white-pure);
  color: var(--black-rich);
}

.areas .section-title {
  color: var(--black-rich);
}

.areas .section-eyebrow {
  color: var(--blue-primary);
}

.areas .section-subtitle {
  color: var(--gray-500);
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 52px 44px;
}

.area-item {
  transition: transform 0.35s var(--ease);
}

.area-item:hover {
  transform: translateY(-4px);
}

.area-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.area-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.area-item:hover .area-image img {
  transform: scale(1.05);
}

.area-item h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 500;
  color: var(--black-rich);
  margin-bottom: 12px;
}

.area-item p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-500);
}

/* ────────────────────────────────────────────────────────────
   16. CLIENTS
   ──────────────────────────────────────────────────────────── */
.clients {
  background: var(--gray-100);
  color: var(--black-rich);
}

.clients .section-title {
  color: var(--black-rich);
}

.clients .section-eyebrow {
  color: var(--blue-primary);
}

.clients .section-subtitle {
  color: var(--gray-500);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 44px 40px;
}

.client-card {
  transition: transform 0.35s var(--ease);
}

.client-card:hover {
  transform: translateY(-4px);
}

.client-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 20px;
}

.client-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.client-card:hover .client-image img {
  transform: scale(1.05);
}

.client-card h3 {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 500;
  color: var(--black-rich);
  margin-bottom: 12px;
}

.client-card p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--gray-500);
}

/* ────────────────────────────────────────────────────────────
   17. QUOTE SECTION (Contacto)
   ──────────────────────────────────────────────────────────── */
.quote-section {
  background: var(--black-rich);
  position: relative;
  overflow: hidden;
}

.quote-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(27,58,107,0.05) 100%);
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%);
}

.quote-content {
  max-width: 760px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.quote-content h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 62px);
  font-weight: 300;
  line-height: 1.3;
  margin-bottom: 24px;
  color: #fff;
}

.quote-content > p {
  font-size: 19px;
  color: var(--gray-400);
  margin-bottom: 40px;
  line-height: 1.75;
}

.quote-form {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.quote-input {
  flex: 1;
  min-width: 240px;
  padding: 18px 24px;
  font-size: 15px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(58,107,165,0.28);
  color: #fff;
  transition: all 0.35s var(--ease);
  font-family: var(--font-body);
  border-radius: 4px;
}

.quote-input::placeholder {
  color: var(--gray-400);
}

.quote-input:focus {
  outline: none;
  border-color: var(--blue-mid);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(58,107,165,0.12);
}

.quote-input option {
  background: var(--black-rich);
  color: #fff;
}

/* ────────────────────────────────────────────────────────────
   18. FOOTER
   ──────────────────────────────────────────────────────────── */
footer {
  background: #000;
  color: var(--gray-400);
  padding: 88px 0 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--blue-light);
  margin-bottom: 18px;
  letter-spacing: 3px;
  font-weight: 300;
}

.footer-brand > p {
  font-size: 15px;
  line-height: 1.75;
  max-width: 360px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-600);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.35s var(--ease);
  color: var(--gray-400);
}

.social-link:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px var(--blue-glow-sm);
}

.social-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-column h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  font-size: 15px;
  color: var(--gray-400);
  transition: all 0.25s;
  display: inline-block;
}

.footer-column a:hover {
  color: var(--blue-light);
  padding-left: 5px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom p {
  font-size: 14px;
  margin: 0;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 14px;
  color: var(--gray-400);
  transition: color 0.25s;
}

.footer-legal a:hover {
  color: var(--blue-light);
}

/* ────────────────────────────────────────────────────────────
   19. WHATSAPP FLOAT
   ──────────────────────────────────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
}

.whatsapp-btn-float {
  width: 65px;
  height: 65px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 30px rgba(37,211,102,0.4);
  cursor: pointer;
  transition: all 0.4s var(--ease);
  animation: waPulse 2s ease-in-out infinite;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.whatsapp-btn-float:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 40px rgba(37,211,102,0.6);
}

.whatsapp-btn-float svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  position: relative;
  z-index: 1;
}

@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 30px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 8px 30px rgba(37,211,102,0.7); }
}

.whatsapp-tooltip {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--black-rich);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 8px solid var(--black-rich);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* ────────────────────────────────────────────────────────────
   20. RESPONSIVE
   ──────────────────────────────────────────────────────────── */

/* Tablets y pantallas medianas */
@media (max-width: 1200px) {
  :root {
    --section-pad: 90px;
  }
  .container {
    padding: 0 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 44px;
  }
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .clients-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-pad: 60px;
  }
  
  .navbar {
    padding: 15px 28px;
  }
  
  .navbar.scrolled {
    padding: 12px 28px;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 380px;
    height: 100vh;
    background: var(--black-rich);
    flex-direction: column;
    padding: 100px 36px;
    gap: 28px;
    transition: right 0.4s var(--ease);
    box-shadow: -10px 0 30px rgba(0,0,0,0.5);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .container {
    padding: 0 24px;
  }
  
  .hero-content {
    padding: 0 24px;
  }
  
  .hero-cta-group {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    text-align: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .clients-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .quote-form {
    flex-direction: column;
  }
  
  .quote-input {
    width: 100%;
    min-width: unset;
  }
  
  .partners-container {
    padding: 0;
  }
  
  .partners .section-header {
    padding: 0 24px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  
  .stat-number {
    font-size: 48px;
  }
  
  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
  
  .whatsapp-btn-float {
    width: 55px;
    height: 55px;
  }
}
@keyframes pulseSoft {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

.cta-primary {
  animation: pulseSoft 8s infinite;
}
.cookie-banner {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 20px;
  display: none;
  justify-content: center;
  z-index: 9999;
}

.cookie-content {
  max-width: 900px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.cookie-content button {
  background: #00c896;
  border: none;
  padding: 10px 20px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s ease;
}

.cookie-content button:hover {
  background: #00a87a;
}
.fade-out {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  pointer-events: none;
}
/* ────────────────────────────────────────────────────────────
   FIN DEL CSS
   ──────────────────────────────────────────────────────────── */
