/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE PREMIO ===== */

/* Cuerpo de la página */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #F9F7EE 0% 0% no-repeat padding-box;
}

/* ===== MENÚ STICKY PARA ESCRITORIO ===== */
.premio-sticky-menu {
    position: fixed;
    top: 50%;
    left: 2rem; /* Valor base mínimo que se ajustará con media queries */
    transform: translateY(-50%);
    z-index: 1000;
    background: transparent;
    padding: 0;
    display: none; /* Oculto por defecto, se muestra solo en escritorio */
    width: auto;
    max-width: 200px;
}

.sticky-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.sticky-menu-list li {
    margin: 0;
    position: relative;
}

.sticky-menu-list li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 0;
    width: 100%;
    height: 1px;
    background: #313131;
    opacity: 0.3;
}

.sticky-menu-link {
    display: block;
    padding: 0.75rem 0;
    color: #026751;
    text-decoration: none;
    font: normal normal 700 16px/20px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    position: relative;
}

.sticky-menu-link:hover {
    color: #026751;
    transform: translateX(5px);
}

.sticky-menu-link.active {
    color: #026751;
    font-weight: 900;
}

/* Ocultar menú sticky en móviles y tablets */
@media (max-width: 1200px) {
    .premio-sticky-menu {
        display: none !important;
    }
}

/* Mostrar menú sticky solo en escritorio grande y cuando sea necesario */
@media (min-width: 1201px) {
    .premio-sticky-menu {
        display: none; /* Se mostrará dinámicamente con JavaScript */
    }
}

/* Ajustes responsivos graduales para el menú sticky - Solo en escritorio grande */
@media (min-width: 1201px) and (max-width: 1300px) {
    .premio-sticky-menu {
        left: 4rem;
    }
}

@media (min-width: 1301px) and (max-width: 1400px) {
    .premio-sticky-menu {
        left: 5rem;
    }
}

@media (min-width: 1401px) and (max-width: 1500px) {
    .premio-sticky-menu {
        left: 6rem;
    }
}

@media (min-width: 1501px) and (max-width: 1600px) {
    .premio-sticky-menu {
        left: 7rem;
    }
}

@media (min-width: 1601px) and (max-width: 1700px) {
    .premio-sticky-menu {
        left: 8rem;
    }
}

@media (min-width: 1701px) and (max-width: 1800px) {
    .premio-sticky-menu {
        left: 9rem;
    }
}

@media (min-width: 1801px) and (max-width: 1900px) {
    .premio-sticky-menu {
        left: 10rem;
    }
}

@media (min-width: 1901px) {
    .premio-sticky-menu {
        left: 11rem;
    }
}


/* Footer al final de la página */
.footer-wrapper {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Enlaces del logo */
.logo-link,
.mobile-logo-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.logo-link:hover,
.mobile-logo-link:hover {
    text-decoration: none;
    color: inherit;
}

/* Contenedor principal con max-width */
.premio-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    width: 100%;
}

/* Asegurar que el contenido no se solape con el menú sticky */
@media (min-width: 1025px) {
    .premio-container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 0;
    }
    
    .premio-hero,
    .historia-section {
        margin-left: 0;
        padding-left: 0;
    }
}

/* Hero Section del Premio */
.premio-hero {
    background: #FBF9EF;
    max-width: 1280px;
    margin: 0 auto;
    min-height: 0vh;
    
    position: relative;
    overflow: visible; /* Cambiado para permitir que historia-branch sea visible */
    z-index: 10; /* Aumentado para estar por encima de historia-section */
}

/* Media queries para mejorar la altura en diferentes pantallas */
@media (max-height: 600px) {
    .premio-hero {
        min-height: 115vh; /* Más altura en pantallas cortas */
    }
}

@media (min-height: 601px) and (max-height: 800px) {
    .premio-hero {
        min-height: 100vh; /* Altura media en pantallas medianas */
    }
}

@media (min-height: 801px) and (max-height: 1000px) {
    .premio-hero {
        min-height: 95vh; /* Menos altura en pantallas altas */
    }
}

@media (min-height: 1001px) {
    .premio-hero {
        min-height: 70vh; /* Altura mínima en pantallas muy altas */
    }
}

.premio-hero-content {
    position: relative;
    width: 100%;
    min-height: 60vh; /* Cambiado de height fijo a min-height */
    max-height: 80vh; /* Límite máximo para evitar superposiciones */
    z-index: 1; /* Reducido para estar por debajo de historia-branch */
    max-width: 1280px;
    margin: 0 auto;
    padding: 2rem; /* Aumentado padding para mejor espaciado */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Centra el contenido verticalmente */
    align-items: center;
}

/* Ajustes del contenido para diferentes alturas de pantalla */
@media (max-height: 600px) {
    .premio-hero-content {
        min-height: 70vh;
        max-height: 90vh;
        padding: 1rem;
    }
}

