/* =====================================================================
   SEGURIDAD MERLYN SpA · MMG Seguridad SpA
   Sistema de estilos global — "Poder Silencioso"
   Máximo negro + mínimo dorado = máximo impacto
   ===================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --color-black:       #050A0F;
  --color-navy:        #0A1628;
  --color-gold:        #C9A84C;
  --color-gold-light:  #E8C97A;
  --color-steel:       #3A4A5C;
  --color-white:       #F0F4F8;
  --color-text-muted:  #8A9BB0;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'Space Mono', 'Roboto Mono', monospace;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 4px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ---------- HELPERS ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4rem, 9vw, 8rem); }
.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: clamp(0.65rem, 1.2vw, 0.78rem);
  color: var(--color-gold);
  font-weight: 700;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: var(--color-white);
  margin-top: 0.75rem;
}
.section-intro {
  color: var(--color-text-muted);
  max-width: 60ch;
  margin-top: 1.1rem;
  font-size: 1.05rem;
}
.text-gold { color: var(--color-gold); }

/* Ancla bajo navbar fija */
#servicios, #por-que, #cotizador, #especialidades, #galeria { scroll-margin-top: 96px; }

/* Selección de texto y scrollbar de marca */
::selection { background: rgba(201,168,76,0.35); color: var(--color-white); }
html { scrollbar-width: thin; scrollbar-color: var(--color-gold) var(--color-black); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--color-black); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--color-gold), var(--color-steel)); border-radius: 6px; border: 2px solid var(--color-black); }
::-webkit-scrollbar-thumb:hover { background: var(--color-gold-light); }

/* Textura de grano — profundidad cinematográfica sutil, global */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  opacity: 0.035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Cursor personalizado de marca (solo escritorio con mouse; respeta reduced-motion) */
.has-custom-cursor, .has-custom-cursor a, .has-custom-cursor button,
.has-custom-cursor .service-card, .has-custom-cursor .gallery figure { cursor: none; }
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 15000; border-radius: 50%; will-change: transform; }
.cursor-dot { width: 6px; height: 6px; margin: -3px; background: var(--color-gold); }
.cursor-ring {
  width: 34px; height: 34px; margin: -17px;
  border: 1px solid rgba(201,168,76,0.55);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.is-active { width: 58px; height: 58px; margin: -29px; background: rgba(201,168,76,0.08); border-color: var(--color-gold-light); }
.cursor-ring.is-down { width: 24px; height: 24px; margin: -12px; }
@media (max-width: 900px), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  .has-custom-cursor, .has-custom-cursor * { cursor: auto !important; }
}

/* Transición de entrada/salida entre páginas */
body.page-exit { animation: pageExit 0.36s ease forwards; }
@keyframes pageExit { to { opacity: 0; filter: blur(2px); transform: scale(0.985); } }

/* Barra de confianza / acreditaciones */
.trust-bar { background: var(--color-black); border-bottom: 1px solid rgba(201,168,76,0.12); padding-block: 1.1rem; position: relative; z-index: 3; }
.trust-bar-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem 1.1rem; }
.trust-item { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-text-muted); white-space: nowrap; }
.trust-sep { color: rgba(201,168,76,0.4); }
@media (max-width: 768px) { .trust-bar-inner { gap: 0.6rem 0.8rem; } .trust-item { font-size: 0.6rem; } }

/* Ornamento divisor de marca entre secciones */
.divider-mark { display: flex; align-items: center; justify-content: center; gap: 1rem; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.divider-mark svg { width: 20px; height: 23px; opacity: 0.8; flex-shrink: 0; }
.divider-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(201,168,76,0.35), transparent); max-width: 340px; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.9rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: all 0.3s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-gold);
  color: var(--color-black);
  border-color: var(--color-gold);
}
.btn-primary:hover {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
  box-shadow: 0 0 30px rgba(201,168,76,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--color-gold);
  border-color: var(--color-gold);
}
.btn-secondary:hover {
  background: var(--color-gold);
  color: var(--color-black);
}

/* =====================================================================
   PRELOADER (entrada de marca)
   ===================================================================== */
