
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --verde-pnp: #004d3d;
    --naranja-pnp: #f39c12;
    --gris-fondo: #f4f4f4;
    --dorado: #c8a94a;
    --dorado-claro: #e4c76b;
    --dorado-oscuro: #9a7b2f;
    --font-sans: 'Plus Jakarta Sans', 'Segoe UI', sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

body {
    font-family: var(--font-sans);
    background-color: white;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    min-height: 100%;
}

html {
    width: 100%;
    scroll-behavior: smooth;
}

.site-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.flex-between { display: flex; justify-content: space-between; align-items: center; }

.header-social-portal {
    background-color: #004d3d;
    color: white;
    padding: 7px 0;
    width: 100%;
    min-height: 44px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-shrink: 0;
}

.portal-flex {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: nowrap;
}

.topbar-links {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.topbar-btn {
    text-decoration: none !important;
    color: #002d24 !important;
    background: linear-gradient(180deg, var(--dorado-claro) 0%, var(--dorado) 100%) !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    border: 1px solid rgba(154, 123, 47, 0.45);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease !important;
    white-space: nowrap;
    line-height: 1.2;
}

.topbar-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(200, 169, 74, 0.35);
    color: #002d24 !important;
}

.topbar-btn i {
    font-size: 12px;
}

.social-buttons-group {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-end;
    align-items: center;
    flex-shrink: 0;
}

.btn-pnp-social {
    text-decoration: none !important;
    color: #fff !important;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    font-size: 0 !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0 !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1.5px solid rgba(200, 169, 74, 0.55) !important;
    box-shadow: none !important;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, color 0.2s ease !important;
    line-height: 1 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.btn-pnp-social i {
    font-size: 14px !important;
    line-height: 1 !important;
    width: 1em;
    text-align: center;
}

.btn-pnp-social.fb,
.btn-pnp-social.tk,
.btn-pnp-social.wa {
    background: rgba(255, 255, 255, 0.1) !important;
}

.btn-pnp-social.ingresar {
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 34px !important;
    padding: 6px 16px !important;
    border-radius: 6px !important;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    border: 1.5px solid rgba(255,255,255,.85) !important;
    letter-spacing: 0.6px;
    font-size: 12px !important;
    gap: 6px !important;
    box-shadow: 0 2px 8px rgba(243,156,18,.3) !important;
    overflow: visible !important;
    white-space: nowrap !important;
}
.btn-pnp-social.ingresar i { font-size: 13px !important; }

.btn-pnp-social:hover {
    background: rgba(200, 169, 74, 0.28) !important;
    border-color: var(--dorado-claro) !important;
    color: #fff !important;
    transform: translateY(-1px);
    filter: none !important;
    box-shadow: 0 3px 10px rgba(200, 169, 74, 0.25) !important;
}
.btn-pnp-social.ingresar:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 14px rgba(243,156,18,.45) !important;
}

.btn-pnp-social:active {
    transform: translateY(0);
    filter: brightness(0.96) !important;
}

@media (max-width: 768px) {
    .portal-flex {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
    }
    .portal-flex > .ingresar {
        flex: 0 0 auto;
    }
    .social-buttons-group {
        flex: 0 0 auto;
        justify-content: flex-end;
        gap: 7px;
    }
    .btn-pnp-social {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        padding: 0 !important;
        font-size: 13px !important;
    }
    .btn-pnp-social i {
        font-size: 13px !important;
    }
    .topbar-btn {
        padding: 5px 11px !important;
        font-size: 11px !important;
    }
}

.logo-pnp,
.img-escudo {
    height: 90px !important;
    width: auto !important;
    max-width: none !important;
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.main-header {
    background: white;
    border-bottom: 3px solid var(--verde-pnp);
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
    flex-shrink: 0;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 8px 0;
    min-height: 0;
}

.logo-container {
    flex-shrink: 0;
}

.title-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.title-text .portal-eslogan {
    color: var(--verde-pnp);
    font-size: clamp(17px, 2.6vw, 26px);
    font-weight: 800;
    margin: 0;
    line-height: 1.25;
    letter-spacing: 0.03em;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.title-text .portal-subtitulo {
    color: #3d4f4a;
    font-size: clamp(11.5px, 1.7vw, 13.5px);
    margin-top: 5px;
    line-height: 1.4;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
    opacity: 0.95;
}

.header-fotos-panel {
    flex: 0 1 420px;
    width: min(44vw, 420px);
    max-width: 100%;
    margin-left: auto;
}

.header-fotos-panel:empty,
.header-fotos-panel[style*="display: none"],
.header-fotos-panel[style*="display:none"] {
    display: none !important;
    flex: 0 0 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
}

.header-fotos-viewport {
    overflow: hidden;
    width: 100%;
}

.header-fotos-track {
    display: flex;
    gap: 8px;
    transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.header-foto-item {
    flex: 0 0 auto;
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #e2ebe8;
    box-shadow: 0 2px 8px rgba(0, 77, 61, 0.1);
    background: #f4f8f6;
}

.header-foto-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    image-rendering: auto;
}

.header-foto-vacio {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b8c8c2;
    font-size: 1.25rem;
}

@media (max-width: 900px) {
    .header-fotos-panel {
        display: none;
    }
}

.portal-home .portal-viewport-wrap {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

.portal-home .presentation-slider {
    flex: 1 1 auto;
    width: 100%;
    min-height: 260px;
    height: auto;
    max-height: none;
    background-color: #0a2818;
}

.portal-home .slide-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: scale(1.08);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 1.2s ease-out;
}

.portal-home .slide:not(.active):not(.was-active) .slide-img {
    animation: none;
    transform: scale(1.08);
}

.portal-home .slide.active .slide-img {
    animation: slideZoomHome 8s ease-out forwards;
}

.portal-home .slide.was-active .slide-img {
    animation: none;
    transform: scale(1.14);
}

@keyframes slideZoomHome {
    from { transform: scale(1.08); }
    to   { transform: scale(1.14); }
}

.portal-home-content {
    max-width: 1200px;
}

.nav-main {
    background: var(--verde-pnp);
    position: sticky;
    top: 0;
    z-index: 1000;
    flex-shrink: 0;
    min-height: 50px;
    height: auto;
    border-bottom: 2px solid rgba(243, 156, 18, 0.35);
    width: 100%;
}

.portal-home .nav-main.nav-is-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.nav-main-placeholder {
    width: 100%;
    height: 0;
    flex-shrink: 0;
}

.nav-main .container {
    max-width: 100%;
    padding: 0;
    height: 100%;
}

.nav-main ul {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap;
    height: 50px;
    margin: 0;
    padding: 0 6px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.nav-main ul::-webkit-scrollbar { display: none; }

.nav-main ul li { flex-shrink: 0; }

.nav-main ul li a {
    color: white;
    text-decoration: none;
    padding: 0 13px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 700;
    font-size: 12.5px;
    letter-spacing: 0.03em;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    box-sizing: border-box;
    transition: background .15s, border-color .15s, color .15s;
    -webkit-font-smoothing: antialiased;
}

.nav-main ul li a i {
    font-size: 12px;
    margin-right: 0;
    flex-shrink: 0;
    width: 1.1em;
    text-align: center;
}

.nav-main ul li a:hover {
    background: rgba(0,0,0,0.2);
    color: var(--naranja-pnp);
}

.nav-main ul li a.activo {
    background: rgba(0,0,0,0.22);
    color: var(--naranja-pnp);
    border-bottom-color: var(--naranja-pnp);
}

.portal-page-hero {
    background: linear-gradient(135deg, var(--verde-pnp) 0%, #002d24 100%);
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 16px;
    flex-shrink: 0;
    overflow: hidden;
}

.portal-page-hero h2 {
    color: #fff;
    font-size: clamp(1rem, 2.8vw, 1.45rem);
    font-weight: 800;
    letter-spacing: 0.4px;
    line-height: 1.25;
}

.presentation-slider.slider-esperando-api:not(:has(.slide)) .slides,
.presentation-slider.slider-sin-imagenes .slides {
  background: linear-gradient(135deg, #003d2e 0%, #005244 50%, #1a7a5e 100%);
}

.presentation-slider.slider-esperando-api:not(:has(.slide)) .slider-dots,
.presentation-slider.slider-sin-imagenes .slider-dots {
  display: none;
}

.presentation-slider {
    position: relative;
    width: 100%;
    max-width: 100vw;
    height: clamp(380px, 58vh, 680px);
    min-height: 380px;
    max-height: 680px;
    background-color: #0d2818;
    overflow: hidden;
    flex-shrink: 0;
}

.slides {
    position: absolute;
    inset: 0;
    background-color: #0a2818;
}

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    z-index: 0;
    overflow: hidden;
    transition: opacity 1.2s ease-in-out;
    pointer-events: none;
    background-color: #0a2818;
}

.slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    transform: scale(1.08);
    transform-origin: center center;
    backface-visibility: hidden;
    transition: transform 1.2s ease-out;
}

.slide:not(.active):not(.was-active) .slide-img {
    animation: none;
    transform: scale(1.08);
}

.slide.active .slide-img {
    animation: slideZoom 8s ease-out forwards;
}

.slide.was-active .slide-img {
    animation: none;
    transform: scale(1.14);
}

@keyframes slideZoom {
    from { transform: scale(1.08); }
    to   { transform: scale(1.14); }
}

.slide-img-imagen1 { object-position: center 40%; }
.slide-img-lunes   { object-position: center 22%; }
.slide-img-saludo  { object-position: center 38%; }

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.02) 0%,
        rgba(0, 0, 0, 0.12) 55%,
        rgba(0, 0, 0, 0.32) 100%
    );
    pointer-events: none;
}

