/* ============================================================
   INCOMED SEGUROS — Enterprise CSS
   Architecture: Mobile-First, Light Corporate, Enterprise Aesthetic
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg:          #ffffff;
  --bg-alt:      #f4f7fb;
  --card:        #ffffff;
  --card-alt:    #eef2f7;
  --border:      rgba(15,41,66,0.10);
  --border-gold: rgba(184,134,11,0.35);
  --gold:        #b8860b;
  --gold-light:  #d7a92e;
  --gold-dim:    #8a6508;
  --teal:        #1f7a6c;
  --navy:        #0f2942;
  --navy-deep:   #0a1c30;
  --white:       #ffffff;
  --ink:         #142c45;
  --gray:        #4a5b6e;
  --gray-dim:    #64738a;
  --green-wa:    #25d366;
  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --shadow-sm:   0 2px 10px rgba(15,41,66,0.06);
  --shadow-md:   0 14px 34px rgba(15,41,66,0.10);
  --shadow-lg:   0 28px 64px rgba(15,41,66,0.14);
  --ease:        cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out:    cubic-bezier(0.0, 0.0, 0.2, 1);
  --hero-img:    url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?q=90&w=2400&auto=format&fit=crop');
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
::selection { background: var(--gold); color: var(--white); }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-alt); }
::-webkit-scrollbar-thumb { background: var(--gray-dim); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px)  { .container { padding: 0 36px; } }
@media (min-width: 1280px) { .container { padding: 0 48px; } }

/* ── Typography helpers ─────────────────────────────────────── */
.gold        { color: var(--gold-dim); }
.gray        { color: var(--gray); }
.text-glow   { text-shadow: 0 0 32px rgba(184,134,11,0.25); }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold-dim);
  margin-bottom: 20px;
}
.label::before {
  content: ''; display: block;
  width: 22px; height: 1px; background: var(--gold-dim);
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 900; letter-spacing: -0.04em; line-height: 1.05;
  color: var(--navy);
}

/* ── Scroll Reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.active { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 80ms;  }
.d2 { transition-delay: 160ms; }
.d3 { transition-delay: 240ms; }
.d4 { transition-delay: 320ms; }

/* ── Glass utility ──────────────────────────────────────────── */
.glass {
  background: rgba(255,255,255,0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-gold {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 32px; border-radius: var(--radius-sm);
  background: var(--gold); color: var(--white);
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.02em;
  text-decoration: none; border: none; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s ease;
  white-space: nowrap;
}
.btn-gold::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.16) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.3s ease;
}
.btn-gold:hover {
  transform: translateY(-2px);
  background: var(--gold-dim);
  box-shadow: var(--shadow-md);
}
.btn-gold:hover::before { opacity: 1; }

.btn-outline {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: var(--radius-sm);
  background: transparent; color: var(--white);
  font-weight: 600; font-size: 13.5px;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.35);
  cursor: pointer; white-space: nowrap;
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s var(--ease);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}

/* ============================================================
   LOADER
   ============================================================ */
#loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--white);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 26px;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}
#loader.out { opacity: 0; visibility: hidden; pointer-events: none; }

.loader-bulb {
  width: 260px; max-width: 70vw; position: relative;
  animation: loader-float 2s ease-in-out infinite;
}
.loader-bulb img { width: 100%; height: auto; }
@keyframes loader-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.loader-bar {
  width: 120px; height: 2px;
  background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold), var(--gold-light));
  border-radius: 99px;
  animation: loader-bar 1s var(--ease-out) forwards;
}
@keyframes loader-bar { to { width: 100%; } }

.loader-text {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.38em; text-transform: uppercase;
  color: var(--gray-dim);
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  border-bottom: 1px solid transparent;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 112px;
}

