/* =========================================================
  (0) RESET SUAVE + TIPOGRAFÍA BASE
========================================================= */
* { box-sizing: border-box; }
html, body { margin:0; padding:0; }
img, video { max-width:100%; height:auto; display:block; }
body {
  font-family: Arial, sans-serif;  /* Lato del framework se aplica en el nav */
  color:#2b2b2b;
  line-height:1.45;
  background:linear-gradient(180deg, #faf7f8 0%, #ffffff 50%, #faf7f8 100%);
  background-attachment:fixed;
  position:relative;
  overflow-x:hidden;
  overflow-y:auto;
}
/* Fondo animado con ondas */
body::before{
  content:"";
  position:fixed;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:
    radial-gradient(circle at 20% 50%, rgba(212,160,23,0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(107,0,18,0.03) 0%, transparent 50%),
    radial-gradient(circle at 40% 20%, rgba(212,160,23,0.02) 0%, transparent 50%);
  animation:waveMove 20s ease-in-out infinite;
  pointer-events:none;
  z-index:0;
}
@keyframes waveMove{
  0%, 100%{ transform:translate(0, 0) scale(1); }
  33%{ transform:translate(30px, -30px) scale(1.1); }
  66%{ transform:translate(-20px, 20px) scale(0.9); }
}
/* Contenido sobre el fondo */
body > * { position:relative; z-index:1; }

/* Barcos y embarcaciones flotantes */
.geometric-shapes{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  pointer-events:none;
  z-index:0;
  overflow:hidden;
}
.shape{
  position:absolute;
  opacity:0.15;
  animation:floatBoat 40s infinite ease-in-out;
  filter:drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.shape-boat{
  width:120px;
  height:80px;
  top:15%;
  left:5%;
  animation-delay:0s;
  animation-duration:30s;
}
.shape-boat-medium{
  width:100px;
  height:65px;
  top:55%;
  right:8%;
  animation-delay:3s;
  animation-duration:32s;
}
.shape-boat-small{
  width:80px;
  height:55px;
  bottom:25%;
  left:75%;
  animation-delay:6s;
  animation-duration:28s;
}
.shape-boat-cruise{
  width:110px;
  height:70px;
  top:35%;
  left:50%;
  animation-delay:2s;
  animation-duration:35s;
}
.shape-boat-tug{
  width:85px;
  height:60px;
  bottom:40%;
  left:15%;
  animation-delay:5s;
  animation-duration:27s;
}
.shape-boat-fishing{
  width:90px;
  height:58px;
  top:70%;
  left:40%;
  animation-delay:8s;
  animation-duration:33s;
}
.shape-boat-yacht{
  width:95px;
  height:65px;
  bottom:15%;
  left:50%;
  animation-delay:10s;
  animation-duration:31s;
}
.shape-boat-ferry{
  width:105px;
  height:68px;
  top:25%;
  left:30%;
  animation-delay:1s;
  animation-duration:34s;
}
.shape-boat-tanker{
  width:130px;
  height:75px;
  bottom:35%;
  right:12%;
  animation-delay:4s;
  animation-duration:36s;
}
.shape-boat-sailboat{
  width:88px;
  height:60px;
  top:60%;
  left:20%;
  animation-delay:7s;
  animation-duration:29s;
}
.shape-boat-cargo{
  width:115px;
  height:72px;
  bottom:50%;
  left:60%;
  animation-delay:9s;
  animation-duration:37s;
}
.shape-boat-left1{
  width:92px;
  height:62px;
  top:8%;
  left:2%;
  animation-delay:11s;
  animation-duration:33s;
}
.shape-boat-left2{
  width:85px;
  height:58px;
  bottom:60%;
  left:3%;
  animation-delay:14s;
  animation-duration:30s;
}
.shape-boat svg{
  width:100%;
  height:100%;
  fill:rgba(212,160,23,0.3);
  stroke:rgba(212,160,23,0.5);
  stroke-width:2;
}
@keyframes floatBoat{
  0%, 100%{ 
    transform:translate(0, 0) rotate(0deg) scale(1); 
    opacity:0.15;
  }
  12.5%{ 
    transform:translate(80px, -50px) rotate(8deg) scale(1.08); 
    opacity:0.25;
  }
  25%{ 
    transform:translate(150px, -40px) rotate(-6deg) scale(1.12); 
    opacity:0.2;
  }
  37.5%{ 
    transform:translate(200px, -60px) rotate(10deg) scale(1.1); 
    opacity:0.25;
  }
  50%{ 
    transform:translate(180px, -30px) rotate(-8deg) scale(1.15); 
    opacity:0.2;
  }
  62.5%{ 
    transform:translate(120px, -55px) rotate(7deg) scale(1.1); 
    opacity:0.25;
  }
  75%{ 
    transform:translate(60px, -45px) rotate(-5deg) scale(1.08); 
    opacity:0.2;
  }
  87.5%{ 
    transform:translate(20px, -50px) rotate(6deg) scale(1.05); 
    opacity:0.25;
  }
}

/* =========================================================
  (1) PALETA INSTITUCIONAL (COLORES) - MEJORADA
========================================================= */
:root{
  --mx-topbar:#6b0012;      /* barra superior gob.mx */
  --mx-nav:#A57F2C;         /* café de la paleta (oro) */
  --mx-accent:#d4a017;      /* acento dorado */
  --mx-accent-light:#f0c84a; /* dorado claro */
  --mx-accent-dark:#b8860b;  /* dorado oscuro */
  --mx-text:#ffffff;        /* texto claro */
  --mx-muted:#e8d9dc;       /* borde claro */
  --mx-ink:#2b2b2b;         /* texto principal */
  --mx-panel:#faf7f8;       /* fondo panel */
  --mx-div:#e7dde0;         /* divisor */
  --mx-hover:rgba(107,0,18,.06); /* hover vino MUY claro */
  --mx-shadow:rgba(0,0,0,.08);   /* sombra suave */
  --mx-shadow-hover:rgba(0,0,0,.15); /* sombra hover */
  --mx-gradient:linear-gradient(135deg, #d4a017 0%, #f0c84a 50%, #d4a017 100%);
  --mx-gradient-dark:linear-gradient(135deg, #4b0010 0%, #6b0012 100%);
  --mx-gradient-glow:linear-gradient(135deg, rgba(212,160,23,0.3) 0%, rgba(240,200,74,0.2) 100%);
  --mx-glass:rgba(255,255,255,0.1);
  --mx-glass-border:rgba(255,255,255,0.2);
}

/* =========================================================
  (2) TOPBAR (OPCIONAL) + TRADUCTOR
========================================================= */
.topbar { background:var(--mx-topbar); color:var(--mx-text);
  padding:8px 16px; display:flex; align-items:center; gap:16px; }
.topbar__brand { display:flex; align-items:center; gap:8px; font-weight:600; }
.topbar__nav { display:flex; gap:24px; }
.topbar a { color:#fff; text-decoration:none; }
.topbar a:hover { text-decoration:underline; }

/* Traductor en topbar y sin barra flotante de Google */
.gt-in-topbar{ margin-left:auto; margin-right:12px; }
.goog-te-banner-frame.skiptranslate{ display:none !important; }
body{ top:0 !important; }
#google_translate_element{ position: static !important; }
#google_translate_element .goog-te-gadget-simple{
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  color: #fff !important;
  padding: 6px 8px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
}
#google_translate_element .goog-te-gadget-simple .goog-te-menu-value{ color:#fff !important; }

/* =========================================================
  (2.1) LIMPIEZA DE HUECOS SUPERIORES (gob.mx search)
========================================================= */
#gobmx-searchbox-container-api_progreso,
[id^="gobmx-searchbox-container"],
[class*="gobmx-searchbox"],
[class*="gobmx-search"],
#gobmx-searchbox,
#searchbox {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* =========================================================
  (3) NAVBAR (MenuPrincipalJC de /2012.js) - MEJORADO
     - Pantallas anchas (≥1400px): una fila, enlaces sin cortar
     - 992px–1399px: varias filas (wrap) para que quepan todos los ítems
     - ≤991px: hamburguesa + panel colapsable (Bootstrap .navbar-toggle o .nav-toggle)
========================================================= */
.navbar-fixed-top { position: static !important; top:auto !important; } /* anula fixed */

/* Fondo + sombra mejorado */
.sub-navbar.navbar{
  overflow-x:clip;
  background:linear-gradient(180deg, #A57F2C 0%, #5C4316 100%) !important;
  border:0 !important;
  box-shadow:
    0 8px 32px rgba(0,0,0,.25),
    0 4px 16px rgba(0,0,0,.15),
    inset 0 1px 0 rgba(255,255,255,.1);
  z-index:900;
  position:relative !important;
  margin:0 !important;
  border-bottom:3px solid transparent;
  border-image:linear-gradient(90deg, transparent, rgba(212,160,23,.4), transparent) 1;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
}

/* Contenedor central */
.sub-navbar .centrar{
  max-width:1200px;
  width:100%;
  box-sizing:border-box;
  margin:0 auto;
  padding-left:max(12px, env(safe-area-inset-left));
  padding-right:max(12px, env(safe-area-inset-right));
  display:flex; align-items:center; gap:12px;
}

/* ---------- (3.1) Botón hamburguesa ---------- */
.nav-toggle,
.sub-navbar .navbar-toggle{
  display:none; margin-left:auto;
  background:transparent; border:0; padding:10px 8px; cursor:pointer;
  flex-shrink:0;
}
.sub-navbar .navbar-toggle{
  border:1px solid rgba(255,255,255,.28);
  border-radius:8px;
}
.nav-toggle span,
.sub-navbar .navbar-toggle .icon-bar{
  display:block; width:22px; height:2px; background:#fff; margin:5px 0;
  transition:transform .2s ease, opacity .2s ease;
}
.sub-navbar.menu-open .nav-toggle span:nth-child(2),
.sub-navbar.menu-open .navbar-toggle .icon-bar:nth-child(2){ opacity:0; }
.sub-navbar.menu-open .nav-toggle span:first-child,
.sub-navbar.menu-open .navbar-toggle .icon-bar:first-child{ transform:translateY(7px) rotate(45deg); }
.sub-navbar.menu-open .nav-toggle span:last-child,
.sub-navbar.menu-open .navbar-toggle .icon-bar:last-child{  transform:translateY(-7px) rotate(-45deg); }

/* ---------- (3.2) Collapse base ---------- */
.sub-navbar .navbar-collapse{ padding:0 !important; border:0 !important; }
.sub-navbar .navbar-collapse.collapse{
  display:block !important;  /* visible en desktop */
  height:auto !important; overflow:visible !important;
}

/* Lista base del menú */
.sub-navbar .nav.navbar-nav{
  display:flex !important;
  flex-wrap:nowrap !important;          /* una sola fila */
  justify-content:center !important;     /* ✅ centrado real */
  align-items:center;
  gap:14px;
  width:100%;
  margin:0 !important;
  float:none !important;
  overflow:visible !important;           /* sin barra en desktop */
  font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif; /* gob.mx */
  font-size:clamp(13px, 1.05vw, 16px);
  font-weight:400;
}
.sub-navbar .nav > li{ float:none !important; min-width:0; }

/* Enlaces */
.sub-navbar .nav > li > a,
.sub-navbar .nav > li > a.home_menu{
  position:relative;
  display:inline-flex; align-items:center;
  white-space:nowrap; min-width:0;
  color:var(--mx-text) !important;
  text-decoration:none; font-weight:700; line-height:1.2;
  padding:clamp(8px, 0.9vw, 10px) clamp(6px, 0.8vw, 10px);
  outline:0;
  transition:transform .12s ease, opacity .12s ease;
  opacity:.95;
  background:transparent !important; border:0 !important;
}
.sub-navbar .nav > li > a::after{
  content:""; position:absolute; left:0; bottom:-6px;
  width:0; height:3px; background:var(--mx-gradient);
  transition:width .3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 8px rgba(212,160,23,.5);
  border-radius:2px 2px 0 0;
}
.sub-navbar .nav > li > a:hover{ 
  transform:translateY(-2px); 
  opacity:1; 
  text-shadow:0 2px 8px rgba(212,160,23,.3);
}
.sub-navbar .nav > li > a:hover::after{ 
  width:100%; 
  box-shadow:0 4px 12px rgba(212,160,23,.6);
}
.sub-navbar .nav > li > a.is-active,
.sub-navbar .nav > li > a[aria-current="page"]{ color:#ffe8b6 !important; }
.sub-navbar .nav > li > a.is-active::after,
.sub-navbar .nav > li > a[aria-current="page"]::after{ width:100%; }
.sub-navbar .nav > li > a:focus-visible{
  box-shadow:0 0 0 3px rgba(212,160,23,.45); border-radius:6px;
}

/* Laptops: mantener una sola fila compactando espacios/tipografía */
@media (min-width: 992px) and (max-width: 1599px){
  .sub-navbar .nav.navbar-nav{
    flex-wrap:nowrap !important;
    justify-content:center !important;
    gap:8px;
  }
  .sub-navbar .nav > li > a,
  .sub-navbar .nav > li > a.home_menu{
    white-space:nowrap;
    text-align:left;
    justify-content:center;
    max-width:none;
    font-size:clamp(12px, .9vw, 14px);
    letter-spacing:-.1px;
    padding:8px 5px;
  }
}

/* ---------- (3.3) Responsive del menú ---------- */
@media (max-width: 991px){
  /* El contenedor deja de ser flex para que la collapse empuje al nav (sin encimar) */
  .sub-navbar .centrar{ display:block; }

  /* Muestra botón y cierra el collapse por defecto */
  .nav-toggle,
  .sub-navbar .navbar-toggle{ display:inline-flex; flex-direction:column; align-items:center; justify-content:center; }
  .sub-navbar .navbar-collapse.collapse{ display:none !important; }
  .sub-navbar.menu-open .navbar-collapse{ display:block !important; }

  /* Panel con mismo fondo vino */
  .sub-navbar .navbar-collapse{
    background:linear-gradient(180deg, #A57F2C 0%, #5C4316 100%) !important;
    box-shadow:0 8px 16px rgba(0,0,0,.25);
    border-top:1px solid rgba(255,255,255,.08);
    padding:10px 12px;
    position:relative; z-index:901;
  }

  /* Menú en columna dentro del panel */
  .sub-navbar .nav.navbar-nav{
    flex-direction:column; align-items:flex-start;
    gap:10px; width:100%;
    overflow:visible !important;
  }
  .sub-navbar .nav > li > a{ padding:10px 8px; font-size:15px; }
  .sub-navbar .nav > li > a::after{ bottom:-3px; }
}

/* =========================================================
  (4) BANNER (IMG COMPLETA, SIN CORTES) - REDISEÑO TOTAL
========================================================= */
.hero{
 
  margin:0; 
  position:relative;
  overflow:hidden;
  height:500px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg, #4b0010 0%, #6b0012 50%, #4b0010 100%);
  background-color:#4b0010;

  min-height: 85vh;
  padding-bottom: 6rem;
}

.hero-overlay{
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:rgba(0,0,0,0.3);
  z-index:2;
  display:flex;
  align-items:center;
  justify-content:center;
}
.hero-content{
  text-align:center;
  z-index:3;
  animation:fadeInUp 1s ease-out;
}
.hero-title{
  font-size:clamp(32px, 5vw, 64px);
  font-weight:900;
  color:#fff;
  margin:0 0 16px;
  text-shadow:
    0 4px 20px rgba(0,0,0,.5),
    0 2px 10px rgba(212,160,23,.3);
  letter-spacing:2px;
  text-transform:uppercase;
  background:linear-gradient(135deg, #fff 0%, var(--mx-accent-light) 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  animation:titleGlow 3s ease-in-out infinite;
}
.hero-subtitle{
  font-size:clamp(16px, 2vw, 24px);
  color:rgba(255,255,255,0.95);
  margin:0;
  font-weight:600;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
  letter-spacing:1px;
}
.hero-decoration{
  width:120px;
  height:4px;
  background:var(--mx-gradient);
  margin:24px auto 0;
  border-radius:2px;
  box-shadow:0 4px 20px rgba(212,160,23,.6);
  animation:expandLine 1.5s ease-out 0.5s both;
}
@keyframes titleGlow{
  0%, 100%{ filter:brightness(1); }
  50%{ filter:brightness(1.2); }
}
@keyframes expandLine{
  from{ width:0; opacity:0; }
  to{ width:120px; opacity:1; }
}
.hero::after{
  content:"";
  position:absolute;
  bottom:0;
  left:0;
  right:0;
  height:80px;
  background:linear-gradient(to top, rgba(250,247,248,1) 0%, rgba(250,247,248,0) 100%);
  pointer-events:none;
  z-index:4;
}
#flag_banner_img{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  /* Muestra la imagen completa (sin recorte) */
  object-fit:contain;
  object-position: 35% center;
  /* Mantén el efecto visual */
  opacity:0.40;
  z-index:1;
  filter:blur(1px) brightness(0.7);
  transition:transform 1s ease, filter 1s ease, opacity 1s ease;
  will-change:transform, filter, opacity;
}
.hero:hover #flag_banner_img{
  opacity:0.6;
  filter:blur(1px) brightness(0.8);
  transform:scale(1.05);
}

/* =========================================================
  (5) CONTENEDOR + TÍTULOS
========================================================= */
.container { max-width:1200px; margin:0 auto; padding:0 16px; }
.divider{ height:12px; }
.section-title{
  text-align:center; margin:40px 0 32px; font-weight:800; letter-spacing:.4px;
  font-size:clamp(26px, 2.8vw, 36px);
  background:linear-gradient(135deg, #2a0a12 0%, #4b0010 50%, #6b0012 100%);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  position:relative;
  padding-bottom:24px;
  text-shadow:0 2px 4px rgba(0,0,0,.1);
  animation:fadeInTitle 0.8s ease-out;
}

.section-title::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%, -50%);
  width:200px;
  height:200px;
  background:radial-gradient(circle, rgba(212,160,23,.1) 0%, transparent 70%);
  border-radius:50%;
  opacity:0.5;
  z-index:-1;
  animation:pulse 3s ease-in-out infinite;
}
.section-title::after{
  content:""; display:block; width:140px; height:6px; border-radius:4px;
  margin:24px auto 0;
  background:var(--mx-gradient);
  box-shadow:
    0 4px 16px rgba(212,160,23,.5),
    0 2px 8px rgba(212,160,23,.4),
    inset 0 1px 0 rgba(255,255,255,.3),
    0 0 20px rgba(212,160,23,.3);
  animation:titleUnderline 1.2s ease-out, pulseGlow 2s ease-in-out infinite 1.2s;
  position:relative;
}

/* =========================================================
  NOTICIAS - DISEÑO INNOVADOR TIPO REVISTA CON EFECTOS ÚNICOS
========================================================= */
.news-content-wrapper {
  margin-top: 50px;
  padding-top: 30px;
  position: relative;
  perspective: 1200px;
}

/* Efecto de texto flotante para títulos de noticias */
.news-content-wrapper h1,
.news-content-wrapper h2,
.news-content-wrapper h3,
.news-content-wrapper h4 {
  margin-top: 32px !important;
  margin-bottom: 16px !important;
  line-height: 1.4 !important;
  position: relative;
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.news-content-wrapper h1:hover,
.news-content-wrapper h2:hover,
.news-content-wrapper h3:hover,
.news-content-wrapper h4:hover {
  transform: translateZ(20px) rotateY(5deg) scale(1.05);
  text-shadow: 
    0 0 20px rgba(212, 160, 23, 0.5),
    0 10px 30px rgba(107, 0, 18, 0.3),
    0 0 40px rgba(212, 160, 23, 0.2);
}

/* Imágenes con efecto parallax y clip-path dinámico */
.news-content-wrapper img {
  margin-bottom: 24px !important;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  filter: grayscale(20%) contrast(1.1);
  transform: translateZ(0);
}

.news-content-wrapper img:hover {
  clip-path: polygon(5% 5%, 95% 5%, 95% 95%, 5% 95%);
  filter: grayscale(0%) contrast(1.2) brightness(1.1);
  transform: translateZ(30px) scale(1.05);
  box-shadow: 
    0 25px 50px -12px rgba(107, 0, 18, 0.5),
    0 0 0 1px rgba(212, 160, 23, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Efecto de "papel arrugado" para contenedores de noticias */
.news-content-wrapper > * {
  position: relative;
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(107, 0, 18, 0.03) 2px,
      rgba(107, 0, 18, 0.03) 4px
    ),
    linear-gradient(135deg, #ffffff 0%, #faf7f8 100%);
  padding: 20px;
  margin-bottom: 30px;
  border-left: 4px solid transparent;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  box-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.24);
  transform-origin: left center;
}

.news-content-wrapper > *:hover {
  border-left-color: var(--mx-accent);
  transform: translateX(10px) rotateY(2deg);
  box-shadow: 
    0 14px 28px rgba(107, 0, 18, 0.25),
    0 10px 10px rgba(107, 0, 18, 0.22),
    inset -1px 0 0 rgba(212, 160, 23, 0.2);
  background: 
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(212, 160, 23, 0.05) 2px,
      rgba(212, 160, 23, 0.05) 4px
    ),
    linear-gradient(135deg, #ffffff 0%, #fffbf5 100%);
}

/* Efecto de texto "máquina de escribir" para párrafos */
.news-content-wrapper p {
  margin-bottom: 16px !important;
  line-height: 1.6 !important;
  position: relative;
  overflow: hidden;
}

.news-content-wrapper p::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(212, 160, 23, 0.1),
    transparent
  );
  transition: left 0.6s ease;
}

.news-content-wrapper > *:hover p::before {
  left: 100%;
}

/* Efecto de "ondas" en las fechas */
.news-content-wrapper time,
.news-content-wrapper .date {
  display: inline-block;
  position: relative;
  padding: 5px 15px;
  background: linear-gradient(135deg, rgba(212, 160, 23, 0.1) 0%, rgba(107, 0, 18, 0.05) 100%);
  border-radius: 20px;
  font-weight: 600;
  color: #6b0012;
  transition: all 0.3s ease;
  overflow: hidden;
}

.news-content-wrapper time::after,
.news-content-wrapper .date::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(212, 160, 23, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.news-content-wrapper > *:hover time::after,
.news-content-wrapper > *:hover .date::after {
  width: 300px;
  height: 300px;
}

/* Animación de entrada tipo "cortina" */
@keyframes curtainReveal {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 1;
  }
}

.news-content-wrapper > * {
  animation: curtainReveal 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) backwards;
}

.news-content-wrapper > *:nth-child(1) { animation-delay: 0.1s; }
.news-content-wrapper > *:nth-child(2) { animation-delay: 0.2s; }
.news-content-wrapper > *:nth-child(3) { animation-delay: 0.3s; }
.news-content-wrapper > *:nth-child(4) { animation-delay: 0.4s; }
.news-content-wrapper > *:nth-child(5) { animation-delay: 0.5s; }

/* Efecto de partículas flotantes en hover */
.news-content-wrapper > *::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image: 
    radial-gradient(circle at 20% 30%, rgba(212, 160, 23, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(107, 0, 18, 0.1) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease, transform 0.6s ease;
  transform: rotate(0deg);
  pointer-events: none;
  z-index: 0;
}

.news-content-wrapper > *:hover::before {
  opacity: 1;
  transform: rotate(180deg);
}

/* Enlaces con efecto de "subrayado animado" */
.news-content-wrapper a {
  position: relative;
  color: var(--mx-accent);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.news-content-wrapper a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--mx-accent) 0%, #6b0012 100%);
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(212, 160, 23, 0.5);
}

.news-content-wrapper a:hover {
  color: #6b0012;
}

.news-content-wrapper a:hover::after {
  width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
  .news-content-wrapper > *:hover {
    transform: translateX(5px);
  }
  
  .news-content-wrapper img:hover {
    transform: scale(1.02);
  }
}

/* =========================================================
  SECCIÓN DE ESTADÍSTICAS ANIMADAS
========================================================= */
.stats-section{
  margin:40px 0;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:28px;
  margin-top:40px;
}
.stat-card{
  background:linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,247,248,0.98) 100%);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  border:2px solid var(--mx-muted);
  border-radius:24px;
  padding:32px 24px;
  text-align:center;
  transition:all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  box-shadow:
    0 12px 40px rgba(0,0,0,.1),
    0 4px 16px rgba(0,0,0,.08),
    inset 0 2px 0 rgba(255,255,255,0.9);
}
.stat-card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:var(--mx-gradient);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.5s ease;
}
.stat-card:hover{
  transform:translateY(-8px) scale(1.03);
  box-shadow:
    0 24px 60px rgba(0,0,0,.15),
    0 12px 32px rgba(212,160,23,.25),
    0 0 0 3px rgba(212,160,23,.2),
    inset 0 2px 0 rgba(255,255,255,0.95);
  border-color:var(--mx-accent);
}
.stat-card:hover::before{
  transform:scaleX(1);
}
.stat-icon{
  width:64px;
  height:64px;
  margin:0 auto 20px;
  background:var(--mx-gradient);
  border-radius:16px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#2a0a12;
  box-shadow:0 8px 24px rgba(212,160,23,.3);
  animation:float 3s ease-in-out infinite;
}
.stat-number{
  font-size:clamp(32px, 4vw, 48px);
  font-weight:900;
  background:var(--mx-gradient);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  margin:12px 0;
  line-height:1.2;
}
.stat-label{
  font-size:clamp(14px, 1.2vw, 16px);
  color:#4b0010;
  font-weight:600;
  margin-top:8px;
}
@media(max-width:1024px){
  .stats-grid{ grid-template-columns:repeat(2,1fr); gap:24px; }
}
@media(max-width:600px){
  .stats-grid{ grid-template-columns:1fr; gap:20px; }
}

/* =========================================================
  BOTÓN SCROLL TO TOP FLOTANTE
========================================================= */
.scroll-to-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:56px;
  height:56px;
  background:var(--mx-gradient);
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  visibility:hidden;
  transform:translateY(20px) scale(0.8);
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index:9998;
  box-shadow:
    0 8px 24px rgba(212,160,23,.4),
    0 4px 12px rgba(212,160,23,.3);
  border:2px solid rgba(255,255,255,.3);
}
.scroll-to-top.visible{
  opacity:1;
  visibility:visible;
  transform:translateY(0) scale(1);
}
.scroll-to-top:hover{
  transform:translateY(-4px) scale(1.1);
  box-shadow:
    0 12px 32px rgba(212,160,23,.5),
    0 6px 16px rgba(212,160,23,.4);
}
.scroll-to-top svg{
  width:24px;
  height:24px;
  color:#2a0a12;
  stroke-width:3;
}
@media(max-width:600px){
  .scroll-to-top{
    bottom:20px;
    right:20px;
    width:48px;
    height:48px;
  }
}

/* =========================================================
  INDICADOR DE PROGRESO DE SCROLL
========================================================= */
.scroll-progress{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:4px;
  background:#611232;
  z-index:10000;
  transform:scaleX(0);
  transform-origin:left center;
  transition:transform 0.1s ease-out;
  will-change:transform;
  box-shadow:0 2px 8px rgba(97,18,50,.55);
  pointer-events:none;
}

@keyframes fadeInTitle{
  from{ opacity:0; transform:translateY(-10px); }
  to{ opacity:1; transform:translateY(0); }
}
@keyframes titleUnderline{
  from{width:0; opacity:0; transform:scaleX(0);}
  to{width:140px; opacity:1; transform:scaleX(1);}
}
@keyframes pulse{
  0%, 100%{ transform:translate(-50%, -50%) scale(1); opacity:0.5; }
  50%{ transform:translate(-50%, -50%) scale(1.2); opacity:0.3; }
}

/* =========================================================
  (6) GRID RESPONSIVE (4 -> 2 -> 1) - CON ANIMACIONES
========================================================= */
.grid-4{ 
  display:grid; 
  grid-template-columns:repeat(4,1fr); 
  gap:28px; 
  position:relative;
}
.grid-4::before{
  content:"";
  position:absolute;
  top:-20px;
  left:50%;
  transform:translateX(-50%);
  width:80%;
  height:2px;
  background:var(--mx-gradient);
  border-radius:2px;
  box-shadow:0 4px 20px rgba(212,160,23,.4);
  opacity:0.6;
}
@media (max-width:1024px){ .grid-4{ grid-template-columns:repeat(2,1fr); gap:24px; } }
@media (max-width:640px){ .grid-4{ grid-template-columns:1fr; gap:20px; } }

/* Animación de entrada para cards - se activa con JS */
.grid-4 .card.fade-in-ready{
  opacity:0;
  transform:translateY(30px);
  transition:opacity 0.6s ease-out, transform 0.6s ease-out;
}
.grid-4 .card.fade-in-ready.visible{
  opacity:1;
  transform:translateY(0);
}

/* =========================================================
  (7) PANELES "CATÁLOGO" - DISEÑO INNOVADOR CON GLASSMORPHISM
========================================================= */
.card{
  background:linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,247,248,0.98) 100%);
  backdrop-filter:blur(15px);
  -webkit-backdrop-filter:blur(15px);
  border:2px solid var(--mx-muted);
  border-radius:24px;
  padding:28px;
  box-shadow:
    0 12px 40px rgba(0,0,0,.12),
    0 4px 16px rgba(0,0,0,.08),
    inset 0 2px 0 rgba(255,255,255,0.9),
    0 0 0 1px rgba(212,160,23,.05);
  transition:all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  transform-style:preserve-3d;
  perspective:1000px;
  border-top:4px solid transparent;
  border-image:linear-gradient(90deg, transparent, var(--mx-accent), transparent) 1;
}
.card::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:5px;
  background:var(--mx-gradient);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:0 2px 12px rgba(212,160,23,.5);
}
.card::after{
  content:"";
  position:absolute;
  top:-50%;
  left:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(212,160,23,.08) 0%, transparent 70%);
  opacity:0;
  transition:opacity 0.4s ease;
  pointer-events:none;
}
.card:hover{
  transform:translateY(-12px) rotateX(3deg) scale(1.03);
  box-shadow:
    0 30px 80px rgba(0,0,0,.2),
    0 15px 40px rgba(212,160,23,.3),
    0 0 0 3px rgba(212,160,23,.2),
    inset 0 2px 0 rgba(255,255,255,0.95),
    0 0 40px rgba(212,160,23,.25);
  border-color:var(--mx-accent);
  border-top-width:6px;
  background:linear-gradient(135deg, rgba(255,255,255,1) 0%, rgba(250,247,248,1) 100%);
}
.card:hover::before{
  transform:scaleX(1);
}
.card:hover::after{
  opacity:1;
  animation:shine 1.5s ease-in-out;
}
@keyframes shine{
  0%{ transform:translate(-50%, -50%) rotate(0deg); }
  100%{ transform:translate(-50%, -50%) rotate(360deg); }
}

