/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES */
:root {
    --primary: #1f3c88;
    --secondary: #0f1e44;
    --text: #1a1a1a;
    --muted: #666;
    --light: #f5f7fa;
    --max-width: 1200px;
}

/* BASE */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: #ffffff;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* HEADER */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 88px;
    column-gap: 48px;
}

.logo img {
    height: 48px;
}

.main-nav ul {
    display: flex;
    gap: 12px;
}

.main-nav a {
    position: relative;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        color 0.25s ease;
}
.main-nav ul {
    list-style: none;
}
.main-nav a:hover,
.main-nav a.active {
    background: rgba(31, 60, 136, 0.08);
    color: var(--primary);
}
.main-nav a:hover:not(.active) {
    background: white;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}
@media (max-width: 768px) {
    .top-bar {
        display: none;
    }
}

@media (max-width: 768px) {
    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
        letter-spacing: 0.06em;
    }
}

/* MOBILE MENU */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    width: 26px;
    height: 3px;
    background: var(--text);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 140px 0;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
}

/* SECTIONS */
.section {
    padding: 96px 0;
}

.section.light {
    background: var(--light);
}

.section h2 {
    font-size: 32px;
    margin-bottom: 24px;
}

.section p {
    max-width: 720px;
    color: var(--muted);
}

/* CARDS */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.card {
    background: white;
    padding: 36px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card h3 {
    margin-bottom: 12px;
}

/* FOOTER */
.site-footer {
    background: var(--secondary);
    color: white;
    margin-top: 120px;
}

.footer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 48px;
    padding: 80px 24px;
}

.footer-col h4 {
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: white;
    text-decoration: none;
}

.footer-bottom {
    background: #0a1430;
    text-align: center;
    padding: 20px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .main-nav {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: white;
        display: none;
        border-bottom: 1px solid #ddd;
    }

    .main-nav ul {
        flex-direction: column;
        padding: 24px;
        gap: 20px;
    }

    .main-nav.active {
        display: block;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0;
    }

    .hero h1 {
        font-size: 32px;
    }
}
@media (max-width: 1100px) {
    .main-nav ul {
        gap: 16px;
    }

    .main-nav a {
        font-size: 14px;
    }
}

/* HERO SLIDER */
.hero-slider {
    position: relative;
    height: 80vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease;
}

.slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,0.72) 0%,
        rgba(0,0,0,0.55) 35%,
        rgba(0,0,0,0.25) 65%,
        rgba(0,0,0,0.15) 100%
    );
    z-index: 0;
}
.slide-content,
.slide-text {
    position: relative;
    z-index: 2;
}
.slide-text h1 {
    color: #ffffff;
    text-shadow:
        0 6px 20px rgba(0,0,0,0.55),
        0 2px 6px rgba(0,0,0,0.45);
}
.slide-text p {
    color: #0BB396;
    text-shadow:
        0 2px 10px rgba(0,0,0,0.6);
}
.slide-text {
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(6px);
    padding: 36px 40px;
    border-radius: 18px;
    max-width: 560px;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 70vh;
    gap: 48px;
}

.slide-text {
    max-width: 520px;
    color: white;
}

.slide-text h1 {
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 16px;
}

.slide-text p {
    font-size: 20px;
    opacity: 0.9;
}

.slide-content h1 {
    font-size: 42px;
    margin-bottom: 16px;
}

.slide-content p {
    font-size: 18px;
}
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.video-wrapper {
    position: relative;
    padding-top: 56.25%;
}

.video-wrapper iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .split {
        grid-template-columns: 1fr;
    }
}
.logos-carousel {
    overflow: hidden;
    width: 100%;
    margin-top: 40px;
}

.logos-track {
    display: flex;
    gap: 40px;
    animation: scroll-logos 28s linear infinite;
}

/* CARD */
.logo-card {
    flex: 0 0 auto;
    width: 240px;
    height: 150px;
    background: #fff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 35px rgba(0,0,0,.08);
    transition: transform .35s ease, box-shadow .35s ease;
}

/* LOGO */
.logo-card img {
    max-width: 170px;
    max-height: 100px;
    object-fit: contain;
    opacity: 1;
    filter: none;
    transition: transform .35s ease;
}

