/* ============================================
   ALONSO SEGUROS — SHARED STYLESHEET
   ============================================ */


/* ---- Variables ---- */
:root {
  --red:        #A01828;
  --red-dark:   #841520;
  --red-glow:   rgba(160, 24, 40, 0.22);
  --black:      #1E1E1E;
  --dark-1:     #252525;
  --dark-2:     #2E2E2E;
  --dark-3:     #383838;
  --border:     rgba(255,255,255,0.07);
  --gray:       #888888;
  --gray-light: #BBBBBB;
  --off-white:  #F5F5F5;
  --white:      #FFFFFF;
  --font-d:     'Cormorant Garamond', Georgia, serif;
  --font-u:     'Montserrat', sans-serif;
  --ease:       cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-in:    cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-u);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}
::selection { background: var(--red); color: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: none; }

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--red);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width .2s, height .2s, background .2s;
  mix-blend-mode: normal;
}
.cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(160,24,40,0.65);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: width .35s var(--ease), height .35s var(--ease), opacity .2s;
}
.cursor.hover { width: 64px; height: 64px; background: var(--red-glow); }
.cursor-ring.hover { width: 64px; height: 64px; opacity: 0; }

/* ============================================
   PAGE CURTAIN (transition)
   ============================================ */
.page-curtain {
  position: fixed; inset: 0;
  background: var(--red);
  z-index: 99997;
  transform: scaleX(1);
  transform-origin: right;
  pointer-events: none;
}
.page-curtain.out {
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .75s var(--ease-in);
}
.page-curtain.in {
  transform: scaleX(1);
  transform-origin: left;
  transition: transform .55s var(--ease-in);
}

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  padding: 28px 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s var(--ease), background .4s, border-bottom .4s;
}
.navbar.scrolled {
  background: rgba(10,10,10,.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 18px 64px;
  border-bottom: 1px solid var(--border);
}

/* Offset for fixed header on anchor links */
section[id] {
  scroll-margin-top: 100px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  z-index: 1;
}
.nav-logo em { font-style: italic; color: var(--red); }
.logo-img {
  height: 42px;
  width: auto;
  display: block;
}
.logo-text {
  height: 28px;
  width: auto;
  display: block;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 44px;
}
.nav-links a {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-light);
  position: relative;
  transition: color .3s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1.5px;
  background: var(--red);
  transition: width .35s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--red) !important;
  color: #fff !important;
  padding: 10px 26px;
  font-size: .68rem !important;
  letter-spacing: .12em !important;
  transition: background .3s, transform .3s !important;
}
.nav-cta:hover { background: var(--red-dark) !important; transform: translateY(-2px); }
.nav-cta::after { display: none !important; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 1;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .4s var(--ease), opacity .3s;
}
.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 drawer */
.mobile-drawer {
  position: fixed;
  top: 0; right: -110%;
  width: min(360px, 85vw);
  height: 100vh;
  background: var(--dark-2);
  z-index: 898;
  padding: 100px 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-left: 1px solid var(--border);
  transition: right .55s var(--ease-in);
}
.mobile-drawer.open { right: 0; }
.mobile-drawer a {
  font-family: var(--font-d);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gray-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color .3s, padding-left .3s var(--ease);
}
.mobile-drawer a:hover, .mobile-drawer a.active { color: var(--red); padding-left: 12px; }
.mobile-drawer a.active::before { display: none; }

.drawer-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.75);
  z-index: 897;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s;
}
.drawer-overlay.visible { opacity: 1; pointer-events: all; }