.card h2, .card h3{
  margin:0 0 20px;
  font-family:"Lato","Helvetica Neue",Helvetica,Arial,sans-serif;
  font-weight:800; font-size:clamp(18px, 1.6vw, 24px); line-height:1.3;
  color:#2a0a12; text-align:left;
  background:linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(250,247,248,0.98) 100%);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border:2px solid;
  border-image:linear-gradient(135deg, var(--mx-accent) 0%, var(--mx-accent-light) 100%) 1;
  border-radius:14px; 
  padding:16px 20px;
  box-shadow:
    0 4px 16px rgba(212,160,23,.2),
    0 2px 8px rgba(212,160,23,.1),
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(212,160,23,.1);
  overflow-wrap:anywhere;
  position:relative;
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-shadow:0 1px 2px rgba(255,255,255,.8);
}
.card h2::before, .card h3::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:var(--mx-gradient);
  opacity:0;
  border-radius:12px;
  transition:opacity 0.4s ease;
  z-index:-1;
}
.card:hover h2, .card:hover h3{
  background:linear-gradient(135deg, var(--mx-accent-light) 0%, var(--mx-accent) 100%);
  color:#2a0a12;
  box-shadow:
    0 8px 24px rgba(212,160,23,.35),
    0 4px 12px rgba(212,160,23,.2),
    inset 0 1px 0 rgba(255,255,255,.3),
    inset 0 -1px 0 rgba(107,0,18,.1);
  transform:translateY(-3px) scale(1.02);
  border-image:linear-gradient(135deg, var(--mx-accent-dark) 0%, var(--mx-accent) 100%) 1;
  text-shadow:0 2px 4px rgba(0,0,0,.1);
}
.card:hover h2::before, .card:hover h3::before{
  opacity:0.1;
}

