/* ========================================
   APRODE PERÚ - Estilos Generales
   ======================================== */

/* ========================================
   VARIABLES CSS
   ======================================== */
:root {
    --navy-blue: #233559;
    --gold: #d4af37;
    --red: #E41B20;
    --orange: #f39c12;
    --light-bg: #e7e1e1;
    --dark-text: #2c3e50;
    --p-navy: #233559;
    --p-gold: #d4af37;
    --p-bg: #e7e1e1;
    --p-white: #ffffff;
    --p-text: #2c3e50;
    --p-gray: #6b7280;
    --ci-light: #f5f6f8;
    --gradient-gold: linear-gradient(135deg, var(--gold), var(--orange));
    --gradient-navy: linear-gradient(135deg, var(--navy-blue), #5a62a0);
    --shadow-sm: 0 4px 20px rgba(57, 63, 111, 0.08);
    --shadow-md: 0 8px 32px rgba(57, 63, 111, 0.14);
    --shadow-lg: 0 8px 28px rgba(57, 63, 111, 0.12);
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 18px;
}

/* ========================================
   RESET BÁSICO
   ======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: clip; /* Evita scroll horizontal sin romper sticky */
    overflow-y: visible !important;
}
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--dark-text);
    background-color: #e7e1e1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero-section {
    margin-top: 0;
    width: 100%;
    overflow: hidden;
}

.hero-slide {
    display: flex;
    align-items: center;
    padding: 0;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    position: relative;
    width: 100%;
    background-size: 100% 100% !important;
}

.hero-slide,
.carousel-item,
.carousel-inner {
    height: auto;
    min-height: 400px !important;
}

#carouselNoticias .carousel-inner,
#carouselNoticias .carousel-item,
#carouselNoticias .hero-slide {
    min-height: 317px !important;
    height: 317px;
}

/* Forzar altura del primer card ODS igual al carrusel */
.ods-fixed {
    align-self: flex-start !important;
    height: 317px !important;
    flex: 0 0 50% !important;
}

.ods-fixed .ods-card {
    height: 317px !important;
    min-height: 317px !important;
    max-height: 317px !important;
}

.ods-fixed .ods-card a {
    display: block !important;
    height: 100% !important;
}

.ods-fixed .ods-card img {
    width: 100% !important;
    height: 317px !important;
    object-fit: cover !important;
}

.hero-principal .hero-slide,
.hero-principal .carousel-item,
.hero-principal .carousel-inner {
    height: 100% !important;
    min-height: unset !important;
}

.hero-principal .carousel-inner {
    aspect-ratio: 16/6;
}

.hero-slide .container {
    height: 100%;
    display: flex;
    align-items: center;
    padding-bottom: 0;
    position: relative;
    z-index: 2;
}

.hero-slide .row {
    width: 100%;
    margin: 0;
}

.hero-slide .btn {
    padding: 12px 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 10;
    white-space: nowrap;
    margin-top: 120px;
}