.nav-logo {
  display: flex; align-items: center; gap: 16px;
  text-decoration: none; cursor: pointer;
}
.nav-logo-principal { height: 84px; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,255,255,0.85)) drop-shadow(0 0 2px rgba(255,255,255,0.9)); }
.nav-logo-secondary { height: 62px; width: auto; object-fit: contain; flex-shrink: 0; filter: drop-shadow(0 0 6px rgba(255,255,255,0.85)) drop-shadow(0 0 2px rgba(255,255,255,0.9)); }
.nav-logo-divider { width: 1px; height: 60px; background: var(--border); flex-shrink: 0; }

.nav-links {
  display: none; list-style: none; gap: 38px; align-items: center;
}
@media (min-width: 900px) { .nav-links { display: flex; } }

.nav-links a {
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.82);
  text-decoration: none; position: relative;
  transition: color 0.2s ease;
}
#navbar.scrolled .nav-links a { color: var(--gray); }
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0) translateX(-50%);
  transform-origin: center;
  transition: transform 0.35s var(--ease);
}
.nav-links a:hover { color: var(--white); }
#navbar.scrolled .nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { transform: scaleX(1) translateX(0); }

.nav-cta { display: none; }
@media (min-width: 900px) { .nav-cta { display: block; } }

/* Hamburger */
.hamburger {
  background: none; border: none; cursor: pointer;
  padding: 6px; display: flex; flex-direction: column; gap: 5px;
}
@media (min-width: 900px) { .hamburger { display: none; } }
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.35s var(--ease), background 0.3s ease;
}
#navbar.scrolled .hamburger span { background: var(--navy); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
#mob-menu {
  display: none;
  position: absolute; top: 112px; left: 0; right: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 8px 20px 20px;
}
#mob-menu.open { display: block; }
#mob-menu a {
  display: block; padding: 15px 4px;
  font-size: 16px; font-weight: 600; color: var(--gray);
  text-decoration: none; border-bottom: 1px solid var(--border);
  transition: color 0.2s ease;
}
#mob-menu a:hover { color: var(--navy); }
#mob-menu a:last-child { border-bottom: none; color: var(--gold-dim); padding-top: 20px; }

/* ============================================================
   HERO — Fixed Parallax Background (dark, photo-based)
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: var(--white);
}

/* Parallax background layer */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  /* Scale up slightly so fixed doesn't show edges */
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-bg.loaded { transform: scale(1); }

/* Multi-layer overlay — creates the enterprise dark hero effect */
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right,  rgba(10,28,48,0.90) 0%, rgba(10,28,48,0.60) 50%, rgba(10,28,48,0.78) 100%),
    linear-gradient(to bottom, rgba(10,28,48,0.35) 0%,  transparent 40%,   rgba(10,28,48,0.96) 100%);
}

/* Gold vignette accent */
.hero-vignette {
  position: absolute; inset: 0; z-index: 2;
  background: radial-gradient(ellipse 90% 70% at 60% 50%,
    rgba(184,134,11,0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* Animated grid */
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, black 20%, transparent 100%);
  pointer-events: none;
}

/* Canvas for orbs */
#hero-canvas {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative; z-index: 4;
  max-width: 900px;
  padding: 160px 20px 100px;
  text-align: left;
}
@media (min-width: 768px) { .hero-content { padding: 180px 0 120px; } }

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(12px);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 0.3s, transform 0.8s var(--ease) 0.3s;
}
.hero-badge.in { opacity: 1; transform: translateY(0); }

.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-light); box-shadow: 0 0 10px var(--gold-light);
  flex-shrink: 0;
  animation: badge-pulse 2.4s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--gold-light); }
  50%       { opacity: 0.55; box-shadow: 0 0 20px var(--gold-light); }
}

/* Title — word mask reveal */
.hero-title {
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  font-weight: 900; line-height: 0.97;
  letter-spacing: -0.045em;
  margin-bottom: 30px;
  color: var(--white);
}
.hero-title .line {
  display: block; overflow: hidden; padding-bottom: 0.06em;
}
.hero-title .line span {
  display: block;
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}
.loaded .hero-title .line:nth-child(1) span { transform: translateY(0); transition-delay: 0.3s; }
.loaded .hero-title .line:nth-child(2) span { transform: translateY(0); transition-delay: 0.42s; }
.loaded .hero-title .line:nth-child(3) span { transform: translateY(0); transition-delay: 0.54s; }