.preloader {
  position: fixed; inset: 0; z-index: 20000;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 45%, #0A1628 0%, #050A0F 70%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.preloader-logo {
  width: 110px; height: 110px; border-radius: 14px;
  background: url('../assets/logo-icono.png') center / contain no-repeat;
  filter: drop-shadow(0 0 26px rgba(201,168,76,0.35));
  animation: preFloat 2.4s ease-in-out infinite;
}
@keyframes preFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.preloader-text {
  font-family: var(--font-display); font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--color-white); font-size: 1.15rem;
}
.preloader-bar { width: 180px; height: 2px; background: rgba(201,168,76,0.18); border-radius: 2px; overflow: hidden; }
.preloader-bar span { display: block; height: 100%; width: 40%; background: var(--color-gold); border-radius: 2px; animation: preBar 1.1s ease-in-out infinite; }
@keyframes preBar { 0% { transform: translateX(-130%); } 100% { transform: translateX(360%); } }

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 1100;
  background: linear-gradient(90deg, var(--color-gold), var(--color-gold-light));
  box-shadow: 0 0 10px rgba(201,168,76,0.5);
}

/* Línea de escaneo del hero */
.hero-scan { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.hero-scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 2px; top: -5%;
  background: linear-gradient(90deg, transparent, rgba(201,168,76,0.55), transparent);
  box-shadow: 0 0 12px rgba(201,168,76,0.4);
  animation: scanMove 7s ease-in-out infinite;
}
@keyframes scanMove { 0% { top: -5%; } 50% { top: 105%; } 100% { top: -5%; } }

/* =====================================================================
   NAVBAR
   ===================================================================== */
.navbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  background: rgba(5,10,15,0.95);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201,168,76,0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.navbar.scrolled { box-shadow: 0 8px 30px rgba(0,0,0,0.35); border-bottom-color: rgba(201,168,76,0.22); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.3s var(--ease);
}
.navbar.scrolled .nav-inner { height: 64px; }
.brand { display: flex; align-items: center; gap: 0; }
/* Logo oficial de la marca (reemplaza el escudo placeholder) */
.brand svg, .brand .brand-text { display: none !important; }
.brand::before {
  content: "";
  display: block;
  width: 52px; height: 52px; border-radius: 10px;
  background: url('../assets/logo-icono.png') center / cover no-repeat;
}
.footer-brand .brand::before { width: 120px; height: 120px; border-radius: 14px; background-image: url('../assets/logo-oficial.png'); }
.brand svg { width: 38px; height: 44px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-white);
  letter-spacing: 0.02em;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.25em;
  color: var(--color-gold);
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  position: relative;
  font-size: 0.9rem;
  color: var(--color-white);
  padding-block: 0.3rem;
  transition: color 0.25s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: var(--color-gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { margin-left: 0.5rem; }
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px; height: 2px;
  background: var(--color-gold);
  transition: all 0.3s ease;
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(115deg, rgba(5,10,15,0.92) 0%, rgba(10,22,40,0.78) 60%, rgba(5,10,15,0.85) 100%),
    radial-gradient(ellipse at 70% 20%, rgba(58,74,92,0.35), transparent 60%),
    var(--color-navy);
  background-attachment: fixed;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(115deg, transparent, transparent 38px, rgba(201,168,76,0.025) 39px, rgba(201,168,76,0.025) 40px);
  pointer-events: none;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.35;
}