@media (min-height: 601px) and (max-height: 800px) {
    .premio-hero-content {
        min-height: 65vh;
        max-height: 85vh;
        padding: 1.5rem;
    }
}

@media (min-height: 801px) and (max-height: 1000px) {
    .premio-hero-content {
        min-height: 60vh;
        max-height: 80vh;
        padding: 2rem;
    }
}

@media (min-height: 1001px) {
    .premio-hero-content {
        min-height: 55vh;
        max-height: 75vh;
        padding: 2.5rem;
    }

}

/* Media queries combinados para mejor adaptación */
@media (max-width: 768px) and (max-height: 600px) {
    .premio-hero {
        min-height: 100vh; /* Pantalla completa en móviles cortos */
    }
    
    .premio-hero-content {
        min-height: 80vh;
        max-height: 95vh;
        padding: 0.5rem;
    }
}

@media (max-width: 768px) and (min-height: 601px) {
    .premio-hero {
        min-height: 85vh; /* Altura reducida en móviles altos */
    }
    
    .premio-hero-content {
        min-height: 70vh;
        max-height: 80vh;
        padding: 1rem;
    }
}

@media (min-width: 769px) and (max-height: 600px) {
    .premio-hero {
        min-height: 95vh; /* Más altura en tablets/laptops cortos */
    }
    
    .premio-hero-content {
        min-height: 75vh;
        max-height: 90vh;
        padding: 1.5rem;
    }
}

/* Elemento decorativo izquierdo - Lilies */
.premio-decorative-left {
    position: absolute;
    top: -27px;
    left: 16px;
    width: 296px;
    height: 296px;
    /* UI Properties */
    background: transparent url('../../assets/images/Collage_postulacion.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    background-position: center;
    opacity: 1;
    z-index: 5;
    transform: rotate(-10deg);
}

/* Título principal */
.premio-title {
    /* Layout Properties */
    position: absolute;
    top: 44px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 900px;
    height: auto;
    /* UI Properties */
    color: #313131;
    text-align: center;
    font: normal normal 700 36px/44px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    line-height: 44px;
    z-index: 10;
    padding: 0 2rem;
    box-sizing: border-box;
}

/* Imagen de la niña leyendo */
.premio-image {
    position: absolute;
    top: 167px;
    left: 114px;
    width: 921px;
    height: 514px;
    /* UI Properties */
    background: transparent url('../../assets/images/fotografías/premios/IMG_2011.jpg') 0% 0% no-repeat padding-box;
    background-size: cover;
    background-position: center;
    border-radius: 25px;
    opacity: 1;
    z-index: 3;
}

.premio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
}

/* Caja de texto */
.premio-text-content {
    position: absolute;
    top: 289px;
    right: 3rem;
    width: 500px;
    min-width: 400px;
    max-width: 800px;
    height: 333px;
    z-index: 4;
    margin-left: -100px;
    /* UI Properties */
    background: #F9F7EE 0% 0% no-repeat padding-box;
    border-radius: 13px;
    opacity: 1;
    max-height: none;
    overflow-y: visible;
    transition: width 0.3s ease, max-width 0.3s ease;
}

.premio-text-box {
    /* UI Properties */
    color: var(--unnamed-color-313131);
    text-align: left;
    font: normal normal normal 15px/18px Lato;
    letter-spacing: 0px;
    color: #313131;
    opacity: 1;
    background: #F9F7EE 0% 0% no-repeat padding-box;
    border-radius: 13px;
    padding: 2rem;
}

.premio-text-box p {
    /* UI Properties */
    color: var(--unnamed-color-313131);
    text-align: left;
    font: normal normal normal 15px/18px Lato;
    letter-spacing: 0px;
    color: #313131;
    opacity: 1;
    margin-bottom: 1rem;
}

.premio-text-box p:last-child {
    margin-bottom: 0;
}

/* Elemento decorativo derecho - Círculo amarillo */
.premio-decorative-right {
    /* Layout Properties */
    position: absolute;
    top: 50px; /* Ajustado para alinearse con el título */
    right: 2rem; /* Posicionado a la derecha del contenedor */
    width: 87px;
    height: 87px;
    /* UI Properties */
    background: #E7E033 0% 0% no-repeat padding-box;
    border-radius: 44px;
    opacity: 1;
    z-index: 1;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .premio-title {
        left: 50%;
        transform: translateX(-50%);
        width: 90%; /* Cambiado de 600px fijo a porcentaje */
        max-width: 600px;
        font-size: 32px; /* Reducido para evitar superposición */
        line-height: 38px; /* Ajustado */
        top: 60px; /* Reducido para evitar superposición */
        z-index: 10;
        padding: 0 1rem; /* Añadido padding */
    }
    
    .premio-image {
        left: 30px;
        width: 700px;
        height: 400px;
        top: 200px;
    }
    
    .premio-text-content {
        right: 50px;
        width: 45%;
        min-width: 350px;
        max-width: 500px;
        top: 420px;
        max-height: none;
        overflow-y: visible;
    }
    
    .premio-decorative-left {
        left: -100px;
        width: 350px;
        height: 350px;
    }
    
    .premio-decorative-right {
        top: 60px; /* Ajustado para alinearse con el título */
        right: 2rem; /* Mantenido a la derecha */
        width: 87px;
        height: 87px;
        border-radius: 44px;
    }
}