.hero-title .accent {
  background: linear-gradient(100deg, var(--gold-light) 0%, #f0d78a 50%, var(--gold-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear 1.8s infinite;
  filter: drop-shadow(0 0 24px rgba(215,169,46,0.25));
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Subtext */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.68); font-weight: 300; line-height: 1.75;
  max-width: 500px; margin-bottom: 48px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 0.95s, transform 0.8s var(--ease) 0.95s;
}
.hero-sub.in { opacity: 1; transform: translateY(0); }
.hero-sub strong { color: var(--white); font-weight: 600; }

/* CTAs */
.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 16px;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.8s var(--ease) 1.1s, transform 0.8s var(--ease) 1.1s;
}
.hero-ctas.in { opacity: 1; transform: translateY(0); }

/* Trust strip under CTAs */
.hero-trust {
  display: flex; align-items: center; gap: 24px;
  margin-top: 52px; flex-wrap: wrap;
  opacity: 0;
  transition: opacity 0.8s ease 1.4s;
}
.hero-trust.in { opacity: 1; }
.trust-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.18); }
.trust-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,0.55);
}
.trust-item i { color: var(--gold-light); font-size: 13px; }

/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  z-index: 5; display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0; animation: fade-in 1s ease 2s forwards;
}
@keyframes fade-in { to { opacity: 1; } }
.scroll-mouse {
  width: 24px; height: 38px; border-radius: 99px;
  border: 1.5px solid rgba(255,255,255,0.3);
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-mouse-dot {
  width: 4px; height: 8px; border-radius: 99px;
  background: var(--gold-light);
  animation: scroll-dot 2.2s ease-in-out infinite;
}
@keyframes scroll-dot {
  0%   { transform: translateY(0);  opacity: 1; }
  75%  { transform: translateY(12px); opacity: 0; }
  76%  { transform: translateY(0);    opacity: 0; }
  100% { transform: translateY(0);    opacity: 1; }
}

/* ── Hero: Light Shafts ────────────────────────────────── */
.hero-rays {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none; overflow: hidden;
}
.hero-ray {
  position: absolute; top: -5%; height: 115%;
  background: linear-gradient(
    180deg,
    rgba(184,134,11,0.18) 0%,
    rgba(255,248,200,0.06) 38%,
    transparent 72%
  );
  filter: blur(36px);
  transform-origin: top center;
  animation: ray-breathe 9s ease-in-out infinite;
}
.hero-ray.r1 { left:  6%; width: 85px;  transform: rotate(-22deg); animation-duration: 9s;  animation-delay:  0s;  }
.hero-ray.r2 { left: 23%; width:160px;  transform: rotate( -7deg); animation-duration:13s;  animation-delay: -4s;  }
.hero-ray.r3 { left: 49%; width: 70px;  transform: rotate(  4deg); animation-duration:10s;  animation-delay: -7s;  }
.hero-ray.r4 { left: 69%; width:120px;  transform: rotate( 17deg); animation-duration:11s;  animation-delay: -2s;  }
.hero-ray.r5 { left: 90%; width: 55px;  transform: rotate( 31deg); animation-duration: 7s;  animation-delay: -5s;  }
@keyframes ray-breathe {
  0%, 100% { opacity: 0.22; }
  50%       { opacity: 0.62; }
}

/* ── Hero: Film Grain ──────────────────────────────────── */
.hero-grain {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none; opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.78' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  animation: grain-drift 0.38s steps(1) infinite;
}
@keyframes grain-drift {
  0%   { background-position:   0px    0px; }
  25%  { background-position: -65px  -45px; }
  50%  { background-position:  55px   75px; }
  75%  { background-position: -45px   60px; }
}

/* ── Hero: Scanline reveal (one-shot on load) ──────────── */
.hero-scanline {
  position: absolute; left: 0; right: 0; z-index: 9;
  height: 2px; top: -2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(184,134,11,0.6)  20%,
    rgba(255,255,255,0.45) 50%,
    rgba(184,134,11,0.6)  80%,
    transparent 100%
  );
  box-shadow: 0 0 18px rgba(184,134,11,0.5), 0 0 44px rgba(184,134,11,0.18);
  pointer-events: none; opacity: 0;
  animation: scanline-sweep 1.9s cubic-bezier(0.4,0,0.6,1) 1.1s forwards;
}
@keyframes scanline-sweep {
  0%   { top: -2px;  opacity: 0; }
  5%   { opacity: 1; }
  92%  { opacity: 0.85; }
  100% { top: 100%;  opacity: 0; }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  background: var(--gold); overflow: hidden; padding: 13px 0;
}
.marquee-inner {
  display: flex; white-space: nowrap;
  animation: marquee 30s linear infinite;
}
.marquee-inner span {
  font-size: 11px; font-weight: 800; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white);
  padding: 0 40px;
}
.marquee-inner span::before { content: '✦  '; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTION: WHY (Features)
   ============================================================ */
#why {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-header {
  display: grid; grid-template-columns: 1fr;
  gap: 48px; margin-bottom: 72px; align-items: end;
}
@media (min-width: 1024px) {
  .why-header { grid-template-columns: 1.4fr 1fr; }
}