/* ============================================
   HERO (full-screen landing)
   ============================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 80% 70% at 65% 40%, rgba(160,24,40,.11) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(158,21,35,.07) 0%, transparent 50%),
    linear-gradient(150deg, #1E1E1E 0%, #221214 45%, #1E1E1E 100%);
  will-change: transform;
}
.hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 48px,
    rgba(255,255,255,.025) 48px,
    rgba(255,255,255,.025) 49px
  ),
  repeating-linear-gradient(
    90deg,
    transparent,
    transparent 48px,
    rgba(255,255,255,.015) 48px,
    rgba(255,255,255,.015) 49px
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeSlideLeft .7s var(--ease) .9s forwards;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 44px; height: 1.5px;
  background: var(--red);
}
.hero-title {
  font-family: var(--font-d);
  font-size: clamp(3.8rem, 8vw, 7.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--white);
  overflow: visible;
  margin-bottom: 28px;
}
.hero-title-line {
  display: block;
  overflow: hidden;
  line-height: 1.2;
  padding-bottom: 0.06em;
}
.hero-title-line-inner {
  display: block;
  transform: translateY(110%);
  animation: slideUp .9s var(--ease-in) forwards;
}
.hero-title-line:nth-child(1) .hero-title-line-inner { animation-delay: 1.0s; }
.hero-title-line:nth-child(2) .hero-title-line-inner { animation-delay: 1.15s; }
.hero-title em { font-style: italic; color: var(--red); }
.hero-title-line--desc {
  margin-top: 0.2rem;
  line-height: 1.35;
  padding-bottom: 0.12em;
}
.hero-title-line--desc .hero-title-line-inner {
  font-size: clamp(1.35rem, 2.6vw, 2.5rem);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 1.35;
  padding-bottom: 0.05em;
  color: var(--gray-light);
}
.hero-title-line--desc em {
  font-style: italic;
  color: var(--red);
}
.hero-sub {
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  font-weight: 300;
  color: var(--gray-light);
  max-width: 500px;
  line-height: 1.85;
  letter-spacing: .02em;
  margin-bottom: 52px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.45s forwards;
}
.hero-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.6s forwards;
}

/* Diagonal right panel */
.hero-panel {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 44%;
  z-index: 2;
  overflow: hidden;
}
.hero-panel::before {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: 0;
  background: var(--dark-1);
  clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
}
.hero-panel-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(90px 0, 100% 0, 100% 100%, 0 100%);
  padding-left: 100px;
}
.hero-shield-wrap {
  opacity: 0;
  animation: fadeUp .9s var(--ease) 1.3s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 44px; left: 64px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 18px;
  opacity: 0;
  animation: fadeUp .8s var(--ease) 1.9s forwards;
}
.scroll-bar {
  width: 52px; height: 1px;
  background: rgba(255,255,255,.15);
  position: relative;
  overflow: hidden;
}
.scroll-bar::after {
  content: '';
  position: absolute;
  top: 0; height: 100%;
  width: 100%;
  background: var(--red);
  transform: translateX(-100%);
  animation: barMove 2.2s ease-in-out 2.2s infinite;
}
@keyframes barMove {
  0%   { transform: translateX(-100%); }
  45%  { transform: translateX(0); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}
.scroll-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================
   MARQUEE STRIP
   ============================================ */
.marquee-strip {
  background: #B91C2C;
  padding: 13px 0;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}
.marquee-track {
  display: inline-flex;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.9);
  padding: 0 36px;
}
.marquee-track span.dot {
  color: rgba(255,255,255,.4);
  padding: 0;
  font-size: .5rem;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 15%; bottom: 15%;
  width: 1px;
  background: var(--border);
}
.stat-number {
  font-family: var(--font-d);
  font-size: clamp(2.8rem, 4.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 10px;
}
.stat-number .accent { color: var(--red); }
.stat-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gray);
}

/* ============================================
   SECTION BASE
   ============================================ */
.section {
  padding: 120px 64px;
  max-width: 1440px;
  margin: 0 auto;
}
.section-fw { padding: 120px 0; }
.section-fw .section-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 20px;
}
.section-tag::before {
  content: '';
  display: block;
  width: 32px; height: 1.5px;
  background: var(--red);
}
.section-title {
  font-family: var(--font-d);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--white);
  margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--red); }
.section-sub {
  font-size: .95rem;
  color: var(--gray);
  max-width: 520px;
  line-height: 1.85;
  margin-bottom: 64px;
}