@media (max-width: 968px) {
    .premio-title {
        left: 50%;
        transform: translateX(-50%);
        width: 85%; /* Cambiado de 500px fijo a porcentaje */
        max-width: 500px;
        font-size: 28px; /* Reducido para evitar superposición */
        line-height: 34px; /* Ajustado */
        top: 40px; /* Reducido para evitar superposición */
        z-index: 10;
        padding: 0 1rem; /* Añadido padding */
    }
}

/* Media query adicional para pantallas pequeñas */
@media (max-width: 768px) {
    .premio-title {
        width: 90%; /* Más ancho en móviles */
        max-width: 400px;
        font-size: 24px; /* Aún más pequeño */
        line-height: 30px;
        top: 20px; /* Más arriba para evitar superposición */
        padding: 0 0.5rem;
    }
}
    
    .premio-image {
        left: -30px;
       
        top: 180px;
    }
    
    .premio-text-content {
        right: 20px;
        width: 42%;
        min-width: 320px;
        max-width: 450px;
        top: 420px;
        max-height: none;
        overflow-y: visible;
    }
    
    .premio-text-box {
        padding: 1.5rem;
    }
    
    .premio-decorative-left {
        left: -120px;
        width: 300px;
        height: 300px;
    }
    
    .premio-decorative-right {
        top: 40px; /* Ajustado para alinearse con el título */
        right: 1.5rem; /* Mantenido a la derecha */
        width: 87px;
        height: 87px;
        border-radius: 44px;
    }


/* Media query para pantallas medianas (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .premio-text-content {
        right: 2rem;
        width: 60%;
        min-width: 350px;
        max-width: 550px;
        top: 350px;
        max-height: none;
        overflow-y: visible;
    }
    
    .premio-text-box {
        padding: 1.5rem;
    }
    
    .premio-text-box p {
        /* UI Properties */
        color: var(--unnamed-color-313131);
        text-align: left;
        font: normal normal normal 15px/18px Lato;
        letter-spacing: 0px;
        color: #313131;
        opacity: 1;
    }
}

/* Media query para pantallas grandes (1025px+) */
@media (min-width: 1025px) {
    .premio-text-content {
       
        min-width: 500px;
        max-width: 900px;
        right: 2rem;
        top: 280px;
        max-height: none;
        overflow-y: visible;
    }
    
    .premio-text-box {
        padding: 2rem;
    }
    
    .premio-text-box p {
        /* UI Properties */
        color: var(--unnamed-color-313131);
        text-align: left;
        font: normal normal normal 15px/18px Lato;
        letter-spacing: 0px;
        color: #313131;
        opacity: 1;
    }
}

/* Media query para pantallas muy grandes (1400px+) */
@media (min-width: 1400px) {
    .premio-text-content {
        width: 700px;
        min-width: 403px;
        max-width: 1000px;
        right: 9rem;
        top: 280px;
    }
    
    .premio-text-box {
        padding: 2.5rem;
    }
    
    .premio-text-box p {
        /* UI Properties */
        color: var(--unnamed-color-313131);
        text-align: left;
        font: normal normal normal 15px/18px Lato;
        letter-spacing: 0px;
        color: #313131;
        opacity: 1;
    }
}