.why-quote {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.2;
  color: var(--navy);
}
.why-quote em { font-style: normal; color: var(--gray); font-weight: 300; }

.why-sub {
  font-size: 15px; color: var(--gray); line-height: 1.75;
  max-width: 380px;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.f-card {
  padding: 36px 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s ease, transform 0.35s var(--ease),
              box-shadow 0.35s ease;
}
.f-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.f-num {
  position: absolute; top: 28px; right: 28px;
  font-size: 48px; font-weight: 900; letter-spacing: -0.05em;
  color: rgba(15,41,66,0.045); line-height: 1;
  user-select: none;
}

.f-icon {
  width: 50px; height: 50px; border-radius: var(--radius-sm);
  background: rgba(184,134,11,0.08);
  border: 1px solid rgba(184,134,11,0.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--gold-dim);
  margin-bottom: 24px; position: relative; z-index: 1;
  transition: background 0.3s ease;
}
.f-card:hover .f-icon {
  background: rgba(184,134,11,0.14);
}

.f-card h3 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
  position: relative; z-index: 1;
  color: var(--navy);
}
.f-card p {
  font-size: 14px; color: var(--gray); line-height: 1.68;
  position: relative; z-index: 1;
}

/* ============================================================
   SECTION: AMBIENTES (Ramos principales)
   ============================================================ */
#ambientes {
  padding: 120px 0;
  background: var(--bg);
}

.ambientes-top {
  display: flex; flex-direction: column; gap: 24px;
  margin-bottom: 56px;
}
@media (min-width: 900px) {
  .ambientes-top { flex-direction: row; justify-content: space-between; align-items: flex-end; }
}

.ambiente-pill {
  display: inline-block;
  font-size: 12.5px; font-weight: 700; color: var(--navy);
  padding: 11px 22px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); white-space: nowrap;
  background: var(--bg-alt);
}

.ambientes-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 640px) {
  .ambientes-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .ambientes-grid { grid-template-columns: repeat(4, 1fr); }
}

.amb-card {
  position: relative; border-radius: var(--radius);
  overflow: hidden; cursor: default;
  aspect-ratio: 3/4;
  box-shadow: var(--shadow-sm);
}

.amb-img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.85s var(--ease), filter 0.5s ease;
}
.amb-card:hover .amb-img {
  transform: scale(1.06); filter: brightness(0.82);
}

