/* ============================================================
   MUNDOCIO — CSS GLOBAL — Mobile-first
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Paytone+One&display=swap');

/* ---- Variables ------------------------------------------- */
:root {
  --naranja:   #f47920;
  --naranja-d: #d9620a;
  --verde:     #7ab31a;
  --verde-d:   #5c8c0e;
  --azul:      #1a9cd8;
  --azul-d:    #1278a8;
  --gris-bg:   #f5f5f5;
  --gris-pie:  #2b2b2b;
  --blanco:    #ffffff;
  --texto:     #333333;
  --radio:     10px;
  --sombra:    0 4px 18px rgba(0,0,0,.12);
  --trans:     .2s ease;
}

/* ---- Reset básico ---------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  font-size: 16px;
  color: var(--texto);
  background: var(--blanco);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---- Topbar (tel + email + enlaces rápidos) -------------- */
.topbar {
  background: var(--gris-pie);
  color: #ccc;
  font-size: .78rem;
  padding: .45rem 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: space-between;
}
.topbar a { color: #ccc; transition: color var(--trans); }
.topbar a:hover { color: var(--naranja); }
.topbar .topbar-links { display: flex; gap: 1rem; }

/* ---- Header ---------------------------------------------- */
header {
  background: var(--blanco);
  border-bottom: 3px solid var(--naranja);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--sombra);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo img { height: 56px; width: auto; }

/* ---- Hamburger ------------------------------------------- */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: .4rem;
}
.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--naranja);
  border-radius: 3px;
  transition: var(--trans);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---- Navegación principal -------------------------------- */
nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,.92);
  z-index: 200;
  overflow-y: auto;
  padding: 4rem 1.5rem 2rem;
  flex-direction: column;
}
nav.open { display: flex; }
.nav-close {
  position: absolute;
  top: 1rem; right: 1.2rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}
nav > ul { width: 100%; }
nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.12); }
nav > ul > li > a, nav > ul > li > span {
  display: block;
  padding: .85rem .5rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
nav > ul > li > a:hover, nav > ul > li > span:hover { color: var(--naranja); }
.arrow { font-size: .8em; transition: transform var(--trans); }
.has-dropdown.open .arrow { transform: rotate(90deg); }
.dropdown {
  display: none;
  padding: 0 .5rem .6rem 1rem;
  flex-direction: column;
  gap: .2rem;
}
.has-dropdown.open .dropdown { display: flex; }
.dropdown a {
  display: block;
  padding: .4rem .5rem;
  color: #ddd;
  font-size: .92rem;
  border-left: 2px solid var(--naranja);
  padding-left: .8rem;
}
.dropdown a:hover { color: var(--naranja); }

/* Desktop nav */
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  nav {
    display: flex !important;
    position: static;
    background: none;
    padding: 0;
    flex-direction: row;
    overflow: visible;
    align-items: center;
  }
  .nav-close { display: none; }
  nav > ul {
    display: flex;
    gap: .2rem;
    width: auto;
  }
  nav > ul > li { border: none; position: relative; }
  nav > ul > li > a, nav > ul > li > span {
    color: var(--texto);
    font-size: .86rem;
    padding: .5rem .7rem;
    border-radius: var(--radio);
    white-space: nowrap;
  }
  nav > ul > li:hover > a,
  nav > ul > li:hover > span,
  nav > ul > li.active > a { color: var(--naranja); }
  .arrow { display: none; }
  .dropdown {
    display: block !important;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: var(--blanco);
    border-radius: var(--radio);
    box-shadow: var(--sombra);
    padding: .6rem .5rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
    transition: opacity var(--trans), transform var(--trans);
    z-index: 300;
    border-top: 3px solid var(--naranja);
  }
  nav > ul > li:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
  .dropdown a {
    color: var(--texto);
    border-left: none;
    padding: .4rem .8rem;
    border-radius: 6px;
    font-size: .85rem;
  }
  .dropdown a:hover { background: var(--gris-bg); color: var(--naranja); }
}