/* Imagen de fondo del hero / subhero (con overlay para contraste) */
.page-bg {
  position: absolute;
  left: 0; right: 0;
  top: -10%; height: 120%;   /* margen extra para el parallax GSAP */
  z-index: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(5,10,15,0.86) 0%, rgba(10,22,40,0.60) 55%, rgba(5,10,15,0.82) 100%);
}
.hero-content { position: relative; z-index: 2; padding-top: 78px; max-width: 900px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.25rem, 8vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin: 1.5rem 0;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero p.lead {
  color: var(--color-text-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 56ch;
  margin-bottom: 2.2rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  z-index: 2;
}
.scroll-indicator span {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 50px;
  background: linear-gradient(var(--color-gold), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: "";
  position: absolute;
  top: -50%; left: 0;
  width: 100%; height: 50%;
  background: var(--color-gold);
  animation: scrollPulse 2s var(--ease) infinite;
}
@keyframes scrollPulse {
  0%   { top: -50%; }
  100% { top: 100%; }
}

/* Hero entrance animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.from-left { transform: translateX(-30px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Sequenced hero reveals */
.hero [data-seq] { opacity: 0; transform: translateY(26px); }
.hero.loaded [data-seq] {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.hero.loaded [data-seq="1"] { transition-delay: 0.05s; }
.hero.loaded [data-seq="2"] { transition-delay: 0.2s; }
.hero.loaded [data-seq="3"] { transition-delay: 0.4s; }
.hero.loaded [data-seq="4"] { transition-delay: 0.6s; }
.hero.loaded [data-seq="5"] { transition-delay: 0.8s; }
.hero.loaded [data-seq="6"] { transition-delay: 1s; }

/* =====================================================================
   SERVICE CARDS (3D)
   ===================================================================== */
.cards-head { margin-bottom: 3.5rem; max-width: 70ch; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  perspective: 1400px;
}
.service-card {
  position: relative;
  background: linear-gradient(160deg, rgba(10,22,40,0.9), rgba(5,10,15,0.95));
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: 6px;
  padding: 2.5rem 2rem;
  transform-style: preserve-3d;
  transition: transform 0.25s var(--ease), box-shadow 0.4s ease, border-color 0.4s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  box-shadow: 0 32px 64px rgba(0,0,0,0.6), 0 0 40px rgba(201,168,76,0.15);
  border-color: rgba(201,168,76,0.5);
}
@media (pointer: coarse) {
  .service-card:hover { transform: translateY(-8px); }
}
.service-card .card-photo {
  margin: -2.5rem -2rem 1.6rem;
  height: 210px;
  overflow: hidden;
  border-radius: 6px 6px 0 0;
  border-bottom: 1px solid rgba(201,168,76,0.25);
  position: relative;
}
.service-card .card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,15,0.05) 40%, rgba(5,10,15,0.75) 100%);
}
.service-card .card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  display: block;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .card-photo img { transform: scale(1.06); }
.service-card .card-icon { color: var(--color-gold); margin-bottom: 1.4rem; }
.service-card .card-icon svg { width: 48px; height: 48px; }
.service-card .eyebrow { margin-bottom: 0.8rem; }
.service-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--color-white);
}
.service-card p.desc { color: var(--color-text-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.service-list { margin-bottom: 1.8rem; display: flex; flex-direction: column; gap: 0.65rem; }
.service-list li {
  position: relative;
  padding-left: 1.3rem;
  font-size: 0.9rem;
  color: var(--color-white);
}
.service-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 14px; height: 2px;
  background: var(--color-gold);
}
.card-link {
  margin-top: auto;
  color: var(--color-gold);
  font-weight: 600;
  font-size: 0.92rem;
  position: relative;
  width: fit-content;
}
.card-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 0; height: 1.5px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease);
}
.card-link:hover::after { width: 100%; }

/* =====================================================================
   STATS / CIFRAS
   ===================================================================== */
.stats {
  background:
    linear-gradient(rgba(5,10,15,0.85), rgba(5,10,15,0.85)),
    var(--color-navy);
  border-block: 1px solid rgba(201,168,76,0.15);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1;
  color: var(--color-gold);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-top: 0.8rem;
}
.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -1rem; top: 15%;
  height: 70%; width: 1px;
  background: rgba(201,168,76,0.18);
}

/* =====================================================================
   DIFERENCIADORES
   ===================================================================== */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}
