/* Estación Vía Cultural — estilos del inicio. Solo se carga en el home. */
/* Slider */

.evc-slider-wrapper {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
}

#hero-slider-custom {
  --hsc-height: 550px;
  --hsc-transition: 800ms;

  /* VARIABLES DE CONFIGURACIÓN TIPOGRÁFICA (Edita aquí para cambiar fuentes y tamaños globalmente) */
  --hsc-font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --hsc-title-size: clamp(1.65rem, 4.2vw, 3.2rem);
  --hsc-title-weight: 700;
  --hsc-subtitle-size: clamp(1.1rem, 2.4vw, 1.75rem);
  /* Zona libre para texto y flechas: desde el final de la barra de menú (75px) hasta donde empiezan las ondas. */
  --hsc-top-free: 75px;
  --hsc-subtitle-weight: 300;
  --hsc-subtitle-opacity: 0.85;

  position: relative;
  width: 100vw;
  left: calc(50% - 50vw);
  margin-left: 0;
  margin-right: 0;
  height: var(--hsc-height);
  overflow: hidden;
  margin-top: 0;
  /* Borde inferior en ola (diseño "estacion via cultural-03"): tres ondas del diseño (crestas y valles medidos, curva de 8 puntos con tangentes horizontales), de alto proporcional al ancho
     (1440×104), así al achicar la pantalla se reduce entera sin comprimirse. Arriba, un rectángulo sólido. */
  --hsc-wave-h: calc(100vw * 104 / 1440);
  -webkit-mask-image: linear-gradient(#000, #000), url("data:image/svg+xml;utf8,<svg viewBox='0 0 1440 104' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path fill='%23fff' d='M0,0 L0,65 C86.6,53.4 119.1,32 216.6,32 C314.1,32 335.8,99 433.2,99 C540,99 563.7,25.8 670.5,25.8 C761,25.8 781.1,104.2 871.6,104.2 C962.1,104.2 982.3,6.2 1072.8,6.2 C1170.3,6.2 1191.9,91.8 1289.4,91.8 C1357.2,91.8 1379.8,64.3 1440,49.5 L1440,0 Z'/></svg>");
  mask-image: linear-gradient(#000, #000), url("data:image/svg+xml;utf8,<svg viewBox='0 0 1440 104' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'><path fill='%23fff' d='M0,0 L0,65 C86.6,53.4 119.1,32 216.6,32 C314.1,32 335.8,99 433.2,99 C540,99 563.7,25.8 670.5,25.8 C761,25.8 781.1,104.2 871.6,104.2 C962.1,104.2 982.3,6.2 1072.8,6.2 C1170.3,6.2 1191.9,91.8 1289.4,91.8 C1357.2,91.8 1379.8,64.3 1440,49.5 L1440,0 Z'/></svg>");
  -webkit-mask-size: 100% calc(100% - var(--hsc-wave-h) + 1px), 100% var(--hsc-wave-h);
  mask-size: 100% calc(100% - var(--hsc-wave-h) + 1px), 100% var(--hsc-wave-h);
  -webkit-mask-position: top, bottom;
  mask-position: top, bottom;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hsc-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform var(--hsc-transition) ease-in-out;
}

.hsc-slide {
  flex: 0 0 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  box-sizing: border-box;
  /* El texto queda centrado entre la barra de menú y las ondas. */
  padding-top: var(--hsc-top-free);
  padding-bottom: var(--hsc-wave-h);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hsc-font-family);
}

.hsc-slide .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
}

