/* VARIABLES DE COLOR Y FUENTES */
:root {
    --ph-orange: #EA5B1F; /* Exact match with logo */
    --ph-orange-hover: #E85A28;
    --ph-dark: #1A1A1D; /* Oscuro Premium */
    --ph-light: #F8F9FA; /* Fondo Claro */
    --ph-white: #FFFFFF;
    --ph-grey: #6E6E73;
    --ph-bg: #F5F5F7;
    
    --font-main: 'Outfit', sans-serif;
    
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* RESET GENERAL */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--ph-dark);
    background: linear-gradient(180deg, #FFFFFF 0%, #FDF7F4 50%, #FFF3EC 100%);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

/* UTILIDADES */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--ph-dark);
    position: relative;
}
.section-title::after {
    content: '';
    width: 60px;
    height: 4px;
    background: var(--ph-orange);
    display: block;
    margin: 10px auto 0;
    border-radius: 2px;
}

.btn-primary {
    display: inline-block;
    background: var(--ph-orange);
    color: var(--ph-white);
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
}
.btn-primary:hover {
    background: var(--ph-orange-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* CABECERA (HEADER) */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo img {
    height: 50px;
    object-fit: contain;
    /* Ajuste para integrar mejor el logo provisional */
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.1));
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ph-dark);
}

.nav-links a:hover {
    color: var(--ph-orange);
}

.nav-links .btn-highlight {
    background: var(--ph-orange);
    color: var(--ph-white);
    padding: 10px 24px;
    border-radius: 25px;
    box-shadow: 0 4px 10px rgba(255, 107, 53, 0.3);
}

.nav-links .btn-highlight:hover {
    background: var(--ph-orange-hover);
    color: var(--ph-white);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--ph-white);
    padding-top: 80px; /* offset navbar */
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(26,26,29,0.8) 0%, rgba(255,107,53,0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1s ease;
}

.hero-content h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-content p {
    font-size: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.5);
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* NUEVO HERO CARRUSEL SUPERIOR */
.hero-carousel-section {
    padding-top: 86px;
    padding-bottom: 0.6rem;
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, #FFFFFF 0%, #FFF8F3 100%);
}

.hero-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
    position: relative;
    background: #000000;
}