/* HOVER */
.logo-card:hover {
    transform: translateY(-6px) scale(1.04);
    box-shadow: 0 20px 50px rgba(0,0,0,.15);
}

.logo-card:hover img {
    transform: scale(1.05);
}

/* PAUSA EN HOVER */
.logos-carousel:hover .logos-track {
    animation-play-state: paused;
}

/* CENTRADO DE TEXTOS */
.section-eyebrow,
.section-title-strong,
.section-intro {
    text-align: center;
}

/* ANIMACIÓN */
@keyframes scroll-logos {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}



@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}
.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: inherit;
}

.logo-svg {
    height: 40px;
    width: auto;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-text strong {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
}

.brand-text small {
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--muted);
    text-transform: uppercase;
}
@media (max-width: 768px) {

    .brand-text {
        display: none;
    }

    .logo-svg {
        height: 34px;
    }
}
/* SLIDER STATS */
.slide {
    display: flex;
    align-items: center;
}

.slide-content {
    flex: 1;
}

.slide-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 520px;
}

/* GLASS CARD */
.stat-card {
    padding: 24px;
    border-radius: 16px;
    color: white;
}

.glass {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.15);
}

.stat-card h3 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

/* ICON */
.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.stat-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.bg-green {
    background: #009246;
}

.bg-red {
    background: #ce2b37;
}

.bg-white {
    background: white;
    color: #1e3a5f;
    font-weight: 700;
}

/* OFFSET (staggered look) */
.offset {
    margin-top: 32px;
}

/* CTA CARD */
.stat-card.cta {
    background: linear-gradient(135deg, #009246, #007a3a);
}

.stat-card.cta h4 {
    font-size: 20px;
    margin-bottom: 8px;
}

.stat-card.cta p {
    margin-bottom: 16px;
}

.stat-card.cta a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s;
}

.stat-card.cta a:hover {
    transform: translateX(4px);
}
@media (max-width: 1024px) {
    .slide-content {
        flex-direction: column;
        text-align: center;
    }

    .slide-text {
        max-width: 100%;
    }

    .slide-stats {
        display: none;
    }
}
.slide-stats .stat-card {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease,
        box-shadow 0.4s ease,
        background 0.4s ease;
    will-change: transform;
}
.slide-stats .stat-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
}
.slide-stats .stat-card.glass:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}
.slide-stats .stat-card.cta:hover {
    transform: translateY(-8px) scale(1.03);
}

.slide.active .slide-stats .stat-card {
    opacity: 1;
    transform: translateY(0);
}
.slide.active .slide-stats .stat-card:nth-child(1) {
    transition-delay: 0.1s;
}

.slide.active .slide-stats .stat-card:nth-child(2) {
    transition-delay: 0.25s;
}

.slide.active .slide-stats .stat-card:nth-child(3) {
    transition-delay: 0.4s;
}

.slide.active .slide-stats .stat-card:nth-child(4) {
    transition-delay: 0.55s;
}
.slide:not(.active) .slide-stats .stat-card {
    transition-delay: 0s;
}
.top-bar {
    background: #0f1e44;
    color: white;
    font-size: 13px;
}

.top-bar-inner {
    display: flex;
    justify-content: flex-end;
    height: 36px;
    align-items: center;
}