.diff-block {
  background: linear-gradient(160deg, rgba(10,22,40,0.55), rgba(5,10,15,0.5));
  border: 1px solid rgba(58,74,92,0.4);
  border-left: 3px solid var(--color-gold);
  border-radius: 4px;
  padding: 2rem;
  transition: border-color 0.3s ease, transform 0.3s var(--ease);
}
.diff-block:hover { transform: translateY(-5px); border-color: rgba(201,168,76,0.4); border-left-color: var(--color-gold-light); }
.diff-block .diff-icon { color: var(--color-gold); margin-bottom: 1rem; }
.diff-block .diff-icon svg { width: 36px; height: 36px; }
.diff-block h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 0.7rem;
  color: var(--color-white);
}
.diff-block p { color: var(--color-text-muted); font-size: 0.95rem; }

/* =====================================================================
   COTIZADOR
   ===================================================================== */
.quoter {
  background: var(--color-navy);
  border-top: 3px solid var(--color-gold);
}
.quoter-head { text-align: center; margin-bottom: 3rem; }
.quoter-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: var(--color-white);
}
.quoter-head p { color: var(--color-text-muted); margin-top: 0.8rem; font-size: 1.05rem; }
.quoter-form {
  max-width: 820px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.field label .req { color: var(--color-gold); }
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(138,155,176,0.6); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255,255,255,0.08);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}
.field select option { background: var(--color-navy); color: var(--color-white); }
.field textarea { resize: vertical; min-height: 110px; }
.quoter-submit { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 1rem; margin-top: 0.5rem; }
.btn-quoter {
  background: var(--color-gold);
  color: var(--color-black);
  font-weight: 700;
  font-size: 1rem;
  padding: 1.05rem 2.6rem;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius);
  transition: all 0.3s var(--ease);
}
.btn-quoter:hover:not(:disabled) {
  box-shadow: 0 0 35px rgba(201,168,76,0.55);
  transform: translateY(-2px);
}
.btn-quoter:disabled { opacity: 0.6; cursor: progress; }
.quoter-note { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.05em; color: var(--color-text-muted); text-align: center; }

/* Mensajes resultado */
#msg-resultado, .msg-box { grid-column: 1 / -1; }
.msg-exito, .msg-error {
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.msg-exito {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.45);
  color: #dffce9;
}
.msg-error {
  background: rgba(201,76,76,0.1);
  border: 1px solid rgba(201,76,76,0.45);
  color: #ffe2e2;
}
.msg-exito a, .msg-error a { color: var(--color-gold); text-decoration: underline; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer {
  background: var(--color-black);
  border-top: 1px solid rgba(201,168,76,0.12);
  padding-block: 4rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1rem; }
.footer-brand p { color: var(--color-text-muted); font-size: 0.9rem; max-width: 32ch; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { color: var(--color-text-muted); font-size: 0.9rem; transition: color 0.25s ease; }
.footer-col a:hover { color: var(--color-gold); }
.footer-contact-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.wa-inline { display: inline-flex; align-items: center; color: var(--color-gold); }
.wa-inline svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(58,74,92,0.3);
  padding-top: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.8rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

/* =====================================================================
   WHATSAPP FLOAT
   ===================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9999;
  width: 60px; height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: waPulse 2.6s ease-in-out infinite;
}
.whatsapp-float svg { width: 32px; height: 32px; }
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
  animation: none;
}
@keyframes waPulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 20px rgba(37,211,102,0.4), 0 0 0 12px rgba(37,211,102,0); }
}

/* =====================================================================
   SUBPÁGINAS — heros / secciones
   ===================================================================== */
.subhero {
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 4rem;
  background:
    linear-gradient(120deg, rgba(5,10,15,0.93), rgba(10,22,40,0.82)),
    var(--color-navy);
  background-attachment: fixed;
}
.subhero .container { position: relative; z-index: 2; padding-top: 120px; }
.subhero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.02;
  margin: 1rem 0;
  max-width: 18ch;
}
.subhero p { color: var(--color-text-muted); max-width: 56ch; font-size: 1.1rem; }
.back-home {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 1rem;
}
.back-home:hover { color: var(--color-gold-light); }

/* Detalle de servicio 2 columnas */
.detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 4rem;
}
.detail-row:nth-child(even) .detail-media { order: 2; }
.detail-media {
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.2);
  background:
    linear-gradient(160deg, rgba(10,22,40,0.9), rgba(5,10,15,0.95));
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(201,168,76,0.5);
}
.detail-media svg { width: 90px; height: 90px; }
.detail-media { overflow: hidden; padding: 0; }
.detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  margin-bottom: 1rem;
}
.detail-text p { color: var(--color-text-muted); margin-bottom: 1rem; }
.detail-text ul { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 1rem; }
.detail-text ul li { position: relative; padding-left: 1.4rem; font-size: 0.95rem; }
.detail-text ul li::before {
  content: "";
  position: absolute; left: 0; top: 0.6em;
  width: 14px; height: 2px; background: var(--color-gold);
}