/* ---- Hero (solo home) ------------------------------------ */
.hero {
  background: linear-gradient(135deg, var(--naranja) 0%, #f7a54a 60%, var(--verde) 100%);
  color: #fff;
  padding: 3rem 1rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Ccircle cx='30' cy='30' r='10'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
  pointer-events: none;
}
.hero h1 {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.8rem, 6vw, 3.2rem);
  line-height: 1.15;
  margin-bottom: .6rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.hero p {
  font-size: clamp(.95rem, 2.5vw, 1.15rem);
  opacity: .92;
  max-width: 560px;
  margin: 0 auto 1.4rem;
}
.btn {
  display: inline-block;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  font-weight: 800;
  font-size: .95rem;
  transition: transform var(--trans), box-shadow var(--trans);
  cursor: pointer;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn-blanco { background: #fff; color: var(--naranja); }
.btn-naranja { background: var(--naranja); color: #fff; }
.btn-verde { background: var(--verde); color: #fff; }

/* ---- Award badge ----------------------------------------- */
.award-badge {
  display: inline-block;
  margin-top: 1.2rem;
}
.award-badge img { height: 80px; margin: 0 auto; }

/* ---- Sección genérica ------------------------------------ */
.seccion {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1rem;
}
.seccion-titulo {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.3rem, 4vw, 2rem);
  color: var(--naranja);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.seccion-titulo::after {
  content: '';
  flex: 1;
  height: 3px;
  background: linear-gradient(to right, var(--naranja), transparent);
  border-radius: 3px;
}

/* ---- Grid de servicios (home) ---------------------------- */
.servicios-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 540px) { .servicios-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .servicios-grid { grid-template-columns: repeat(4,1fr); } }

.servicio-card {
  background: var(--gris-bg);
  border-radius: var(--radio);
  padding: 1.4rem 1.2rem;
  text-align: center;
  transition: transform var(--trans), box-shadow var(--trans);
  border-top: 4px solid var(--naranja);
  cursor: pointer;
}
.servicio-card:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.servicio-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .5rem; color: var(--naranja); }
.servicio-card p { font-size: .88rem; color: #555; }

/* ---- Categorías grandes (home) --------------------------- */
.categorias-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .categorias-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .categorias-grid { grid-template-columns: repeat(3, 1fr); } }

.categoria-card {
  border-radius: var(--radio);
  padding: 1.5rem 1.2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform var(--trans);
}
.categoria-card:hover { transform: translateY(-4px); }
.categoria-card h3 {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.05rem;
  text-shadow: 0 1px 4px rgba(0,0,0,.3);
  margin-bottom: .3rem;
}
.categoria-card p { font-size: .82rem; opacity: .9; }
.cat-naranja { background: linear-gradient(135deg, #f47920, #f7a54a); }
.cat-verde   { background: linear-gradient(135deg, #5c8c0e, #7ab31a); }
.cat-azul    { background: linear-gradient(135deg, #1278a8, #1a9cd8); }
.cat-morado  { background: linear-gradient(135deg, #7b3fa0, #a855d4); }
.cat-rosa    { background: linear-gradient(135deg, #c0185e, #e83e8c); }
.cat-teal    { background: linear-gradient(135deg, #0c7975, #14b8b0); }
.cat-icon {
  font-size: 2.2rem;
  position: absolute;
  top: 1rem; right: 1rem;
  opacity: .35;
}

/* ---- Página interior ------------------------------------- */
.page-hero {
  background: linear-gradient(120deg, var(--naranja) 0%, #f7a54a 100%);
  color: #fff;
  padding: 2.2rem 1rem 1.8rem;
  text-align: center;
}
.page-hero h1 {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.4rem, 5vw, 2.4rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.page-hero .breadcrumb {
  font-size: .8rem;
  opacity: .8;
  margin-bottom: .5rem;
}
.page-hero .breadcrumb a { text-decoration: underline; }

/* ---- Contenido interior ---------------------------------- */
.contenido {
  max-width: 860px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}
.contenido p { margin-bottom: 1rem; }
.contenido h2 {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.3rem;
  color: var(--naranja);
  margin: 1.6rem 0 .6rem;
}
.contenido h3 {
  font-weight: 800;
  color: var(--verde);
  margin: 1.2rem 0 .4rem;
  font-size: 1rem;
}
/* En subsecciones el h3 usa el estilo con separador (definido más abajo) */
.contenido ul {
  list-style: disc;
  padding-left: 1.4rem;
  margin-bottom: 1rem;
}
.contenido ul li { margin-bottom: .3rem; }

/* ---- CTA pregúntanos ------------------------------------- */
.cta-box {
  background: linear-gradient(120deg, var(--naranja), #f7a54a);
  border-radius: var(--radio);
  padding: 1.8rem 1.4rem;
  text-align: center;
  color: #fff;
  margin: 2rem 0;
}
.cta-box h2 {
  font-family: 'Paytone One', sans-serif;
  font-size: 1.3rem;
  margin-bottom: .8rem;
  color: #fff;
}

/* ---- Footer ---------------------------------------------- */
footer {
  background: var(--gris-pie);
  color: #ccc;
  padding: 2.5rem 1rem 1.2rem;
  margin-top: 2rem;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }

.footer-col h4 {
  font-family: 'Paytone One', sans-serif;
  font-size: .95rem;
  color: var(--naranja);
  margin-bottom: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.footer-col p, .footer-col address { font-style: normal; font-size: .88rem; line-height: 1.7; }
.footer-col a { color: #bbb; }
.footer-col a:hover { color: var(--naranja); }
.footer-bottom {
  max-width: 1100px;
  margin: 1.5rem auto 0;
  border-top: 1px solid #444;
  padding-top: 1rem;
  text-align: center;
  font-size: .78rem;
  color: #777;
}

/* ---- Formulario de contacto ------------------------------ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 620px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: .75rem 1rem;
  border: 2px solid #ddd;
  border-radius: var(--radio);
  font-family: 'Nunito', sans-serif;
  font-size: .95rem;
  transition: border-color var(--trans);
  background: var(--gris-bg);
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--naranja);
}
.contact-form textarea { min-height: 130px; resize: vertical; }
.info-contacto {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 700;
}
.info-item .ico { font-size: 1.4rem; }

/* ---- Clientes grid --------------------------------------- */
.clientes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.clientes-grid .cliente-item {
  background: var(--gris-bg);
  border-radius: var(--radio);
  padding: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}
.clientes-grid .cliente-item img {
  max-height: 50px;
  object-fit: contain;
  margin: 0 auto;
}
.clientes-lista {
  columns: 2;
  gap: 1rem;
  font-size: .9rem;
}
@media (min-width: 640px) { .clientes-lista { columns: 3; } }
.clientes-lista li { margin-bottom: .3rem; padding-left: .8rem; position: relative; }
.clientes-lista li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--naranja);
}

/* ---- Botón volver ---------------------------------------- */
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: var(--naranja);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 1.5rem;
}
.btn-volver:hover { text-decoration: underline; }

/* ---- Carrusel CSS puro ----------------------------------- */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--radio);
  background: #111;
  margin: 2rem 0;
  /* aspect-ratio adaptable */
  aspect-ratio: 16/7;
}
@media (max-width: 540px) { .carousel { aspect-ratio: 4/3; } }

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.carousel-slide .caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.6));
  color: #fff;
  padding: 1.4rem 1rem .8rem;
  font-size: .85rem;
  font-weight: 600;
}

/* Flechas */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.85);
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--naranja);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 10;
  transition: background var(--trans), transform var(--trans);
}
.carousel-btn:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.carousel-btn.prev { left: .6rem; }
.carousel-btn.next { right: .6rem; }

/* Dots */
.carousel-dots {
  position: absolute;
  bottom: .5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .4rem;
  z-index: 10;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.5);
  cursor: pointer;
  padding: 0;
  transition: background var(--trans), transform var(--trans);
}
.carousel-dots button.active {
  background: #fff;
  transform: scale(1.3);
}

/* Placeholder cuando no hay imágenes cargadas */
.carousel-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: .8rem;
  background: linear-gradient(135deg, #f0f0f0, #e0e0e0);
  color: #999;
  font-size: .9rem;
  text-align: center;
  padding: 2rem;
}
.carousel-placeholder .ph-icon { font-size: 3rem; opacity: .4; }

/* ---- Botón catálogo PDF ---------------------------------- */
.btn-catalogo {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gris-bg);
  border: 2px solid var(--naranja);
  color: var(--naranja);
  border-radius: var(--radio);
  padding: .65rem 1.2rem;
  font-weight: 800;
  font-size: .9rem;
  transition: background var(--trans), color var(--trans);
  margin: .4rem .4rem .4rem 0;
}
.btn-catalogo:hover { background: var(--naranja); color: #fff; }
.btn-catalogo .ico-pdf { font-size: 1.1rem; }
.catalogos-wrap { margin: 1.5rem 0; display: flex; flex-wrap: wrap; gap: .2rem; }

/* ---- Animación entrada ----------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease both; }
.delay-1 { animation-delay: .1s; }
.delay-2 { animation-delay: .2s; }
.delay-3 { animation-delay: .3s; }

/* ============================================================
   NAVEGACIÓN — modo link+flecha separados
   ============================================================ */

/* Móvil: link + flecha en la misma fila */
nav > ul > li.has-dropdown {
  display: flex;
  flex-wrap: nowrap;   /* MISMO ROW — sin wrap */
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
nav > ul > li.has-dropdown > a {
  flex: 1;
  min-width: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: .85rem .5rem;
  display: flex;
  align-items: center;
}
.arrow-btn {
  background: none;
  border: none;
  border-left: 1px solid rgba(255,255,255,.15);
  color: #fff;
  font-size: 1.3rem;
  padding: 0 .9rem;
  cursor: pointer;
  line-height: 1;
  transition: transform var(--trans);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.has-dropdown.open .arrow-btn { transform: rotate(90deg); }

/* Desktop: link de categoría clicable, flecha abre dropdown */
@media (min-width: 900px) {
  nav > ul > li.has-dropdown {
    border-bottom: none;
    position: relative;
  }
  nav > ul > li.has-dropdown > a {
    color: var(--texto);
    font-size: .86rem;
    padding: .5rem .2rem .5rem .7rem;
    white-space: nowrap;
  }
  nav > ul > li.has-dropdown > a:hover { color: var(--naranja); }
  .arrow-btn {
    color: var(--texto);
    font-size: .8rem;
    padding: .5rem .5rem .5rem .1rem;
    border-left: none;
  }
  /* Dropdown se abre al hover del li completo */
  nav > ul > li.has-dropdown:hover .dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
  }
}

/* ============================================================
   SUBSECCIÓN — separador entre items h3
   ============================================================ */

/* Línea separadora antes de cada h3 dentro de la subsección */
.subseccion-body h3 {
  border-top: 1px solid #e8e8e8;
  margin-top: 1.4rem;
  padding-top: 1.2rem;
  margin-bottom: .4rem;
}
/* El primer h3 no lleva línea arriba */
.subseccion-body h3:first-child {
  border-top: none;
  margin-top: .6rem;
  padding-top: 0;
}

/* ============================================================
   MARQUESINA FLOTANTE DERECHA
   ============================================================ */

/* Contenedor que flota a la derecha del texto */
.marquesina {
  float: right;
  width: 340px;           /* ancho fijo — mediana de las imágenes ~350px */
  margin: 0 0 1.2rem 1.8rem;
  border-radius: var(--radio);
  overflow: hidden;
  box-shadow: var(--sombra);
  background: #111;
  flex-shrink: 0;
}
/* En pantallas pequeñas ocupa el ancho completo y no flota */
@media (max-width: 640px) {
  .marquesina {
    float: none;
    width: 100%;
    margin: 0 0 1.4rem 0;
  }
}

/* Pista de diapositivas dentro de la marquesina */
.marquesina .carousel-track {
  display: flex;
  transition: transform .5s cubic-bezier(.4,0,.2,1);
}
.marquesina .carousel-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
  /* Alto proporcional a la mediana de imágenes 370x247 ≈ ratio 3:2 */
  aspect-ratio: 340/300;   /* ancho marquesina / altura media fotos (~304px) */
}
.marquesina .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Flechas pequeñas para la marquesina */
.marquesina .carousel-btn {
  width: 28px;
  height: 28px;
  font-size: .9rem;
}
/* Clearfix: el texto que viene después no se queda al lado */
.subseccion-body::after {
  content: '';
  display: table;
  clear: both;
}

/* ============================================================
   PÁGINA DE CATEGORÍA — secciones verticales
   ============================================================ */

/* Separador entre subsecciones */
.subseccion {
  padding: 3rem 0 2rem;
  border-bottom: 2px solid var(--gris-bg);
}
.subseccion:last-child { border-bottom: none; }

/* Cabecera de subsección */
.subseccion-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  scroll-margin-top: 80px;   /* compensa el header sticky */
}
.subseccion-header h2 {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.3rem, 4vw, 1.9rem);
  color: var(--naranja);
  margin: 0;
}
.subseccion-num {
  background: var(--naranja);
  color: #fff;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: .85rem;
  flex-shrink: 0;
}

/* Ancla que desciende bajo el header sticky */
.anchor-target {
  display: block;
  visibility: hidden;
  height: 0;
  margin-top: -90px;
  padding-top: 90px;
}

/* Hero de categoría (banda naranja encima de todo el conjunto) */
.cat-hero {
  background: linear-gradient(120deg, var(--naranja) 0%, #f7a54a 100%);
  color: #fff;
  padding: 2.2rem 1rem 1.8rem;
  text-align: center;
  margin-bottom: 0;
}
.cat-hero h1 {
  font-family: 'Paytone One', sans-serif;
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  text-shadow: 0 2px 8px rgba(0,0,0,.2);
  margin-bottom: .4rem;
}
.cat-hero .cat-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-top: 1rem;
}
@media (max-width: 768px) {
  .cat-hero .cat-nav {
    display: none;
  }
}
.cat-hero .cat-nav a {
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.5);
  border-radius: 50px;
  padding: .35rem .9rem;
  font-size: .82rem;
  font-weight: 700;
  transition: background var(--trans);
  white-space: nowrap;
}
.cat-hero .cat-nav a:hover { background: rgba(255,255,255,.38); }

/* Contenedor del conjunto de subsecciones */
.cat-contenido {
  max-width: 860px;
  margin: 0 auto;
  padding: 1rem 1rem 3rem;
}

/* ============================================================
   MARQUESINA PORTADA — ancho completo
   ============================================================ */
.hero-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #111;
  /* Sin aspect-ratio fijo — la altura la marca la imagen */
}
@media (max-width: 640px) {
  .hero-carousel { aspect-ratio: 4/3; }
}
.hero-carousel .carousel-track { height: 100%; }
.hero-carousel .carousel-slide { min-width: 100%; height: 100%; }
.hero-carousel .carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.hero-carousel .carousel-btn {
  width: 44px; height: 44px; font-size: 1.4rem;
}