.top-contact {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-contact a {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

.top-contact a:hover {
    opacity: 1;
    text-decoration: underline;
}

.top-contact span {
    opacity: 0.4;
}
@media (max-width: 768px) {

    .header-inner {
        grid-template-columns: auto auto;
    }

    .main-nav {
        position: absolute;
        top: 124px; /* top-bar (36px) + header (88px) */
        left: 0;
        width: 100%;
        background: white;
        z-index: 999;
    }

    .main-nav ul {
        list-style: none;
        flex-direction: column;
        padding: 24px;
    }

}
/* SLIDER BUTTONS */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 5;
    transition: 
        background 0.3s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.slider-btn:hover {
    background: rgba(255,255,255,0.28);
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    transform: translateY(-50%) scale(1.05);
}

.slider-btn.prev {
    left: 24px;
}

.slider-btn.next {
    right: 24px;
}

@media (max-width: 768px) {
    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }
}
/* INSTITUCIONES */
.institutions {
    text-align: center;
}

.section-eyebrow {
    display: inline-block;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 12px;
}
.section-eyebrow,
.section-title-strong,
.section-intro {
    text-align: center;
}

.section-intro {
    margin: 0 auto;
    margin-top: 12px;
    max-width: 720px;
    color: var(--muted);
}

/* GRID */
.institutions-grid {
    margin-top: 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

/* CARD */
.institution-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 160px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

.institution-card img {
    max-height: 90px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.35s ease;
}

/* HOVER */
.institution-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 70px rgba(0,0,0,0.18);
}

.institution-card:hover img {
    transform: scale(1.06);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .institution-card {
        height: 140px;
        padding: 24px;
    }

    .institution-card img {
        max-height: 72px;
    }
}
.section-eyebrow.with-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.18em;
    font-weight: 600;
    color: var(--primary);
}

.section-eyebrow.with-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--primary);
    stroke-width: 2;
    fill: none;
}
.section-title-strong {
    font-size: 34px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 12px;
}
.section-title-strong {
    color: #1f3c88;
    letter-spacing: -0.02em;
}
.section-intro {
    margin-top: 16px;
    font-size: 16px;
}
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    color: var(--italy-green);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .12em;
    margin-bottom: 12px;
    width: 100%;
}

.section-eyebrow svg {
    width: 18px;
    height: 18px;
    stroke: var(--italy-green);
    fill: none;
}

.section-title-strong {
    color: var(--primary);
    font-size: 34px;
    margin-bottom: 16px;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 48px;
    color: var(--muted);
    font-size: 16px;
}
.logos-carousel.full-width {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 40px 0;
}
/* CTA INSTITUCIONES */
.institutions-cta {
    display: flex;
    justify-content: center;
    margin-top: 48px;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 999px;

    background: linear-gradient(
        135deg,
        #009246,
        #007a3a
    );

    color: #ffffff;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .03em;

    box-shadow:
        0 12px 30px rgba(0, 122, 58, 0.35),
        inset 0 0 0 1px rgba(255,255,255,0.25);

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        filter .25s ease;
}

.btn-primary:hover {
    transform: translateY(-4px);
    box-shadow:
        0 22px 55px rgba(0, 122, 58, 0.55),
        inset 0 0 0 1px rgba(255,255,255,0.35);
    filter: brightness(1.08);
}
.institutions-cta {
    display: flex;
    justify-content: center;
    margin-top: 64px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ABOUT CARD */
.about-card {
    max-width: 880px;
    margin: 0 auto;
    background: #ffffff;
    padding: 56px 64px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 18px 50px rgba(0,0,0,0.08);
    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

/* Hover elegante */
.about-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.14);
}

/* Eyebrow */
.about-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #009246; /* verde bandera italiana */
}

/* Título */
.about-card h2 {
    font-size: 34px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary);
    line-height: 1.25;
}

/* Texto */
.about-card p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--muted);
    max-width: 720px;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 768px) {
    .about-card {
        padding: 40px 28px;
    }

    .about-card h2 {
        font-size: 28px;
    }

    .about-card p {
        font-size: 16px;
    }
}
/* TITULOS CON LOGO */
.section-title.with-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 24px;
}

.section-title.with-logo h2 {
    font-size: 36px;
    font-weight: 700;
    color: #009246;
	letter-spacing: -0.3px;
    margin: 0;
    line-height: 1.2;
}