.hero-carousel-track {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.hero-carousel-slide {
    min-width: 100%;
    height: 420px;
    position: relative;
    overflow: hidden;
}

.hero-slide-frame {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-img-1 {
    object-position: center 38%;
}

.hero-img-2 {
    object-position: center 35%;
}

.hero-img-3 {
    object-position: center 65%;
}

.hero-img-4 {
    object-position: center 38%;
}

/* BLOQUES SÓLIDOS DE COLOR */
.hero-slide-solid {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-slide-solid .solid-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.hero-slide-orange {
    background-color: var(--ph-orange);
}

.hero-slide-green {
    background-color: #1E824C;
}

.hero-slide-purple {
    background-color: #6B2D8C;
}

.solid-text-wrap {
    max-width: 900px;
    margin: 0 auto;
    color: #FFFFFF;
    text-align: center;
}

.solid-slogan-lead {
    display: block;
    font-family: var(--font-main);
    font-size: clamp(1.2rem, 2.6vw, 2.2rem);
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.8rem;
}

.solid-slogan-main {
    font-family: var(--font-main);
    font-size: clamp(2.2rem, 5.5vw, 4.2rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: #FFFFFF;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
}

/* BOTONES DE NAVEGACIÓN */
.hero-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 50%;
    color: var(--ph-dark);
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.hero-carousel-btn:hover {
    background: #FFFFFF;
    color: var(--ph-orange);
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.hero-carousel-btn.prev-hero-btn {
    left: 20px;
}

.hero-carousel-btn.next-hero-btn {
    right: 20px;
}

/* DOTS / INDICADORES */
.hero-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    margin-bottom: 0.5rem;
}

.hero-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #D1D5DB;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.hero-dot:hover {
    background: #9CA3AF;
    transform: scale(1.15);
}

.hero-dot.active {
    width: 38px;
    border-radius: 10px;
    background: var(--ph-orange);
}

.hero-dot.dot-orange.active {
    background: var(--ph-orange);
}

.hero-dot.dot-green.active {
    background: #1E824C;
}

.hero-dot.dot-purple.active {
    background: #6B2D8C;
}

/* TÍTULO DESTACADO "LA FUERZA DE LA NO VIOLENCIA" */
.hero-highlight-title-wrap {
    text-align: center;
    margin-top: 1.6rem;
    margin-bottom: 0.2rem;
}

.hero-highlight-title {
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    font-weight: 800;
    color: var(--ph-dark);
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin: 0;
    display: inline-block;
    position: relative;
}

.hero-highlight-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--ph-orange);
    margin: 8px auto 0;
    border-radius: 2px;
}

/* ==========================================
   CARRUSEL 3D DE 3 VÍDEOS EN CORRO (HOME)
   ========================================== */
.home-video-carousel-section {
    position: relative;
    overflow: hidden;
}

.video-carousel-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.video-3d-carousel-wrapper {
    position: relative;
    width: 100%;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.video-3d-stage {
    position: relative;
    width: 100%;
    max-width: 1050px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CADA ELEMENTO DEL CORRO - FONDO 100% OPACO */
.video-carousel-item {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 58%;
    max-width: 620px;
    background: #1A1A1D; /* Opaco */
    border-radius: 20px;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1),
                opacity 0.55s ease,
                filter 0.55s ease,
                box-shadow 0.55s ease;
    will-change: transform, opacity;
    user-select: none;
}

/* VÍDEO DEL CENTRO: MÁS GRANDE, 100% OPACO Y PISA TOTALMENTE A LOS DE DETRÁS */
.video-carousel-item.is-center {
    transform: translate(-50%, -50%) scale(1);
    z-index: 30 !important;
    opacity: 1 !important;
    filter: brightness(1) !important;
    pointer-events: auto;
    background: #1A1A1D !important;
}

.video-carousel-item.is-center .home-video-card {
    background: #1A1A1D !important;
    border-color: #FFFFFF !important;
    box-shadow: 0 25px 65px rgba(0, 0, 0, 0.6) !important;
}

.video-carousel-item.is-center .home-video-frame {
    background: #000000 !important;
}

/* VÍDEO DE LA IZQUIERDA: PISADO POR EL DEL CENTRO */
.video-carousel-item.is-left {
    transform: translate(-94%, -50%) scale(0.82);
    z-index: 5 !important;
    opacity: 0.72;
    filter: brightness(0.82);
    cursor: pointer;
    background: #1A1A1D;
}

.video-carousel-item.is-left .home-video-card {
    background: #1A1A1D;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.video-carousel-item.is-left:hover,
.video-carousel-item.is-right:hover {
    opacity: 0.88;
    filter: brightness(0.95);
}

/* VÍDEO DE LA DERECHA: PISADO POR EL DEL CENTRO */
.video-carousel-item.is-right {
    transform: translate(-6%, -50%) scale(0.82);
    z-index: 5 !important;
    opacity: 0.72;
    filter: brightness(0.82);
    cursor: pointer;
    background: #1A1A1D;
}

.video-carousel-item.is-right .home-video-card {
    background: #1A1A1D;
    border-color: rgba(255, 255, 255, 0.65);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.home-video-card {
    background: #1A1A1D;
    padding: 10px;
    border-radius: 20px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
    transition: var(--transition);
}

.home-video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000000;
}

.home-video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
    background: #000000;
}

/* CONTROLES INFERIORES: INDICADORES DEL CARRUSEL */
.video-carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.4rem;
}

.motto-cta-wrap {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-start;
}

.btn-ideas {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: #FFFFFF;
    color: var(--ph-orange);
    font-family: var(--font-main);
    font-weight: 700;
    font-size: 1.1rem;
    padding: 13px 36px;
    border-radius: 30px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
}

.btn-ideas:hover {
    background: #FFFFFF;
    color: var(--ph-dark);
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.btn-ideas i {
    transition: transform 0.2s ease;
}

.btn-ideas:hover i {
    transform: translateX(5px);
}

.video-carousel-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.video-carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.video-carousel-dot:hover {
    background: rgba(255, 255, 255, 0.75);
    transform: scale(1.15);
}

.video-carousel-dot.active {
    background: #FFFFFF;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.85);
}

/* AVISO INFORMATIVO PARA CUANDO SE ABRE DIRECTAMENTE DESDE ARCHIVO LOCAL (FILE://) */
.video-local-notice {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #111113;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    text-align: center;
    z-index: 10;
    border-radius: 12px;
    box-sizing: border-box;
}

.video-local-notice-icon {
    font-size: 2.2rem;
    color: #FFB800;
    margin-bottom: 0.5rem;
}

.video-local-notice h4 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    color: #FFFFFF;
}

.video-local-notice p {
    font-size: 0.88rem;
    color: #D1D1D6;
    margin-bottom: 0.35rem;
    max-width: 480px;
    line-height: 1.4;
}

.video-local-notice-tip {
    font-size: 0.86rem;
    background: rgba(234, 91, 31, 0.18);
    border: 1px solid rgba(234, 91, 31, 0.5);
    padding: 8px 14px;
    border-radius: 8px;
    color: #FFE6DC !important;
    margin: 0.6rem 0 !important;
}

.video-local-notice-tip strong {
    color: #FFFFFF;
    text-decoration: underline;
}

.video-local-notice-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #FF0000;
    color: #FFFFFF !important;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 7px 18px;
    border-radius: 20px;
    margin-top: 0.4rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-local-notice-btn:hover {
    transform: scale(1.05);
    background: #E60000;
}

/* CARÁTULA INTERACTIVA DEL VÍDEO (FACADE) */
.video-facade {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-facade-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.video-facade:hover .video-facade-thumb {
    transform: scale(1.03);
}

.video-facade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.6) 100%);
    transition: background 0.3s ease;
}