/* Tabla comparativa / cursos */
.table-wrap { overflow-x: auto; margin-top: 2.5rem; border: 1px solid rgba(201,168,76,0.15); border-radius: 6px; }
table.merlyn {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
table.merlyn th {
  background: rgba(201,168,76,0.08);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-gold);
  text-align: left;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(201,168,76,0.2);
}
table.merlyn td {
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
  color: var(--color-white);
  border-bottom: 1px solid rgba(58,74,92,0.25);
  vertical-align: top;
}
table.merlyn tr:last-child td { border-bottom: 0; }
table.merlyn td:first-child { color: var(--color-gold-light); font-weight: 600; }

/* Acordeón */
.accordion { margin-top: 2.5rem; display: flex; flex-direction: column; gap: 0.8rem; }
.acc-item { border: 1px solid rgba(201,168,76,0.18); border-radius: 5px; overflow: hidden; background: rgba(10,22,40,0.4); }
.acc-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  padding: 1.3rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.acc-trigger .acc-mark { color: var(--color-gold); font-size: 1.5rem; transition: transform 0.3s ease; flex-shrink: 0; }
.acc-item.open .acc-mark { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.acc-panel-inner { padding: 0 1.5rem 1.5rem; color: var(--color-text-muted); }
.acc-panel-inner ul { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.5rem; }
.acc-panel-inner li { position: relative; padding-left: 1.3rem; }
.acc-panel-inner li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 12px; height: 2px; background: var(--color-gold); }

/* CTA band */
.cta-band {
  text-align: center;
  background: linear-gradient(rgba(5,10,15,0.8), rgba(5,10,15,0.8)), var(--color-navy);
  border-block: 1px solid rgba(201,168,76,0.15);
}
.cta-band h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,4.5vw,3.2rem); margin-bottom: 1rem; }
.cta-band p { color: var(--color-text-muted); max-width: 50ch; margin: 0 auto 2rem; }

/* =====================================================================
   GALERÍA K9 + LIGHTBOX
   ===================================================================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
}
.gallery figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(201,168,76,0.2);
  cursor: pointer;
  aspect-ratio: 4 / 3;
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s var(--ease); }
.gallery figure:hover img { transform: scale(1.08); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem 1rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.05em;
  color: var(--color-white);
  background: linear-gradient(transparent, rgba(5,10,15,0.92));
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.gallery figure:hover figcaption { opacity: 1; transform: none; }
.gallery figure::after {
  content: "⤢";
  position: absolute; top: 0.6rem; right: 0.8rem;
  color: var(--color-gold); font-size: 1.15rem;
  opacity: 0; transition: opacity 0.3s ease;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
}
.gallery figure:hover::after { opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(5,10,15,0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: 92vw; max-height: 82vh;
  border-radius: 6px; border: 1px solid rgba(201,168,76,0.4);
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
  transform: scale(0.96); transition: transform 0.35s var(--ease);
}
.lightbox.open img { transform: scale(1); }
.lightbox-caption {
  position: absolute; bottom: 1.4rem; left: 0; right: 0;
  text-align: center; font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em; color: var(--color-text-muted);
}
.lb-btn {
  position: absolute; background: rgba(201,168,76,0.12);
  border: 1px solid rgba(201,168,76,0.4); color: var(--color-gold);
  width: 52px; height: 52px; border-radius: 50%;
  font-size: 1.5rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.25s ease, transform 0.25s ease, color 0.25s ease;
}
.lb-btn:hover { background: var(--color-gold); color: var(--color-black); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.08); }
@media (max-width: 768px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .lb-prev { left: 0.5rem; } .lb-next { right: 0.5rem; }
}
@media (max-width: 480px) { .gallery { grid-template-columns: 1fr; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    inset: 78px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: rgba(5,10,15,0.98);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 1rem 0;
    transform: translateY(-120%);
    transition: transform 0.35s var(--ease);
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { width: 100%; padding: 1rem var(--gutter); }
  .nav-links .nav-cta { margin: 0.5rem var(--gutter); }
  .nav-toggle { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1rem; }
  .stat-item::after { display: none !important; }
  .diff-grid { grid-template-columns: 1fr; }
  .quoter-form { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-row:nth-child(even) .detail-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { background-attachment: scroll; }
  .subhero { background-attachment: scroll; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .whatsapp-float { width: 54px; height: 54px; bottom: 1.25rem; right: 1.25rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
}

/* =====================================================================
   FIXES CONVERSIÓN v7 — hero con foto, botones WA, mini-form
   ===================================================================== */