@media (max-width: 768px) {
    /* Quitar borde gris del header en móvil */
    .header {
        border-bottom: none !important;
    }
    
    .header .container {
        border-bottom: none !important;
    }
    
    .premio-hero {
        min-height: auto;
        
        position: relative;
    }
    
    .premio-hero-content {
        min-height: 60vh; /* Aumentado para mejor visualización */
        max-height: 80vh; /* Aumentado para mejor visualización */
        padding: 1rem;
        display: flex;
        flex-direction: column;
        gap: 2rem; /* Aumentado gap para mejor separación */
        position: relative;
        justify-content: center; /* Centrado para mejor balance */
        align-items: center;
    }
    
    .premio-title {
        position: relative;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
        width: 285px;
        height: 90px;
        margin: 0;
        margin-top: 2rem;
        /* UI Properties */
        color: #313131;
        text-align: center;
        font: normal normal 700 25px/30px 'Lato', 'Lato-Local', Arial, sans-serif;
        letter-spacing: 0px;
        opacity: 1;
        z-index: 1001;
        background: transparent;
        padding: 1rem;
        border-radius: 10px;
        order: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .premio-image {
        position: relative;
        top: auto;
        left: 0;
        transform: none;
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 1rem 0;
        margin-left: calc(-50vw + 50%);
        order: 2;
        border-radius: 0;
        /* UI Properties */
        background: url('../../assets/images/fotografías/premios/IMG_2011.jpg') 0% 0% no-repeat padding-box;
        background-size: cover;
        background-position: center center;
        opacity: 1;
        overflow: hidden;
    }
    
    .premio-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    
    .premio-text-content {
        position: relative;
        top: -50px; /* Superposición sobre la imagen */
        right: auto;
        width: 90%;
        max-width: 358px;
        min-width: 280px; /* Ancho mínimo para evitar que se comprima demasiado */
        margin: 1rem auto; /* Centrado horizontalmente */
        order: 3;
        /* UI Properties */
        background: var(--unnamed-color-fbf9ef) 0% 0% no-repeat padding-box;
        background: #FBF9EF 0% 0% no-repeat padding-box;
        border-radius: 14px;
        opacity: 1;
        padding: 1rem;
        max-height: none;
        overflow-y: visible;
        z-index: 10; /* Asegurar que esté sobre la imagen */
        box-sizing: border-box; /* Incluir padding en el cálculo del ancho */
    }
    
    .premio-text-box {
        padding: 0;
        margin: 0;
        z-index: 5;
        background: transparent;
        border-radius: 0;
    }
    
    .premio-decorative-left {
        position: absolute;
        top: 50px;
        left: -50px;
        width: 150px;
        height: 150px;
        background: url('../../assets/images/Collage_postulacion.png') no-repeat center;
        background-size: contain;
        opacity: 1;
        z-index: 5;
        transform: rotate(-10deg);
        display: block;
    }
    
    .premio-decorative-right {
        position: absolute;
        top: 20px; /* Ajustado para alinearse con el título en móviles */
        right: 1rem; /* Mantenido a la derecha */
        width: 87px;
        height: 87px;
        background: #E7E033;
        border-radius: 44px;
        opacity: 1;
        z-index: 5;
        display: block;
    }
}

@media (max-width: 480px) {
    .premio-hero-content {
        min-height: 55vh; /* Aumentado para mejor visualización */
        max-height: 75vh; /* Aumentado para mejor visualización */
        padding: 0.75rem;
        gap: 1.5rem; /* Aumentado gap */
        justify-content: center;
        align-items: center;
    }
    
    .premio-title {
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 285px;
        height: 90px;
        margin: 0;
        margin-bottom: 1rem;
        /* UI Properties */
        color: #313131;
        text-align: center;
        font: normal normal 700 25px/30px 'Lato', 'Lato-Local', Arial, sans-serif;
        letter-spacing: 0px;
        opacity: 1;
        z-index: 1001;
        background: transparent;
        padding: 1rem;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .premio-image {
        position: relative;
        left: 0;
        transform: none;
        width: 100vw;
        max-width: none;
        height: auto;
        margin: 0.5rem 0;
        margin-left: calc(-50vw + 50%);
        border-radius: 0;
        /* UI Properties */
        background: url('../../assets/images/fotografías/premios/IMG_2011.jpg') 0% 0% no-repeat padding-box;
        background-size: cover;
        background-position: center center;
        opacity: 1;
        overflow: hidden;
    }
    
    .premio-image img {
        width: 100%;
        height: auto;
        object-fit: cover;
        object-position: center center;
        display: block;
    }
    
    .premio-text-content {
        position: relative;
        top: -60px; /* Superposición sobre la imagen */
        width: 95%;
        max-width: 358px;
        min-width: 260px; /* Ancho mínimo más pequeño para pantallas muy pequeñas */
        margin: 0.5rem auto; /* Centrado horizontalmente */
        /* UI Properties */
        background: var(--unnamed-color-fbf9ef) 0% 0% no-repeat padding-box;
        background: #FBF9EF 0% 0% no-repeat padding-box;
        border-radius: 14px;
        opacity: 1;
        padding: 0.75rem; /* Padding reducido para pantallas pequeñas */
        max-height: none;
        overflow-y: visible;
        z-index: 10; /* Asegurar que esté sobre la imagen */
        box-sizing: border-box; /* Incluir padding en el cálculo del ancho */
    }
    
    .premio-text-box {
        padding: 10px;
        margin: 0;
        background: transparent;
        border-radius: 0;
    }
    
    .premio-text-box p {
        /* UI Properties */
        color: var(--unnamed-color-313131);
        text-align: left;
        font: normal normal normal 15px/18px Lato;
        letter-spacing: 0px;
        color: #313131;
        opacity: 1;
    }
    
    .premio-decorative-left {
        position: absolute;
        top: 71px;
        left: -40px;
        width: 120px;
        height: 120px;
        background: url('../../assets/images/Collage_postulacion.png') no-repeat center;
        background-size: contain;
        opacity: 1;
        z-index: 5;
        transform: rotate(-10deg);
        display: block;
    }
    
    .premio-decorative-right {
        position: absolute;
        top: 15px; /* Ajustado para alinearse con el título en móviles pequeños */
        right: 0.5rem; /* Mantenido a la derecha */
        width: 87px;
        height: 87px;
        background: #E7E033;
        border-radius: 44px;
        opacity: 1;
        z-index: 5;
        display: block;
    }
}

/* Breakpoint para pantallas muy pequeñas */
@media (max-width: 320px) {
    .premio-text-content {
        width: 98%;
        min-width: 240px;
        padding: 0.5rem;
        margin: 0.25rem auto;
    }
    
    .premio-text-box p {
        font-size: 14px;
        line-height: 16px;
    }
    
    .premio-title {
        width: 250px;
        font-size: 22px;
        line-height: 26px;
    }
    
    /* Mantener alineación consistente en pantallas muy pequeñas */
    .historia-title {
        padding-left: 0;
        box-sizing: border-box;
    }
    
    .historia-text {
        padding-left: 0;
        box-sizing: border-box;
    }
}


/* ===== SECCIÓN DE HISTORIA ===== */
.historia-section {
    background: #F9F7EE;
    padding: 0rem 0 1.5rem 0; /* Padding superior aumentado para mejor separación */
    position: relative;
    overflow: visible; /* Cambiado para permitir que historia-branch sea visible */
    z-index: 1; /* Asegurar que esté por debajo del hero en móvil */
}

.historia-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.historia-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.historia-title {
    position: relative;
    top: auto;
    left: auto;
    width: 656px;
    height: 41px;
    /* UI Properties */
    color: #026751;
    text-align: left;
    font: normal normal 900 34px/41px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    margin: 1rem 0 0 0; /* Solo añadido margen superior */
    /* Alineación consistente con el texto */
    padding-left: 0;
    box-sizing: border-box;
}

.historia-text {
    width: 656px;
    height: 198px;
    margin: 0;
    text-align: left;
    /* Estrategia de alineación consistente */
    padding-left: 0;
    box-sizing: border-box;
}

.historia-text p {
    /* UI Properties */
    color: #313131;
    text-align: left;
    font: normal normal normal 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    margin: 0;
}

.historia-text p:last-child {
    margin-bottom: 0;
}

.historia-image {
    width: 834px;
    margin: 0 auto;
    position: relative;
}

.historia-img {
    width: 834px;
    height: 453px;
    /* UI Properties */
    background: transparent url('../../assets/images/fotografías/premios/img_1035_43764637991_l.jpg') 0% 0% no-repeat padding-box;
    background-size: cover;
    border-radius: 19px;
    opacity: 1;
}

.historia-decorative {
    position: absolute;
    top: 50px;
    right: 0;
    z-index: 2; /* Reducido para no interferir con hero */
}

.historia-branch {
    position: absolute; /* Mantener absolute, no sticky */
    top: -83px;
    right: -200px; /* Ajustado para mejor visibilidad */
    width: 266px;
    height: 656px;
    transform: matrix(1, 0.03, -0.03, 1, 0, 0);
    /* UI Properties */
    background: transparent url('../../assets/images/Collage_6.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    opacity: 1;
    z-index: 2; /* Reducido para no interferir con hero */
    pointer-events: none; /* No interfiere con la interacción */
}

/* Contenido adicional debajo de la imagen */
.historia-additional-content {
    margin-top: 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    position: relative;
    width: 100%;
}

.historia-additional-text {
    max-width: 656px;
    margin: 0 auto;
}

.historia-additional-text p {
    font: normal normal normal 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    margin: 0 0 1.5rem 0;
    text-align: left;
    letter-spacing: 0px;
    opacity: 1;
}

.historia-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.historia-list::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0px;
    height: 100%;
    border: 1px solid #707070;
    opacity: 1;
}

.historia-list li {
    position: relative;
    padding-left: 0;
    margin-bottom: 0.2rem;
    width: 579px;
    height: 20px;
    /* UI Properties */
    color: #313131;
    text-align: left;
    font: normal normal bold 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    display: flex;
    align-items: center;
}

.historia-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 2rem 0;
    padding: 2rem 0;
}

.historia-category-left,
.historia-category-right {
    padding: 0 1rem;
}

.historia-category-left h3,
.historia-category-right h3 {
    font: normal normal bold 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    text-align: left;
    letter-spacing: 0px;
    opacity: 1;
    margin: 0 0 1rem 0;
}

.historia-category-left {
    border-right: 2px solid #026751;
    position: relative;
    padding-left: 1.5rem;
}

.historia-category-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0px;
    height: 100%;
    border: 1px solid #707070;
    opacity: 1;
}