.hsc-caption {
  position: relative;
  z-index: 2;
  color: #fff !important;
  text-align: center;
  padding: 0 20px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hsc-title {
  margin: 0;
  font-size: var(--hsc-title-size);
  font-weight: var(--hsc-title-weight);
  letter-spacing: -0.5px;
  color: #fff !important;
}

.hsc-subtitle {
  margin: 0;
  font-size: var(--hsc-subtitle-size);
  font-weight: var(--hsc-subtitle-weight);
  opacity: var(--hsc-subtitle-opacity);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff !important;
}

.hsc-arrow {
  position: absolute;
  /* A la misma altura que el centro del texto */
  top: calc((var(--hsc-top-free) + 100% - var(--hsc-wave-h)) / 2);
  transform: translateY(-50%);
  border: none;
  /* Astra les pone su relleno de botón (15px 30px) y las deforma en óvalo */
  padding: 0;
  min-width: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* El carácter ❮ ❯ no queda centrado en ninguna fuente: se oculta y la flecha es un SVG de fondo, centrado en el círculo */
  font-size: 0;
  color: transparent;
  background-color: rgba(255, 255, 255, 0.35);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  cursor: pointer;
  z-index: 5;
  transition: background-color 0.2s ease;
}

.hsc-arrow:hover {
  background-color: rgba(255, 255, 255, 0.6);
}

/* Flechas dibujadas con su caja centrada en el viewBox (x de 8.75 a 15.25, y de 5.5 a 18.5) */
.hsc-prev {
  left: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='15.25,5.5 8.75,12 15.25,18.5' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.hsc-next {
  right: 20px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><polyline points='8.75,5.5 15.25,12 8.75,18.5' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.hsc-dots {
  position: absolute;
  bottom: 15px;
  /* Centra los dots en la franja negra que ahora es más delgada */
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 5;
}

.hsc-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.2s ease;
}

.hsc-dot.active {
  background: #fff;
}

/* ==========================================================================
   CABECERA PRINCIPAL (MENÚ SUPERIOR PERSONALIZADO)
   ========================================================================== */
.evc-header {
  /* ==============================================================
       VARIABLES DE CONFIGURACIÓN DE CABECERA (Edita aquí los estilos)
       ============================================================== */
  --evc-header-bg: rgba(226, 239, 203, 0.85);
  /* Verde claro traslúcido (mismo que en evc.css) */
  --evc-header-height: 75px;
  --evc-logo-subtitle-size: 0.7rem;
  /* Tamaño de "Subsecretaría" */
  --evc-logo-subtitle-weight: 500;
  /* Grosor de "Subsecretaría" */
  --evc-logo-title-size: 0.7rem;
  /* Tamaño de "Estación Vía Cultural" */
  --evc-logo-title-weight: 500;
  /* Grosor de "Estación Vía Cultural" */
  --evc-menu-font-size: 1rem;
  /* Tamaño de letra del menú */
  --evc-menu-font-weight: 500;
  /* Grosor de letra del menú */
  --evc-menu-hover-bg: #94c286;
  /* Fondo en hover / activo (Verde menta brillante) */
  --evc-menu-hover-color: #111111;
  /* Letra en hover */

  position: absolute;
  /* La barra flota sobre el hero: la imagen de fondo queda por detrás */
  top: 20px;
  left: 0;
  width: 100%;
  height: var(--evc-header-height);
  background-color: var(--evc-header-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  /* Sombra inferior suave */
  z-index: 100;
}

.evc-header-container {
  display: flex;
  justify-content: flex-end;
  /* Sin logos (se van a otra ubicación): el menú y el botón ☰ quedan a la derecha */
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 0 40px;
  box-sizing: border-box;
}

/* Logotipo */
.evc-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  /* Bien pegado al logo */
}

.evc-logo img {
  max-height: 50px;
  width: auto;
  display: block;
}

.evc-logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.15;
  text-align: left;
  font-family: var(--hsc-font-family);
  color: #1a1a1a;
}

.evc-logo-subtitle {
  font-size: var(--evc-logo-subtitle-size);
  font-weight: var(--evc-logo-subtitle-weight);
  letter-spacing: 0.5px;
  opacity: 0.8;
}

.evc-logo-title {
  font-size: var(--evc-logo-title-size);
  font-weight: var(--evc-logo-title-weight);
  letter-spacing: -0.2px;
}

/* Menú de Navegación */
.evc-nav {
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.evc-nav-list {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: stretch !important;
  height: 100% !important;
  list-style: none !important;
  box-sizing: border-box !important;
}

.evc-nav-item {
  display: flex !important;
  align-items: stretch !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.evc-nav-link {
  text-decoration: none !important;
  color: #111111 !important;
  padding: 0 25px !important;
  display: flex !important;
  align-items: center !important;
  height: var(--evc-header-height) !important;
  font-size: var(--evc-menu-font-size) !important;
  font-weight: var(--evc-menu-font-weight) !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  line-height: normal !important;
}

/* Hover y Estado Activo (Verde menta) */
.evc-nav-link:hover,
.evc-nav-link.active {
  background-color: var(--evc-menu-hover-bg) !important;
  color: var(--evc-menu-hover-color) !important;
}

/* ==========================================================================
   BOTÓN DE HAMBURGUESA (MÓVIL)
   ========================================================================== */
.evc-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 110;
  box-sizing: border-box;
}

.evc-menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: #1a1a1a;
  transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Animación a X al estar activo */
.evc-menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.evc-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.evc-menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   DISEÑO RESPONSIVO (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 992px) {
  .evc-header-container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {

  /* 1. Altura del Slider en móviles */
  #hero-slider-custom {
    --hsc-height: 420px;
    /* Slider más compacto en celulares */
  }

  .hsc-arrow {
    width: 38px;
    height: 38px;
    background-size: 17px 17px;
  }

  /* Margen a los costados para que el texto no quede debajo de las flechas */
  .hsc-caption {
    padding: 0 58px;
  }

  .hsc-subtitle {
    letter-spacing: 0.5px;
  }

  /* 2. Reducimos tamaño tipográfico del logo y cabecera */
  .evc-header {
    --evc-logo-title-size: 0.9rem;
    --evc-logo-subtitle-size: 0.65rem;
  }

  .evc-logo {
    gap: 8px;
  }

  .evc-logo img {
    max-height: 40px;
  }

  /* 3. Comportamiento Móvil de la Navegación */
  .evc-menu-toggle {
    display: flex;
    /* Se muestra la hamburguesa */
  }

  .evc-nav {
    display: none !important;
    position: absolute;
    top: var(--evc-header-height);
    left: 0;
    width: 100%;
    height: auto !important;
    background-color: transparent !important;
    /* Evitamos la sobreescritura de fondos del tema Astra sobre la etiqueta nav */
    z-index: 150;
    /* Por encima de textos y flechas del slider */
    border-top: 1px solid rgba(0, 0, 0, 0.05);
  }

  .evc-nav.active {
    display: block !important;
  }

  .evc-nav-list {
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    padding: 10px 0 !important;
    background-color: #e0f7fa !important;
    /* El fondo celeste sólido se aplica a la lista completa */
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15) !important;
    /* La sombra se aplica a la lista */
  }

  .evc-nav-item {
    width: 100% !important;
    height: auto !important;
  }

  .evc-nav-link {
    width: 100% !important;
    height: 50px !important;
    /* Altura del renglón en móviles */
    padding: 0 30px !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  }

  .evc-nav-link:hover,
  .evc-nav-link.active {
    background-color: var(--evc-menu-hover-bg) !important;
  }
}

/* Cuerpo, acotado al home (antes la regla estaba suelta en el contenido). El fondo #121212 que traía nunca se aplicaba porque Astra lo anulaba; se omite para no cambiar el aspecto. */
body.home{margin:0;padding:0;font-family:'Segoe UI',Tahoma,Geneva,Verdana,sans-serif;overflow-x:hidden}
/* Mapa de territorio */

    .seccion-territorio-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 40px;
        padding: 60px 20px;
        max-width: 1200px;
        margin: 0 auto;
        font-family: inherit;
    }

    .territorio-col-izquierda {
        flex: 1 1 320px;
        min-width: 280px;
    }

    .territorio-titulo {
        color: #1f4331;
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .territorio-descripcion {
        color: #444;
        line-height: 1.6;
        font-size: 1rem;
    }

    .territorio-col-derecha {
        flex: 1 1 420px;
        min-width: 300px;
        display: flex;
        justify-content: center;
    }

    .mapa-svg-wrapper {
        position: relative !important;
        width: 100%;
        max-width: 480px;
    }

    .mapa-svg-wrapper svg {
        display: block;
        width: 100%;
        height: auto;
    }

    /* Departamentos */
    .departamento {
        fill: #d7ddce;
        stroke: #ffffff;
        stroke-width: 1.5;
        stroke-linejoin: round;
        cursor: pointer;
        transition: fill .2s ease;
    }

    .departamento.con-actividad {
        fill: #86b07a;
    }

    .departamento.con-actividad:hover {
        fill: #6f9a6a;
    }

    .departamento:hover {
        fill: #8fa88e;
    }

    .departamento.activo {
        fill: #4f7a5b;
    }

    /* Tooltip */
    .territorio-tooltip {
        position: fixed;
        display: none;
        background: #ffffff;
        border-radius: 14px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
        padding: 18px 22px;
        width: 220px;
        z-index: 99999;
        top: 0;
        left: 0;
        transform: translate(-50%, -100%);
        box-sizing: border-box;
    }

    .territorio-tooltip.visible {
        display: block;
    }

    .tooltip-flecha {
        position: absolute;
        bottom: -9px;
        left: 50%;
        transform: translateX(-50%);
        width: 0;
        height: 0;
        border-left: 9px solid transparent;
        border-right: 9px solid transparent;
        border-top: 9px solid #ffffff;
    }

    .tooltip-titulo {
        color: #b8481e;
        font-size: 1.05rem;
        font-weight: 700;
        margin: 0 0 8px 0;
        line-height: 1.25;
    }

    .tooltip-subtitulo {
        color: #1f2a1f;
        font-weight: 700;
        font-size: .85rem;
        margin: 0 0 6px 0;
    }

    .tooltip-lista {
        margin: 0 0 10px 0;
        padding-left: 18px;
        color: #555;
        font-size: .85rem;
        line-height: 1.4;
    }

    .tooltip-lista li {
        margin-bottom: 2px;
    }

    .tooltip-link {
        color: #b8481e;
        font-weight: 700;
        font-size: .9rem;
        text-decoration: none;
    }

    .tooltip-link:hover {
        text-decoration: underline;
    }

    @media (max-width:600px) {
        .seccion-territorio-container {
            flex-direction: column;
            text-align: center;
        }

        .territorio-tooltip {
            width: 180px;
            padding: 14px 16px;
        }
    }

/* Tarjeta de video */

.evc-video-card-container {
    width: 100%; /* Ocupa el 100% de su columna */
    max-width: 100%; 
    margin: 0 auto;
    padding: 10px;
    box-sizing: border-box;
}

.evc-video-card {
    position: relative;
    width: 100%;
    height: 480px; /* Le subí un poco la altura para que acompañe el nuevo ancho */
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evc-video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.evc-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.evc-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.2) 100%);
    z-index: 2;
    transition: background 0.3s ease;
}