.hero-slide .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.hero-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-text {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-image-placeholder {
    text-align: center;
    padding: 40px;
}

.carousel-fade .carousel-item {
    transition: opacity .7s ease-in-out;
}

/* ========================================
   ABOUT SECTION
   ======================================== */

.logo-peru-container {
    margin-bottom: 2rem;
}

.peru-map {
    position: relative;
    display: inline-block;
    padding: 30px;
    background: linear-gradient(135deg, var(--navy-blue) 0%, var(--red) 100%);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.aprode-title {
    color: white;
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/* ========================================
   INFO CARDS (About & Programs)
   ======================================== */
.info-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.icon-wrapper {
    display: inline-block;
    padding: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transition: all 0.3s ease;
}

.info-card:hover .icon-wrapper {
    background: linear-gradient(135deg, var(--gold) 0%, var(--orange) 100%);
}

.info-card:hover .icon-wrapper i {
    color: white !important;
    transform: scale(1.1);
}

.info-card h4 {
    color: var(--navy-blue);
    font-weight: 700;
    margin: 1rem 0;
}

/* ========================================
   PROGRAMS SECTION
   ======================================== */

.section-title {
    color: var(--navy-blue);
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    padding-top: 3%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold) 0%, var(--orange) 100%);
    border-radius: 2px;
}

.program-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-align: center;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

@media (max-width: 991px) {
    .program-card:hover {
        transform: none;
        box-shadow: none;
    }
    .program-card:hover .icon-wrapper {
        transform: none;
    }
    .program-card:hover img {
        transform: scale(1);
    }
}

.program-card .icon-wrapper {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background-color: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: all 0.4s ease;
}

.program-card:hover .icon-wrapper {
    transform: rotateY(360deg);
}

.program-card img {
    transition: transform 0.5s ease;
}

.program-card:hover img {
    transform: scale(1.08);
}

.program-card h4 {
    color: var(--navy-blue);
    font-weight: 700;
    margin: 1rem 0;
}

.program-card .btn {
    align-self: center;
}

.btn-sm.rounded-pill {
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-sm.rounded-pill:hover {
    transform: translateX(5px);
}

.text-primary {
    color: var(--navy-blue);
}

/* ========================================
   SPONSORS SECTION
   ======================================== */
.sponsors-section {
    position: relative;
}

.sponsors-slider-wrapper {
    overflow: hidden;
    padding: 20px 0;
    width: 100%;
}

.sponsors-slider {
    display: flex;
    transition: transform 0.5s ease;
    width: 100%;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.sponsors-slider:active {
    cursor: grabbing;
}

.sponsor-slide {
    flex: 0 0 25%;
    min-width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}

.sponsor-card {
    background: white;
    border-radius: 15px;
    padding: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
}

.sponsor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.sponsor-logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s ease;
}

.sponsor-card:hover .sponsor-logo-img {
    transform: scale(1.05);
}

.sponsor-logo h3 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 4px;
}

.sponsor-control-prev,
.sponsor-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(30, 58, 95, 0.8);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.9;
    transition: all 0.3s ease;
    z-index: 10;
    border: none;
}

.sponsor-control-prev {
    left: 20px;
}

.sponsor-control-next {
    right: 20px;
}

.sponsor-control-prev:hover,
.sponsor-control-next:hover {
    opacity: 1;
    background-color: var(--navy-blue);
    transform: translateY(-50%) scale(1.1);
}

.sponsor-control-prev:disabled,
.sponsor-control-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.sponsor-control-prev:disabled:hover,
.sponsor-control-next:disabled:hover {
    transform: translateY(-50%) scale(1);
    background-color: rgba(30, 58, 95, 0.8);
}

/* ========================================
   CAROUSEL CONTROLS
   ======================================== */

.carousel-control-prev,
.carousel-control-next {
    width: 40px;
    height: 40px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
}


.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background-color: rgba(0,0,0,0.7);
}

/* ========================================
   CAROUSEL NOTICIAS
   ======================================== */
#carouselNoticias {
    border-radius: 20px;
    overflow: hidden;
}

#carouselNoticias .carousel-inner {
    height: auto;
    overflow: hidden;
    background: none !important;
}

#carouselNoticias .carousel-item {
    height: auto;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* DESPUÉS */
#carouselNoticias .carousel-caption-custom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 75px;
    transition: 0.3s ease;
}

#carouselNoticias .btn-news {
    background: #960000;
    color: white;
    padding: 10px 25px;
    font-size: 16px;
    border-radius: 30px;
    transition: 0.3s ease;
    display: inline-block;
    margin: 0 auto;
}

/* ========================================
   SECCIÓN PROYECTOS
   ======================================== */
.proyectos-section {
    background-color: #F5F5F5;
}

.divider {
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    border-radius: 2px;
    flex-shrink: 0;
    margin: 0 auto;
}

.proyectos-section .row {
    margin-bottom: 2rem;
}

.proyecto-card-simple {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    height: 400px;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f9fc 0%, #f0f8ff 100%);
    padding: 0;
}

.proyecto-imagen-simple {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s ease;
    border-radius: 8px;
}

.proyecto-card-simple:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.proyecto-card-simple:hover .proyecto-imagen-simple {
    transform: scale(1.03);
}

.proyecto-card-video {
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    height: 400px;
    max-height: 400px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f9fc 0%, #f0f8ff 100%);
    padding: 15px 0;
}

.proyecto-imagen-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: all 0.5s ease;
    border-radius: 8px;
}

.proyecto-card-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2) !important;
}

.proyecto-card-video:hover .proyecto-imagen-video {
    transform: scale(1.05);
    filter: brightness(0.8);
}