.amb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.3) 55%, transparent 100%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 26px 22px; z-index: 2;
}

.amb-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  backdrop-filter: blur(12px); border: 1px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; margin-bottom: 16px;
  transition: transform 0.4s var(--ease);
}
.amb-card:hover .amb-icon-wrap { transform: scale(1.08); }

.amb-card h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; color: var(--white); }
.amb-card p  { font-size: 13px; color: rgba(255,255,255,0.7); line-height: 1.55; }
.amb-temp    { font-size: 11px; font-weight: 700; color: var(--gold-light); margin-top: 12px; letter-spacing: 0.1em; }

.amb-badge {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--white);
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px; border-radius: 99px;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   SECTION: ASEGURADORAS (logo wall)
   ============================================================ */
#aseguradoras {
  padding: 90px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
#aseguradoras::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(to right, transparent, rgba(184,134,11,0.5), transparent);
}

.aseg-hdr {
  text-align: center; max-width: 640px;
  margin: 0 auto 56px;
}
.aseg-hdr .label { color: var(--gold-light); }
.aseg-hdr .label::before { background: var(--gold-light); }
.aseg-hdr h2 { color: var(--white); }
.aseg-hdr p { color: rgba(255,255,255,0.6); font-size: 15.5px; margin-top: 14px; line-height: 1.7; }

.aseg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 640px)  { .aseg-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .aseg-grid { grid-template-columns: repeat(4, 1fr); } }

.aseg-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  padding: 24px 20px;
  min-height: 92px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.aseg-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

.aseg-item img {
  max-width: 100%; max-height: 36px; width: auto;
}

.aseg-item .aseg-word {
  font-size: 13.5px; font-weight: 800; letter-spacing: 0.01em;
  color: var(--navy); text-align: center;
  text-transform: uppercase;
}

.aseg-note {
  text-align: center; font-size: 12px; color: rgba(255,255,255,0.4);
  margin-top: 28px;
}

/* ============================================================
   SECTION: PROCESO
   ============================================================ */
#proceso {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.proceso-header {
  text-align: center; max-width: 640px;
  margin: 0 auto 72px;
}
.proceso-header p {
  color: var(--gray); font-size: 16px; margin-top: 16px; line-height: 1.7;
}

.proceso-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) { .proceso-grid { grid-template-columns: repeat(3, 1fr); } }

.proceso-step {
  position: relative; padding: 40px 30px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.3s ease, transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.proceso-step:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* Connector line */
@media (min-width: 768px) {
  .proceso-step:not(:last-child)::after {
    content: '';
    position: absolute; top: 54px; right: -13px;
    width: 24px; height: 1px;
    background: linear-gradient(to right, var(--border-gold), transparent);
    z-index: 1;
  }
}

.step-number {
  font-size: 13px; font-weight: 800; color: var(--gold-dim);
  letter-spacing: 0.08em; margin-bottom: 26px;
  display: flex; align-items: center; gap: 12px;
}
.step-number::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border);
}

.proceso-step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--navy); }
.proceso-step p  { font-size: 14px; color: var(--gray); line-height: 1.7; }

/* ============================================================
   SECTION: PRODUCTO (Seguros Empresariales)
   ============================================================ */
#producto {
  padding: 120px 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}

.producto-wrap {
  display: grid; grid-template-columns: 1fr;
  gap: 64px; align-items: center;
}
@media (min-width: 1024px) {
  .producto-wrap { grid-template-columns: 1fr 1fr; }
}

.producto-info .section-title { margin-bottom: 18px; }
.producto-lead {
  font-size: 17px; font-weight: 300; color: var(--gray);
  line-height: 1.75; margin-bottom: 44px;
}