.evc-video-card:hover .evc-video-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
}

/* Carrusel */

.indec-carousel-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 20px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    box-sizing: border-box;
}

.indec-carousel-title {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 20px;
    position: relative;
}

.indec-carousel-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background-color: #4db6ac;
}

.indec-carousel-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 400px; /* Ajustado para que combine con la altura del video */
    width: 100%;
    overflow: hidden;
}

.indec-carousel-track {
    position: relative;
    width: 100%; /* Usa todo el ancho de la columna */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.indec-card {
    position: absolute;
    width: 180px; /* Achicado un poco para que entren las 3 en la columna */
    height: 260px;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, z-index 0.5s ease;
    opacity: 0;
    z-index: 1;
}

/* Modificado: Distancias más cortas de desplazamiento para que no se corten en los bordes */
.indec-card.pos-left {
    transform: translateX(-75%) scale(0.8);
    opacity: 0.4;
    z-index: 2;
    cursor: pointer;
}

.indec-card.pos-center {
    transform: translateX(0) scale(1.1);
    opacity: 1;
    z-index: 3;
}

.indec-card.pos-right {
    transform: translateX(75%) scale(0.8);
    opacity: 0.4;
    z-index: 2;
    cursor: pointer;
}

.indec-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    background: #fff;
}

.indec-card-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.indec-card .indec-card-overlay {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50%;
    background: rgba(255, 255, 255, 0.96);
    border-top: 3px solid #4db6ac;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: translateY(101%);
    transition: transform 0.3s ease-in-out;
    text-align: center;
}