.slide.active {
    opacity: 1 !important;
    z-index: 2;
}

.slide.was-active {
    opacity: 1 !important;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 56px;
    color: #fff;
    text-align: center;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.35) 0%,
        rgba(0, 0, 0, 0.2) 45%,
        rgba(0, 0, 0, 0.45) 100%
    );
}

.hero-overlay .container {
    width: 100%;
    max-width: 1100px;
    padding: 0 24px;
}

.hero-overlay .portal-hero-titulo {
    color: #fff;
    font-size: clamp(2.2rem, 7.5vw, 4.75rem);
    font-weight: 900;
    margin: 0;
    line-height: 1.08;
    letter-spacing: 0.04em;
    font-style: normal;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow:
        0 4px 18px rgba(0, 0, 0, 0.9),
        0 2px 4px rgba(0, 0, 0, 0.95);
}

.hero-overlay .portal-hero-lema {
    color: #fff;
    font-size: clamp(1.35rem, 4vw, 2.5rem);
    margin-top: 10px;
    line-height: 1.15;
    font-style: normal;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-shadow:
        0 3px 16px rgba(0, 0, 0, 0.9),
        0 1px 3px rgba(0, 0, 0, 0.95);
}

.hero-overlay .portal-hero-eslogan {
    color: #fff;
    font-size: clamp(1rem, 2.6vw, 1.55rem);
    margin-top: 12px;
    line-height: 1.35;
    font-style: normal;
    font-weight: 500;
    max-width: 920px;
    margin-left: auto;
    margin-right: auto;
    text-shadow:
        0 3px 14px rgba(0, 0, 0, 0.88),
        0 1px 3px rgba(0, 0, 0, 0.95);
}

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 10px;
}

.dot { width: 12px; height: 12px; background: rgba(255,255,255,0.5); border-radius: 50%; cursor: pointer; transition: background 0.3s; }
.dot:hover { background: rgba(255,255,255,0.85); }
.dot.active { background: var(--naranja-pnp); }

.content-area { padding: 50px 0; }
.section-header {
  text-align: center;
  margin-bottom: 36px;
}
.section-header h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.7vw, 1.7rem);
  font-weight: 700;
  color: var(--verde-pnp);
  letter-spacing: .35px;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 8px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.section-header h3::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 72px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--dorado-oscuro) 15%,
    var(--dorado-claro) 50%,
    var(--dorado-oscuro) 85%,
    transparent 100%
  );
  background-size: 220% 100%;
  animation: regpolGoldShine 2.8s linear infinite;
}
@keyframes regpolGoldShine {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}
.section-header p,
.section-header span {
  color: #4a5c57;
  font-size: 13.5px;
  font-weight: 500;
  display: block;
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.card { background: white; padding: 40px; border-radius: 10px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-top: 5px solid var(--verde-pnp); }
.card-icon { font-size: 40px; color: var(--naranja-pnp); margin-bottom: 20px; }
.btn-card { background: var(--verde-pnp); color: white; text-decoration: none; padding: 10px 25px; border-radius: 20px; display: inline-block; margin-top: 20px; font-weight: bold; }

.emergency-bar {
    background: linear-gradient(180deg, #003d32 0%, var(--verde-pnp) 100%);
    padding: 36px 0 40px;
    color: white;
}

.emergency-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    text-align: center;
    gap: 16px;
    align-items: start;
}

.e-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
}

.e-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 2px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #fff;
}

.e-item strong {
    font-size: 32px;
    font-weight: 800;
    color: #3dd6c6;
    line-height: 1;
    letter-spacing: 0.02em;
}

.e-item p {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    max-width: 180px;
}

.portal-jefatura-bar {
    background: linear-gradient(180deg, var(--verde-pnp) 0%, #002d24 100%);
    padding: 22px 0 26px;
    color: #fff;
    border-top: 2px solid rgba(200, 169, 74, 0.55);
}

.contacto-redes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    max-width: 720px;
    margin: 0 auto 18px;
    text-align: center;
}

.contacto-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #fff;
    transition: transform 0.25s ease;
}

.contacto-item:hover {
    transform: translateY(-5px);
    color: #fff;
}

.contacto-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(200, 169, 74, 0.55);
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    animation: contactoFloat 3.2s ease-in-out infinite;
}

.contacto-item:nth-child(2) .contacto-icon { animation-delay: 0.35s; }
.contacto-item:nth-child(3) .contacto-icon { animation-delay: 0.7s; }
.contacto-item:nth-child(4) .contacto-icon { animation-delay: 1.05s; }
.contacto-item:nth-child(5) .contacto-icon { animation-delay: 1.4s; }

@keyframes contactoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.contacto-item:hover .contacto-icon {
    background: rgba(200, 169, 74, 0.22);
    border-color: var(--dorado-claro);
    box-shadow: 0 6px 18px rgba(200, 169, 74, 0.35);
    animation-play-state: paused;
}

.contacto-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

.jefatura-direccion {
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    padding-top: 6px;
    border-top: 1px solid rgba(200, 169, 74, 0.28);
}