.historia-category-list {
    margin-top: 1rem;
}

.historia-category-item {
    color: #313131;
    text-align: left;
    font: normal normal bold 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    margin-bottom: 0.5rem;
    padding-left: 0;
}

/* Imagen decorativa izquierda */
.historia-left-decoration {
    position: absolute;
    top: 200px;
    left: -150px; /* Parcialmente visible desde el borde izquierdo */
    z-index: 2; /* Reducido para no interferir con hero */
    width: 200px;
    height: 300px;
    display: none; /* Oculto por defecto */
    pointer-events: none; /* No interfiere con clics */
}

/* Mostrar solo en escritorio */
@media (min-width: 769px) {
    .historia-left-decoration {
        display: block;
        top: 250px;
        left: -100px; /* Parcialmente visible */
        width: 160px;
        height: 240px;
    }
}

/* Tablets grandes */
@media (min-width: 900px) {
    .historia-left-decoration {
        top: 300px;
        left: -110px;
        width: 180px;
        height: 270px;
    }
}

/* Laptops pequeños */
@media (min-width: 1024px) {
    .historia-left-decoration {
        top: 350px;
        left: -120px;
        width: 200px;
        height: 300px;
    }
}

/* Laptops medianos */
@media (min-width: 1200px) {
    .historia-left-decoration {
        top: 400px;
        left: -130px;
        width: 220px;
        height: 330px;
    }
}