.indec-card.pos-center .indec-card-inner:hover .indec-card-overlay {
    transform: translateY(0);
}

.indec-card-overlay h3 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #222;
}

.indec-card-overlay p {
    margin: 0;
    font-size: 0.75rem;
    color: #555;
    line-height: 1.2;
}

/* Flechas montadas sutilmente sobre los costados */
.indec-arrow {
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
}

.indec-prev { left: 5px; }
.indec-next { right: 5px; }

.indec-arrow:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

.indec-carousel-footer {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.indec-btn-more {
    text-decoration: none;
    background-color: #eceff1;
    color: #37474f;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: background 0.2s ease;
}

.indec-btn-more:hover {
    background-color: #cfd8dc;
}

/* Diapositiva de apertura con logo */
/* Logo blanco del primer slide: directo sobre la foto (sin tarjeta), con sombra suave para que se lea.
   El archivo mide 226×261: no mostrarlo más grande que eso para que no pierda nitidez. */
.hsc-logo { display: block; width: auto; height: clamp(120px, 15vw, 210px); margin: 0 auto; filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .45)); }

/* Mapa de territorio: más chico y como sección secundaria (pedido de dirección) */
.mapa-svg-wrapper { max-width: 340px; }
.seccion-territorio-container { padding: 40px 20px 60px; }