.jefatura-linea {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.jefatura-titulo {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--dorado-claro);
    margin-bottom: 8px;
}

.jefatura-dir {
    margin-bottom: 0;
    color: #3dd6c6;
    font-weight: 700;
}

@media (max-width: 900px) {
    .emergency-grid,
    .contacto-redes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 12px;
    }
}

@media (max-width: 560px) {
    .emergency-grid,
    .contacto-redes-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .e-icon {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }

    .e-item strong {
        font-size: 26px;
    }

    .contacto-icon {
        width: 56px;
        height: 56px;
        font-size: 22px;
    }

    .jefatura-linea {
        font-size: 11px;
    }
}

footer,
.footer-simple,
footer.portal-footer {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border: none !important;
  background: transparent !important;
}

.body-cursos,
.body-convenios { background: var(--gris-fondo); min-height: 100vh; }

.header-moderno {
    background: white;
    border-bottom: 4px solid var(--verde-pnp);
    padding: 16px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}

.page-intro {
    text-align: center;
    margin: 40px 0 30px;
}

.page-intro h2 {
    color: var(--verde-pnp);
    font-size: 22px;
    margin-bottom: 8px;
}

.page-intro p {
    color: #666;
}

.btn-volver {
    display: inline-block;
    margin-top: 12px;
    background: var(--verde-pnp);
    color: white;
    padding: 8px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.btn-volver:hover { background: #003329; }

.grid-modern a {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

.grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 22px;
    margin-bottom: 8px;
    align-items: stretch;
}

.card-modern {
    background: white;
    border-radius: 14px;
    padding: 26px 22px 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 77, 61, 0.08);
    border: 1px solid #e8efec;
    border-top: 4px solid var(--verde-pnp);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
    height: 100%;
    width: 100%;
    min-height: 230px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.grid-modern a:hover .card-modern {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0, 77, 61, 0.14);
    border-color: #c8e6d8;
}

.card-modern h4 {
    color: var(--verde-pnp);
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-modern--convenio h4 {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
    margin-bottom: 10px;
}

.card-modern p {
    color: #667;
    font-size: 13px;
    margin-bottom: 0;
    line-height: 1.55;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-modern .card-vacantes {
    flex: 0 0 auto;
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    margin: 4px 0 0;
    font-size: 13px;
    font-weight: 700;
    color: #004d3d;
    line-height: 1.3;
}

.card-modern .card-vacantes i {
    color: #c8a94a;
    margin-right: 4px;
}

.card-modern .card-vacantes strong {
    color: #c45c12;
    font-size: 1.35em;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.card-modern .card-estado,
.card-modern > span[style*="font-weight"] {
    margin-top: auto;
    padding-top: 14px;
    font-size: 12px !important;
    font-weight: 800 !important;
    letter-spacing: .3px;
}

.text-area h1 {
    color: var(--verde-pnp);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
}

.text-area p {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.btn-home-modern {
    background: var(--verde-pnp);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    white-space: nowrap;
    transition: background .2s;
}

.btn-home-modern:hover { background: #003329; }

.icon-wrapper {
    width: 64px;
    height: 64px;
    background: var(--verde-pnp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 26px;
}

.card-modern--foto {
    padding-top: 0;
    overflow: hidden;
}

.card-modern-foto {
    width: calc(100% + 44px);
    margin: 0 -22px 16px;
    height: 130px;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, #e8efec, #d0ddd8);
}

.card-modern-foto img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.grid-pdf-modern { margin-bottom: 16px; }

.pdf-item {
    background: white;
    padding: 18px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
    border-left: 4px solid #e74c3c;
}

.pdf-item h5 { color: #333; font-size: 14px; }

.btn-download {
    color: var(--verde-pnp);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.btn-download:hover { text-decoration: underline; }

.pdf-item-caja { align-items: flex-start; }
.pdf-item-icono { font-size: 34px; color: #e74c3c; flex-shrink: 0; margin-top: 2px; }
.pdf-item-body { flex: 1; min-width: 0; }
.pdf-item-sub { font-size: 11px; color: #888; margin: 2px 0 8px; }
.pdf-item-acciones { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-pdf-ver, .btn-pdf-desc {
    border: none; border-radius: 6px; padding: 7px 12px; font-size: 11.5px; font-weight: 700;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.btn-pdf-ver { background: #004d3d; color: #fff; }
.btn-pdf-ver:hover { background: #006b55; }
.btn-pdf-desc { background: #f0f7f0; color: #004d3d; border: 1.5px solid #c8e6c9; }
.btn-pdf-desc:hover { background: #e2f0e2; }

.modal-pdf-portal {
    display: none; position: fixed; inset: 0; z-index: 10100;
    background: rgba(0,0,0,.65); align-items: center; justify-content: center; padding: 16px;
}
.modal-pdf-portal.open { display: flex; }
.modal-pdf-portal-box {
    background: #fff; border-radius: 12px; width: min(920px, 96vw); max-height: 92vh;
    display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.modal-pdf-portal-head {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px; background: #004d3d; color: #fff;
}
.modal-pdf-portal-head strong { font-size: 14px; }
.modal-pdf-portal-head button {
    background: none; border: none; color: #fff; font-size: 26px; line-height: 1; cursor: pointer;
}
#modal-pdf-portal-frame { flex: 1; min-height: 420px; border: none; background: #f5f5f5; }
.modal-pdf-portal-foot { padding: 12px 16px; border-top: 1px solid #eee; text-align: right; }

/* Modal RR.HH. — Descanso médico / Faltos */
.modal-rrhh-portal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(0, 30, 24, 0.55);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.modal-rrhh-portal.open { display: flex; }
.modal-rrhh-box {
  position: relative;
  width: min(520px, 100%);
  background: #fff;
  border-radius: 14px;
  border: 1.5px solid #cfdad2;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
  padding: 28px 24px 24px;
}
.modal-rrhh-cerrar {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: #f0f4f2;
  color: #004d3d;
  cursor: pointer;
  font-size: 16px;
}
.modal-rrhh-cerrar:hover { background: #e2ebe6; }
.modal-rrhh-box h3 {
  margin: 0 0 6px;
  color: #004d3d;
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-rrhh-sub {
  margin: 0 0 18px;
  color: #666;
  font-size: 13.5px;
}
.modal-rrhh-opciones {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 520px) {
  .modal-rrhh-opciones { grid-template-columns: 1fr; }
}
.modal-rrhh-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 16px 14px;
  border: 1.5px solid #d5e0da;
  border-radius: 12px;
  background: #f7faf8;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.modal-rrhh-card:hover {
  border-color: #004d3d;
  box-shadow: 0 4px 14px rgba(0, 77, 61, 0.12);
  transform: translateY(-1px);
}
.modal-rrhh-card i { font-size: 28px; margin-bottom: 4px; }
.modal-rrhh-card strong {
  color: #004d3d;
  font-size: 15px;
  font-weight: 800;
}
.modal-rrhh-card span {
  color: #667;
  font-size: 12.5px;
  line-height: 1.4;
}

.py-5 { padding: 40px 0; }

.grid-detalles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.card-detalle {
    background: white;
    border-radius: 12px;
    padding: 28px 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border-top: 4px solid var(--verde-pnp);
}

.card-detalle h3 {
    color: var(--verde-pnp);
    font-size: 16px;
    margin-bottom: 16px;
    text-align: center;
}

.card-detalle ul {
    list-style: none;
    padding: 0;
}

.card-detalle ul li {
    margin-bottom: 10px;
    font-size: 14px;
    color: #444;
}

.card-detalle ul li i {
    color: var(--verde-pnp);
    margin-right: 8px;
}

.icon-circle {
    width: 56px;
    height: 56px;
    background: var(--verde-pnp);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 22px;
}

.icon-circle.gold { background: var(--naranja-pnp); }

.highlight-card {
    border-top-color: var(--naranja-pnp);
    text-align: center;
}

.info-item {
    margin-bottom: 12px;
}

.info-item span {
    display: block;
    font-weight: 700;
    color: var(--verde-pnp);
    font-size: 12px;
    text-transform: uppercase;
}

.info-item p {
    color: #444;
    font-size: 14px;
}

.price {
    font-size: 32px;
    font-weight: 900;
    color: var(--naranja-pnp);
    margin: 8px 0;
}

.registro-section { margin: 40px 0; }

.registro-box {
    background: white;
    border-radius: 12px;
    padding: 36px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border: 2px dashed var(--verde-pnp);
}

.registro-box h2 {
    color: var(--verde-pnp);
    margin-bottom: 10px;
}

.btn-registro-grande {
    display: inline-block;
    margin-top: 20px;
    background: var(--naranja-pnp);
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: background .2s;
}

.btn-registro-grande:hover { background: #e67e22; }


@media (max-width: 768px) {
    .header-moderno .flex-between { flex-direction: column; gap: 16px; text-align: center; }
    .header-moderno .flex-between > div { flex-direction: column; }
    .logo-pnp, .img-escudo { height: 72px !important; }
    .header-flex {
        min-height: 80px;
        gap: 12px;
        padding: 10px 0;
    }
    .title-text { text-align: left; }
    .nav-main ul li a {
        padding: 0 10px;
        font-size: 11px;
    }
    .presentation-slider {
        height: clamp(320px, 52vh, 480px);
        min-height: 320px;
        max-height: 480px;
    }
    .portal-home .presentation-slider {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
        min-height: 200px;
    }
    .nav-main ul { height: auto; min-height: 46px; }
    .hero-overlay { padding: 16px 12px 44px; }
    .hero-overlay .portal-hero-titulo { font-size: clamp(1.6rem, 7.5vw, 2.4rem); white-space: normal; }
    .hero-overlay .portal-hero-lema { font-size: clamp(1rem, 4.8vw, 1.45rem); margin-top: 8px; }
    .hero-overlay .portal-hero-eslogan { font-size: clamp(0.9rem, 3.6vw, 1.15rem); margin-top: 8px; }
    .portal-page-hero {
        height: 72px;
        min-height: 72px;
        max-height: 72px;
    }
    .content-area { padding: 32px 0; }
}

@media (min-width: 1200px) {
    .presentation-slider {
        height: clamp(520px, 65vh, 720px);
        min-height: 520px;
        max-height: 720px;
    }
    .portal-home .presentation-slider {
        flex: 1 1 auto;
        height: auto;
        max-height: none;
        min-height: 360px;
    }
    .nav-main ul li a { padding: 0 16px; font-size: 13px; }
}

.body-portal { background: var(--gris-fondo); min-height: 100vh; }

.contenido-texto {
    background: white;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 4px 18px rgba(0,0,0,.06);
    line-height: 1.8;
    color: #444;
}

.contenido-texto p { margin-bottom: 16px; }

.grid-pilares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.card-pilar {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0,0,0,.08);
    border-top: 4px solid var(--verde-pnp);
}

.card-pilar h4 { color: var(--verde-pnp); margin: 12px 0 8px; font-size: 15px; }
.card-pilar p { color: #666; font-size: 13px; line-height: 1.55; }

.lista-novedades { display: flex; flex-direction: column; gap: 16px; }

.noticia-card {
    background: white;
    border-radius: 12px;
    padding: 22px 24px;
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    border-left: 4px solid var(--naranja-pnp);
}

.noticia-meta {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.noticia-cat {
    background: rgba(0,77,61,.1);
    color: var(--verde-pnp);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
}

.noticia-fecha { color: #888; font-size: 12px; }
.noticia-card h3 { color: var(--verde-pnp); font-size: 17px; margin-bottom: 8px; }
.noticia-card p { color: #555; font-size: 14px; line-height: 1.6; }

.lista-novedades-home .noticia-card { border-left-color: var(--verde-pnp); }
.texto-vacio { color: #888; text-align: center; padding: 24px; }

.tabla-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.t { min-width: 600px; }

@media (max-width: 480px) {
  .grid-modern {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card-modern {
    padding: 20px 16px;
  }
}

@media (max-width: 600px) {
  .nav-main ul {
    justify-content: flex-start;
    padding: 0 4px;
  }
  .nav-main ul li a {
    padding: 0 10px;
    font-size: 11px;
    height: 46px;
    min-width: 44px;
  }

  .social-buttons-group {
    gap: 6px;
  }
  .btn-pnp-social {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
    padding: 0 !important;
    font-size: 12px !important;
  }
  .btn-pnp-social i {
    font-size: 12px !important;
  }
}

.btn-pnp-social:not(.ingresar) {
  min-height: 34px;
}
.btn-registro-grande,
.btn-volver {
  min-height: 44px;
}

@media (max-width: 600px) {
  .noticia-card { padding: 16px; }
  .noticia-card h3 { font-size: 15px; }
  .grid-pilares { grid-template-columns: 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .header-flex { gap: 12px; padding: 8px 0; }
  .logo-pnp, .img-escudo { height: 64px !important; }
  .content-area { padding: 20px 0; }
  .page-intro h2 { font-size: 18px; }
}

@media (max-width: 768px) {
  
  #inscritos-tabla { overflow-x: auto; }
  
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .breakdown-grid { grid-template-columns: 1fr; }
}

.presentation-slider {
  position: relative;
  overflow: hidden;
  background: #001a12;
}
.presentation-slider .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

@media (max-width: 560px) {
  .fi-grid {
    grid-template-columns: 1fr !important;
  }
  .pdf-upload-box { padding: 12px; }
  .plantilla-banner { flex-direction: column; gap: 10px; text-align: center; }
  .btn-desc-plantilla { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .sorteos-grid { grid-template-columns: 1fr; }
}

.noticia-card-foto { padding: 0; overflow: hidden; }
.noticia-card-foto .noticia-foto { width: 100%; height: 180px; overflow: hidden; }
.noticia-card-foto .noticia-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.noticia-card-foto .noticia-contenido { padding: 16px 20px; }
.noticia-card-foto h3 { margin-top: 6px; }

.slide-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
  padding: 18px 24px 14px; color: #fff;
}
.slide-caption strong { display: block; font-size: 16px; font-weight: 700; }
.slide-caption span   { font-size: 13px; opacity: .85; }

.institucional-page { max-width: 920px; margin: 0 auto; }

.institucional-cabecera {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  background: linear-gradient(135deg, #fff 0%, #f4faf7 100%);
  border: 1px solid #dde8e5;
  border-left: 5px solid var(--verde-pnp);
  border-radius: 14px;
  padding: 28px 28px 26px;
  margin-bottom: 28px;
  box-shadow: 0 8px 28px rgba(0, 77, 61, 0.07);
}

.institucional-icono {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--verde-pnp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(0, 77, 61, 0.25);
}

.institucional-icono-naranja { background: var(--naranja-pnp); box-shadow: 0 4px 14px rgba(243, 156, 18, 0.35); }

.institucional-cabecera-texto h2 {
  color: var(--verde-pnp);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}

.institucional-lead {
  color: #555;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.75;
}

.institucional-cuerpo {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.institucional-bloque {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 22px 24px;
  border: 1px solid #e8efec;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}

.institucional-bloque:hover {
  box-shadow: 0 8px 24px rgba(0, 77, 61, 0.1);
  transform: translateY(-2px);
}

.resena-carrusel-slide.institucional-bloque {
  padding: 0;
  gap: 0;
  border: none;
  box-shadow: none;
  align-items: stretch;
  border-radius: 14px;
}

.resena-carrusel-slide.institucional-bloque:hover {
  transform: none;
  box-shadow: none;
}

.institucional-num {
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: rgba(0, 77, 61, 0.15);
  line-height: 1.2;
  min-width: 36px;
}

.institucional-bloque p {
  color: #444;
  font-size: 15px;
  line-height: 1.8;
  margin: 0;
}

.institucional-resena--carrusel,
.institucional-labor--carrusel {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.resena-carrusel--completo {
  margin-top: 0;
}

.institucional-resena--carrusel .resena-carrusel-viewport,
.institucional-labor--carrusel .resena-carrusel-viewport,
.resena-carrusel-viewport {
  height: 340px;
}

.resena-carrusel {
  position: relative;
  margin-bottom: 0;
  padding: 0 8px;
}

.resena-carrusel-viewport {
  overflow: hidden;
  border-radius: 14px;
  box-shadow: 0 8px 28px rgba(0, 77, 61, 0.1);
  background: #fff;
}

.resena-carrusel-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  align-items: stretch;
}

.resena-carrusel-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 14px;
  transition: opacity 0.4s ease;
  padding: 0;
  display: flex;
  overflow: hidden;
  background: #fff;
}

.resena-slide-inner,
.resena-slide-inner--con-img {
  display: grid;
  grid-template-columns: minmax(240px, 38%) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.resena-slide-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 16px 20px;
  flex: 1;
  min-width: 0;
  min-height: 0;
  justify-content: flex-start;
  align-self: stretch;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 77, 61, 0.45) transparent;
}

.resena-slide-body::-webkit-scrollbar { width: 6px; }
.resena-slide-body::-webkit-scrollbar-thumb {
  background: rgba(0, 77, 61, 0.4);
  border-radius: 6px;
}
.resena-slide-body::-webkit-scrollbar-track { background: transparent; }

.resena-slide-media {
  position: relative;
  width: 100%;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  background: linear-gradient(145deg, #e8efec, #dce8e3);
  overflow: hidden;
}

.resena-slide-media--icono {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #002d24 0%, var(--verde-pnp) 55%, #0a6b54 100%);
  border-right: 3px solid var(--dorado);
}

.resena-slide-media--icono i {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  color: var(--dorado-claro);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
}

.resena-slide-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  min-height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.resena-slide-titulo {
  color: var(--verde-pnp);
  font-size: 1.08rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.25;
}

.resena-slide-parrafo {
  margin: 0;
  color: #444;
  font-size: 0.94rem;
  line-height: 1.55;
  text-align: justify;
}

.resena-slide-intro { margin-bottom: 2px; }

.resena-slide-lista {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.resena-slide-lista li {
  position: relative;
  padding: 8px 12px 8px 34px;
  background: rgba(0, 77, 61, 0.05);
  border-left: 3px solid var(--dorado-pnp, #c8a94a);
  border-radius: 0 8px 8px 0;
  color: #333;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: justify;
}

.resena-slide-lista li::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--verde-pnp);
}

.resena-carrusel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 77, 61, 0.88);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, transform 0.2s;
}

.resena-carrusel-btn:hover {
  background: var(--verde-pnp);
  transform: translateY(-50%) scale(1.06);
}

.resena-carrusel-btn.prev { left: -14px; }
.resena-carrusel-btn.next { right: -14px; }

.resena-carrusel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}

.resena-carrusel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--verde-pnp);
  background: transparent;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.resena-carrusel-dot.active,
.resena-carrusel-dot:hover {
  background: var(--verde-pnp);
  transform: scale(1.15);
}

#resena.portal-seccion,
#labor.portal-seccion {
  padding-top: 24px;
  padding-bottom: 22px;
}

#resena .section-header,
#labor .section-header {
  margin-bottom: 16px;
}

#resena .section-header h3,
#labor .section-header h3 {
  margin-bottom: 4px;
  padding-bottom: 12px;
}

@media (max-width: 768px) {
  .institucional-resena--carrusel .resena-carrusel-viewport,
  .institucional-labor--carrusel .resena-carrusel-viewport,
  .resena-carrusel-viewport {
    height: auto;
    min-height: 0;
  }
  .resena-carrusel-track,
  .resena-carrusel-slide {
    height: auto;
  }
  .resena-slide-inner,
  .resena-slide-inner--con-img {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 0;
    grid-template-columns: none;
  }
  .resena-slide-media {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    height: 200px;
  }
  .resena-slide-media--icono {
    min-height: 120px;
    height: 120px;
    border-right: none;
    border-bottom: 3px solid var(--dorado);
  }
  .resena-slide-media img { min-height: 100%; }
  .resena-slide-body {
    padding: 16px 18px;
    overflow-y: visible;
  }
  .resena-carrusel-btn.prev { left: 6px; }
  .resena-carrusel-btn.next { right: 6px; }
  .resena-carrusel-btn {
    width: 36px;
    height: 36px;
    font-size: 13px;
    background: rgba(0, 77, 61, 0.75);
  }
}

.pilares-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.card-pilar-v2 {
  background: #fff;
  border-radius: 14px;
  padding: 28px 22px 24px;
  text-align: center;
  border: 1px solid #e8efec;
  border-top: 4px solid var(--verde-pnp);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  height: 100%;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-pilar-v2:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 77, 61, 0.12);
}

.card-pilar-v2-icono {
  width: 58px;
  height: 58px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--verde-pnp), #006b54);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.card-pilar-v2 h4 {
  color: var(--verde-pnp);
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 10px;
}

.card-pilar-v2 p {
  color: #667;
  font-size: 13.5px;
  line-height: 1.65;
  flex: 1;
}

@media (max-width: 768px) {
  .institucional-cabecera { flex-direction: column; align-items: center; text-align: center; padding: 22px 18px; }
  .institucional-bloque { flex-direction: column; gap: 8px; padding: 18px; }
  .institucional-num { font-size: 1.1rem; }
}

.pagina-hero-banner {
  position: relative;
  width: 100%;
  height: 240px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #003d2e 0%, #005244 50%, #1a7a5e 100%);
  box-shadow: 0 6px 28px rgba(0,0,0,0.22);
}

.pagina-hero-banner.hero-resena {
  background: linear-gradient(135deg, #1a2a4a 0%, #2c3e6a 40%, #3a5a8a 70%, #c8a94a 100%);
}

.pagina-hero-banner.hero-labor {
  background: linear-gradient(135deg, #002d1e 0%, #004d3d 40%, #006b54 70%, #1a9a7a 100%);
}

.pagina-hero-banner.hero-novedades {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 40%, #0f3460 70%, #004d3d 100%);
}

.pagina-hero-banner--solo-img {
  display: block;
  background: #e8efec;
}

.pagina-hero-banner--solo-img .pagina-hero-img {
  position: relative;
  inset: auto;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pagina-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.pagina-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.35) 60%, rgba(0,0,0,0.55) 100%);
  z-index: 1;
}

.pagina-hero-contenido {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 36px;
  width: 100%;
}

.pagina-hero-icono {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  backdrop-filter: blur(4px);
}

.pagina-hero-texto h2 {
  color: #fff;
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
  margin-bottom: 6px;
}

.pagina-hero-texto p {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.institucional-page .institucional-cabecera {
  padding: 18px 28px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  margin-bottom: 20px;
}

@media (max-width: 560px) {
  .pagina-hero-banner { height: 180px; border-radius: 10px; }
  .pagina-hero-contenido { padding: 0 18px; gap: 14px; }
  .pagina-hero-icono { width: 50px; height: 50px; font-size: 20px; }
  .pagina-hero-texto h2 { font-size: 1.15rem; }
  .pagina-hero-texto p { font-size: 0.8rem; }
}

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  margin-bottom: 8px;
  align-items: stretch;
}

.nov-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 77, 61, 0.08);
  border: 1px solid #e8efec;
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
}
.nov-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,77,61,0.18);
  border-color: #004d3d;
}

.nov-card-img {
  height: 180px;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, #002d24, #004d3d);
}
.nov-card-img--vacio {
  background: linear-gradient(135deg, #002d24, #004d3d);
}
.nov-card-img-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  z-index: 0;
}
.nov-card-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 55%);
  z-index: 1;
  pointer-events: none;
}
.nov-card-cat {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #c8a94a;
  color: #002d24;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 10px;
  z-index: 2;
}
.nov-card-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.nov-card-fecha {
  font-size: 11px;
  color: #999;
  margin-bottom: 8px;
  font-weight: 600;
}
.nov-card-fecha i { color: #c8a94a; margin-right: 4px; }
.nov-card-titulo {
  font-size: 15px;
  font-weight: 800;
  color: #004d3d;
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  letter-spacing: 0.01em;
}
.nov-card-resumen {
  font-size: 13px;
  color: #4a5552;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 14px;
}
.nov-card-link {
  font-size: 12px;
  font-weight: 700;
  color: #004d3d;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}
.nov-card-link i { font-size: 11px; transition: transform .15s; }
.nov-card:hover .nov-card-link i { transform: translateX(4px); }

@media (max-width: 560px) {
  .nov-card-img { height: 140px; }
}

.unidades-seccion { margin-bottom: 42px; }
.unidades-seccion-titulo {
  color: #004d3d; font-size: 14px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; border-bottom: 3px solid #c8a94a;
  padding-bottom: 10px; margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.unidades-seccion-titulo i { color: #c8a94a; }
.tabla-unidades-wrap {
  overflow-x: auto; border-radius: 10px;
  box-shadow: 0 2px 14px rgba(0,77,61,.10);
  border: 1px solid #e0ece8;
}
.tabla-unidades {
  width: 100%; border-collapse: collapse; font-size: 13px;
  background: #fff; table-layout: fixed;
}
.tabla-unidades thead th {
  background: linear-gradient(90deg,#004d3d,#006b55);
  color: #fff; font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .5px;
  padding: 12px 14px; text-align: left; white-space: nowrap;
}
.tabla-unidades thead th:first-child { border-radius: 10px 0 0 0; width: 38px; text-align: center; }
.tabla-unidades thead th:nth-child(2) { width: 22%; }
.tabla-unidades thead th:nth-child(3) { }
.tabla-unidades thead th:nth-child(4) { width: 125px; text-align: center; }
.tabla-unidades thead th:last-child   { width: 105px; border-radius: 0 10px 0 0; text-align: center; }
.tabla-unidades tbody tr { border-bottom: 1px solid #edf2ef; transition: background .12s; }
.tabla-unidades tbody tr:last-child { border-bottom: none; }
.tabla-unidades tbody tr:hover { background: #f0f7f4; }
.tabla-unidades tbody tr:nth-child(even) { background: #f8faf8; }
.tabla-unidades tbody tr:nth-child(even):hover { background: #e8f4f0; }
.tabla-unidades td { padding: 10px 14px; vertical-align: middle; word-break: break-word; }
.td-num   { width: 38px; text-align: center; color: #c8a94a; font-weight: 900; font-size: 15px; padding: 10px 6px; }
.td-nombre { font-weight: 700; color: #004d3d; font-size: 12.5px; }
.td-dir   { color: #555; font-size: 12px; line-height: 1.45; }
.td-tel   { text-align: center; white-space: nowrap; }
.td-mapa  { text-align: center; white-space: nowrap; }
.tel-link { color: #004d3d; text-decoration: none; font-weight: 600; font-size: 12px; }
.tel-link:hover { text-decoration: underline; }
.btn-mapa {
  display: inline-flex; align-items: center; gap: 5px;
  background: #1a73e8; color: #fff; font-size: 11px; font-weight: 700;
  padding: 5px 10px; border-radius: 6px; text-decoration: none;
  transition: background .15s; white-space: nowrap;
}
.btn-mapa:hover { background: #1557b0; color: #fff; }
.sin-dato { color: #bbb; font-size: 12px; }

.body-portal.portal-home {
  background: #f0f4f2;
}

.portal-home-content {
  padding: 32px 0 48px;
}

#inicio.portal-viewport-wrap {
  scroll-margin-top: 58px;
}

@property --regpol-border-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.portal-home-content .portal-seccion {
  scroll-margin-top: 58px;
  position: relative;
  background: #fff;
  border-radius: 16px;
  border: 2px solid transparent;
  box-shadow: 0 4px 24px rgba(0, 77, 61, 0.06);
  padding: 36px 28px 32px;
  margin-bottom: 28px;
}

.portal-home-content .portal-seccion::before {
  content: '';
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(200, 169, 74, 0.4);
  border-radius: 11px;
  pointer-events: none;
  z-index: 1;
}

.portal-home-content .portal-seccion::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--regpol-border-angle),
    var(--dorado) 0deg,
    var(--dorado-claro) 40deg,
    var(--verde-pnp) 90deg,
    #0a6b54 130deg,
    var(--dorado) 180deg,
    var(--dorado-claro) 220deg,
    #006b54 270deg,
    var(--dorado) 320deg,
    var(--dorado) 360deg
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  animation: regpolBorderGlow 4.5s linear infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes regpolBorderGlow {
  to { --regpol-border-angle: 360deg; }
}

.portal-home-content .portal-seccion > * {
  position: relative;
  z-index: 2;
}

.portal-home-content .portal-seccion:nth-child(even) {
  background: #fafcfb;
}

.sorteos-section { margin: 28px 0 0; }

.sorteos-section-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #004d3d;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  border-bottom: 3px solid #c8a94a;
  padding-bottom: 10px;
  margin-bottom: 18px;
}

.sorteos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.sorteo-flyer {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 280px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(0, 77, 61, 0.12);
  border: 1px solid #e8efec;
  background: #fff;
  transition: transform .22s ease, box-shadow .22s ease;
}

.sorteo-flyer:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 77, 61, 0.16);
}

.sorteo-flyer-img {
  height: 160px;
  flex-shrink: 0;
  background: linear-gradient(135deg, #002d24, #004d3d);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.sorteo-flyer-img img { width: 100%; height: 100%; object-fit: cover; }

.sorteo-placeholder { text-align: center; color: rgba(255, 255, 255, 0.75); }
.sorteo-placeholder i { font-size: 40px; display: block; margin-bottom: 8px; color: #c8a94a; }

.sorteo-flyer-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #c8a94a;
  color: #002d24;
  font-size: 9px;
  font-weight: 900;
  padding: 3px 9px;
  border-radius: 10px;
}

.sorteo-flyer-body {
  padding: 16px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sorteo-flyer-fecha { font-size: 11px; font-weight: 800; color: #c8a94a; margin-bottom: 6px; }
.sorteo-flyer-titulo { font-size: 14px; font-weight: 800; color: #004d3d; line-height: 1.35; }
.sorteo-flyer-desc { font-size: 12px; color: #666; margin-top: 8px; line-height: 1.55; flex: 1; }

.resultado-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8efec;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 77, 61, 0.08);
}

.resultado-header {
  background: linear-gradient(90deg, #004d3d, #006b55);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.resultado-header i { color: #c8a94a; font-size: 20px; }

.resultado-tabla { width: 100%; border-collapse: collapse; font-size: 13px; }
.resultado-tabla th {
  background: #f0f7f0;
  color: #004d3d;
  font-size: 11px;
  padding: 10px 14px;
  text-align: left;
}
.resultado-tabla td { padding: 10px 14px; border-bottom: 1px solid #f0f0f0; }
.resultado-nro {
  width: 32px;
  height: 32px;
  background: #c8a94a;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: #002d24;
}
.resultado-nombre { font-weight: 700; color: #004d3d; }

#bienestar.portal-seccion {
  padding: 22px 22px 18px;
}

#bienestar .section-header {
  margin-bottom: 14px;
}

#bienestar .section-header h3 {
  padding-bottom: 10px;
  margin-bottom: 2px;
}

#contenido-bienestar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.bienestar-video-wrap {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e8efec;
  background: #0a1a14;
  box-shadow: 0 6px 24px rgba(0, 77, 61, 0.1);
}

.bienestar-video-titulo {
  margin: 0;
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #004d3d;
  background: linear-gradient(180deg, #f5faf7 0%, #eef6f2 100%);
  border-bottom: 1px solid #e8efec;
}

.bienestar-video-titulo i {
  color: #c8a94a;
  margin-right: 6px;
}

.bienestar-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(50vh, 380px);
  object-fit: contain;
  background: #000;
  vertical-align: top;
}

.bienestar-home-card {
  background: linear-gradient(145deg, #fff 0%, #f5faf7 100%);
  border-radius: 16px;
  border: 1px solid #e8efec;
  border-top: 4px solid #c8a94a;
  padding: 22px 20px;
  text-align: center;
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 6px 24px rgba(0, 77, 61, 0.08);
}

.bienestar-home-icon {
  font-size: 30px;
  color: #c8a94a;
  margin-bottom: 8px;
}

.bienestar-home-card h4 { color: #004d3d; font-size: 17px; margin-bottom: 8px; font-weight: 800; }
.bienestar-home-card p { color: #667; font-size: 14px; margin-bottom: 16px; line-height: 1.55; }

.btn-bienestar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #004d3d;
  color: #fff;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: background .2s, transform .2s;
}

.btn-bienestar:hover { background: #006b55; transform: translateY(-2px); }

.texto-vacio {
  color: #889;
  text-align: center;
  padding: 32px 20px;
  background: #f8faf9;
  border-radius: 12px;
  border: 1px dashed #d0ddd8;
  font-size: 14px;
}

.icon-wrapper {
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 77, 61, 0.2);
}

#modal-novedad {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0, 0, 0, 0.65);
  align-items: center;
  justify-content: center;
  padding: 16px;
}
#modal-novedad.visible { display: flex; }

.modal-nov-box {
  background: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.modal-nov-close { display: flex; justify-content: flex-end; padding: 12px 14px 0; }
.modal-nov-close button {
  background: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  cursor: pointer;
}
#modal-nov-inner { padding: 20px 28px 28px; }
.modal-nov-titulo { font-size: 1.35rem; font-weight: 900; color: #004d3d; margin-bottom: 14px; }
.modal-nov-cuerpo { font-size: 14.5px; color: #444; line-height: 1.75; }

@media (max-width: 768px) {
  .portal-home-content .portal-seccion { padding: 28px 18px 24px; margin-bottom: 20px; }
  #bienestar.portal-seccion { padding: 18px 14px 14px; }
  #bienestar .section-header { margin-bottom: 10px; }
  #contenido-bienestar { gap: 12px; }
  .bienestar-video-wrap { max-width: 100%; }
  .bienestar-video { max-height: min(42vh, 280px); }
  .bienestar-home-card { max-width: 100%; padding: 18px 16px; }
  .bienestar-home-card h4 { font-size: clamp(15px, 4.2vw, 17px); }
  .btn-bienestar { width: 100%; justify-content: center; box-sizing: border-box; }
  .novedades-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}

@media (max-width: 560px) {
  .portal-home-content .portal-seccion { border-radius: 12px; padding: 24px 16px; }
  #bienestar.portal-seccion { padding: 14px 12px 12px; }
  #bienestar .section-header h3 { font-size: clamp(1rem, 4.8vw, 1.2rem); }
  .bienestar-video-wrap { border-radius: 12px; }
  .bienestar-video-titulo { font-size: 12px; padding: 7px 10px; line-height: 1.35; }
  .bienestar-video { max-height: min(36vh, 220px); }
  .bienestar-home-card { padding: 16px 14px; border-radius: 12px; }
  .bienestar-home-icon { font-size: 26px; margin-bottom: 6px; }
  .bienestar-home-card p { font-size: 13.5px; margin-bottom: 14px; }
  .btn-bienestar { padding: 11px 18px; font-size: 13px; }
  .novedades-grid { grid-template-columns: 1fr; }
  .nov-card { min-height: 300px; }
  .nov-card-img { height: 150px; }
  .grid-modern { grid-template-columns: 1fr; }
}

/* —— Carruseles estilo DIREDDOC (hojas / marquee) —— */
.regpol-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
}
.regpol-marquee.grid-modern,
.regpol-marquee .novedades-grid {
  display: block;
}
.regpol-marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  align-items: stretch;
  animation: regpolMarqueeX 42s linear infinite;
  will-change: transform;
}
.regpol-marquee:hover .regpol-marquee-track {
  animation-play-state: paused;
}
@keyframes regpolMarqueeX {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.regpol-marquee-track > .nov-card,
.regpol-marquee-track > a {
  flex: 0 0 280px;
  width: 280px;
  max-width: 280px;
  text-decoration: none;
  color: inherit;
  display: flex;
}
.regpol-marquee-track > a .card-modern {
  width: 100%;
  min-height: 240px;
}
.regpol-marquee-track > .nov-card {
  min-height: 320px;
}
.regpol-marquee-track > a:hover .card-modern,
.regpol-marquee-track > .nov-card:hover {
  border-color: var(--dorado);
  box-shadow: 0 12px 28px rgba(200, 169, 74, 0.22);
}

/* Convenios: 2 filas + flechas (giro circular) */
.section-header--compact {
  margin-bottom: 16px;
}
.section-header--compact h3 {
  margin-bottom: 0;
  padding-bottom: 12px;
}
.section-header--con-accion {
  position: relative;
  display: block;
  text-align: center;
}
.section-header--con-accion h3 {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
}
.btn-repechaje-destaque {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  background: linear-gradient(180deg, #e4c76b 0%, #c8a94a 55%, #9a7b2f 100%);
  color: #002d24;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 10.5px;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0.2px;
  line-height: 1.15;
  text-align: center;
  border: 1.5px solid #fff8e1;
  box-shadow: 0 3px 10px rgba(200, 169, 74, 0.4);
  white-space: nowrap;
  animation: alerta-repechaje 1s steps(2, end) infinite;
}
.btn-repechaje-destaque span {
  display: block;
}
.btn-repechaje-destaque:hover {
  background: linear-gradient(180deg, #f0d978 0%, #d4b652 55%, #a88735 100%);
  color: #002d24;
}
@keyframes alerta-repechaje {
  0%, 49% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(243, 156, 18, 0.7), 0 3px 10px rgba(200, 169, 74, 0.4);
    filter: brightness(1.05);
  }
  50%, 100% {
    opacity: 0.55;
    box-shadow: 0 0 0 6px rgba(243, 156, 18, 0), 0 3px 10px rgba(200, 169, 74, 0.2);
    filter: brightness(1.25);
  }
}
@media (max-width: 700px) {
  .section-header--con-accion {
    padding-bottom: 52px;
  }
  .btn-repechaje-destaque {
    top: auto;
    bottom: 0;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    animation: alerta-repechaje 1s steps(2, end) infinite;
  }
}
.convenios-consulta-bar {
  background: linear-gradient(135deg, #004d3d, #006b55);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.convenios-consulta-texto {
  color: #fff;
  flex: 1 1 260px;
  min-width: 0;
}
.convenios-consulta-texto strong {
  font-size: 14px;
  display: block;
  margin-bottom: 4px;
}
.convenios-consulta-texto span {
  font-size: 13px;
  opacity: 0.92;
  line-height: 1.45;
  display: block;
}
.btn-consulta-cip {
  background: #c8a94a;
  color: #002d24;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.btn-consulta-cip:hover {
  background: #e4c76b;
  color: #002d24;
}
#convenios .section-header p {
  display: none !important;
}
.regpol-marquee-wrap {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
.regpol-marquee--2rows {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.regpol-marquee-track--2rows {
  display: grid;
  grid-template-rows: auto auto;
  grid-auto-flow: column;
  grid-auto-columns: 240px;
  gap: 12px 16px;
  align-items: stretch;
  width: max-content;
  animation: none !important;
  will-change: transform;
}
.regpol-marquee-track--2rows > .nov-card,
.regpol-marquee-track--2rows > a {
  flex: none;
  width: 240px;
  max-width: 240px;
}
.regpol-marquee-track--2rows > a .card-modern {
  min-height: 178px;
  padding: 16px 14px;
}
.regpol-marquee-track--2rows .icon-wrapper {
  width: 52px;
  height: 52px;
  font-size: 22px;
  margin-bottom: 8px;
}
.regpol-marquee-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 10px;
}
.regpol-marquee-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #004d3d;
  background: #fff;
  color: #004d3d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(0, 77, 61, 0.12);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.regpol-marquee-btn:hover {
  background: #004d3d;
  color: #fff;
  transform: scale(1.06);
}
@media (max-width: 640px) {
  .regpol-marquee-wrap {
    max-width: 100%;
    overflow: hidden;
    padding: 0;
  }
  .regpol-marquee--2rows {
    -webkit-mask-image: none;
    mask-image: none;
    overflow: hidden;
    width: 100%;
  }
  .regpol-marquee-track--2rows {
    /* Una columna visible (2 filas); ancho casi completo del teléfono */
    grid-auto-columns: min(360px, calc(100vw - 48px));
    gap: 10px 12px;
  }
  .regpol-marquee-track--2rows > .nov-card,
  .regpol-marquee-track--2rows > a {
    width: min(360px, calc(100vw - 48px));
    max-width: min(360px, calc(100vw - 48px));
    min-width: 0;
  }
  .regpol-marquee-track--2rows > a .card-modern {
    min-height: 0;
    padding: 14px 12px 12px;
    box-sizing: border-box;
  }
  .regpol-marquee-track--2rows .icon-wrapper {
    width: 46px;
    height: 46px;
    font-size: 20px;
    margin-bottom: 6px;
  }
  .regpol-marquee-track--2rows .card-modern h4 {
    font-size: 12.5px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: anywhere;
    -webkit-line-clamp: 3;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .regpol-marquee-track--2rows .card-vacantes {
    font-size: 12px;
  }
  .regpol-marquee-track--2rows .card-vacantes strong {
    font-size: 1.2em;
  }
  .convenios-consulta-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    gap: 10px;
  }
  .convenios-consulta-texto {
    flex: 1 1 auto;
  }
  .convenios-consulta-texto strong {
    font-size: 13px;
  }
  .convenios-consulta-texto span {
    font-size: 12px;
  }
  .btn-consulta-cip {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    padding: 11px 14px;
  }
}

/* Unidades: 3 hojas DIVOPUS */
.uni-marquee {
  overflow: hidden;
  width: 100%;
  position: relative;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 2%, #000 98%, transparent);
}
.uni-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: regpolMarqueeX 55s linear infinite;
  will-change: transform;
}
.uni-marquee:hover .uni-marquee-track {
  animation-play-state: paused;
}
.uni-sheet {
  flex: 0 0 min(920px, 88vw);
  width: min(920px, 88vw);
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e8efec;
  border-top: 4px solid var(--dorado);
  box-shadow: 0 8px 28px rgba(0, 77, 61, 0.1);
  padding: 20px 22px 18px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.uni-sheet:hover {
  box-shadow: 0 14px 36px rgba(200, 169, 74, 0.2);
  transform: translateY(-2px);
}
.uni-sheet-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--verde-pnp);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(200, 169, 74, 0.35);
}
.uni-sheet-titulo i {
  color: var(--dorado);
  font-size: 0.95em;
}
.uni-sheet .tabla-unidades-wrap {
  margin: 0;
  overflow-x: auto;
}
.uni-sheet .tabla-unidades {
  margin: 0;
}
.uni-marquee-hint {
  display: none;
}

.portal-eslogan,
.portal-hero-titulo {
  font-family: var(--font-display);
}

.main-header {
  border-bottom: 2px solid rgba(200, 169, 74, 0.35);
}

.card-modern {
  border-top-color: var(--verde-pnp);
}
.grid-modern a:hover .card-modern {
  border-top-color: var(--dorado);
}

@media (max-width: 640px) {
  .portal-flex {
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 8px;
  }
  .topbar-links {
    justify-content: flex-start;
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }
  .social-buttons-group {
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
  }
  .contacto-redes-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 100%;
  }
  .contacto-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .regpol-marquee-track > .nov-card,
  .regpol-marquee-track > a {
    flex-basis: 250px;
    width: 250px;
    max-width: 250px;
  }
  .uni-sheet {
    flex-basis: min(920px, 92vw);
    width: min(920px, 92vw);
    padding: 16px 14px;
  }
}