.video-play-button-simple {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #FF0000 0%, #CC0000 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
    transition: all 0.3s ease;
    animation: pulse-simple 2s ease-in-out infinite;
}

.video-play-button-simple i {
    font-size: 2rem;
    margin-left: 5px;
}

.proyecto-card-video:hover .video-play-button-simple {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 0, 0, 0.7);
}

@keyframes pulse-simple {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5); }
    50% { box-shadow: 0 10px 40px rgba(255, 0, 0, 0.8); }
}

.proyecto-overlay-titulo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 5;
}

.proyecto-card-simple:hover .proyecto-overlay-titulo,
.proyecto-card-video:hover .proyecto-overlay-titulo {
    opacity: 1;
}

/* ========================================
   ODS CARDS
   ======================================== */
.ods-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: .4s ease;
}



.ods-card img {
    width: 100%;
    transition: .4s ease;
}

.ods-card:hover img {
    transform: scale(1.08);
}

.ods-overlay {
    position: absolute;
    inset: 0;
    background: rgba(145, 146, 153, 0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    transition: .4s ease;
    padding: 20px;
    font-weight: 600;
}

.ods-card:hover .ods-overlay {
    opacity: 1;
}

/* ========================================
   TIENDA BANNER
   ======================================== */
.tienda-banner {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.tienda-banner-overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 3rem;
}

/* ========================================
   PROYECTOS INDEX
   ======================================== */
.index-proyectos-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.index-proyecto-fila {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 16px;
    border: 3px solid #393F6F;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.09);
    transition: box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.index-proyecto-fila.visible {
    opacity: 1;
    transform: translateY(0);
}

.index-proyecto-fila:nth-child(1) { transition-delay: 0s; }
.index-proyecto-fila:nth-child(2) { transition-delay: 0.15s; }
.index-proyecto-fila:nth-child(3) { transition-delay: 0.3s; }

.index-proyecto-fila:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.14);
}

.index-proyecto-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    border-right: 1px solid #e5e7eb;
}

.index-proyecto-card:hover {
    transform: none;
    box-shadow: none;
}

.index-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.index-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.index-proyecto-fila:hover .index-card-image img {
    transform: scale(1.04);
}

.index-card-content {
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.index-card-title {
    font-size: 0.97rem;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
    margin-bottom: 12px;
    flex: 1;
}

.index-card-description {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.index-card-footer {
    padding: 21px 23px 19px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.index-btn-leer-mas {
    display: inline-block;
    color: var(--red);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

.index-btn-leer-mas:hover {
    color: #a01010;
    text-decoration: underline;
}

.index-card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0;
}

.index-proyecto-video {
    flex: 1;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
}

.index-proyecto-video video {
    width: 100%;
    border-radius: 10px;
}

/* ========================================
   UTILITIES
   ======================================== */
.text-gold { color: var(--gold); }
.bg-gold { background-color: var(--gold); }
.text-navy { color: var(--navy-blue); }
.bg-navy { background-color: var(--navy-blue); }
.btn-primary { background-color: var(--navy-blue); }

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

.info-card,
.program-card,
.sponsor-card {
    animation: fadeIn 0.6s ease-out;
}

/* ========================================
   RESPONSIVE - HERO (1200px+)
   ======================================== */
@media (min-width: 1200px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 700px;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }
}

/* ========================================
   RESPONSIVE - HERO (992px - 1199px)
   ======================================== */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 600px;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }
}

/* ========================================
   RESPONSIVE - HERO (769px - 991px)
   ======================================== */
@media (max-width: 991px) and (min-width: 769px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 55vh !important;
        min-height: 300px !important;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }

    .hero-slide .btn {
        padding: 11px 26px;
        font-size: 0.9rem;
    }
}

/* ========================================
   RESPONSIVE - HERO (577px - 768px)
   ======================================== */
@media (max-width: 768px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 50vh !important;
        min-height: 300px !important;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }

    .hero-slide {
        background-color: #f5f5f5;
        padding: 0;
    }

    .hero-slide .btn {
        padding: 10px 22px;
        font-size: 0.85rem;
    }

    .hero-title { font-size: 2rem; }
    .hero-text { font-size: 1.1rem; }

    .main-title { font-size: 1.8rem; }
    .subtitle { font-size: 0.85rem; }
    .aprode-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .navbar-nav { text-align: center; }
    .anniversary-logo .bicentenario { font-size: 2rem; }

    .proyecto-card-simple,
    .proyecto-card-video { height: 350px; max-height: 350px; }
    .video-play-button-simple { width: 60px; height: 60px; }
    .video-play-button-simple i { font-size: 1.5rem; }

    .tienda-banner { height: 300px; }
    .tienda-banner-overlay { padding: 0.75rem; }
}