/* Hero con foto: suavizar overlay para que la foto se vea */
.hero-photo {
  background: var(--color-black) !important;
}
.hero-photo .page-bg::after {
  background: linear-gradient(100deg,
    rgba(5,10,15,0.88) 0%,
    rgba(5,10,15,0.72) 38%,
    rgba(5,10,15,0.45) 68%,
    rgba(5,10,15,0.25) 100%) !important;
}

/* Botón WhatsApp del hero */
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.5rem;
  background: #25D366;
  color: #0A1628;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.28);
}
.btn-whatsapp:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 14px 32px rgba(37, 211, 102, 0.4);
}
.btn-whatsapp svg { flex-shrink: 0; }

/* Botones pequeños en tarjetas de servicio */
.card-cta {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}
.btn-sm {
  padding: 0.65rem 1.1rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.1em !important;
  flex: 1 1 auto;
  text-align: center;
  justify-content: center;
}

/* Mini-form rápido */
.quick-contact {
  background: linear-gradient(135deg, rgba(201,168,76,0.08), rgba(10,22,40,0.4));
  border: 1px solid rgba(201,168,76,0.3);
  border-left: 3px solid var(--color-gold);
  padding: 2rem 2rem 1.5rem;
  border-radius: 4px;
  margin-bottom: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.quick-contact-text .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  text-transform: uppercase;
  margin: 0 0 0.4rem;
}
.quick-contact-text h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  margin: 0;
  color: var(--color-white);
  line-height: 1.1;
}
.quick-contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 0.6rem;
}
.quick-contact-form input {
  padding: 0.85rem 1rem;
  background: rgba(5,10,15,0.6);
  border: 1px solid rgba(201,168,76,0.25);
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  border-radius: 3px;
  min-width: 0;
}
.quick-contact-form input:focus {
  outline: none;
  border-color: var(--color-gold);
}
.quick-contact-form button {
  white-space: nowrap;
  padding: 0.85rem 1.4rem;
}
.quick-contact-note {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin: 0;
}
.quick-contact-note a {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
}
.quick-contact-note.ok { color: var(--color-gold); }
.quick-contact-note.err { color: #e74c3c; }

.quoter-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 2rem;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.quoter-divider::before,
.quoter-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(201,168,76,0.2);
}

/* Responsive mini-form */
@media (max-width: 820px) {
  .quick-contact-form { grid-template-columns: 1fr 1fr; }
  .quick-contact-form button { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .quick-contact-form { grid-template-columns: 1fr; }
  .card-cta { flex-direction: column; }
  .btn-sm { width: 100%; }
}

/* =====================================================================
   HERO 3 EJES — tarjetas de servicio dentro del hero (v8)
   ===================================================================== */
.hero-3ejes { min-height: auto; padding-block: 110px 70px; align-items: flex-start; }
.hero-3ejes .hero-content { padding-top: 20px; max-width: 1180px; }
.hero-3ejes h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1;
  margin: 1rem 0 1.2rem;
}
.hero-3ejes h1 em { font-style: italic; font-weight: 700; }
.hero-3ejes p.lead {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin-bottom: 1.75rem;
  max-width: 68ch;
  color: var(--color-white);
  opacity: 0.9;
}