.video-facade:hover .video-facade-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 40%, rgba(0,0,0,0.5) 100%);
}

.video-facade-header {
    position: absolute;
    top: 16px;
    left: 20px;
    right: 20px;
    z-index: 2;
    text-align: left;
}

.video-facade-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.8);
    display: block;
}

.video-play-btn-wrap {
    position: relative;
    z-index: 2;
}

.video-play-btn {
    width: 72px;
    height: 72px;
    background: #FF0000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(255, 0, 0, 0.45);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.video-play-btn i {
    color: #FFFFFF;
    font-size: 1.8rem;
    margin-left: 5px;
}

.video-facade:hover .video-play-btn {
    transform: scale(1.15);
    box-shadow: 0 15px 35px rgba(255, 0, 0, 0.6);
    background: #E60000;
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .hero-carousel-slide {
        height: 350px;
    }
    .hero-carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    .video-3d-carousel-wrapper {
        min-height: 350px;
    }
    .video-3d-stage {
        height: 330px;
    }
    .video-carousel-item {
        width: 66%;
    }
    .video-carousel-item.is-left {
        transform: translate(-90%, -50%) scale(0.8);
    }
    .video-carousel-item.is-right {
        transform: translate(-10%, -50%) scale(0.8);
    }
}

@media (max-width: 600px) {
    .hero-carousel-section {
        padding-top: 82px;
        padding-bottom: 1rem;
    }
    .hero-carousel-slide {
        height: 260px;
    }
    .hero-highlight-title {
        font-size: clamp(1.8rem, 6.5vw, 2.4rem);
    }
    .hero-carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
    .hero-carousel-btn.prev-hero-btn {
        left: 10px;
    }
    .hero-carousel-btn.next-hero-btn {
        right: 10px;
    }
    .solid-text-wrap {
        padding: 0 0.5rem;
    }
    .solid-slogan-lead {
        letter-spacing: 2px;
        margin-bottom: 0.4rem;
    }
    .video-3d-carousel-wrapper {
        min-height: 270px;
        padding: 0;
    }
    .video-3d-stage {
        height: 240px;
    }
    .video-carousel-item {
        width: 76%;
    }
    .video-carousel-item.is-left {
        transform: translate(-88%, -50%) scale(0.76);
    }
    .video-carousel-item.is-right {
        transform: translate(-12%, -50%) scale(0.76);
    }
    .home-video-card {
        padding: 6px;
        border-radius: 14px;
        border-width: 2px;
    }
    .home-video-frame {
        border-radius: 8px;
    }
    .video-play-btn {
        width: 50px;
        height: 50px;
    }
    .video-play-btn i {
        font-size: 1.25rem;
        margin-left: 3px;
    }
    .video-facade-title {
        font-size: 0.88rem;
    }
    .video-facade-header {
        top: 8px;
        left: 10px;
        right: 10px;
    }
    .humanist-motto {
        font-size: clamp(1.75rem, 6.5vw, 2.3rem);
    }
    .btn-ideas {
        padding: 11px 26px;
        font-size: 0.98rem;
    }
}