/* ========================================
   RESPONSIVE - PROYECTOS GRID (993px)
   ======================================== */
@media (max-width: 992px) {
    .index-proyecto-fila { flex-direction: column; }
    .index-proyecto-card { border-right: none; border-bottom: 1px solid #e5e7eb; }
    .index-card-image { height: 200px; }
    .index-proyecto-video { padding: 16px; min-height: 250px; }
    .index-proyecto-video video { min-height: 200px; }
}

/* ========================================
   PROGRAMAS CON IMAGEN APRODITO
   ======================================== */
.programa-con-imagen {
    overflow: visible;
    margin-top: 25px;
}

.programa-imagen-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-100%);
    opacity: 0;
    transition: all 0.35s ease;
    z-index: 10;
    pointer-events: none;
}

.programa-con-imagen:hover .programa-imagen-top {
    transform: translateY(-100%);
    opacity: 1;
}

.programa-imagen-top img {
    height: 80px;
    object-fit: contain;
}

.programa-con-imagen:hover .programa-imagen-top {
    transform: translateY(-90%) scale(1);
    opacity: 1;
}

@media (max-width: 992px) {
    .programa-imagen-top {
        position: absolute;
        top: 0;
        transform: translateY(-78%);
        opacity: 1;
    }
    
    .programa-con-imagen:hover .programa-imagen-top {
        transform: translateY(-78%);
    }
    
    .programa-imagen-top img {
        height: 90px;
    }
}

@media (max-width: 576px) {
    .programa-imagen-top img {
        height: 80px;
    }
}

/* ========================================
   RESPONSIVE - HERO OCULTAR CONTROLES (640px)
   ======================================== */
@media (max-width: 640px) {
    .hero-principal .carousel-control-prev,
    .hero-principal .carousel-control-next {
        display: none;
    }

    .hero-principal .carousel-indicators button {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        margin: 0 4px;
        background-color: rgba(255,255,255,0.6);
        border: 2px solid rgba(255,255,255,0.8);
    }

    .hero-principal .carousel-indicators button.active {
        background-color: #fff;
    }
}

/* ========================================
   RESPONSIVE - HERO (576px y menos)
   ======================================== */
@media (max-width: 576px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 35vh !important;
        min-height: 280px !important;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }

    .hero-slide .btn {
        padding: 9px 20px;
        font-size: 0.7rem;
        max-width: 85%;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
    }

    .hero-title { font-size: 1.8rem; }
    .hero-text { font-size: 1rem; }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 25px;
        height: 25px;
    }

    .sponsor-logo h3 { font-size: 2rem; }

    .proyecto-card-simple,
    .proyecto-card-video { height: 280px; max-height: 280px; }
    .video-play-button-simple { width: 50px; height: 50px; }
    .video-play-button-simple i { font-size: 1.2rem; }

#carouselNoticias .carousel-inner { height: 120px; }
    #carouselNoticias .carousel-item { height: 120px; }
    #carouselNoticias .carousel-control-prev,
    #carouselNoticias .carousel-control-next { display: none; }

    .sponsor-card { height: 180px; padding: 13px; margin-bottom: 12px; }
}

/* ========================================
   RESPONSIVE - HERO (480px y menos)
   ======================================== */
@media (max-width: 480px) {
#carouselNoticias .carousel-inner,
    #carouselNoticias .carousel-item { height: 100px; }

     .hero-slide .btn {
        margin-bottom: 15px;
        padding: 4.2px 12px; 
        font-size: 0.6rem; 
    }

     .hero-principal .carousel-indicators button {
        width: 4px;
        height: 4px;
        margin: 0 6px;
    }

    .tienda-banner { height: 200px; background-position: center top; }
    .tienda-banner-overlay { padding: 0.4rem; }

    .sponsor-card { height: 150px; padding: 12px; margin-bottom: 10px; }
}

/* ========================================
   RESPONSIVE - HERO (400px y menos)
   ======================================== */