/* ============================================
   SERVICE CARDS (index grid)
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
}
.service-card {
  background: var(--dark-1);
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background .4s;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2.5px;
  background: var(--red);
  transition: width .55s var(--ease);
}
.service-card:hover::after { width: 100%; }
.service-card:hover { background: var(--dark-2); }
.service-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 60%, rgba(160,24,40,.07) 0%, transparent 65%);
  opacity: 0;
  transition: opacity .4s;
}
.service-card:hover .service-glow { opacity: 1; }
.service-num {
  position: absolute;
  top: 22px; right: 26px;
  font-family: var(--font-d);
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255,255,255,.03);
  line-height: 1;
  transition: color .4s;
  pointer-events: none;
}
.service-card:hover .service-num { color: rgba(160,24,40,.06); }
.service-icon {
  width: 54px; height: 54px;
  border: 1px solid rgba(160,24,40,.3);
  background: rgba(160,24,40,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
  transition: background .4s, border-color .4s;
}
.service-card:hover .service-icon {
  background: rgba(160,24,40,.18);
  border-color: var(--red);
}
.service-icon svg { width: 24px; height: 24px; }
.service-title {
  font-family: var(--font-d);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 14px;
  line-height: 1.2;
}
.service-desc {
  font-size: .845rem;
  color: var(--gray);
  line-height: 1.75;
  margin-bottom: 30px;
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red);
  transition: gap .3s var(--ease);
}
.card-link:hover { gap: 16px; }
.card-link svg { width: 14px; height: 14px; }

/* Make entire service card clickable */
.service-card { cursor: pointer; }
.card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 10;
}

/* ============================================
   WHY US SECTION
   ============================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.feature-list { display: flex; flex-direction: column; gap: 0; }
.feature-item {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.feature-item:first-child { border-top: 1px solid var(--border); }
.feature-num {
  font-family: var(--font-d);
  font-size: 2.5rem;
  font-weight: 700;
  color: rgba(255,255,255,.08);
  line-height: 1;
  transition: color .4s;
}
.feature-item:hover .feature-num { color: var(--red); }
.feature-name {
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-desc {
  font-size: .845rem;
  color: var(--gray);
  line-height: 1.75;
}

/* ============================================
   CTA BAND
   ============================================ */
.cta-band {
  background: var(--red);
  padding: 88px 64px;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: '';
  position: absolute;
  top: -30%; right: -8%;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,255,255,.1) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band::after {
  content: '';
  position: absolute;
  bottom: -40%; left: 5%;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(0,0,0,.12) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}
.cta-band-inner {
  max-width: 1440px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  position: relative;
  z-index: 1;
}
.cta-band-title {
  font-family: var(--font-d);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.cta-band-sub {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  margin-top: 12px;
  font-weight: 300;
  letter-spacing: .02em;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  padding: 17px 38px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: background .3s, transform .3s, box-shadow .3s;
  flex-shrink: 0;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent);
  transition: left .5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--red-glow);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  padding: 16px 38px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  border: 1.5px solid rgba(255,255,255,.28);
  transition: border-color .3s, transform .3s;
  flex-shrink: 0;
}
.btn-outline:hover { border-color: #fff; transform: translateY(-2px); }
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: var(--red);
  padding: 18px 42px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .3s, box-shadow .3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.btn-red {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--red);
  color: #fff;
  padding: 18px 42px;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .3s, transform .3s, box-shadow .3s;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 40px var(--red-glow);
}

/* ============================================
   PAGE HERO (inner pages)
   ============================================ */