.feature-rows { display: flex; flex-direction: column; gap: 28px; }
.f-row { display: flex; gap: 18px; }
.f-row-icon {
  flex-shrink: 0; width: 42px; height: 42px;
  border-radius: 50%; border: 1px solid var(--border);
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--gold-dim); margin-top: 2px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.f-row:hover .f-row-icon {
  border-color: var(--border-gold);
  background: rgba(184,134,11,0.08);
}
.f-row h4 { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; color: var(--navy); }
.f-row p  { font-size: 13.5px; color: var(--gray); line-height: 1.65; }

/* Specs bar */
.specs-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm); overflow: hidden;
  margin-top: 44px;
}
.spec-cell {
  background: var(--card); padding: 20px 12px;
  text-align: center; transition: background 0.25s ease;
}
.spec-cell:hover { background: var(--card-alt); }
.spec-val  { display: block; font-size: 18px; font-weight: 800; color: var(--gold-dim); }
.spec-name { font-size: 9.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gray-dim); margin-top: 4px; display: block; }

/* Shield Visual */
.panel-scene {
  perspective: 1000px;
  padding: 44px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
}
.panel-scene:hover .led-panel-body {
  transform: rotateX(0deg) rotateY(0deg);
}
.led-panel-body {
  aspect-ratio: 1/1;
  background: linear-gradient(145deg, var(--navy) 0%, #1a3f63 45%, var(--navy-deep) 100%);
  border-radius: var(--radius);
  transform: rotateX(6deg) rotateY(-5deg);
  transition: transform 0.7s var(--ease);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg);
}
.led-panel-body::before {
  content: '';
  position: absolute; inset: 7px;
  background: var(--navy-deep); border-radius: calc(var(--radius) - 4px);
  border: 1px solid rgba(184,134,11,0.25);
}
.led-panel-body i {
  position: relative; z-index: 1;
  font-size: clamp(64px, 12vw, 130px);
  color: var(--gold-light);
  opacity: 0.95;
}

/* Floating badges on the panel */
.p-badge {
  position: absolute;
  display: flex; align-items: center; gap: 8px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 12px; font-weight: 700;
  color: var(--white);
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.p-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 8px var(--gold-light); }
.pb-tl { top: 18px; left: 18px; }
.pb-br { bottom: 18px; right: 18px; color: rgba(255,255,255,0.75); font-weight: 600; }

/* ============================================================
   SECTION: STATS
   ============================================================ */
#stats {
  padding: 100px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-cell {
  background: var(--card);
  padding: 48px 26px; text-align: center;
  transition: background 0.3s ease;
}
.stat-cell:hover { background: var(--card-alt); }

.stat-num {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900; letter-spacing: -0.05em;
  color: var(--gold-dim); line-height: 1;
  margin-bottom: 12px;
}
.stat-lbl {
  font-size: 13px; font-weight: 500; color: var(--gray);
  line-height: 1.45;
}

/* ============================================================
   SECTION: SECTORES
   ============================================================ */
#sectores {
  padding: 120px 0;
  background: var(--bg);
}

.sectores-hdr {
  text-align: center; max-width: 600px;
  margin: 0 auto 56px;
}
.sectores-hdr p { color: var(--gray); font-size: 15.5px; margin-top: 16px; line-height: 1.7; }

.sectores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
}

.sector-card {
  padding: 34px 18px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.35s var(--ease);
  cursor: default;
}
.sector-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.sector-icon { font-size: 30px; color: var(--gold-dim); display: block; margin-bottom: 16px; }
.sector-card h3 { font-size: 14px; font-weight: 700; color: var(--navy); }

/* ============================================================
   SECTION: CONTACTO
   ============================================================ */
#contacto {
  padding: 120px 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.contact-hdr {
  text-align: center; max-width: 580px;
  margin: 0 auto 56px;
}
.contact-hdr p { color: var(--gray); font-size: 16px; margin-top: 16px; line-height: 1.7; }

.contact-box {
  display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 1024px) {
  .contact-box { grid-template-columns: 5fr 7fr; }
}