@media (max-width: 400px) {
    .hero-slide,
    .carousel-item,
    .carousel-inner {
        height: 20vh !important;
        min-height: 250px !important;
    }
    .hero-slide .btn {
        margin-bottom: 10px;
        padding: 3.2px 11px; 
        font-size: 0.4rem; 
    }
    
    /* Bolitas indicadoras más pequeñas */
    .hero-principal .carousel-indicators button {
        width: 3px;
        height: 3px;
        margin: 0 3px;
    }

    .hero-principal .hero-slide,
    .hero-principal .carousel-item,
    .hero-principal .carousel-inner {
        height: 100% !important;
        min-height: unset !important;
    }

    .hero-title { font-size: 1.5rem; }
    .hero-text { font-size: 0.9rem; }
    .sponsor-logo h3 { font-size: 1.5rem; letter-spacing: 2px; }
}

/* ========================================
   RESPONSIVE - SPONSORS
   ======================================== */
@media (max-width: 1400px) {
    .sponsor-card { height: 170px; padding: 14px; }
}

@media (max-width: 1200px) {
    .sponsor-slide { flex: 0 0 33.333%; min-width: 33.333%; }
    .sponsor-card { height: 160px; padding: 13px; }
}

@media (max-width: 991px) {
    .sponsor-slide { flex: 0 0 50%; min-width: 50%; }
    .sponsor-card { height: 150px; padding: 12px; }
}

@media (max-width: 767px) {
    .sponsor-slide { flex: 0 0 100%; min-width: 100%; }
    .sponsor-card { height: 200px; padding: 15px; margin-bottom: 15px; }
    .sponsor-control-prev,
    .sponsor-control-next { display: none; }

    #carouselNoticias .carousel-inner { height: 110px; }
    #carouselNoticias .carousel-item { height: 110px; }
    #carouselNoticias .carousel-caption-custom {
        background: rgba(0,0,0,0.3);
        align-items: flex-end;
        padding-bottom: 37px;
    }
}

@media (max-width: 576px) {
    .sponsor-card { height: 180px; padding: 13px; margin-bottom: 12px; }
}

@media (max-width: 380px) {
    .sponsor-card { height: 130px; padding: 10px; }
}

/* ========================================
   RESPONSIVE - PROYECTOS
   ======================================== */
@media (max-width: 767px) {
    .proyecto-card-simple,
    .proyecto-card-video { height: 300px; max-height: 300px; margin-bottom: 1rem; }
}

/* ========================================
   RESPONSIVE - NOTICIAS
   ======================================== */
@media (max-width: 991px) {
    #carouselNoticias .carousel-inner { height: 140px; }
    #carouselNoticias .carousel-item { height: 140px; }
}

/* ========================================
   RESPONSIVE - TABLET PEQUEÑA (767px)
   ======================================== */
@media (max-width: 767px) {
    .main-title { font-size: 1.3rem; }
    .subtitle { font-size: 0.85rem; }
    .hero-title { font-size: 1.8rem; }
    .hero-text { font-size: 1rem; }
    .aprode-title { font-size: 2rem; }
    .section-title { font-size: 1.8rem; }
    .navbar-nav { text-align: center; }
    .anniversary-logo .bicentenario { font-size: 2rem; }

    .hero-principal .hero-slide .row {
        justify-content: center;
    }
    .hero-principal .hero-slide .btn {
        margin-top: 80px;
    }
}

/* ========================================
   RESPONSIVE - TABLET PEQUEÑA (320px)
   ======================================== */
@media (max-width: 320px) {
    .hero-slide .btn {
        margin-top: 0 !important;
        position: relative;
        top: 25px; /* Sube el botón, ajusta el valor según necesites */
    }
     .hero-principal .carousel-indicators button {
        width: 1px;
        height: 1px;
        margin: 0 2px;
        margin-bottom: -20%;
    }
}

/* ========================================
   RESPONSIVE - TABLET PEQUEÑA (360px)
   ======================================== */

   @media (max-width: 360px){

     .hero-slide .btn {
        margin-bottom: 20px;
        padding: 3.0px 10px; 
        font-size: 0.4rem; 
    }

     .hero-principal .carousel-indicators button {
        width: 3px;
        height: 3px;
        margin: 0 4px;
    }
}
   