.hero-ejes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 2rem;
}
.eje-card {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.1rem 1.1rem 1.2rem;
  background: rgba(5, 10, 15, 0.72);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-left: 3px solid var(--color-gold);
  border-radius: 3px;
  text-decoration: none;
  color: var(--color-white);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  min-width: 0;
}
.eje-card:hover {
  transform: translateY(-4px);
  background: rgba(10, 22, 40, 0.88);
  border-color: var(--color-gold);
  box-shadow: 0 18px 42px rgba(0,0,0,0.5), 0 0 0 1px rgba(201,168,76,0.4);
}
.eje-card-featured {
  background: linear-gradient(140deg, rgba(201,168,76,0.14), rgba(10,22,40,0.78));
  border-color: rgba(201, 168, 76, 0.55);
}
.eje-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gold);
}
.eje-icon svg { width: 100%; height: 100%; }
.eje-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.eje-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: var(--color-gold);
  text-transform: uppercase;
  opacity: 0.9;
}
.eje-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.1;
  color: var(--color-white);
  margin-top: 2px;
}
.eje-sub {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.35;
  margin-top: 4px;
}
.eje-arrow {
  flex-shrink: 0;
  color: var(--color-gold);
  font-size: 1.2rem;
  align-self: center;
  transition: transform 0.22s ease;
}
.eje-card:hover .eje-arrow { transform: translateX(4px); }

.hero-cta-compact { gap: 0.9rem; }

@media (max-width: 960px) {
  .hero-ejes { grid-template-columns: 1fr; gap: 0.75rem; }
  .hero-3ejes { padding-block: 90px 50px; }
  .hero-3ejes h1 { font-size: clamp(2rem, 7vw, 2.8rem); }
  .eje-card { padding: 0.9rem 1rem; }
  .eje-title { font-size: 1.1rem; }
}
@media (max-width: 520px) {
  .hero-cta-compact { flex-direction: column; }
  .hero-cta-compact .btn { width: 100%; justify-content: center; text-align: center; }
}

/* =====================================================================
   PREFERS-REDUCED-MOTION
   ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .hero [data-seq] { opacity: 1 !important; transform: none !important; }
  .service-card:hover { transform: translateY(-6px); }
  body::after { display: none !important; }
  .cursor-dot, .cursor-ring { display: none !important; }
  body.page-exit { animation: none !important; opacity: 1 !important; }
}

/* ---------- Avisos de autorización ---------- */
.auth-banner { background: rgba(201,168,76,0.09); border-block: 1px solid rgba(201,168,76,0.28); padding-block: 0.85rem; font-size: 0.9rem; color: var(--color-white); position: relative; z-index: 3; }
.auth-banner .container { display: flex; gap: 0.6rem; align-items: flex-start; }
.auth-banner .auth-ico { color: var(--color-gold); flex-shrink: 0; }
.auth-banner.auth-pending { background: rgba(232,155,79,0.1); border-color: rgba(232,155,79,0.4); }
.auth-banner.auth-pending .auth-ico { color: #E89B4F; }

/* ---------- Preguntas frecuentes ---------- */
.faq-list { max-width: 860px; margin: 2.2rem auto 0; display: flex; flex-direction: column; gap: 0.8rem; }
.faq-item { background: rgba(10,22,40,0.5); border: 1px solid rgba(201,168,76,0.18); border-radius: 6px; padding: 0 1.2rem; }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 600; color: var(--color-white); display: flex; justify-content: space-between; gap: 1rem; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--color-gold); font-size: 1.3rem; line-height: 1; }
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--color-text-muted); padding-bottom: 1.1rem; }