.list-clean{ list-style:none; margin:0; padding:2px 0; }
.list-clean li{ margin:0; padding:0; border-bottom:1px solid var(--mx-div); }
.list-clean li:last-child{ border-bottom:none; }
.list-clean a{
  display:flex; align-items:center; gap:12px;
  padding:12px 10px; color:var(--mx-ink); text-decoration:none;
  transition:all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  border-left:4px solid transparent; border-radius:8px;
  font-size:clamp(14px, 1.1vw, 16px);
  position:relative;
}
.list-clean a::before{
  content:""; width:8px; height:8px; border-radius:50%;
  background:var(--mx-gradient); flex:0 0 8px; 
  transform:scale(0.8) translateY(1px);
  transition:all 0.3s ease;
  box-shadow:0 2px 4px rgba(212,160,23,.3);
}
.list-clean a:hover{
  background: linear-gradient(90deg, rgba(212,160,23,.10) 0%, rgba(212,160,23,.05) 100%);
  color:#3a000c;
  border-left-color: var(--mx-accent);
  padding-left:16px;
}
.list-clean a:hover::before{
  transform:scale(1.4) translateY(1px);
  box-shadow:
    0 4px 12px rgba(212,160,23,.6),
    0 2px 6px rgba(212,160,23,.4);
  animation:pulse 1.5s ease-in-out infinite;
}
.list-clean a:focus-visible{ outline:0; box-shadow:0 0 0 3px rgba(212,160,23,.35), inset 0 0 0 1px rgba(212,160,23,.2); background:var(--mx-hover); }
.list-clean a.is-active, .list-clean a[aria-current="page"]{ 
  background:linear-gradient(90deg, rgba(212,160,23,.12) 0%, rgba(212,160,23,.06) 100%); 
  border-left-color:var(--mx-accent); 
  font-weight:700;
  color:#3a000c;
  box-shadow:inset 4px 0 0 var(--mx-accent), 0 2px 4px rgba(212,160,23,.1);
}