/* Info panel */
.contact-info {
  padding: 52px 44px;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%);
  position: relative; overflow: hidden;
  color: var(--white);
}
.contact-info::before {
  content: '';
  position: absolute; top: -30%; right: -30%;
  width: 280px; height: 280px;
  background: radial-gradient(circle, rgba(184,134,11,0.12) 0%, transparent 70%);
  border-radius: 50%;
}
.contact-info h3 { font-size: 26px; font-weight: 800; margin-bottom: 8px; color: var(--white); }
.contact-info .ci-sub { font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 46px; }

.ci-list { display: flex; flex-direction: column; gap: 32px; }
.ci-item { display: flex; gap: 18px; align-items: flex-start; }
.ci-icon {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--gold-light); margin-top: 2px;
}
.ci-body h4 {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 6px;
}
.ci-body p  { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.65; }
.ci-body a  { color: rgba(255,255,255,0.72); text-decoration: none; transition: color 0.2s ease; }
.ci-body a:hover { color: var(--gold-light); }
.ci-wa-link {
  color: var(--gold-light); font-weight: 700; font-size: 13px;
  text-decoration: none; display: inline-block; margin-top: 8px;
  transition: opacity 0.2s ease;
}
.ci-wa-link:hover { opacity: 0.75; }

/* Form panel */
.contact-form-wrap { padding: 52px 44px; }
.contact-form-wrap h3 { font-size: 22px; font-weight: 800; margin-bottom: 32px; color: var(--navy); }

.form-row {
  display: grid; grid-template-columns: 1fr;
  gap: 20px; margin-bottom: 20px;
}
@media (min-width: 540px) { .form-row { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gray-dim);
}
.form-control {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: var(--ink); font-family: inherit; font-size: 15px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  outline: none; width: 100%;
}
.form-control::placeholder { color: var(--gray-dim); }
.form-control:focus {
  border-color: rgba(184,134,11,0.5);
  box-shadow: 0 0 0 3px rgba(184,134,11,0.10);
}
select.form-control { appearance: none; cursor: pointer; }
textarea.form-control { resize: none; }

.form-submit {
  width: 100%; margin-top: 26px;
  padding: 16px 20px;
  background: var(--gold); color: var(--white);
  border: none; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; font-weight: 800;
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 12px;
  transition: background 0.3s ease, transform 0.3s var(--ease), box-shadow 0.3s ease;
}
.form-submit i { font-size: 20px; }
.form-submit:hover {
  background: var(--gold-dim);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.form-note {
  font-size: 12px; color: var(--gray-dim);
  text-align: center; margin-top: 16px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0 60px;
}
.footer-inner {
  display: flex; flex-direction: column;
  gap: 28px; align-items: center; text-align: center;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: center; }
@media (min-width: 768px) { .footer-brand { align-items: flex-start; } }

.footer-logo {
  display: flex; align-items: center; gap: 10px;
}
.footer-logo img { height: 26px; width: auto; }
.footer-logo span { font-size: 15px; font-weight: 800; color: var(--navy); }

.footer-backedby {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px; color: var(--gray-dim);
}
.footer-backedby img { height: 30px; width: auto; opacity: 0.85; }

.footer-copy { font-size: 13px; color: var(--gray-dim); }

.footer-socials { display: flex; gap: 10px; }
.footer-soc {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 15px;
  text-decoration: none;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-soc:hover {
  color: var(--gold-dim); border-color: var(--border-gold);
  background: rgba(184,134,11,0.08);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-btn {
  position: fixed; bottom: 26px; right: 26px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--green-wa); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 27px; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.5);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.wa-btn::before, .wa-btn::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%; border: 2px solid rgba(37,211,102,0.45);
  animation: wa-ring 2.6s ease-out infinite;
}
.wa-btn::after { animation-delay: 0.8s; border-color: rgba(37,211,102,0.25); }
@keyframes wa-ring {
  0%   { transform: scale(1);   opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.wa-btn:hover {
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 8px 36px rgba(37,211,102,0.65);
}