/* Laptops grandes */
@media (min-width: 1400px) {
    .historia-left-decoration {
        top: 850px;
        left: -25px;
        width: 240px;
        height: 360px;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1600px) {
    .historia-left-decoration {
        top: 800px;
        left: -20px;
        width: 260px;
        height: 390px;
    }
}

/* Pantallas ultra anchas */
@media (min-width: 1920px) {
    .historia-left-decoration {
        top: 800px;
        left: -20px;
        width: 280px;
        height: 420px;
    }
}

.historia-left-image {
    width: 100%;
    height: 100%;
    background: transparent url('../../assets/images/collage_4.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    opacity: 1;
}

/* Ocultar decoración móvil en escritorio */
.historia-mobile-decoration {
    display: none;
}

/* ===== NUEVA SECCIÓN LÍNEAS Y CATEGORÍAS ===== */
.lineas-categorias-section {
    background: #F9F7EE;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.lineas-categorias-container {
    max-width: 656px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    width: 100%;
}

.lineas-categorias-title {
    font: normal normal 900 36px/44px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    text-align: left;
    margin: 0 0 3rem 0;
}

.linea-1-section {
    margin-bottom: 3rem;
}

.linea-1-header {
    margin-bottom: 1.5rem;
}

.linea-1-subtitle {
    font: normal normal normal 18px/22px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    margin: 0 0 0.25rem 0;
    display: block;
}

.linea-1-title {
    font: normal normal 900 28px/34px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    display: block;
    margin: 0;
}

.linea-1-intro {
    font: normal normal normal 16px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #333;
    margin: 0 0 2rem 0;
}

.linea-1-purposes {
    margin-bottom: 3rem;
}

.purpose-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.purpose-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background-color: #ccc;
}

.purpose-text {
    font: normal normal normal 16px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #333;
    margin: 0;
}

.categorias-detailed {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.categoria-1,
.categoria-2 {
    padding: 0 1rem;
    position: relative;
}

.categoria-1 {
    border-right: 1px solid #ddd;
    padding-right: 2rem;
}

.categoria-2 {
    padding-left: 2rem;
}

.categoria-3 {
    padding: 0 1rem;
    margin-top: 2rem;
    grid-column: 1 / -1;
}

.categoria-subtitle {
    font: normal normal normal 16px/20px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #8BC372;
    margin: 0 0 0.5rem 0;
    display: block;
}

.categoria-title {
    font: normal normal 900 28px/34px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    margin: 0 0 1rem 0;
    display: block;
}

.categoria-1 p,
.categoria-2 p,
.categoria-3 p {
    font: normal normal normal 15px/22px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    text-align: justify;
    margin: 0;
}

.categoria-1 strong,
.categoria-2 strong,
.categoria-3 strong {
    font-weight: bold;
    color: #313131;
}

/* Responsive para Líneas y Categorías */
@media (max-width: 768px) {
    .lineas-categorias-section {
        padding: 2rem 0;
    }
    
    .lineas-categorias-container {
        padding: 0 1rem;
    }
    
    .lineas-categorias-title {
        font-size: 28px;
        line-height: 34px;
        text-align: center;
    }
    
    .categorias-detailed {
        display: flex;
        flex-direction: column;
        gap: 2rem;
        margin-top: 2rem;
    }
    
    .categoria-1,
    .categoria-2,
    .categoria-3 {
        padding: 0;
    }
}

/* Responsive para Historia */
@media (max-width: 768px) {
    .historia-section {
        padding: 3rem 0 1rem 0; /* Padding superior aumentado para más separación en móvil */
    }
    
    .historia-container {
        padding: 0 1rem;
    }
    
    .historia-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        position: relative;
    }
    
    .historia-title {
        font-size: 24px;
        line-height: 30px;
        text-align: left;
        width: 100%;
        margin: 0.5rem 0 0 0; /* Margen superior reducido en móviles */
        /* Mantener alineación consistente en móviles */
        padding-left: 0;
        box-sizing: border-box;
    }
    
    .historia-text {
        width: 100%;
        height: auto;
        margin: 0;
        text-align: left;
        /* Mantener alineación consistente en móviles */
        padding-left: 0;
        box-sizing: border-box;
    }
    
    .historia-text p {
        font-size: 14px;
        line-height: 20px;
        text-align: left;
        margin-bottom: 1rem;
    }
    
    .historia-image {
        width: 100%;
        margin: 0;
        position: relative;
    }
    
    .historia-img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/9;
        border-radius: 15px;
        /* UI Properties */
        background: transparent url('../../assets/images/fotografías/premios/img_1035_43764637991_l.jpg') 0% 0% no-repeat padding-box;
        background-size: cover;
        background-position: center center;
        opacity: 1;
        overflow: hidden;
    }
    
    .historia-decorative {
        display: none;
    }
    
    /* Imagen decorativa derecha en móvil */
    .historia-mobile-decoration {
        display: block;
        position: absolute;
        top: 50%;
        right: -50px;
        width: 100px;
        height: 200px;
        background: transparent url('../../assets/images/Collage_6.png') 0% 0% no-repeat padding-box;
        background-size: contain;
        opacity: 1;
        z-index: 2; /* Reducido para no interferir con hero */
        transform: translateY(-218%);
    }
    
    .historia-additional-content {
        padding: 0 1rem;
    }
    
    /* Mover imagen izquierda más hacia abajo en móviles y reducir tamaño */
    .historia-left-decoration {
        top: 550px; /* Mover más hacia abajo desde la posición original */
        left: -20px; /* Ajustar posición para que sea visible en móviles */
        transform: scale(0.7); /* Reducir tamaño a 70% */
    }
    
    .historia-left-image {
        width: 120px; /* Tamaño apropiado para móviles */
        height: 180px; /* Tamaño apropiado para móviles */
        background: transparent url('../../assets/images/collage_4.png') 0% 0% no-repeat padding-box;
        background-size: contain;
        opacity: 1;
        display: block; /* Asegurar que se muestre */
    }
    
    .historia-categories {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .historia-category-left {
        border-right: none;
        border-bottom: none; /* Eliminar línea horizontal en móviles */
        padding-bottom: 1rem;
    }
    
    .historia-category-right {
        padding-top: 1rem;
    }
}

/* Responsive para Historia en móviles pequeños */
@media (max-width: 480px) {
    .historia-section {
        padding: 12rem 0 1rem 0; /* Padding superior aún mayor en móviles pequeños */
    }
    
    .historia-img {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
        border-radius: 12px;
        /* UI Properties */
        background: transparent url('../../assets/images/fotografías/premios/img_1035_43764637991_l.jpg') 0% 0% no-repeat padding-box;
        background-size: cover;
        background-position: center center;
        opacity: 1;
        overflow: hidden;
    }
    
    /* Mover imagen izquierda aún más hacia abajo en móviles pequeños y reducir más */
    .historia-left-decoration {
        top: 1088px; /* Mover aún más hacia abajo en pantallas pequeñas */
        left: -38px; /* Ajustar posición para que sea visible en móviles pequeños */
        transform: scale(0.5); /* Reducir tamaño a 50% en móviles pequeños */
    }
    
    .historia-left-image {
        width: 80px; /* Tamaño apropiado para móviles pequeños */
        height: 120px; /* Tamaño apropiado para móviles pequeños */
        background: transparent url('../../assets/images/collage_4.png') 0% 0% no-repeat padding-box;
        background-size: contain;
        opacity: 1;
    }
}

/* ===== SECCIÓN ¿CÓMO FUNCIONA EL PREMIO? ===== */
.como-funciona-section {
    background: #F9F7EE;
    padding: 1.5rem 0 4rem 0; /* Reducido padding superior para compensar */
    position: relative;
    overflow: hidden;
}

.como-funciona-container {
    max-width: 656px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
}

.como-funciona-decorative {
    position: absolute;
    top: -68px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 90px;
    background: transparent url('../../assets/images/Collage_7.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.decorative-leaf {
    display: none;
}

.como-funciona-title {
    /* UI Properties */
    color: #313131;
    text-align: left;
    font: normal normal 900 25px/30px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    margin: 2rem 0 3rem 0;
    position: relative;
    z-index: 2;
}

.pasos-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
    position: relative;
    z-index: 2;
}

.paso-item {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
}

.paso-numero {
    width: 28px;
    height: 58px;
    /* UI Properties */
    color: #8BC372;
    text-align: left;
    font: normal normal 900 49px/58px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    margin-top: 0.5rem;
    background: none;
    border-radius: 0;
}

.paso-content {
    flex: 1;
}

.paso-title {
    font: normal normal bold 20px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    margin: 0 0 0.75rem 0;
}

.paso-description {
    font: normal normal normal 15px/22px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    margin: 0;
    text-align: left;
}

/* Responsive para ¿Cómo funciona el Premio? */
@media (max-width: 768px) {
    .como-funciona-section {
        padding: 1rem 0 2rem 0; /* Ajustado para móviles */
    }
    
    .como-funciona-container {
        padding: 0 1rem;
    }
    
    .como-funciona-title {
        font: normal normal 900 20px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
        color: #313131;
        margin: 1.5rem 0 2rem 0;
    }
    
    .pasos-container {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .paso-item {
        gap: 1rem;
    }
    
    .paso-numero {
        width: 24px;
        height: 48px;
        font: normal normal 900 40px/48px 'Lato', 'Lato-Local', Arial, sans-serif;
        color: #8BC372;
    }
    
    .paso-title {
        font-size: 18px;
        line-height: 22px;
    }
    
    .paso-description {
        font-size: 14px;
        line-height: 20px;
    }
}

/* Escritorio - diseño de dos columnas para categorías */
@media (min-width: 769px) {
    .categorias-detailed {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .categoria-1,
    .categoria-2 {
        padding: 0 1rem;
        position: relative;
    }
    
    .categoria-1 {
        border-right: 1px solid #ddd;
        padding-right: 2rem;
    }
    
    .categoria-2 {
        padding-left: 2rem;
    }
    
    .categoria-3 {
        padding: 0 1rem;
        margin-top: 2rem;
        grid-column: 1 / -1;
    }
}

/* Tablets en landscape */
@media (min-width: 769px) and (max-width: 1024px) {
    .premio-hero-content {
        min-height: 65vh;
        max-height: 75vh;
        padding: 1.5rem;
    }
}

/* Laptops medianos */
@media (min-width: 1025px) and (max-width: 1280px) {
    .premio-hero-content {
        min-height: 70vh;
        max-height: 80vh;
        padding: 2rem;
    }
}

/* Escritorio grande - mantener orden con max-width */
@media (min-width: 1281px) {
    .premio-hero-content {
        max-width: 1280px;
        min-height: 70vh;
        max-height: 85vh;
    }
    
    .premio-title {
        max-width: 728px;
    }
    
    .premio-image {
        max-width: 800px;
    }
    
    .premio-text-content {
        max-width: 400px;
    }
}

/* ===== MEDIA QUERIES PARA HISTORIA-BRANCH ===== */

/* Móviles pequeños - ocultar en pantallas muy pequeñas */
@media (max-width: 480px) {
    .historia-branch {
        display: none; /* Oculto en móviles muy pequeños */
    }
}

/* Móviles medianos - mostrar con tamaño reducido */
@media (min-width: 481px) and (max-width: 768px) {
    .historia-branch {
        display: block;
        top: -50px;
        right: -120px;
        width: 150px;
        height: 400px;
    }
}

/* Tablets - tamaño intermedio */
@media (min-width: 769px) and (max-width: 1024px) {
    .historia-branch {
        display: block;
        top: -70px;
        right: -150px;
        width: 200px;
        height: 500px;
    }
}

/* Laptops medianos */
@media (min-width: 1025px) and (max-width: 1280px) {
    .historia-branch {
        display: block;
        top: -83px;
        right: -180px;
        width: 240px;
        height: 580px;
    }
}

/* Laptops grandes */
@media (min-width: 1281px) and (max-width: 1600px) {
    .historia-branch {
        display: block;
        top: -83px;
        right: -200px;
        width: 266px;
        height: 656px;
    }
}

/* Pantallas muy grandes */
@media (min-width: 1601px) {
    .historia-branch {
        display: block;
        top: -83px;
        right: -220px;
        width: 300px;
        height: 700px;
    }
}