/* =========================================================
  (8) BANNERS, SOCIAL, FOOTER - DISEÑO INNOVADOR
========================================================= */
.banners{ 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:24px; 
  padding:20px 0;
  position:relative;
  width:100%;
  max-width:100%;
  box-sizing:border-box;
  align-items:start;
}
.banners::before{
  content:"";
  position:absolute;
  top:0;
  left:50%;
  transform:translateX(-50%);
  width:90%;
  height:3px;
  background:var(--mx-gradient);
  border-radius:2px;
  box-shadow:0 4px 16px rgba(212,160,23,.4);
  opacity:0.7;
}
.banners.banners--dos{
  grid-template-columns:repeat(2, minmax(0, 420px));
  justify-content:center;
}
.renta-edificio{ margin-top:48px; text-align:center; }
.renta-edificio__link{ display:inline-block; }
.renta-edificio__link img{
  width:min(100%, 520px);
  height:auto;
  margin:0 auto;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(0,0,0,.12);
}
.vacantes-trabajadores{ margin-top:36px; }
@media(max-width:900px){ 
  .banners{ 
    grid-template-columns:repeat(2,1fr); 
    gap:24px; 
  }
  .banners.banners--dos{ grid-template-columns:1fr; }
}
@media(max-width:600px){ 
  .banners{ 
    grid-template-columns:1fr; 
    gap:20px; 
  } 
}
.imgBanner{ 
  width:100%; 
  height:140px; 
  object-fit:contain; 
  object-position:center;
  border:3px solid var(--mx-muted); 
  border-radius:20px; 
  transition:all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 12px 32px rgba(0,0,0,.12),
    0 6px 16px rgba(0,0,0,.08),
    inset 0 2px 0 rgba(255,255,255,.6),
    0 0 0 1px rgba(212,160,23,.1);
  position:relative;
  overflow:hidden;
  display:block !important;
  opacity:1 !important;
  visibility:visible !important;
  filter:brightness(1) saturate(1);
  transform-style:preserve-3d;
  background:linear-gradient(135deg, rgba(250,247,248,0.95) 0%, rgba(255,255,255,1) 100%);
  max-width:100%;
  box-sizing:border-box;
  padding:8px;
}
.imgBanner::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:linear-gradient(135deg, rgba(212,160,23,.15) 0%, rgba(107,0,18,.08) 100%);
  opacity:0;
  transition:opacity 0.6s ease;
  z-index:1;
  mix-blend-mode:overlay;
  border-radius:20px;
  pointer-events:none;
}
.imgBanner::after{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
  transition:left 0.8s ease;
  z-index:2;
  border-radius:20px;
  pointer-events:none;
}
.imgBanner:hover{
  transform:translateY(-8px) scale(1.03);
  box-shadow:
    0 28px 80px rgba(0,0,0,.25),
    0 16px 40px rgba(212,160,23,.4),
    0 0 0 4px rgba(212,160,23,.3),
    inset 0 2px 0 rgba(255,255,255,.9),
    0 0 60px rgba(212,160,23,.2);
  border-color:var(--mx-accent);
  border-width:4px;
  filter:brightness(1.08) saturate(1.15);
}
.imgBanner:hover::before{
  opacity:1;
}
.imgBanner:hover::after{
  left:100%;
}
.banners a{
  display:block;
  position:relative;
  border-radius:20px;
  overflow:visible;
  background:linear-gradient(135deg, rgba(255,255,255,0.05) 0%, transparent 100%);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
  transition:all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width:100%;
  height:auto;
  max-width:100%;
  box-sizing:border-box;
}
.banners a::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  bottom:0;
  background:var(--mx-gradient);
  opacity:0;
  transition:opacity 0.6s ease;
  z-index:3;
  border-radius:20px;
  mix-blend-mode:soft-light;
  pointer-events:none;
}
.banners a:hover::before{
  opacity:0.15;
}
.banners a:hover{
  transform:translateY(-6px);
  box-shadow:0 20px 50px rgba(212,160,23,.3);
}
.banners a:hover .imgBanner{
  transform:translateY(-2px) scale(1.03);
}
.social{ 
  display:flex; 
  justify-content:center; 
  gap:20px; 
  margin:20px 0 32px; 
  flex-wrap:wrap;
}
.social a{ 
  color:#2a0a12; 
  text-decoration:none; 
  display:flex; 
  align-items:center; 
  gap:8px;
  padding:12px 20px;
  background:var(--mx-panel);
  border:2px solid var(--mx-muted);
  border-radius:12px;
  font-weight:600;
  transition:all 0.3s ease;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.social a:hover{
  background:var(--mx-gradient);
  color:#2a0a12;
  border-color:var(--mx-accent);
  transform:translateY(-4px) scale(1.05);
  box-shadow:
    0 12px 32px rgba(212,160,23,.4),
    0 6px 16px rgba(212,160,23,.3),
    0 0 20px rgba(212,160,23,.2);
  filter:brightness(1.1);
}
.social a:hover .material-icons{
  transform:rotate(15deg) scale(1.1);
  animation:wiggle 0.5s ease-in-out;
}
@keyframes wiggle{
  0%, 100%{ transform:rotate(15deg) scale(1.1); }
  50%{ transform:rotate(-15deg) scale(1.1); }
}
.social a .material-icons{
  font-size:20px;
  transition:transform 0.3s ease;
}
/* Solo el pie del sitio ASIPONA (no el pie federal gob.mx inyectado) */
.footer-asipona{
  background:linear-gradient(180deg, rgba(250,247,248,0.95) 0%, rgba(244,244,244,0.98) 100%); 
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  border-top:4px solid transparent;
  border-image:var(--mx-gradient) 1;
  margin-top:50px; 
  padding:40px 0 28px; 
  box-shadow:
    0 -8px 32px rgba(0,0,0,.08),
    inset 0 1px 0 rgba(255,255,255,.8);
  position:relative;
}
.footer-asipona::before{
  content:"";
  position:absolute;
  top:0;
  left:0;
  right:0;
  height:1px;
  background:var(--mx-gradient);
  opacity:0.3;
}
.footer-asipona .cols{ 
  display:grid; 
  grid-template-columns:repeat(3,1fr); 
  gap:24px; 
}
.footer-asipona .cols strong{
  color:#2a0a12;
  font-size:18px;
  display:block;
  margin-bottom:8px;
}
.footer-asipona .cols a{
  color:#4b0010;
  text-decoration:none;
  transition:color 0.2s ease;
  display:inline-block;
  margin-top:4px;
}
.footer-asipona .cols a:hover{
  color:var(--mx-accent-dark);
  text-decoration:underline;
}
@media(max-width:800px){ .footer-asipona .cols{ grid-template-columns:1fr; gap:20px; } }

/* Pie institucional gob.mx: guinda/burgundy oficial (~#621132), no verde */
footer:not(.footer-asipona),
.main-footer,
.gobmx-footer {
  background-color:#621132 !important;
  background-image:none !important;
  color:#fff !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  border-top:none !important;
  border-image:none !important;
  box-shadow:none !important;
}
footer:not(.footer-asipona) a,
.main-footer a,
.gobmx-footer a,
footer:not(.footer-asipona) .list-unstyled a,
footer:not(.footer-asipona) .nav-footer-item {
  color:#fff !important;
}
footer:not(.footer-asipona) p,
footer:not(.footer-asipona) span,
footer:not(.footer-asipona) li {
  color:rgba(255,255,255,.95) !important;
}

/* =========================================================
  (9) UTILIDADES
========================================================= */
.container{ max-width:1200px; margin:0 auto; padding:0 16px; }
.text-center{ text-align:center; }
.hidden{ display:none !important; }

/* =========================================================
  (10) BREAKPOINTS RESPONSIVOS EXTRA
========================================================= */
@media (max-width:992px){
  #flag_banner_img{ max-height:55vh; }
  .topbar{ padding:8px 12px; }
  .topbar__nav{ gap:16px; }
}
@media (max-width:768px){
  .container{ max-width:100%; padding:0 12px; }
  .grid-4{ grid-template-columns:repeat(2,1fr); gap:14px; }
  .card{ padding:12px; }
  #flag_banner_img{ max-height:48vh; }
}
@media (max-width:600px){
  .grid-4{ grid-template-columns:1fr; gap:12px; }
  #flag_banner_img{ max-height:42vh; }
}
@media (max-width:420px){
  .section-title{ font-size:18px; }
  .card h2,.card h3{ font-size:17px; }
  .list-clean a{ font-size:14px; }
  .topbar{ padding:6px 10px; }
  .topbar__nav{ gap:12px; }
}

/* =========================================================
  NOTICIAS (carrusel) + PROYECTO AMPLIACIÓN + PDF (versión anterior)
========================================================= */
.noticias-portada {
  max-width: 1200px;
  margin: 22px auto;
  padding: 22px 20px 28px;
  background: #f6f7f9;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, .05);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .07);
}
.noticias-portada__head {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 90px;
  margin-bottom: 18px;
  min-height: 78px;
}
.noticias-portada__head > div:first-child { text-align: center; }
.noticias-portada__title { margin: 0; }
.noticias-portada__rule {
  display: block;
  width: 52px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: #c9a227;
}
.noticias-portada__mascota-wrap {
  position: absolute;
  right: 0;
  top: 0;
  flex-shrink: 0;
}
.noticias-portada__mascota {
  display: block;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
  border: 3px solid #fff;
}
.noticias-portada__frame { position: relative; padding: 0 4px; }
.noticia-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
  height: 100%;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.noticia-card > a:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 14px 14px 0 0;
  background: #e8eaee;
  padding: 14px 16px 12px;
  box-sizing: border-box;
  min-height: 248px;
}
.noticia-card img {
  width: 100%;
  max-width: 525px;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  object-position: center center;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}