/* ---------- ASESORÍA Y CUMPLIMIENTO ---------- */
.ase-teaser-box { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: clamp(1.8rem, 4vw, 3rem); border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius); background: linear-gradient(120deg, rgba(201,168,76,0.08), rgba(10,22,40,0.6)); }
.ase-teaser-text { max-width: 62ch; }
.ase-teaser-cta { flex-shrink: 0; }
.ase-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; padding: 0; }
.ase-chips li { padding: 0.45rem 1rem; border: 1px solid rgba(201,168,76,0.45); border-radius: 999px; color: var(--color-gold-light, #E8C97A); font-size: 0.85rem; background: rgba(201,168,76,0.07); }
.ase-card { position: relative; }
.ase-card .ase-num { position: absolute; top: 1.2rem; right: 1.4rem; font-family: var(--font-mono); font-size: 1.4rem; color: rgba(201,168,76,0.55); letter-spacing: 0.08em; }
.ase-card h3 { font-size: 1.3rem; }
.ase-cta-box { text-align: center; padding: clamp(2rem, 5vw, 3.5rem) 1.5rem; border: 1px solid rgba(201,168,76,0.3); border-radius: var(--radius); background: linear-gradient(120deg, rgba(201,168,76,0.08), rgba(10,22,40,0.6)); }
.ase-cta-btns { display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.6rem; }
.footer-legal { text-align: center; font-size: 0.78rem; line-height: 1.7; color: var(--color-text-muted); padding: 1.2rem 0 0.4rem; border-top: 1px solid rgba(201,168,76,0.15); margin-top: 1.5rem; }
.footer-legal a { color: var(--color-gold); }
@media (max-width: 900px) {
  .ase-grid { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 700px) {
  .ase-teaser-box { flex-direction: column; align-items: stretch; text-align: left; }
  .ase-teaser-cta .btn, .ase-cta-btns .btn { width: 100%; justify-content: center; }
  .ase-cta-btns { flex-direction: column; }
}

/* ---------- AVISO DE ACTUALIZACIÓN + NOVEDADES ---------- */
.upd-bar { position: fixed; left: 1rem; bottom: 1rem; z-index: 90; display: flex; align-items: center; gap: 0.7rem; max-width: min(640px, calc(100% - 6.5rem)); padding: 0.7rem 0.9rem; background: rgba(10,22,40,0.96); border: 1px solid rgba(201,168,76,0.5); border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0,0,0,0.5); font-size: 0.85rem; color: #F0F4F8; }
.upd-bar[hidden] { display: none; }
.upd-bar p { margin: 0; line-height: 1.4; }
.upd-bar a { color: var(--color-gold); text-decoration: underline; }
.upd-bar button { background: none; border: 0; color: var(--color-text-muted); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; }
.upd-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--color-gold); flex-shrink: 0; animation: updPulse 1.8s infinite; }
@keyframes updPulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,0.6); } 70% { box-shadow: 0 0 0 9px rgba(201,168,76,0); } 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0); } }
.nov-list { list-style: none; padding: 0; margin: 2rem auto 0; max-width: 860px; display: flex; flex-direction: column; gap: 1rem; }
.nov-item { display: grid; grid-template-columns: 120px 1fr; gap: 1.2rem; padding: 1.2rem 1.4rem; border: 1px solid rgba(201,168,76,0.2); border-left: 3px solid var(--color-gold); border-radius: var(--radius); background: rgba(10,22,40,0.5); }
.nov-item time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--color-gold); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 0.2rem; }
.nov-item h3 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.nov-item p { color: var(--color-text-muted); font-size: 0.92rem; margin: 0; }
.nov-item a { color: var(--color-gold); }
@media (max-width: 600px) { .nov-item { grid-template-columns: 1fr; gap: 0.3rem; } .upd-bar { font-size: 0.8rem; } }
@media (prefers-reduced-motion: reduce) { .upd-dot { animation: none; } }

.nov-note { text-align: center; margin-top: 1.5rem; color: var(--color-gold); font-size: 0.9rem; }
.footer-col small { color: var(--color-text-muted); font-size: 0.75em; }