.page-hero {
  height: 52vh;
  min-height: 420px;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 80px;
}
.page-hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(ellipse 70% 80% at 55% 50%, rgba(160,24,40,.1) 0%, transparent 58%),
    linear-gradient(150deg, #1E1E1E 0%, #24000A 50%, #1E1E1E 100%);
  will-change: transform;
}
.page-hero-bg::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(
    0deg, transparent, transparent 48px,
    rgba(255,255,255,.02) 48px, rgba(255,255,255,.02) 49px
  ),
  repeating-linear-gradient(
    90deg, transparent, transparent 48px,
    rgba(255,255,255,.013) 48px, rgba(255,255,255,.013) 49px
  );
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
  width: 100%;
}
.page-breadcrumb {
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-breadcrumb .sep { color: rgba(255,255,255,.2); }
.page-breadcrumb .current { color: var(--red); }
.page-hero-title {
  font-family: var(--font-d);
  font-size: clamp(3.2rem, 6.5vw, 6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.0;
  letter-spacing: -.025em;
}
.page-hero-title em { font-style: italic; color: var(--red); }

/* ============================================
   INSURANCE PRODUCT CARDS (seguros page)
   ============================================ */
.insurance-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: var(--border);
  overflow: hidden;
}
.insurance-section.alt {
  direction: rtl;
}
.insurance-section.alt > * { direction: ltr; }
.ins-image {
  position: relative;
  min-height: 420px;
  overflow: hidden;
}
.ins-image-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .8s var(--ease);
}
.ins-image:hover .ins-image-bg { transform: scale(1.04); }
.ins-content {
  background: var(--dark-1);
  padding: 64px 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ins-icon-wrap {
  width: 58px; height: 58px;
  border: 1px solid rgba(160,24,40,.35);
  background: rgba(160,24,40,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}
.ins-icon-wrap svg { width: 26px; height: 26px; }
.ins-title {
  font-family: var(--font-d);
  font-size: 2.6rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -.02em;
}
.ins-desc {
  font-size: .88rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}
.ins-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 40px;
}
.ins-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--gray-light);
}
.ins-feature::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--red);
  flex-shrink: 0;
  transform: rotate(45deg);
}

/* Plans table */
.plans-section { background: var(--dark-2); }
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  overflow: hidden;
}
.plan-card {
  background: var(--dark-1);
  padding: 52px 40px;
  position: relative;
  transition: background .4s;
}
.plan-card.featured {
  background: var(--dark-3);
  border-top: 3px solid var(--red);
}
.plan-card:hover { background: var(--dark-2); }
.plan-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  background: var(--red);
  color: #fff;
  padding: 5px 12px;
  margin-bottom: 24px;
}
.plan-name {
  font-family: var(--font-d);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.plan-price {
  font-family: var(--font-d);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 32px;
}
.plan-price span { font-size: 1.2rem; font-weight: 400; color: var(--gray); }
.plan-period {
  font-size: .72rem;
  color: var(--gray);
  letter-spacing: .1em;
  margin-bottom: 36px;
  text-transform: uppercase;
}
.plan-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 44px;
}
.plan-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .82rem;
  color: var(--gray-light);
}
.plan-feature .check { color: var(--red); font-size: .9rem; }
.plan-feature .cross { color: var(--dark-3); filter: brightness(3); }

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 100px;
  align-items: start;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray-light);
}
.form-input, .form-select, .form-textarea {
  background: var(--dark-2);
  border: 1px solid var(--border);
  color: var(--white);
  font-family: var(--font-u);
  font-size: .88rem;
  font-weight: 400;
  padding: 16px 20px;
  outline: none;
  transition: border-color .3s, background .3s, box-shadow .3s;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  cursor: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red);
  background: var(--dark-3);
  box-shadow: 0 0 0 3px var(--red-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray); }
.form-select { color: var(--white); }
.form-select option { background: var(--dark-2); color: var(--white); }
.form-textarea { resize: none; height: 140px; }
.form-submit-wrap { grid-column: 1 / -1; }