/* CARRUSEL DE INTRODUCCIÓN */
.intro-carousel {
    padding: 2rem 0;
    background: transparent;
    position: relative;
    z-index: 10;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 20px;
}

.carousel-track-container {
    overflow: hidden;
    width: 100%;
    border-radius: var(--border-radius);
    padding: 10px 0;
}

.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
}

.slide-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 12px;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-left: 5px solid var(--ph-orange);
}

.slide-text h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--ph-dark);
}

.carousel-btn {
    background: var(--ph-white);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--ph-orange);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: var(--ph-orange);
    color: var(--ph-white);
    transform: scale(1.1);
}

/* PROGRAMAS Y ELECCIONES */
.programs {
    padding: 2rem 0;
    background: transparent;
}

.programs-container {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.programs-image {
    flex: 1;
}

.programs-image img {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.programs-image img:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.programs-quote-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 0.5rem 0;
}

.humanist-motto {
    font-family: var(--font-main);
    font-size: clamp(2.8rem, 4.4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1px;
    color: #FFFFFF;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    margin: 0;
}

.humanist-motto .motto-highlight {
    font-weight: 900;
    letter-spacing: 0.5px;
    border-bottom: 5px solid #FFFFFF;
    padding-bottom: 3px;
    display: inline-block;
}

/* SOLID ORANGE SECTION (BOTTOM OF PAGE) */
.solid-orange-section {
    background: var(--ph-orange);
    color: var(--ph-white);
}

.solid-orange-section .section-title {
    color: var(--ph-white);
}

.solid-orange-section .section-title::after {
    background: var(--ph-white);
}

.solid-orange-section .programs-text h2 {
    color: var(--ph-white);
}

.solid-orange-section .programs-text p {
    color: #FFF3EB;
}

.solid-orange-section a.stagger-item {
    color: inherit;
}

/* SPLIT COLOR WRAPPER (DUAL LAYER FOR TEXT INVERSION) */
.split-color-wrapper {
    position: relative;
    width: 100%;
}

.split-layer {
    width: 100%;
}

.light-layer {
    background: transparent;
}

.orange-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ph-orange);
    color: var(--ph-white);
    /* Cuts roughly through the middle of the section */
    clip-path: polygon(0 55%, 100% 25%, 100% 100%, 0 100%);
    z-index: 10;
    pointer-events: none; /* Clicks fall through to identical links in light-layer */
}

/* Text inversion for orange layer */
.orange-layer .section-title {
    color: var(--ph-white);
}
.orange-layer .stagger-text h3 {
    color: var(--ph-white);
}
.orange-layer .stagger-text p {
    color: #FFF3EB;
}
.orange-layer .stagger-number {
    color: rgba(255, 255, 255, 0.15); /* White watermark */
}

/* FLOATING DIAGONAL LOGO */
.diagonal-logo {
    position: absolute;
    /* Exactly halfway between 55% and 25% is 40% */
    top: 40%;
    left: 80%; /* Shifted right to sit nicely on the diagonal cut */
    transform: translate(-50%, -50%);
    width: 250px;
    opacity: 0.15;
    z-index: 0;
}

/* LOS 5 PUNTOS CLAVE (STAGGERED TYPOGRAPHY) */
.key-points {
    padding: 2rem 0 4rem;
    background: transparent;
}

.key-points-staggered {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.stagger-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: var(--transition);
}

.stagger-item:nth-child(even) {
    flex-direction: row-reverse;
    text-align: right;
}

.stagger-number {
    font-size: 8rem;
    font-weight: 800;
    color: var(--ph-orange);
    opacity: 0.15;
    line-height: 0.8;
    user-select: none;
    transition: var(--transition);
}

.stagger-item:hover .stagger-number {
    opacity: 0.5;
    transform: scale(1.1);
}

.stagger-text {
    flex: 1;
}

.stagger-text h3 {
    font-size: 2.2rem;
    color: var(--ph-dark);
    margin-bottom: 0.5rem;
}

.stagger-text p {
    font-size: 1.25rem;
    color: var(--ph-grey);
}