.title-logo {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

/* Micro interacción */
.section-title.with-logo:hover .title-logo {
    transform: translateY(-2px) scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
    .section-title.with-logo h2 {
        font-size: 28px;
    }

    .title-logo {
        width: 26px;
        height: auto;
    }
}
/* FOOTER BRAND */
.brand-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo svg {
    width: 40px;
    height: auto;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.brand-footer p {
    font-size: 14px;
    line-height: 1.6;
    opacity: 0.85;
    max-width: 280px;
}
/* SLIDE TEXT */
.slide-text h1 {
    color: #ffffff;
    font-size: 56px;
    line-height: 1.1;
    margin-bottom: 14px;
}

.slide-text p {
    color: #0BB396; /* verde bandera italiana */
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

/* ACTIONS */
.slide-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* BUTTON BASE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

/* PRIMARY */
.btn-primary {
    background: #0BB396;
    color: #0f1e44;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(11,179,150,0.45);
}

/* OUTLINE */
.btn-outline {
    border: 1px solid rgba(255,255,255,0.6);
    color: white;
    background: transparent;
}

.btn-outline:hover {
    background: white;
    color: #0f1e44;
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .slide-text h1 {
        font-size: 36px;
    }

    .slide-actions {
        justify-content: center;
    }
}
/* SLIDE VIDEO */
.slide-video {
    max-width: 560px;
    width: 100%;
    color: white;
}

/* CONTENEDOR VIDEO */
.video-frame {
    position: relative;
    padding-top: 56.25%; /* 16:9 */
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.45);
    margin-bottom: 32px;
}

/* OVERLAY SUAVE PARA CONTRASTE */
.video-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12);
    pointer-events: none;
}

/* IFRAME */
.video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* BOTONES (reutiliza los tuyos) */
.slide-video .slide-actions {
    display: flex;
    gap: 16px;
}

@media (max-width: 768px) {
    .slide-video {
        max-width: 100%;
        text-align: center;
    }

    .slide-video .slide-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/*pagina institucines*/
/* PAGE HERO */
.page-hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #f5f7fa, #ffffff);
    text-align: center;
}

.page-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
    margin-top: 12px;
}

.page-intro {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 17px;
    color: var(--muted);
}

/* GRID GRANDE */
.institutions-grid.large {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
}

/* CARD DETALLADA */
.institution-card.detailed {
    height: auto;
    padding: 40px 32px;
    text-align: center;
    flex-direction: column;
    gap: 20px;
}

.institution-card.detailed img {
    max-height: 110px;
}

.institution-card.detailed h3 {
    font-size: 18px;
    color: var(--primary);
}

.institution-card.detailed p {
    font-size: 14px;
    color: var(--muted);
    line-height: 1.5;
}

/* HOVER MÁS FINO */
.institution-card.detailed:hover {
    transform: translateY(-10px);
}
/* GRID PRINCIPAL DE INSTITUCIONES */
.institutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    width: 100%;
}

/* CARD DETALLADA */
.institution-card.detailed {
    background: #ffffff;
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease;
}

/* IMAGEN */
.institution-card.detailed img {
    max-height: 90px;
    margin-bottom: 20px;
    object-fit: contain;
}

/* TÍTULO */
.institution-card.detailed h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--primary);
}

/* TEXTO */
.institution-card.detailed p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 8px;
}

/* LINKS */
.institution-links {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.institution-links a,
.institution-card.detailed > a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #009246;
    border: 1px solid rgba(0,146,70,0.35);
    padding: 8px 14px;
    border-radius: 20px;
    transition: all 0.25s ease;
}

.institution-links a:hover,
.institution-card.detailed > a:hover {
    background: #009246;
    color: white;
    transform: translateY(-2px);
}

/* HOVER CARD */
.institution-card.detailed:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.18);
}
@media (min-width: 1200px) {
    .institutions-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* 🔴 FIX DEFINITIVO GRID INSTITUCIONES */
.institutions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 32px !important;
    align-items: stretch !important;
}
/* PAGE HERO */
.page-hero {
    position: relative;
    padding: 140px 0 120px;
    overflow: hidden;
}

/* Fondo especial para Instituciones */
.page-hero--institutions {
    background:
        radial-gradient(
            800px 300px at 50% 0%,
            rgba(0,146,70,0.12),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            #f5f7fa 0%,
            #ffffff 100%
        );
}

/* Detalle decorativo */
.page-hero--institutions::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 420px;
    height: 420px;
    background: radial-gradient(
        circle,
        rgba(0,146,70,0.18),
        transparent 65%
    );
    z-index: 0;
}

/* Contenido */
.page-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
}

/* Título principal */
.page-title {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 18px 0 20px;
    color: var(--primary);
}