.noticia-card .noticia-card__body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.noticia-card time { display: block; margin-bottom: 8px; }
.noticia-card .noticia-card__body h4,
.noticia-card .noticia-card__body h5,
.noticias-portada__frame .col-md-4 h4,
.noticias-portada__frame .col-md-4 h5 {
  margin: 0 0 10px 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 600;
}
.noticia-card .noticia-card__link {
  margin-top: auto;
  padding-top: 12px;
}
.noticias-portada__historial { text-align: center; margin: 18px 0 0; }
@media (max-width: 520px) {
  .noticias-portada__head { padding: 0 0 56px; }
  .noticias-portada__mascota-wrap {
    right: 50%;
    transform: translateX(50%);
    top: auto;
    bottom: 0;
  }
}
.noticias-owl .owl-stage-outer { padding: 6px 0 14px; }
.noticias-owl .owl-nav { margin-top: 0; }
.noticias-owl .owl-nav button.owl-prev,
.noticias-owl .owl-nav button.owl-next {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50% !important;
  background: #e9ecef !important;
  color: #3a3d42 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  line-height: 1 !important;
  margin: 0 !important;
}
.noticias-owl .owl-nav button.owl-prev:hover,
.noticias-owl .owl-nav button.owl-next:hover { background: #dde1e6 !important; }
.noticias-owl .owl-nav button.owl-prev { left: -8px; }
.noticias-owl .owl-nav button.owl-next { right: -8px; }
.noticias-owl .np-navtxt { display: block; margin-top: -2px; }
.noticias-owl .owl-dots { margin-top: 8px; }
.noticias-owl .owl-dot span { background: #cfd4db !important; }
.noticias-owl .owl-dot.active span { background: #222 !important; }
@media (max-width: 640px) {
  .noticias-owl .owl-nav button.owl-prev,
  .noticias-owl .owl-nav button.owl-next { display: none; }
}

.hero-ampliacion {
  max-width: 950px;
  margin: 18px auto;
  padding: 25px 20px;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}
.hero-ampliacion:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35, 91, 78, .06), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.hero-ampliacion > * { position: relative; z-index: 1; }
.hero-ampliacion .hero-ampliacion__title {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  margin: 0 0 16px 0;
  letter-spacing: .2px;
  color: #2a0a12;
  background: none;
  -webkit-text-fill-color: inherit;
  text-transform: none;
  animation: none;
  text-shadow: none;
}

.quick-access {
  max-width: 1200px;
  margin: 0 auto 14px auto;
  padding: 0 4px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 12px;
}
@media (max-width: 900px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr; }
}
.quick-ampli-card {
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #ffffff;
  border-radius: 14px;
  padding: 22px 16px 22px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}
.quick-ampli-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(35, 91, 78, .06), rgba(0, 0, 0, 0));
  pointer-events: none;
}
.quick-ampli-card > * { position: relative; z-index: 1; }
.quick-ampli-card__title {
  font-size: clamp(16px, 1.85vw, 22px);
  font-weight: 800;
  margin: 0 0 14px 0;
  letter-spacing: .2px;
  line-height: 1.25;
}
/* Ilustraciones propias (PNG en /ampli/) — una por sección / PDF */
.ampli-illustration {
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.1);
  line-height: 0;
  background: linear-gradient(180deg, #f6f8fa 0%, #eceff3 100%);
}
.ampli-illustration--hero {
  max-width: 100%;
  margin: 8px auto 20px;
}
.ampli-illustration--hero img {
  width: 100%;
  height: auto;
  max-height: min(300px, 48vw);
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ampli-illustration--card {
  margin: 0 auto 14px;
  max-width: 100%;
  border-radius: 12px;
  /* Evita subpixel blur al escalar en GPU */
  transform: translateZ(0);
  backface-visibility: hidden;
}
.ampli-illustration--card img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Buen remuestreo al bajar de ~1500px a ~300px de ancho */
  image-rendering: auto;
  -ms-interpolation-mode: bicubic;
}
.quick-ampli-card:hover .ampli-illustration--card {
  box-shadow: 0 6px 20px rgba(35, 91, 78, 0.18);
}
.quick-ampli-card:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1); }

.hero-ampliacion .btn-permisos-primary,
.quick-ampli-card .btn-permisos-primary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: #ffffff !important;
  background: #235b4e !important;
  border: none;
  box-shadow: 0 4px 14px rgba(35, 91, 78, 0.35);
  transition: 0.25s ease;
}
.hero-ampliacion .btn-permisos-primary:hover,
.quick-ampli-card .btn-permisos-primary:hover {
  background: #1b463c !important;
  transform: translateY(-2px);
  text-decoration: none;
  filter: none;
}