/* === "¿Qué es Estación Vía Cultural?" + efeméride del día (debajo del slider) ===
   Diseño de referencia: captura del 28/10/2026. Texto a la izquierda, una tarjeta de efeméride a la derecha. */
.evc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
  gap: 40px clamp(40px, 8vw, 140px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 20px 60px;
  box-sizing: border-box;
}

.evc-intro > * { margin: 0 !important; }

.evc-intro-texto { text-align: center; }

.evc-intro-title {
  position: relative;
  margin: 0 0 26px;
  padding-bottom: 16px;
  color: #1e4638;
  font-size: clamp(28px, 3vw, 39px);
  font-weight: 700;
  line-height: 1.2;
}

/* Línea fina debajo del título que se desvanece hacia la derecha */
.evc-intro-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #7f9f97 0%, rgba(127, 159, 151, 0.55) 60%, rgba(127, 159, 151, 0) 100%);
}

.evc-intro-text {
  max-width: 560px;
  margin: 0 auto 34px;
  color: #222;
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.45;
}

.evc-intro-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 30px;
  background: #e6e3c6;
  color: #9a4a1f !important;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.evc-intro-btn span { color: #7a3a17; font-size: 0.75em; }
.evc-intro-btn:hover { background: #dcd8b4; }

/* La tarjeta: una sola, con título y texto alineados a la izquierda */
.evc-intro .evc-ef-grid { display: block; }
.evc-intro .evc-ef-card { max-width: 380px; margin: 0 auto; }
.evc-intro .evc-ef-body { text-align: left; background: #efece2; padding: 20px 24px 22px; }
.evc-intro .evc-ef-title { color: #2f5446; font-size: 20px; margin-bottom: 10px; }
.evc-intro .evc-ef-text { color: #222; font-size: 16px; margin: 0 0 14px; }
.evc-intro .evc-ef-more { font-size: 15px; }

/* Texto + video (debajo, horizontal 16:9 para que no se corte su título) a la izquierda; efeméride del día a la derecha.
   El video subió desde Publicaciones el 29/10/2026. */
/* 2/11/2026: se quitó el texto "¿Qué es Estación Vía Cultural?" (a pedido de la dirección): la sección empieza con el video y la efeméride al lado. */
.evc-intro { grid-template-areas: "video ef"; row-gap: 32px; column-gap: clamp(32px, 5vw, 72px); }
.evc-intro > .evc-intro-texto { grid-area: texto; }
.evc-intro > .evc-video-card-container { grid-area: video; padding: 0; }
.evc-intro > .evc-ef-grid { grid-area: ef; align-self: center; }
.evc-intro .evc-video-card { height: auto; aspect-ratio: 16 / 9; }

@media (max-width: 820px) {
  .evc-intro { grid-template-columns: 1fr; grid-template-areas: "video" "ef"; padding: 40px 20px 50px; }
}

/* === Publicaciones: el mismo carrusel de siempre, ahora a todo el ancho y con tarjetas más grandes ===
   Las tarjetas son entradas de la categoría "Publicaciones" ([evc_publicaciones]); foto arriba y texto siempre visible. */
.evc-pub-section { max-width: 1200px; margin: 0 auto; padding: 40px 20px 60px; box-sizing: border-box; }
.evc-pub-carousel { padding: 26px 30px 30px; }
.evc-pub-carousel .indec-carousel-wrapper { height: 650px; }
.evc-pub-carousel .indec-card { width: 380px; height: 570px; }
.evc-pub-carousel .indec-card.pos-left { transform: translateX(-82%) scale(0.82); }
.evc-pub-carousel .indec-card.pos-center { transform: translateX(0) scale(1.04); }
.evc-pub-carousel .indec-card.pos-right { transform: translateX(82%) scale(0.82); }
.evc-pub-carousel .indec-card-inner { display: flex; flex-direction: column; }
.evc-pub-carousel .indec-card-inner img { height: 285px; flex: none; }
.evc-pub-carousel .indec-card .indec-card-overlay { position: static; transform: none; height: auto; flex: 1; justify-content: flex-start; text-align: left; padding: 16px 20px 16px; }
.evc-pub-carousel .indec-card-overlay h3 { font-size: 1.12rem; line-height: 1.3; margin: 0 0 8px; color: #1e4638; }
.evc-pub-carousel .indec-card-overlay p { font-size: 0.92rem; line-height: 1.5; color: #444; margin: 0 0 10px; }
.evc-pub-carousel .indec-carousel-footer { margin-top: 18px; }

@media (max-width: 680px) {
  .evc-pub-section { padding: 30px 12px 40px; }
  .evc-pub-carousel { padding: 20px 10px 24px; }
  .evc-pub-carousel .indec-carousel-wrapper { height: 610px; }
  .evc-pub-carousel .indec-card { width: min(290px, 76vw); height: 575px; }
  .evc-pub-carousel .indec-card-inner img { height: 218px; }
  .evc-pub-carousel .indec-card.pos-left { transform: translateX(-70%) scale(0.8); }
  .evc-pub-carousel .indec-card.pos-right { transform: translateX(70%) scale(0.8); }
  /* Flechas a la altura de la foto, para no tapar el texto */
  .evc-pub-carousel .indec-arrow { top: 120px; }
}

/* Carrusel de publicaciones: solo la tarjeta del centro es pulsable (cursor de mano y clic); las de los costados no reaccionan */
.evc-pub-carousel .indec-card, .evc-pub-carousel .indec-card * { cursor: default; }
.evc-pub-carousel .indec-card.pos-center, .evc-pub-carousel .indec-card.pos-center * { cursor: pointer; }
.evc-pub-carousel .indec-arrow, .evc-pub-carousel .indec-arrow * { cursor: pointer; }
.evc-pub-carousel .indec-card.pos-center:focus-visible { outline: 3px solid #94c286; outline-offset: 4px; border-radius: 16px; }
.evc-pub-carousel .indec-card.pos-center:hover .indec-card-inner { box-shadow: 0 16px 34px rgba(0, 0, 0, .22); }

/* Leyenda del mapa de territorio (1/11/2026) */
.mapa-leyenda { display: flex; align-items: center; gap: 8px; justify-content: center; margin: 12px 0 0; font-size: 13px; color: #4b5563; }
.mapa-leyenda-punto { width: 14px; height: 14px; border-radius: 3px; background: #86b07a; display: inline-block; }

.territorio-fuentes { font-size: 12.5px; color: #6b7280; margin: 10px 0 0; line-height: 1.5; }
.territorio-fuentes a { color: #6b7280; text-decoration: underline; }
.tooltip-patrimonio { margin: 8px 0 10px; padding-top: 8px; border-top: 1px solid #e5e7eb; }
.tooltip-patrimonio .tooltip-lista { margin-bottom: 0; }
.territorio-tooltip { width: 250px; }

.tooltip-lista li small { display: block; color: #6b7280; font-size: .76rem; line-height: 1.3; margin-top: 1px; }
.territorio-tooltip.abajo { transform: translate(-50%, 0); }
.territorio-tooltip.abajo .tooltip-flecha { bottom: auto; top: -9px; border-top: 0; border-bottom: 9px solid #ffffff; }

/* === Mapa de territorio: mapa al centro y lista de capas a la derecha (1/11/2026) === */
@media (min-width: 901px) {
  .seccion-territorio-container { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(280px, 340px) minmax(230px, 1fr); gap: 36px; align-items: center; }
  .territorio-col-izquierda, .territorio-col-derecha, .territorio-col-capas { flex: none; min-width: 0; }
}
@media (max-width: 900px) {
  .territorio-col-capas { flex: 1 1 100%; }
}
.territorio-col-capas { min-width: 0; }
.mapa-capas { display: flex; flex-direction: column; gap: 8px; }
.mapa-capas-titulo { margin: 0; color: #1f4331; font-size: 1.15rem; }
.mapa-capas-ayuda { margin: 0 0 4px; color: #6b7280; font-size: 13px; line-height: 1.4; }
.mapa-capa { border: 2px solid #e5e7eb; border-radius: 12px; background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.mapa-capa.activa { border-color: var(--capa, #4f7a5b); box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.mapa-capa button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; background: transparent; cursor: pointer; text-align: left; font: inherit; color: #1f2937; }
.mapa-capa button:hover, .mapa-capa button:focus-visible { background: #f7f4ee; }
.mapa-capa-color { flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--capa); box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.mapa-capa-nombre { flex: 1; font-weight: 600; font-size: 14px; line-height: 1.3; }
.mapa-capa-n { flex: none; font-size: 12px; color: #6b7280; }
.departamento:hover { filter: brightness(.92); }
.departamento.activo { stroke: #1f2a1f; stroke-width: 3; }
.tooltip-vacio { margin: 0 0 4px; color: #6b7280; font-size: .85rem; line-height: 1.4; }
.tooltip-patrimonio.sin-borde { margin-top: 0; padding-top: 0; border-top: 0; }

.entry-content .seccion-territorio-container, .seccion-territorio-container { max-width: 1200px; margin-left: auto; margin-right: auto; box-sizing: border-box; }
/* Grupos de la lista de capas (4/11/2026): Patrimonio natural / cultural material / Fiestas populares */
.mapa-capas-grupo { margin: 10px 0 0; color: #4b5563; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tooltip-patrimonio .tooltip-link { display: inline-block; margin-top: 6px; }

/* === Lista de capas plegable + mapa más grande (5/11/2026) === */
@media (min-width: 901px) {
  .seccion-territorio-container { grid-template-columns: minmax(220px, 1fr) minmax(300px, 420px) minmax(220px, 260px); gap: 32px; }
}
.mapa-svg-wrapper { max-width: 420px; }
.mapa-capas .mapa-capas-grupo { margin: 0; font-size: inherit; font-weight: inherit; letter-spacing: 0; text-transform: none; color: inherit; }
.mapa-capas-grupo-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; margin: 4px 0 0; padding: 8px 4px; border: 0; border-bottom: 1px solid #e5e7eb; background: transparent; cursor: pointer; font: inherit; text-align: left; color: #4b5563; }
.mapa-capas-grupo-btn:hover, .mapa-capas-grupo-btn:focus-visible { color: #1f4331; background: #f7f4ee; }
.mapa-capas-grupo-txt { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mapa-capas-flecha { flex: none; width: 9px; height: 9px; margin-right: 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s ease; }
.mapa-capas-grupo.abierto .mapa-capas-flecha { transform: rotate(-135deg) translate(-2px, -2px); }
.mapa-capas-grupo.abierto .mapa-capas-grupo-btn { color: #1f4331; border-bottom-color: transparent; }
.mapa-capas-grupo-lista { display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; }
.mapa-capas-grupo-lista[hidden] { display: none; }
@media (min-width: 901px) { .seccion-territorio-container > .territorio-col-derecha { width: 100%; justify-self: stretch; } }
/* Fiestas por tipo (5/11/2026): ícono del tipo en la lista y marcas con la cantidad dentro del mapa */
.mapa-capa-color.con-icono { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: dashicons; font-size: 15px; line-height: 1; color: #fff; box-shadow: none; }
.mapa-marcas { pointer-events: none; }
.mapa-marca-ico { font-family: dashicons; text-anchor: middle; dominant-baseline: central; }
.mapa-marca-n { font-family: system-ui, -apple-system, 'Segoe UI', sans-serif; font-weight: 800; fill: #fff; text-anchor: middle; dominant-baseline: central; }
.mapa-capa-color.con-icono svg { display: block; }

/* ---------- Secuencia del inicio (10/11/2026): video + fotos con fundido ----------
   Cada escena (.evc-seq-scene) ocupa toda la tarjeta; la activa se ve y las demás quedan
   transparentes. Las fotos se acercan despacio mientras están activas. Lógica: initSeq en evc.js. */
.evc-seq { background: #1d2a1c; }
.evc-seq-scene {
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.evc-seq-scene.is-active { opacity: 1; }
.evc-seq-scene img.evc-video-bg {
    transform: scale(1);
    transition: transform 0s linear 1.3s; /* vuelve al tamaño original recién cuando ya no se ve */
}
.evc-seq-scene.is-active img.evc-video-bg {
    transform: scale(1.12);
    transition: transform 7s linear;
}
.evc-seq .evc-video-overlay { display: none; } /* el oscurecido va dentro de cada escena, debajo del texto */
.evc-seq-scene::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,.12) 0%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.5) 100%);
    pointer-events: none;
}
.evc-seq-scene p { margin: 0; color: #fff; z-index: 3; position: absolute; }
.evc-seq-text {
    left: 0; right: 0; top: 50%;
    transform: translateY(-50%);
    padding: 0 24px;
    text-align: center;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.3rem, 3.2vw, 2.5rem);
    line-height: 1.15;
    text-shadow: 0 1px 3px rgba(0,0,0,.55), 0 2px 18px rgba(0,0,0,.6);
}
.evc-seq-lugar {
    left: 20px; bottom: 16px;
    max-width: 60%;
    font-size: .95rem;
    font-weight: 600;
    text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.evc-seq-credito {
    right: 14px; bottom: 16px;
    max-width: 38%;
    text-align: right;
    font-size: .68rem;
    line-height: 1.25;
    opacity: .85;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
}
/* Fotos de fondo claro (ej. el mate): más oscurecido para que el texto blanco se lea. */
.evc-seq-scene--claro::after {
    background: linear-gradient(to bottom, rgba(0,0,0,.42) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.62) 100%);
}
@media (max-width: 600px) {
    .evc-seq-lugar { left: 14px; bottom: 30px; max-width: calc(100% - 28px); }
    .evc-seq-credito { left: 14px; right: 14px; bottom: 10px; max-width: none; text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
    .evc-seq-scene.is-active img.evc-video-bg { transform: none; }
}

/* Slider: slide con el título a la izquierda (opción align: 'left' en EVC_SLIDES), 19/11/2026.
   Lo usa «Muralismo e Identidad» para que el título no tape al muralista de la foto. */
.hsc-slide.hsc-slide--left { justify-content: flex-start; }
.hsc-slide--left .hsc-caption {
  text-align: left;
  align-items: flex-start;
  padding-left: clamp(72px, 8vw, 140px);
  padding-right: 0;
  max-width: min(46%, 520px);
}
@media (max-width: 600px) {
  .hsc-slide--left .hsc-caption { padding-left: 56px; max-width: 60%; }
}

/* Slide con fit: 'completa' (22/11/2026): la imagen se ve entera por alto, sin que las ondas
   le corten la parte de abajo; si sobra ancho, el fondo es la misma imagen difuminada. */
.hsc-slide--completa { overflow: hidden; }
.hsc-slide--completa::before {
  content: "";
  position: absolute;
  inset: -40px;
  background-image: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(24px) brightness(.85);
}
.hsc-slide--completa .hsc-slide-img {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: calc(var(--hsc-wave-h) * .55);
  background-size: auto 100%;
  background-repeat: no-repeat;
  background-position: center top;
}

/* Crédito de foto en un slide (opción credito de EVC_SLIDES, 22/11/2026). Va arriba de las ondas, a la derecha. */
.hsc-credito {
  position: absolute;
  right: 16px;
  bottom: calc(var(--hsc-wave-h) + 10px);
  z-index: 3;
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .9) !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  pointer-events: none;
}
@media (max-width: 768px) {
  .hsc-credito { font-size: 10px; left: 10px; right: 10px; text-align: right; bottom: calc(var(--hsc-wave-h) + 22px); }
}