/* Intro */
.page-intro {
    font-size: 18px;
    line-height: 1.7;
    color: var(--muted);
    margin: 0 auto;
    max-width: 680px;
}

/* Eyebrow refinado */
.page-hero .section-eyebrow {
    justify-content: center;
    color: #009246;
}

.page-hero .section-eyebrow svg {
    stroke: #009246;
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero {
        padding: 100px 0 80px;
    }

    .page-title {
        font-size: 36px;
    }

    .page-intro {
        font-size: 16px;
    }
}
.page-hero .section-eyebrow {
    font-size: 16px;              /* antes más chico */
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

/* Ícono alineado al nuevo tamaño */
.page-hero .section-eyebrow svg {
    width: 36px;
    height: auto;
}

/* AUTORIDADES – GRID */
.authorities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 32px;
    padding-top: 40px;
}

/* TARJETA DE AUTORIDAD */
.authority-card {
    background: white;
    padding: 24px 28px;
    border-radius: 14px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.authority-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.16);
}

/* CARGO (título) */
.authority-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

/* NOMBRE */
.authority-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .authorities-grid {
        gap: 24px;
    }
}

.video-frame {
    position: relative;
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    aspect-ratio: 16 / 9; /* mantiene proporción */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.1);
}

.video-frame video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* llena el contenedor manteniendo proporción */
    display: block;
}
/* Contenedor split: 2 columnas */
.container.split {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center; /* centra verticalmente */
}

/* Columna de texto */
.container.split > div:first-child {
    flex: 1 1 400px; /* crece, se reduce, mínimo 400px */
}

/* Video */
.slide-video {
    flex: 1 1 400px;
    max-width: 600px; /* opcional, para no crecer demasiado */
}