/* FOOTER */
.site-footer {
    background: var(--ph-dark);
    color: var(--ph-white);
    padding: 4rem 0 2rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo img {
    height: 60px;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: #ccc;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--ph-orange);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    font-size: 1.2rem;
    color: var(--ph-white);
}

.footer-social a:hover {
    background: var(--ph-orange);
    transform: translateY(-3px);
}

/* Textos legales, formulario y preferencias de privacidad */
.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .65rem 1.25rem;
    font-size: .92rem;
}

.legal-footer-links a,
.legal-footer-links button {
    color: #ccc;
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.legal-footer-links a:hover,
.legal-footer-links button:hover {
    color: var(--ph-orange);
}

.legal-page {
    padding: 145px 20px 90px;
    background: #fff;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
    color: #303030;
    line-height: 1.72;
}

.legal-content h1 { margin-bottom: .4rem; }
.legal-content h2 { margin: 2.25rem 0 .7rem; color: var(--ph-dark); }
.legal-content h3 { margin: 1.4rem 0 .5rem; color: var(--ph-dark); }
.legal-content p, .legal-content li { margin-bottom: .8rem; }
.legal-content ul { padding-left: 1.3rem; }
.legal-updated { color: var(--ph-grey); margin-bottom: 2rem; }
.legal-note { background: #fff3eb; border-left: 4px solid var(--ph-orange); padding: 1rem 1.2rem; border-radius: 8px; }

.form-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    line-height: 1.45;
}

.privacy-check input { margin-top: .25rem; width: 18px; height: 18px; flex: 0 0 auto; }
.privacy-check a, .privacy-summary a { color: var(--ph-orange); text-decoration: underline; }
.privacy-summary { color: var(--ph-grey); font-size: .9rem; line-height: 1.5; margin: -.4rem 0 0; }
.form-status { display: none; margin-bottom: 1.4rem; padding: 1rem 1.2rem; border-radius: 10px; text-align: left; }
.form-status.is-success { display: block; background: #e9f8ee; color: #176b35; border: 1px solid #9bd3aa; }
.form-status.is-error { display: block; background: #fff0f0; color: #8a1f1f; border: 1px solid #e1aaaa; }

.cookie-banner {
    position: fixed;
    z-index: 10000;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 960px;
    margin: 0 auto;
    background: #202020;
    color: #fff;
    padding: 1.25rem;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(0,0,0,.35);
}

.cookie-banner p { margin: 0 0 1rem; line-height: 1.5; }
.cookie-banner a { color: #ffb58e; text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.cookie-actions button { border: 2px solid var(--ph-orange); border-radius: 999px; padding: .7rem 1.1rem; font: inherit; font-weight: 600; cursor: pointer; }
.cookie-accept { background: var(--ph-orange); color: #fff; }
.cookie-reject { background: transparent; color: #fff; }

.youtube-consent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem;
    text-align: center;
    color: #fff;
    background: #111;
}
.youtube-consent p { margin: 0; max-width: 560px; }
.youtube-consent button { border: 0; }

@media (max-width: 640px) {
    .legal-page { padding-top: 115px; }
    .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; }
}

/* RESPONSIVE DESIGN */
@media (max-width: 992px) {
    .programs-container {
        flex-direction: column;
        gap: 2rem;
    }
    .programs-quote-wrap {
        min-height: auto;
        text-align: center;
        padding: 0.5rem 0;
    }
    .humanist-motto {
        font-size: clamp(1.9rem, 4.5vw, 2.7rem);
    }
    .motto-cta-wrap {
        justify-content: center;
        margin-top: 1.5rem;
    }
    .hero-content h1 {
        font-size: 3.5rem;
    }
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .item-1, .item-2, .item-4 { grid-column: 1 / 3; }
    .item-3, .item-5 { grid-column: span 1; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* Idealmente aquí iría un menú hamburguesa */
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    .slide-text {
        bottom: 10px;
        left: 10px;
        right: 10px;
        max-width: none;
    }
    .stagger-item, .stagger-item:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    .stagger-number {
        font-size: 6rem;
    }
}

/* PENSAMIENTO HERO BANNER */
.pensamiento-banner-wrapper {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pensamiento-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.pensamiento-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0) 60%);
    pointer-events: none;
}

.pensamiento-banner-title-container {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    max-width: 900px;
    pointer-events: none;
}

.pensamiento-banner-title {
    font-size: 3.2rem;
    font-weight: 800;
    color: #000000;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.95), 0 2px 6px rgba(255, 255, 255, 0.9);
    position: relative;
    display: inline-block;
}

.pensamiento-banner-title::after {
    content: '';
    width: 80px;
    height: 5px;
    background: #000000;
    display: block;
    margin: 12px auto 0;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .pensamiento-banner-wrapper {
        height: 280px;
    }
    .pensamiento-banner-title-container {
        bottom: 15px;
    }
    .pensamiento-banner-title {
        font-size: 2rem;
    }
}

/* BOTONES DE MATERIALES DESTACADOS */
.btn-material {
    display: inline-block;
    background: #6E6E73;
    color: var(--ph-white);
    padding: 10px 26px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    text-decoration: none;
}

.btn-material:hover {
    background: var(--ph-orange);
    color: var(--ph-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(234, 91, 31, 0.35);
}

/* ==========================================
   PROGRAMAS ELECTORALES - TARJETAS Y DESPLEGABLE
   ========================================== */
.program-card {
    background: white;
    padding: 2.5rem 1.8rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    border: 2px solid transparent;
    border-bottom: 4px solid var(--ph-orange);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.program-card.is-active {
    border-color: var(--ph-orange);
    box-shadow: 0 15px 35px rgba(234, 91, 31, 0.22);
    transform: translateY(-4px);
    background: #FFFDFC;
}

.program-card-icon {
    font-size: 3.2rem;
    color: var(--ph-orange);
    transition: transform 0.3s ease;
}

.program-card:hover .program-card-icon {
    transform: scale(1.08);
}

.program-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin: 0;
}

.btn-ver-programas {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.8rem;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    border-radius: 50px;
    transition: var(--transition);
    font-family: inherit;
}

.btn-ver-programas .fa-chevron-down {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.program-card.is-active .btn-ver-programas .fa-chevron-down {
    transform: rotate(180deg);
}

/* PANEL DESPLEGABLE SEMITRANSPARENTE */
.programas-dropdown-panel {
    display: none;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 2px solid rgba(234, 91, 31, 0.25);
    border-radius: 24px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
    margin-top: 2.5rem;
    animation: panelFadeSlide 0.35s ease-out forwards;
    position: relative;
}

.programas-dropdown-panel.open {
    display: block;
}

@keyframes panelFadeSlide {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.programas-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 1.2rem;
    margin-bottom: 2rem;
}

.programas-panel-title-wrap {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.programas-panel-title-wrap i {
    font-size: 2rem;
    color: var(--ph-orange);
}

.programas-panel-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--ph-dark);
    margin: 0;
}

.btn-close-programas-panel {
    background: rgba(0, 0, 0, 0.05);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--ph-grey);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-close-programas-panel:hover {
    background: var(--ph-orange);
    color: white;
    transform: rotate(90deg);
}

.programas-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.programa-pdf-card {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.92);
    padding: 1.2rem 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-decoration: none;
    transition: all 0.25s ease;
}

.programa-pdf-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(234, 91, 31, 0.18);
    border-color: var(--ph-orange);
    background: #ffffff;
}

.programa-pdf-icon {
    font-size: 2.4rem;
    color: #EA5B1F;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
}

.programa-pdf-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.programa-pdf-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ph-dark);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.programa-pdf-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ph-orange);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.programa-pdf-card:hover .programa-pdf-action {
    color: var(--ph-orange-hover);
    text-decoration: underline;
}

.programa-empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--ph-grey);
}

.programa-empty-state i {
    font-size: 3rem;
    color: var(--ph-orange);
    margin-bottom: 1rem;
    display: block;
}

.programa-empty-state h4 {
    font-size: 1.3rem;
    color: var(--ph-dark);
    margin-bottom: 0.5rem;
}

.programa-empty-state p {
    font-size: 1rem;
    color: var(--ph-grey);
    margin: 0;
}

@media (max-width: 768px) {
    .programas-dropdown-panel {
        padding: 1.5rem 1rem;
        border-radius: 18px;
    }
    .programas-panel-title {
        font-size: 1.35rem;
    }
    .programa-pdf-card {
        padding: 1rem;
    }
}