/* Contact info */
.contact-info-card {
  background: var(--dark-2);
  border: 1px solid var(--border);
  padding: 48px 40px;
  position: sticky;
  top: 100px;
}
.contact-info-title {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 36px;
  line-height: 1.15;
}
.info-block {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.info-block:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.info-icon {
  width: 44px; height: 44px;
  background: rgba(160,24,40,.1);
  border: 1px solid rgba(160,24,40,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}
.info-icon svg { width: 18px; height: 18px; }
.info-label {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 6px;
}
.info-value {
  font-size: .9rem;
  color: var(--gray-light);
  line-height: 1.65;
}
.info-value a { color: var(--gray-light); transition: color .3s; }
.info-value a:hover { color: var(--red); }

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 60px 40px;
  background: var(--dark-2);
  border: 1px solid rgba(160,24,40,.3);
}
.form-success.visible { display: block; }

/* Form error message */
.form-error {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border: 1px solid rgba(160,24,40,.4);
  border-radius: 8px;
  background: rgba(160,24,40,.08);
  color: var(--red);
  font-size: .85rem;
  line-height: 1.6;
}
[data-theme="light"] .form-error {
  background: rgba(160,24,40,.06);
  border-color: rgba(160,24,40,.3);
}

.success-icon {
  width: 64px; height: 64px;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.5rem;
}
.success-title {
  font-family: var(--font-d);
  font-size: 2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}
.success-msg { font-size: .9rem; color: var(--gray); }

/* ============================================
   OFFICES PAGE
   ============================================ */
.offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  overflow: hidden;
}
.office-card {
  background: var(--dark-1);
  padding: 52px 44px;
  position: relative;
  overflow: hidden;
  transition: background .4s;
}
.office-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px; height: 0;
  background: var(--red);
  transition: height .3s var(--ease);
}
.office-card:hover::after { height: 100%; }
.office-badge {
  display: inline-block;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--red);
  border: 1px solid rgba(160,24,40,.4);
  padding: 5px 12px;
  margin-bottom: 24px;
}
.office-badge.main { background: var(--red); color: #fff; border-color: var(--red); }
.office-name {
  font-family: var(--font-d);
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 28px;
  line-height: 1.2;
}
.office-detail {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.office-detail-icon {
  color: var(--red);
  width: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.office-detail-text {
  font-size: .85rem;
  color: var(--gray);
  line-height: 1.6;
}
.office-hours {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}
.office-hours-title {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 14px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: .8rem;
  color: var(--gray-light);
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hours-row:last-child { border-bottom: none; }
.hours-row .day { color: var(--gray); }
.hours-row .time { color: var(--gray-light); font-weight: 500; }
.hours-row .closed { color: rgba(160,24,40,.7); }

/* Map placeholder */
.map-placeholder {
  height: 400px;
  background: var(--dark-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.map-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.025) 40px, rgba(255,255,255,.025) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.025) 40px, rgba(255,255,255,.025) 41px);
}
.map-pin {
  position: relative;
  z-index: 1;
  text-align: center;
  background: rgba(10,10,10,.82);
  padding: 18px 28px 16px;
  border: 1px solid rgba(255,255,255,.08);
}
.map-pin-icon {
  width: 48px; height: 48px;
  background: var(--red);
  clip-path: polygon(50% 0, 100% 30%, 100% 75%, 50% 100%, 0 75%, 0 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.2rem;
}
.map-pin-text {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
}

/* ============================================
   DIVIDERS
   ============================================ */
.divider {
  height: 1px;
  background: var(--border);
  margin: 0 64px;
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 88px 64px 44px;
}
.footer-inner { max-width: 1440px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.6fr;
  gap: 64px;
  margin-bottom: 64px;
}
.footer-brand .nav-logo { margin-bottom: 22px; }
.footer-brand .logo-img { height: 68px; }
.footer-desc {
  font-size: .845rem;
  color: var(--gray);
  line-height: 1.85;
  max-width: 290px;
  margin-bottom: 32px;
}
.footer-col-title {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 26px;
}
.footer-col-links {
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-col-links a {
  font-size: .845rem;
  color: var(--gray);
  transition: color .3s, transform .3s;
  display: inline-block;
}
.footer-col-links a:hover { color: var(--white); transform: translateX(6px); }
.footer-contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 18px;
}
.footer-contact-row svg { color: var(--red); width: 15px; height: 15px; flex-shrink: 0; margin-top: 3px; }
.footer-contact-row span { font-size: .845rem; color: var(--gray); line-height: 1.6; }
.footer-contact-row a { color: var(--gray); transition: color .3s; }
.footer-contact-row a:hover { color: var(--red); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-copy {
  font-size: .72rem;
  color: var(--gray);
  letter-spacing: .04em;
}
.footer-copy strong { color: var(--red); font-weight: 600; }
.footer-legal {
  display: flex;
  gap: 28px;
}
.footer-legal a { font-size: .72rem; color: var(--gray); transition: color .3s; }
.footer-legal a:hover { color: var(--white); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}
.reveal.on, .reveal-left.on, .reveal-right.on { opacity: 1; transform: none; }
[data-d="1"] { transition-delay: .1s; }
[data-d="2"] { transition-delay: .2s; }
[data-d="3"] { transition-delay: .3s; }
[data-d="4"] { transition-delay: .4s; }
[data-d="5"] { transition-delay: .5s; }
[data-d="6"] { transition-delay: .6s; }

/* ============================================
   KEYFRAME ANIMATIONS
   ============================================ */
@keyframes slideUp {
  to { transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Shield SVG animations */
.shield-scan {
  animation: shieldScan 3s ease-in-out infinite;
}
.shield-ring {
  animation: shieldRing 4s ease-in-out infinite;
}
.shield-dot {
  animation: shieldDot 2.5s ease-in-out infinite;
}
@keyframes shieldScan {
  0%   { transform: translateY(-220px); opacity: 0; }
  15%  { opacity: .7; }
  85%  { opacity: .7; }
  100% { transform: translateY(220px); opacity: 0; }
}
@keyframes shieldRing {
  0%, 100% { opacity: .3; r: 135; }
  50%       { opacity: .6; r: 140; }
}
@keyframes shieldDot {
  0%, 100% { opacity: .5; transform: scale(1); }
  50%       { opacity: 1; transform: scale(1.8); }
}

/* ============================================
   THEME TOGGLE BUTTON
   ============================================ */
.theme-toggle {
  width: 36px; height: 36px;
  border: 1.5px solid var(--border);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  transition: color .3s, border-color .3s, background .3s;
  flex-shrink: 0;
  cursor: none;
  margin-left: 4px;
}
.theme-toggle:hover {
  color: var(--white);
  border-color: var(--red);
  background: rgba(160,24,40,.08);
}
.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }
.theme-icon-sun  { display: block; }
.theme-icon-moon { display: none; }
[data-theme="light"] .theme-icon-sun  { display: none; }
[data-theme="light"] .theme-icon-moon { display: block; }

/* ============================================
   LIGHT MODE
   ============================================ */
[data-theme="light"] {
  --black:      #F4F3F1;
  --dark-1:     #FFFFFF;
  --dark-2:     #EEECEA;
  --dark-3:     #E3E1DF;
  --border:     rgba(0,0,0,0.09);
  --gray:       #666666;
  --gray-light: #3A3A3A;
  --off-white:  #1E1E1E;
  --white:      #0F0F0F;
  --red-glow:   rgba(160,24,40,0.12);
}

[data-theme="light"] .hero-bg {
  background:
    radial-gradient(ellipse 80% 70% at 65% 40%, rgba(160,24,40,.08) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 70%, rgba(160,24,40,.04) 0%, transparent 50%),
    linear-gradient(150deg, #F0EEEC 0%, #EAE5E6 45%, #F0EEEC 100%);
}
[data-theme="light"] .page-hero-bg {
  background:
    radial-gradient(ellipse 70% 80% at 55% 50%, rgba(160,24,40,.08) 0%, transparent 58%),
    linear-gradient(150deg, #F0EEEC 0%, #EAE5E6 50%, #F0EEEC 100%);
}
[data-theme="light"] .hero-bg::before,
[data-theme="light"] .page-hero-bg::before {
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(0,0,0,.03) 48px, rgba(0,0,0,.03) 49px),
    repeating-linear-gradient(90deg, transparent, transparent 48px, rgba(0,0,0,.018) 48px, rgba(0,0,0,.018) 49px);
}
[data-theme="light"] .navbar.scrolled {
  background: rgba(244,243,241,.95);
}
[data-theme="light"] .scroll-bar { background: rgba(0,0,0,.12); }
[data-theme="light"] .service-num { color: rgba(0,0,0,.04); }
[data-theme="light"] .service-card:hover .service-num { color: rgba(160,24,40,.07); }
[data-theme="light"] .feature-num { color: rgba(0,0,0,.08); }
[data-theme="light"] .btn-outline { color: var(--off-white); border-color: rgba(0,0,0,.22); }
[data-theme="light"] .btn-outline:hover { border-color: var(--off-white); }
[data-theme="light"] .page-breadcrumb .sep { color: rgba(0,0,0,.2); }
[data-theme="light"] .hours-row { border-bottom-color: rgba(0,0,0,.06); }
[data-theme="light"] .map-placeholder::before {
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(0,0,0,.04) 40px, rgba(0,0,0,.04) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(0,0,0,.04) 40px, rgba(0,0,0,.04) 41px);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .stat-item:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; }
  .offices-grid { grid-template-columns: repeat(2, 1fr); }
  .insurance-section { grid-template-columns: 1fr; }
  .insurance-section .ins-image { min-height: 280px; }
  .insurance-section.alt { direction: ltr; }
  .why-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .contact-info-card { position: static; }
  .plans-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 20px 24px; }
  .navbar.scrolled { padding: 16px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .hero-content, .section, .stats-inner,
  .cta-band, footer, .divider,
  .section-fw .section-inner,
  .page-hero-content { padding-left: 24px; padding-right: 24px; }

  .section, .section-fw { padding-top: 60px; padding-bottom: 60px; }
  .section-fw .section-inner { padding-top: 0; padding-bottom: 0; }

  .hero-content { padding-top: 100px; }

  .cta-band { padding: 48px 24px; }
  footer { padding: 48px 24px 32px; }
  .divider { margin: 0 24px; }
  .hero-panel { display: none; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); padding: 40px 24px; }
  .stat-item::after { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .offices-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-direction: column; align-items: center; gap: 14px; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .cursor, .cursor-ring { display: none; }
  body { cursor: auto; }
  button, a { cursor: pointer; }
  .theme-toggle { cursor: pointer; }
  .hero-scroll { display: none; }
  .ins-content { padding: 36px 24px; }

  .hero {
    align-items: flex-start;
    min-height: auto;
    padding-top: 100px;
    padding-bottom: 60px;
  }
  .hero-content {
    padding-top: 0;
  }

  .navbar {
    gap: 12px;
  }
  .nav-logo {
    margin-right: auto;
  }
  .theme-toggle {
    margin-left: 0;
  }
  .logo-img {
    height: 36px;
  }
  .footer-brand .logo-img {
    height: 48px;
  }

  .mobile-drawer {
    padding: 80px 32px 40px;
    width: min(320px, 80vw);
  }
  .mobile-drawer a {
    font-size: 1.8rem;
    padding: 12px 0;
  }

  .page-hero {
    height: auto;
    min-height: 240px;
    padding-top: 80px;
    padding-bottom: 32px;
  }

  /* Font size overrides */
  .hero-title { font-size: clamp(2.4rem, 6vw, 7.5rem); }
  .hero-title-line--desc .hero-title-line-inner {
    font-size: clamp(1.1rem, 3.5vw, 2.5rem);
  }
  .page-hero-title { font-size: clamp(2.2rem, 5vw, 6rem); }
  .section-title { font-size: clamp(2rem, 4vw, 4.8rem); }
  .stat-number { font-size: clamp(2.2rem, 3.5vw, 4.5rem); }
  .cta-band-title { font-size: clamp(1.8rem, 3.5vw, 3.8rem); }
  .ins-title { font-size: 2rem; }
  .plan-price { font-size: 2.8rem; }

  /* Card padding overrides */
  .office-card, .plan-card, .contact-info-card, .transport-card, .assist-card {
    padding: 36px 24px;
  }
  .main-map-sidebar { padding: 36px 24px; }

  /* Grid gaps */
  .why-grid { gap: 40px; }
  .contact-layout { gap: 40px; }
  .partners-strip { padding: 60px 0; }
  .partners-inner { padding: 0 24px; }

  /* Mobile drawer open state */
  body.drawer-open .navbar {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
  }
  body.drawer-open .nav-logo,
  body.drawer-open .theme-toggle {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
  }
}

/* ---- Accesibilidad: movimiento reducido ---- */
@media (prefers-reduced-motion: reduce) {
  /* Ocultar cursor personalizado y cortina de transición */
  .cursor,
  .cursor-ring,
  .page-curtain { display: none !important; }

  /* Desactivar todas las animaciones y transiciones */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  /* Desactivar parallax del hero */
  .hero-bg,
  .page-hero-bg,
  .hph-photo { transform: none !important; will-change: auto !important; }

  /* Mostrar elementos .reveal directamente sin animación */
  .reveal,
  .reveal-left,
  .reveal-right { opacity: 1 !important; transform: none !important; }

  /* Desactivar tilt 3D de tarjetas */
  .service-card,
  .office-card,
  .plan-card { transform: none !important; transition: none !important; }
}

/* ============================================
   COOKIE CONSENT BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100000;
  padding: 20px 24px;
  background: rgba(30, 30, 30, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  opacity: 0.96;
  pointer-events: auto;
}
.cookie-banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cookie-banner-title {
  font-family: var(--font-u);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #f5f5f5;
  margin-bottom: 6px;
}
.cookie-banner-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray-light);
  max-width: 680px;
}
.cookie-banner-desc a {
  color: #f5f5f5;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.3s;
}
.cookie-banner-desc a:hover { color: var(--red); }
.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}
.cookie-btn {
  font-family: var(--font-u);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 12px 22px;
  border: 1px solid var(--border);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.cookie-btn-reject {
  background: transparent;
  color: var(--gray-light);
}
.cookie-btn-reject:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}
.cookie-btn-accept {
  background: var(--red);
  color: #ffffff;
  border-color: var(--red);
}
.cookie-btn-accept:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #ffffff;
}
.cookie-btn:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.cookie-settings-link {
  font-family: var(--font-u);
  font-size: 0.72rem;
  color: var(--gray);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.3s;
}
.cookie-settings-link:hover { color: var(--white); }
.cookie-settings-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.cookie-settings-floating {
  position: fixed;
  bottom: 16px;
  left: 16px;
  z-index: 99998;
  font-size: 0.68rem;
  opacity: 0.6;
}
.cookie-settings-floating:hover { opacity: 1; }

[data-theme="light"] .cookie-banner {
  background: rgba(255, 255, 255, 0.85);
  border-top-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .cookie-banner-title { color: #1e1e1e; }
[data-theme="light"] .cookie-banner-desc { color: #555; }
[data-theme="light"] .cookie-banner-desc a { color: #1e1e1e; }
[data-theme="light"] .cookie-banner-desc a:hover { color: var(--red); }
[data-theme="light"] .cookie-btn-reject {
  color: #555;
  border-color: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] .cookie-btn-reject:hover {
  color: #1e1e1e;
  border-color: rgba(0, 0, 0, 0.3);
}
[data-theme="light"] .cookie-settings-link { color: var(--gray); }
[data-theme="light"] .cookie-settings-link:hover { color: var(--black); }

@media (max-width: 768px) {
  .cookie-banner { padding: 18px 16px 20px; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-btn {
    flex: 1;
    text-align: center;
    padding: 13px 16px;
  }
  .cookie-settings-floating {
    bottom: 12px;
    left: 12px;
  }
}