.slide-video video {
    width: 100%;
    height: auto; /* mantiene proporción */
    border-radius: 1rem; /* opcional, se ve más elegante */
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.transparency-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.transparency-card {
    flex: 1 1 300px;
    background: #ffffff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.transparency-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}

.transparency-card h3 {
    margin-bottom: 1rem;
    color: #0BB396; /* verde de títulos */
}

.transparency-card p {
    margin-bottom: 1.5rem;
    color: #333;
}

.transparency-card a.btn-outline {
    color: #0BB396;
    border: 1px solid #0BB396;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s;
}

.transparency-card a.btn-outline:hover {
    background: #0BB396;
    color: #fff;
}
.transparency-card {
    background: #fff;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
}

.transparency-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.transparency-links a {
    border: 1px solid #0BB396;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    color: #0BB396;
    text-decoration: none;
    transition: all 0.3s;
}

.transparency-links a:hover {
    background: #0BB396;
    color: #fff;
}

.transparency-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.transparency-table th, .transparency-table td {
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    text-align: left;
}

.transparency-table th {
    background: #0BB396;
    color: #fff;
}

.contacts-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    flex: 1 1 200px;
    text-align: center;
}

.contact-img {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    margin: 0 auto 1rem;
}
.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.link-card {
    flex: 1 1 250px;
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s;
}

.link-card:hover {
    transform: translateY(-5px);
}

.link-card h4 {
    margin-bottom: 0.5rem;
    color: #0B4F58;
}

.link-card p {
    flex-grow: 1;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #555;
}

.link-card .btn {
    align-self: flex-start;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 2px solid #0BB396; /* verde de ACAESIT */
    background-color: #0BB396; /* para que siempre se vea */
    color: #fff; /* texto blanco */
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.link-card .btn:hover {
    background-color: #0B4F58; /* un verde más oscuro al pasar el mouse */
    color: #fff;
    transform: translateY(-2px);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.contact-card h4 {
    margin-bottom: 0.5rem;
    color: #0BB396;
}

.contact-card a {
    color: #0BB396;
    text-decoration: underline;
}
.novedades-destacadas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.novedad-card.featured {
  flex: 1 1 48%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.novedad-card.featured .media img,
.novedad-card.featured .media video {
  width: 100%;
  height: auto;
  display: block;
}

.novedad-card.featured .content {
  padding: 20px;
}

.otras-novedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.novedad-card.small {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.novedad-card.small .media img {
  width: 100%;
  display: block;
}

.novedad-card.small .content {
  padding: 15px;
}

.novedad-card a {
  color: #0BB396;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.novedad-card a:hover {
  color: #F87196;
}
.novedades-destacadas {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 50px;
}

.novedad-card.featured {
  flex: 1 1 48%;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
}

.novedad-card.featured .media img,
.novedad-card.featured .media video {
  width: 100%;
  height: auto;
  display: block;
}

.novedad-card.featured .content {
  padding: 20px;
}

.otras-novedades {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.novedad-card.small {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.novedad-card.small .media img {
  width: 100%;
  display: block;
}

.novedad-card.small .content {
  padding: 15px;
}

.novedad-card a {
  color: #0BB396;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

.novedad-card a:hover {
  color: #F87196;
}

.btn-outline {
  display: inline-block;
  padding: 8px 18px;
  border: 2px solid #0BB396;
  border-radius: 6px;
  color: #0BB396;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #0BB396;
  color: #fff;
}
.agenda {
    padding: 4rem 0;
}

.agenda-month {
    margin-bottom: 4rem;
}

.agenda-month-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #0B4F58;
    border-left: 5px solid #0BB396;
    padding-left: 0.75rem;
}

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.agenda-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
}

.agenda-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.12);
}

.agenda-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0BB396;
    margin-bottom: 0.5rem;
}

.agenda-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #0B4F58;
}

.agenda-card p {
    margin: 0;
    font-size: 0.95rem;
    color: #555;
}

.agenda-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border-radius: 999px;
    border: 1px solid #0BB396;
    background: transparent;
    color: #0B4F58;
    font-weight: 500;
    cursor: pointer;
    transition: all .25s ease;
}

.filter-btn:hover {
    background: #0BB396;
    color: #fff;
}

.filter-btn.active {
    background: #0B4F58;
    border-color: #0B4F58;
    color: #fff;
}
.agenda-header {
    margin-bottom: 3rem;
}

.agenda-title {
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #0B4F58;
}

.agenda-intro {
    max-width: 640px;
    font-size: 1.05rem;
    color: #4a5a5a;
    line-height: 1.6;
}

.agenda-filters {
    margin-bottom: 3.5rem;
}
.slide-title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.slide-title h1 {
    margin: 0;
    color: #ffffff;
    line-height: 1.1;
}

.slide-title .title-logo {
    flex-shrink: 0;
    width: 36px;
    height: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .slide-title {
        justify-content: center;
        text-align: center;
    }
}
.btn-transparencia {
    margin-top: 24px;
    padding: 10px 18px;
    font-size: 0.95rem;
}

/* Estilos para el Modal */
    .modal-overlay {
        display: none;
        position: fixed;
        z-index: 9999;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.9);
        align-items: center;
        justify-content: center;
    }
    .modal-overlay img {
        max-width: 85%;
        max-height: 80%;
        border-radius: 8px;
        box-shadow: 0 0 20px rgba(255,255,255,0.1);
    }
    .close-modal {
        position: absolute;
        top: 20px;
        right: 35px;
        color: white;
        font-size: 40px;
        cursor: pointer;
    }
    .modal-nav {
        background: none;
        border: none;
        color: white;
        font-size: 50px;
        cursor: pointer;
        padding: 20px;
        position: absolute;
    }
    .modal-nav.prev { left: 10px; }
    .modal-nav.next { right: 10px; }

    /* Efecto Hover en el Carrusel */
    .logo-card {
        cursor: pointer;
        transition: transform 0.3s ease;
    }
    .logo-card:hover {
        transform: scale(1.1);
        filter: brightness(1.2);
    }
	
	/* Solo afectamos a las cards dentro de este carrusel */
    #novedadesCarousel .logo-card.gallery-item {
        width: 280px; /* Ajusta el ancho a tu gusto */
        height: 180px; /* Ajusta el alto a tu gusto */
        padding: 0;    /* Quitamos el padding para que la imagen llegue al borde */
        overflow: hidden;
        cursor: pointer;
        border-radius: 12px;
        transition: transform 0.3s ease;
        flex-shrink: 0;
    }

    #novedadesCarousel .logo-card.gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* Esto hace que la imagen ocupe todo el cuadro sin deformarse */
        filter: none;      /* Por si la clase base tiene filtros */
    }

    #novedadesCarousel .logo-card.gallery-item:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    }

    /* Estilos del Modal Lightbox */
    .lightbox-overlay {
        display: none;
        position: fixed;
        z-index: 99999;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.95);
        align-items: center;
        justify-content: center;
    }
    .lightbox-content {
        max-width: 90%;
        max-height: 85%;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .lightbox-content img {
        max-width: 100%;
        max-height: 100%;
        border-radius: 4px;
        object-fit: contain;
    }
    .lightbox-close {
        position: absolute;
        top: 25px; right: 35px;
        color: white; font-size: 50px;
        cursor: pointer;
        z-index: 10;
    }
    .lightbox-nav {
        background: rgba(255,255,255,0.1);
        border: none; color: white;
        font-size: 40px; cursor: pointer;
        padding: 20px; border-radius: 50%;
        margin: 0 20px; transition: background 0.3s;
    }
    .lightbox-nav:hover { background: rgba(255,255,255,0.2); }
	
	/* Estilos específicos para este Slider */
    .novedades-slider-container .slide {
        cursor: zoom-in;
        transition: transform 0.5s ease;
    }
    
    .novedades-slider-container .slide:hover {
        transform: scale(1.02);
    }

    .novedades-slider-container .slide-text {
        background: rgba(11, 79, 88, 0.85); /* Color corporativo */
        padding: 25px;
        border-radius: 15px;
        border-left: 5px solid #0BB396;
    }

    /* Lightbox */
    .lightbox {
        display: none;
        position: fixed;
        z-index: 10000;
        top: 0; left: 0;
        width: 100%; height: 100%;
        background: rgba(0,0,0,0.95);
        align-items: center;
        justify-content: center;
    }

    .lightbox img {
        max-width: 90%;
        max-height: 85%;
        border-radius: 10px;
        box-shadow: 0 0 30px rgba(0,0,0,0.5);
    }

    .close {
        position: absolute;
        top: 20px; right: 30px;
        color: white; font-size: 50px; cursor: pointer;
    }
	
	/* Estilo para que la imagen se vea siempre bien */
  #sliderNovedades .slide {
   
	background-size: cover; /* En el slider queremos que llene el espacio */
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 0.6s ease-in-out;
	
  }

  /* Overlay del Lightbox */
  .lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.9);
    align-items: center; justify-content: center;
    cursor: zoom-out;
  }

  .lightbox-overlay img {
    max-width: 90%;
    max-height: 85%;
    border-radius: 5px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
  }

  .close-btn {
    position: absolute;
    top: 20px; right: 40px;
    color: white; font-size: 50px; cursor: pointer;
  }
  
  .novedad-card.small .media img {
    width: 100%;
    height: 150px; /* Altura fija para uniformidad */
    object-fit: cover;
    border-radius: 8px 8px 0 0;
  }

  /* Estilos del Modal Detallado */
  .lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 10000;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95);
    align-items: center; justify-content: center;
  }

/* Contenedor principal del modal de detalle */
.modal-detalle-content {
    max-width: 800px;
    width: 90%;
    max-height: 90vh; /* Limita la altura al 90% de la pantalla */
    background: #0B4F58;
    border-radius: 15px;
    overflow-y: auto; /* HABILITA EL SCROLL VERTICAL */
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Asegurar que la imagen no empuje todo el texto fuera */
.modal-detalle-content img {
    width: 100%;
    height: auto;
    max-height: 50vh; /* La imagen ocupa máximo la mitad de la pantalla */
    object-fit: cover;
}

/* Estilo opcional para la barra de scroll (más estética) */
.modal-detalle-content::-webkit-scrollbar {
    width: 8px;
}

.modal-detalle-content::-webkit-scrollbar-thumb {
    background: #0BB396;
    border-radius: 10px;
}

  .modal-text-footer {
    padding: 25px;
    background: #0B4F58;
  }

  .ver-mas-modal {
    color: #0BB396;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
  }

  .ver-mas-modal:hover {
    text-decoration: underline;
  }