.pdf-modal[hidden] { display: none !important; }
.pdf-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  box-sizing: border-box;
}
.pdf-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.pdf-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 92vh;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pdf-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.pdf-modal__title {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pdf-modal__close {
  flex-shrink: 0;
  font-size: 1.75rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 4px 10px;
  color: #333;
}
.pdf-modal__close:hover { color: #000; }
.pdf-modal__frame-wrap {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: #4a4d54;
}
.pdf-modal__frame {
  display: block;
  width: 100%;
  height: min(78vh, 760px);
  border: 0;
  vertical-align: top;
}
.pdf-modal__foot {
  padding: 10px 16px 14px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}
.pdf-modal__foot .btn-permisos-primary {
  font-size: 0.95rem;
  padding: 10px 18px;
  background: #235b4e !important;
  color: #fff !important;
}

/* Carrusel de imágenes (certificaciones): como antes — Owl, 4 ítems */
.banners-wrap { position: relative; padding: 0 8px 24px; }
.banners-owl .item { padding: 6px; }
.banners-owl .owl-nav { margin-top: 0; }
.banners-owl .owl-nav button.owl-prev,
.banners-owl .owl-nav button.owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50% !important;
  background: #e9ecef !important;
  color: #3a3d42 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
  margin: 0 !important;
}
.banners-owl .owl-nav button.owl-prev { left: -4px; }
.banners-owl .owl-nav button.owl-next { right: -4px; }
.banners-owl .owl-nav button.owl-prev:hover,
.banners-owl .owl-nav button.owl-next:hover { background: #dde1e6 !important; }
.banners-owl .owl-dots { margin-top: 12px; }
.banners-owl .owl-dot span { background: #cfd4db !important; }
.banners-owl .owl-dot.active span { background: #4b0010 !important; }
@media (max-width: 640px) {
  .banners-owl .owl-nav button.owl-prev,
  .banners-owl .owl-nav button.owl-next { display: none; }
}

/* =========================================================
  (12) SECCIÓN DESTACADA PERMISOS - DISEÑO INNOVADOR
========================================================= */
.permisos-hero{
  background:linear-gradient(135deg, #4b0010 0%, #6b0012 50%, #4b0010 100%);
  border-radius:32px;
  padding:56px 48px;
  margin:0 auto 50px;
  box-shadow:
    0 30px 80px rgba(0,0,0,.4),
    0 15px 40px rgba(212,160,23,.3),
    inset 0 2px 0 rgba(255,255,255,.15),
    0 0 60px rgba(212,160,23,.2);
  position:relative;
  overflow:hidden;
  animation:fadeInUp 0.8s ease-out;
  backdrop-filter:blur(20px);
  -webkit-backdrop-filter:blur(20px);
  border:2px solid rgba(255,255,255,.15);
  transform-style:preserve-3d;
}
.permisos-hero::before{
  content:"";
  position:absolute;
  top:-50%;
  right:-50%;
  width:200%;
  height:200%;
  background:radial-gradient(circle, rgba(212,160,23,.1) 0%, transparent 70%);
  animation:rotate 20s linear infinite;
  z-index:0;
}
.permisos-hero::after{
  content:"";
  position:absolute;
  top:-2px;
  left:-2px;
  right:-2px;
  bottom:-2px;
  background:var(--mx-gradient);
  border-radius:32px;
  opacity:0.3;
  z-index:-1;
  filter:blur(20px);
  animation:pulseBorder 3s ease-in-out infinite;
}
@keyframes pulseBorder{
  0%, 100%{ opacity:0.3; transform:scale(1); }
  50%{ opacity:0.5; transform:scale(1.02); }
}
.permisos-content{
  display:grid;
  grid-template-columns:auto 1fr auto;
  gap:24px;
  align-items:center;
  position:relative;
  z-index:1;
}
.permisos-icon{
  width:90px;
  height:90px;
  background:var(--mx-gradient);
  border-radius:24px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#2a0a12;
  box-shadow:
    0 12px 40px rgba(212,160,23,.5),
    0 6px 20px rgba(212,160,23,.4),
    inset 0 1px 0 rgba(255,255,255,.3);
  animation:float 3s ease-in-out infinite, pulseGlow 2s ease-in-out infinite;
  position:relative;
  transform-style:preserve-3d;
}
.permisos-icon::before{
  content:"";
  position:absolute;
  top:-2px;
  left:-2px;
  right:-2px;
  bottom:-2px;
  background:var(--mx-gradient);
  border-radius:26px;
  opacity:0.5;
  filter:blur(12px);
  z-index:-1;
  animation:pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow{
  0%, 100%{ transform:scale(1); opacity:0.5; }
  50%{ transform:scale(1.1); opacity:0.7; }
}
.permisos-text{
  color:#fff;
}
.permisos-title{
  font-size:clamp(22px, 2.5vw, 32px);
  font-weight:800;
  margin:0 0 8px;
  color:#fff;
  text-shadow:0 2px 8px rgba(0,0,0,.3);
}
.permisos-subtitle{
  font-size:clamp(14px, 1.3vw, 18px);
  margin:0;
  color:rgba(255,255,255,.9);
  line-height:1.6;
}
.permisos-actions{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:160px;
}
.btn-permisos-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:16px 28px;
  background:var(--mx-gradient);
  color:#2a0a12;
  text-decoration:none;
  font-weight:700;
  font-size:16px;
  border-radius:14px;
  box-shadow:
    0 8px 24px rgba(212,160,23,.5),
    0 4px 12px rgba(212,160,23,.4),
    inset 0 1px 0 rgba(255,255,255,.4);
  transition:all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.2);
  text-shadow:0 1px 2px rgba(255,255,255,.3);
}
.btn-permisos-primary::before{
  content:"";
  position:absolute;
  top:50%;
  left:50%;
  width:0;
  height:0;
  border-radius:50%;
  background:rgba(255,255,255,.3);
  transform:translate(-50%, -50%);
  transition:width 0.6s, height 0.6s;
}
.btn-permisos-primary:hover::before{
  width:300px;
  height:300px;
}
.btn-permisos-primary:hover{
  transform:translateY(-4px) scale(1.05);
  box-shadow:
    0 16px 40px rgba(212,160,23,.6),
    0 8px 20px rgba(212,160,23,.5),
    inset 0 1px 0 rgba(255,255,255,.5),
    0 0 20px rgba(212,160,23,.4);
  filter:brightness(1.1);
}
.btn-permisos-primary:active{
  transform:translateY(0);
}
.btn-permisos-primary svg{
  transition:transform 0.3s ease;
}
.btn-permisos-primary:hover svg{
  transform:translateX(4px);
}
.btn-permisos-secondary{
  display:inline-block;
  padding:12px 24px;
  background:rgba(255,255,255,.15);
  color:#fff;
  text-decoration:none;
  font-weight:600;
  font-size:15px;
  border-radius:12px;
  border:2px solid rgba(255,255,255,.3);
  text-align:center;
  transition:all 0.3s ease;
  backdrop-filter:blur(10px);
}
.btn-permisos-secondary:hover{
  background:rgba(255,255,255,.25);
  border-color:var(--mx-accent);
  transform:translateY(-2px);
  box-shadow:0 4px 12px rgba(0,0,0,.2);
}

@keyframes fadeInUp{
  from{
    opacity:0;
    transform:translateY(30px);
  }
  to{
    opacity:1;
    transform:translateY(0);
  }
}
@keyframes float{
  0%, 100%{ transform:translateY(0); }
  50%{ transform:translateY(-10px); }
}
@keyframes rotate{
  from{ transform:rotate(0deg); }
  to{ transform:rotate(360deg); }
}

@media (max-width:900px){
  .permisos-content{
    grid-template-columns:1fr;
    text-align:center;
    gap:20px;
  }
  .permisos-icon{
    margin:0 auto;
  }
  .permisos-actions{
    flex-direction:row;
    justify-content:center;
    min-width:auto;
  }
  .permisos-hero{
    padding:32px 24px;
  }
}
@media (max-width:600px){
  .permisos-hero{
    padding:24px 20px;
    border-radius:20px;
  }
  .permisos-icon{
    width:64px;
    height:64px;
  }
  .permisos-actions{
    flex-direction:column;
  }
  .btn-permisos-primary,
  .btn-permisos-secondary{
    width:100%;
  }
}

/* =========================================================
  (11) OVERRIDES FINALES (desktop centrado + sin gaps)
========================================================= */
/* Sin márgenes entre header, navbar y banner */
.navbar, .sub-navbar { margin-top:0 !important; margin-bottom:0 !important; }
#cuerpo { margin-top:0 !important; padding-top:0 !important; }
#flag_banner, .hero { margin-top:0 !important; }

/* Garantizar centrado del contenedor en escritorio */
@media (min-width:1025px){
  .sub-navbar .centrar{
    max-width:1400px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center; /* centra su contenido */
    gap:0;
  }
}
/* Una sola fila y separación amplia solo en pantallas extra anchas */
@media (min-width: 1600px){
  .sub-navbar .nav.navbar-nav{
    flex-wrap:nowrap !important;
    justify-content:center !important;
    gap:26px;
  }
  .sub-navbar .nav > li > a,
  .sub-navbar .nav > li > a.home_menu{
    white-space:nowrap;
    max-width:none;
  }
}

/* =========================================================
   (PERF) Optimización: reduce trabajo de GPU/CPU en equipos lentos
========================================================= */
@media (prefers-reduced-motion: reduce), (update: slow) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .sub-navbar.navbar,
  .stat-card,
  .card,
  .permisos-hero,
  .hero-ampliacion,
  .quick-ampli-card,
  .noticias-portada,
  .footer-asipona {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}


/* El menú se queda pegado arriba. top lo ajusta el script para no dejar hueco. */
.sub-navbar.navbar{
  position:fixed !important;
  top:0 !important;
  left:0; right:0;
  transform:none !important;
  transition:box-shadow .18s ease;
  z-index: 9999 !important;
}
.sub-navbar.navbar.nav-hidden{ transform:none !important; }
.sub-navbar.navbar.nav-stuck{ box-shadow:0 10px 24px rgba(0,0,0,.18); }
#nav-spacer{ height: var(--nav-h, 64px); }
.sub-navbar.navbar.menu-open{ transform:none !important; }


/* =========================================================
  (MEJORA) SECCIONES PRINCIPALES (Marina / Trámites / Info / Negocios)
========================================================= */
.grid-4{ gap:22px !important; }

.grid-4 .card{
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(107,0,18,.10) !important;
  border-radius: 18px !important;
  padding: 18px 18px 14px !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.08) !important;
  overflow: hidden;
}

.grid-4 .card h2{
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
  margin: 0 0 12px !important;
  color: #2a0a12 !important;
  display:flex;
  align-items:center;
  gap:10px;
}

.grid-4 .card h2::before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background: var(--mx-gradient);
  box-shadow: 0 4px 12px rgba(212,160,23,.35);
  flex: 0 0 10px;
}

.grid-4 .list-clean{ margin:0 !important; padding:0 !important; }
.grid-4 .list-clean li{ border-bottom: 1px solid rgba(107,0,18,.08) !important; }
.grid-4 .list-clean li:last-child{ border-bottom:0 !important; }

.grid-4 .list-clean a{
  position: relative;
  display:flex !important;
  align-items:center !important;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 10px !important;
  border-radius: 12px;
  color: #2b2b2b !important;
  font-weight: 700;
  text-decoration: none !important;
  transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
}

.grid-4 .list-clean a::before{
  content:"";
  width:8px !important;
  height:8px !important;
  border-radius:50%;
  background: rgba(212,160,23,.95) !important;
  box-shadow: 0 4px 10px rgba(212,160,23,.25);
  flex: 0 0 8px;
}

.grid-4 .list-clean a::after{
  content:"›";
  font-size: 20px;
  line-height: 1;
  color: rgba(107,0,18,.55);
  margin-left: auto;
  transform: translateX(0);
  transition: transform .12s ease, color .12s ease;
}

.grid-4 .list-clean a:hover{
  background: linear-gradient(90deg, rgba(212,160,23,.10) 0%, rgba(212,160,23,.05) 100%);
  color:#3a000c;
  border-left-color: var(--mx-accent);
  padding-left:16px;
}

.grid-4 .list-clean a:hover::after{
  transform: translateX(3px);
  color: rgba(107,0,18,.85);
}

.grid-4 .list-clean a:focus-visible{
  outline: none;
  box-shadow: 0 0 0 3px rgba(212,160,23,.35) !important;
}

@media (max-width: 640px){
  .grid-4 .card{ padding: 16px 14px 12px !important; }
  .grid-4 .card h2{ font-size: 19px !important; }
  .grid-4 .list-clean a{ padding: 12px 10px !important; }
}

/* --- Parche anti-espacios arriba/abajo del navbar --- */
body { margin-top: 0 !important; }
.hero, #cuerpo, .container:first-of-type { margin-top: 0 !important; }

/* Suaviza el movimiento del navbar y evita flicker */
.navbar.navbar-inverse.sub-navbar {
  will-change: transform;
}

/* El spacer es el que separa el contenido del header fijo */
#nav-spacer { height: var(--nav-h, 64px); }

:root{
    --a11y-z: 99999;
    --a11y-brand: #6b0012;         /* vino institucional */
    --a11y-panel-bg:#ffffff;
    --a11y-panel-border:#e5e5e5;
    --a11y-shadow: 0 10px 24px rgba(0,0,0,.18);
  }
  /* estado global: escala tipográfica */
  html{ font-size: var(--a11y-font-size, 100%); }

  /* estados globales a aplicar */
  html.a11y-grayscale     { filter: grayscale(1) !important; }
  html.a11y-contrast      { filter: contrast(130%) !important; }
  html.a11y-invert        { filter: invert(100%) hue-rotate(180deg) !important; }
  html.a11y-underline a   { text-decoration: underline !important; text-decoration-thickness: .12em; }
  html.a11y-readable      { font-family: "Noto Sans", Arial, Helvetica, sans-serif !important; letter-spacing: .015em; }

  /* Fondo claro (forzamos alto contraste oscuro sobre claro) */
  html.a11y-light, html.a11y-light body{
    background:#fff !important; color:#111 !important;
  }
  html.a11y-light .sub-navbar.navbar { background:#222 !important; }
  html.a11y-light a { color:#0645ad !important; }

  /* Botón flotante */
  #a11y-launcher{
    position: fixed; left: 12px; top: 12px; z-index: var(--a11y-z);
    width: 44px; height:44px; border-radius: 50%;
    display:flex; align-items:center; justify-content:center;
    background: var(--a11y-brand); color:#fff; border:0; cursor:pointer;
    box-shadow: var(--a11y-shadow);
  }
  #a11y-launcher:focus-visible{ outline: 3px solid #ffd66b; outline-offset: 2px; }

  /* Panel lateral */
  #a11y-panel{
    position: fixed; left: 0; top:0; bottom:0; width: 290px;
    transform: translateX(-105%); transition: transform .25s ease;
    background: var(--a11y-panel-bg);
    border-right:1px solid var(--a11y-panel-border);
    z-index: calc(var(--a11y-z) - 1);
    box-shadow: var(--a11y-shadow);
  }
  #a11y-panel[aria-hidden="false"]{ transform: translateX(0); }
  .a11y-header{
    padding:14px 16px; font-weight:800; font-size:1.1rem;
    border-bottom:1px solid var(--a11y-panel-border);
    display:flex; align-items:center; gap:10px;
  }
  .a11y-list{ list-style:none; margin:0; padding:8px 0; max-height: calc(100vh - 120px); overflow:auto; }
  .a11y-list li{ border-bottom:1px solid var(--a11y-panel-border); }
  .a11y-list li:last-child{ border-bottom:0; }

  .a11y-btn{
    width:100%; background:#fff; border:0; text-align:left;
    padding:12px 16px; display:flex; align-items:center; gap:10px;
    cursor:pointer; font-size:15px;
  }
  .a11y-btn:hover{ background:#f6f6f6; }
  .a11y-btn:focus-visible{ outline:3px solid #ffd66b; outline-offset:-2px; }
  .a11y-icon{ width:20px; height:20px; display:inline-flex; align-items:center; justify-content:center; }

  .a11y-footer{ border-top:1px solid var(--a11y-panel-border); padding:12px 16px; }
  .a11y-footer a{ text-decoration:none; }
  .a11y-footer a:hover{ text-decoration:underline; }

  /* Ocultar en impresión */
  @media print{
    #a11y-launcher, #a11y-panel{ display:none !important; }
  }

/* =========================================================
  FIX: evitar módulos borrosos al hacer zoom (Chrome/Edge)
  Causa típica: transform/3D/backdrop-filter en hover (subpixel blur)
  Solución: no mover/escala en hover; mantener solo sombra/borde
========================================================= */
.card{
  transform: none !important;
  transform-style: flat !important;
  perspective: none !important;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
}
.card:hover{
  transform: none !important;
  rotate: 0deg !important;
  box-shadow:
    0 30px 80px rgba(0,0,0,.18),
    0 15px 40px rgba(212,160,23,.22),
    0 0 0 3px rgba(212,160,23,.16),
    inset 0 2px 0 rgba(255,255,255,.95) !important;
  border-color: var(--mx-accent) !important;
}
.card h2, .card h3, .card a{
  transform: none !important;
  filter: none !important;
  text-shadow: none !important;
  backface-visibility: hidden;
}

/* Papel picado navideño, nochebuenas y esferas, alineado al verde institucional. */
        body {
            --hanal-flor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cg fill='%23C8102E'%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2'/%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2' transform='rotate(60 20 20)'/%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2' transform='rotate(120 20 20)'/%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2' transform='rotate(180 20 20)'/%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2' transform='rotate(240 20 20)'/%3E%3Cellipse cx='20' cy='6.5' rx='3.6' ry='7.2' transform='rotate(300 20 20)'/%3E%3C/g%3E%3Cg fill='%23F3C15B'%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(30 20 20)'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(90 20 20)'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(150 20 20)'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(210 20 20)'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(270 20 20)'/%3E%3Cellipse cx='20' cy='11' rx='2' ry='4.2' transform='rotate(330 20 20)'/%3E%3C/g%3E%3Ccircle cx='20' cy='20' r='3.2' fill='%23F6D56A'/%3E%3Ccircle cx='20' cy='20' r='1.3' fill='%23C8102E'/%3E%3C/svg%3E");
            --hanal-calavera: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Crect x='17.2' y='1.5' width='5.6' height='5' rx='1' fill='%231b463c'/%3E%3Cpath fill='%23E8B923' d='M12.5 7.5h15l-2.2 4.2h-10.6z'/%3E%3Ccircle cx='20' cy='28' r='14.5' fill='%23C8102E' stroke='%231b463c' stroke-width='1.5'/%3E%3Cpath d='M11 21.5c2.2-5.4 6.2-8.2 10.2-8.2' stroke='%23fff' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3Ccircle cx='20' cy='28' r='3.3' fill='%23F6D56A'/%3E%3C/svg%3E");
            --hanal-estrella: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Cpath fill='%23E8B923' stroke='%231b463c' stroke-width='1.2' stroke-linejoin='round' d='M20 4l4.2 10.4 11.3 1.1-8.6 7.4 2.6 11.1L20 28.6 10.5 34l2.6-11.1L4.5 15.5l11.3-1.1z'/%3E%3C/svg%3E");
            --hanal-campana: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 48'%3E%3Crect x='17.2' y='2' width='5.6' height='4.2' rx='1' fill='%231b463c'/%3E%3Cpath fill='%23E8B923' stroke='%231b463c' stroke-width='1.3' d='M20 5.2c-7.4 1.5-11.2 6.4-11.2 13v7.4L5 31.6h30l-3.8-6V18.2c0-6.6-3.8-11.5-11.2-13z'/%3E%3Ccircle cx='20' cy='38.5' r='3.4' fill='%23C8102E' stroke='%231b463c' stroke-width='1.1'/%3E%3C/svg%3E");
            --hanal-bandera-naranja: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 46'%3E%3Cpath fill='%23C8102E' d='M1 0h34v26l-4.25 7L26.5 27 22.25 34 18 27l-4.25 7L9.5 27 5.25 34 1 27V0z'/%3E%3Cpath fill='%23F6D56A' d='M18 5.8l1.8 4.3h4.6l-3.7 2.8 1.4 4.5L18 15l-4.1 2.4 1.4-4.5-3.7-2.8h4.6z'/%3E%3C/svg%3E");
            --hanal-bandera-morada: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 46'%3E%3Cpath fill='%231F6B4A' d='M1 0h34v26l-4.25 7L26.5 27 22.25 34 18 27l-4.25 7L9.5 27 5.25 34 1 27V0z'/%3E%3Cpath fill='%23F6D56A' d='M18 5.8l1.8 4.3h4.6l-3.7 2.8 1.4 4.5L18 15l-4.1 2.4 1.4-4.5-3.7-2.8h4.6z'/%3E%3C/svg%3E");
        }

        .hanal-corona {
            position: relative;
            overflow: hidden;
            max-width: 1100px;
            margin: 12px auto 18px auto;
            padding: 0 12px 14px 12px;
            background:
                radial-gradient(circle at 12% 70%, rgba(200, 16, 46, 0.13), transparent 28%),
                radial-gradient(circle at 88% 70%, rgba(31, 107, 74, 0.16), transparent 28%),
                linear-gradient(180deg, #fffdf8, #f4f7f2);
            border-radius: 0 0 18px 18px;
            box-shadow: 0 12px 24px rgba(35, 91, 78, 0.07);
        }

        .hanal-banderas {
            position: relative;
            z-index: 1;
            display: flex;
            justify-content: center;
            height: 52px;
            overflow: hidden;
            background: linear-gradient(#235b4e, #235b4e) center top / 100% 2px no-repeat;
        }

        .hanal-bandera {
            flex: 1 1 28px;
            max-width: 44px;
            height: 48px;
            transform-origin: center top;
            animation: hanal-flag 2.2s ease-in-out infinite;
        }

        .hanal-mini {
            height: 30px;
            margin: -18px -16px 12px;
            background: none;
        }

        .hero-ampliacion > .hanal-mini {
            margin: -25px -20px 14px;
        }

        .hanal-mini .hanal-bandera {
            max-width: 32px;
            height: 28px;
        }

        .hanal-mini-cuadro {
            margin: 0 0 8px 0;
            height: 34px;
        }

        .hanal-mini-cuadro .hanal-bandera {
            flex: 1 1 22px;
            max-width: 44px;
            height: 32px;
        }

        .hanal-bandera:nth-child(odd) {
            background: var(--hanal-bandera-naranja) center top / contain no-repeat;
        }

        .hanal-bandera:nth-child(even) {
            background: var(--hanal-bandera-morada) center top / contain no-repeat;
            animation-duration: 2.9s;
        }

        .hanal-bandera:nth-child(3n) { animation-delay: -0.45s; }
        .hanal-bandera:nth-child(4n) { animation-delay: -1s; }
        .hanal-bandera:nth-child(5n) { animation-delay: -1.5s; }

        .hanal-petal {
            position: absolute;
            top: 42px;
            z-index: 0;
            width: 18px;
            height: 18px;
            pointer-events: none;
            background: var(--hanal-estrella) center / contain no-repeat;
            animation: hanal-caer 7.5s linear infinite;
        }

        .hanal-petal:nth-of-type(1) { left: 6%; animation-duration: 6.8s; }
        .hanal-petal:nth-of-type(2) { left: 20%; width: 14px; height: 14px; animation-duration: 8.4s; animation-delay: -2.2s; animation-name: hanal-caer-izq; }
        .hanal-petal:nth-of-type(3) { left: 36%; animation-duration: 7.2s; animation-delay: -4s; }
        .hanal-petal:nth-of-type(4) { left: 54%; width: 15px; height: 15px; animation-duration: 9s; animation-delay: -1.1s; animation-name: hanal-caer-izq; }
        .hanal-petal:nth-of-type(5) { left: 72%; animation-duration: 6.4s; animation-delay: -3.4s; }
        .hanal-petal:nth-of-type(6) { left: 86%; width: 13px; height: 13px; animation-duration: 8s; animation-delay: -5s; animation-name: hanal-caer-izq; }
        .hanal-petal:nth-of-type(7) { left: 12%; animation-duration: 8.8s; animation-delay: -3s; }
        .hanal-petal:nth-of-type(8) { left: 30%; animation-duration: 7.6s; animation-delay: -1.6s; animation-name: hanal-caer-izq; }
        .hanal-petal:nth-of-type(9) { left: 46%; width: 16px; height: 16px; animation-duration: 9.2s; animation-delay: -5.5s; }
        .hanal-petal:nth-of-type(10) { left: 64%; animation-duration: 6.6s; animation-delay: -2.8s; animation-name: hanal-caer-izq; }
        .hanal-petal:nth-of-type(11) { left: 80%; animation-duration: 8.1s; animation-delay: -4.4s; }
        .hanal-petal:nth-of-type(12) { left: 94%; animation-duration: 7.4s; animation-delay: -0.7s; animation-name: hanal-caer-izq; }

        .hanal-petal-calavera {
            width: 20px;
            height: 24px;
            background-image: var(--hanal-estrella);
        }

        .hanal-fila {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: flex-end;
            justify-content: center;
            gap: 18px;
            padding-top: 16px;
        }

        .hanal-fila .hanal-nombre {
            margin-top: 0;
            margin-bottom: 0;
        }

        .hanal-vela {
            display: none;
            position: relative;
            flex: 0 0 14px;
            width: 14px;
            height: 32px;
            margin-bottom: 4px;
            border-radius: 3px 3px 4px 4px;
            background:
                linear-gradient(#c8102e, #c8102e) center bottom / 100% 7px no-repeat,
                linear-gradient(#fffdf8, #f3e4c4);
            box-shadow: inset 0 0 0 1px rgba(27, 70, 60, 0.18);
        }

        .hanal-vela-der {
            background:
                linear-gradient(#1f6b4a, #1f6b4a) center bottom / 100% 7px no-repeat,
                linear-gradient(#fffdf8, #f3e4c4);
        }

        .hanal-vela::before {
            content: "";
            position: absolute;
            top: -5px;
            left: 50%;
            width: 2px;
            height: 6px;
            margin-left: -1px;
            background: #1b463c;
        }

        .hanal-vela::after {
            content: "";
            position: absolute;
            top: -22px;
            left: 50%;
            width: 12px;
            height: 18px;
            margin-left: -6px;
            border-radius: 50% 50% 46% 46% / 62% 62% 38% 38%;
            background: radial-gradient(circle at 50% 68%, #fff8d2 0 2px, #f3c15b 3px, #e23b2f 8px, rgba(226, 59, 47, 0) 10px);
            transform-origin: center bottom;
            animation: hanal-llama 0.9s ease-in-out infinite;
            filter: drop-shadow(0 0 4px rgba(243, 193, 91, 0.85));
        }

        .hanal-vela-der::after {
            animation-delay: -0.4s;
        }

        .hanal-corona p.hanal-nombre {
            position: relative;
            z-index: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: fit-content;
            max-width: 100%;
            margin: 10px auto 4px auto;
            padding: 0;
            text-align: center;
            font-family: Montserrat, "Open Sans", sans-serif;
            font-size: 18px;
            font-weight: 800;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: #1b463c !important;
        }

        .hanal-corona .hanal-fila p.hanal-nombre {
            margin: 0;
        }

        .hanal-corona .hanal-fila p.hanal-nombre {
            margin: 0;
        }

        .noticias-portada__title,
        .hero-ampliacion .hero-title,
        .quick-ampli-card__title,
        .hanal-sin-uso,
        .hanal-sin-uso-b {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            width: fit-content;
            max-width: 100%;
            margin-left: auto;
            margin-right: auto;
        }

        .noticias-portada__title { margin-bottom: 12px; }
        .hero-ampliacion .hero-title { margin-bottom: 10px; }
        .hanal-sin-uso { margin-left: 0; margin-right: auto; }

        .hanal-corona p.hanal-nombre::before,
        .hanal-corona p.hanal-nombre::after,
        .noticias-portada__title::before,
        .noticias-portada__title::after,
        .hero-ampliacion .hero-title::before,
        .hero-ampliacion .hero-title::after,
        .quick-ampli-card__title::before,
        .quick-ampli-card__title::after,
        .hanal-sin-uso::before,
        .hanal-sin-uso::after,
        .hanal-sin-uso-b::before,
        .hanal-sin-uso-b::after {
            content: "";
            width: 32px;
            height: 36px;
            flex: 0 0 32px;
            background: var(--hanal-estrella) center / contain no-repeat;
            animation: hanal-bob 2.8s ease-in-out infinite;
        }

        .hanal-corona p.hanal-nombre::before,
        .hanal-corona p.hanal-nombre::after {
            width: 42px;
            height: 48px;
            flex-basis: 42px;
        }

        .quick-btn::before,
        #cuerpo h4::before,
        #cuerpo h4::after {
            content: "";
            background: var(--hanal-estrella) center / contain no-repeat;
            animation: hanal-bob 3s ease-in-out infinite;
        }

        .quick-btn::before {
            display: block;
            width: 24px;
            height: 28px;
            margin: 0 auto 6px;
        }

        .quick-btn:nth-child(even)::before { animation-name: hanal-bob-rev; animation-delay: -0.7s; }
        .quick-btn:nth-child(3n)::before { animation-delay: -1.4s; }

        #cuerpo h4 {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        #cuerpo h4::before,
        #cuerpo h4::after {
            width: 24px;
            height: 28px;
            flex: 0 0 24px;
        }

        #cuerpo h4::after { animation-name: hanal-bob-rev; }

        .hanal-corona p.hanal-nombre::after,
        .noticias-portada__title::after,
        .hero-ampliacion .hero-title::after,
        .quick-ampli-card__title::after,
        .hanal-sin-uso::after,
        .hanal-sin-uso-b::after {
            animation-name: hanal-bob-rev;
        }

        .hanal-corona::after {
            content: "";
            position: relative;
            z-index: 1;
            display: block;
            width: 320px;
            height: 34px;
            margin: 8px auto 0 auto;
            background: var(--hanal-estrella) repeat-x center;
            background-size: 32px 32px;
            animation: hanal-flores 8s linear infinite;
        }

        @keyframes hanal-flag {
            0%, 100% { transform: rotate(-8deg); }
            50% { transform: rotate(8deg); }
        }

        @keyframes hanal-bob {
            0%, 100% { transform: translateY(0) rotate(-10deg); }
            50% { transform: translateY(-7px) rotate(10deg); }
        }

        @keyframes hanal-bob-rev {
            0%, 100% { transform: translateY(0) rotate(10deg); }
            50% { transform: translateY(-7px) rotate(-10deg); }
        }

        @keyframes hanal-caer {
            0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
            16% { opacity: 0.95; }
            100% { transform: translate3d(16px, 96px, 0) rotate(200deg); opacity: 0; }
        }

        @keyframes hanal-caer-izq {
            0% { transform: translate3d(0, -12px, 0) rotate(0deg); opacity: 0; }
            16% { opacity: 0.95; }
            100% { transform: translate3d(-16px, 96px, 0) rotate(-200deg); opacity: 0; }
        }

        @keyframes hanal-llama {
            0%, 100% { transform: scale(1, 1) rotate(-4deg); }
            50% { transform: scale(0.82, 1.12) rotate(4deg); }
        }

        @keyframes hanal-flores {
            from { background-position-x: 0; }
            to { background-position-x: 320px; }
        }

        @media (max-width: 800px) {
            .hanal-bandera:nth-child(n+17) { display: none; }
        }

        @media (max-width: 700px) {
            .hanal-corona p.hanal-nombre {
                font-size: 16px;
                letter-spacing: 0.08em;
                gap: 8px;
            }

            .noticias-portada__title::before,
            .noticias-portada__title::after,
            .hero-ampliacion .hero-title::before,
            .hero-ampliacion .hero-title::after,
            .quick-ampli-card__title::before,
            .quick-ampli-card__title::after,
            .hanal-sin-uso::before,
            .hanal-sin-uso::after,
            .hanal-sin-uso-b::before,
            .hanal-sin-uso-b::after {
                width: 24px;
                height: 28px;
                flex-basis: 24px;
            }

            .hanal-corona p.hanal-nombre::before,
            .hanal-corona p.hanal-nombre::after {
                width: 30px;
                height: 34px;
                flex-basis: 30px;
            }

            .hanal-corona p.hanal-nombre {
                padding: 0 22px;
                background-size: 18px 18px;
            }

            .hanal-fila {
                gap: 8px;
                padding-top: 14px;
            }

            .hanal-vela {
                width: 12px;
                height: 26px;
                flex-basis: 12px;
            }
        }

        @media (max-width: 480px) {
            .hanal-bandera:nth-child(n+11) { display: none; }
        }

        @media (prefers-reduced-motion: reduce) {
            .hanal-bandera,
            .hanal-petal,
            .hanal-corona::after,
            .hanal-corona p.hanal-nombre::before,
            .hanal-corona p.hanal-nombre::after,
            .noticias-portada__title::before,
            .noticias-portada__title::after,
            .hero-ampliacion .hero-title::before,
            .hero-ampliacion .hero-title::after,
            .quick-ampli-card__title::before,
            .quick-ampli-card__title::after,
            .hanal-sin-uso::before,
            .hanal-sin-uso::after,
            .hanal-sin-uso-b::before,
            .hanal-sin-uso-b::after,
            .quick-btn::before,
            #cuerpo h4::before,
            #cuerpo h4::after,
            .hanal-vela::after {
                animation: none;
            }
        }

        .quick-btn {
            display: block;
            padding: 14px 12px;
            text-align: center;
            text-decoration: none;
            font-weight: 800;
            border-radius: 14px;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, .08);
            box-shadow: 0 8px 18px rgba(0, 0, 0, .06);
            color: #235b4e;
        }
        .quick-btn small {
            display: block;
            font-weight: 700;
            font-size: 16px;
            color: #2a0a12;
            margin-top: 6px;
        }
        .quick-btn:hover { text-decoration: none; transform: translateY(-2px); }
        section.card > .hanal-mini-cuadro {
            margin: -28px -28px 12px;
        }
        .grid-4 .card > h2,
        .grid-4 .card > h3 {
            justify-content: center;
            text-align: center;
            gap: 6px;
            font-size: 16px !important;
            line-height: 1.25;
            letter-spacing: 0;
            padding: 10px 8px !important;
            overflow-wrap: normal;
            word-break: normal;
        }
        .grid-4 .card > h2::before,
        .grid-4 .card > h3::before {
            position: static;
            inset: auto;
            opacity: 1;
            width: 24px;
            height: 28px;
            flex: 0 0 24px;
            border-radius: 0;
            background: var(--hanal-estrella) center / contain no-repeat;
            box-shadow: none;
            animation: hanal-bob 2.8s ease-in-out infinite;
        }
        .grid-4 .card > h3 { display: flex; align-items: center; }
        .grid-4 .card > h2::after,
        .grid-4 .card > h3::after {
            content: "";
            width: 24px;
            height: 28px;
            margin-left: 0;
            flex: 0 0 24px;
            background: var(--hanal-estrella) center / contain no-repeat;
            animation: hanal-bob-rev 2.8s ease-in-out infinite;
        }

        .section-title {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: center;
            column-gap: 12px;
        }

        .section-title::after {
            flex: 0 0 140px;
            margin-left: calc(50% - 70px);
            margin-right: calc(50% - 70px);
        }

        .hanal-bloque > .hanal-mini {
            margin: 18px 0 0;
        }

        /* Menos estrellas: se quedan las del letrero y cuatro cayendo. */
        .hanal-petal:nth-of-type(n+5) { display: none; }
        .hanal-corona::after { display: none; }
        .noticias-portada__title::before,
        .noticias-portada__title::after,
        .hero-ampliacion .hero-title::before,
        .hero-ampliacion .hero-title::after,
        .quick-ampli-card__title::before,
        .quick-ampli-card__title::after,
        .quick-btn::before,
        #cuerpo h4::before,
        #cuerpo h4::after,
        .grid-4 .card > h2::before,
        .grid-4 .card > h2::after,
        .grid-4 .card > h3::before,
        .grid-4 .card > h3::after {
            content: none;
            display: none;
        }

/* FIX: evitar texto borroso en hover */
.list-clean a,
.list-clean a:hover{
  transform:none !important;
  filter:none !important;
  text-shadow:none !important;
  backface-visibility:hidden;
}

/* El borde degradado ignora el radio y se sale de la esquina. */
.card h2,
.card h3,
.card:hover h2,
.card:hover h3,
.grid-4 .card > h2,
.grid-4 .card > h3{
  border-image: none !important;
  border: 2px solid #d4a017 !important;
  border-radius: 14px !important;
  overflow: hidden;
  transform: none !important;
}

/* La imagen no debe crecer ni dejar la esquina blanca fuera del borde. */
.banners a,
.banners-owl .item > a{
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
  transform: none !important;
  box-shadow: none;
}
.imgBanner,
.imgBanner:hover,
.banners a:hover,
.banners a:hover .imgBanner{
  transform: none !important;
}
