/* ===== ESTILOS ESPECÍFICOS PARA LA PÁGINA DE VERSIONES ===== */

/* Cuerpo de la página */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #F9F7EE 0% 0% no-repeat padding-box;
}

/* ===== DROPDOWN MENU ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    padding: 0.5rem 0;
    list-style: none;
    margin: 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
    margin: 0;
    position: relative;
}

.dropdown-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background-color: #E0F3AB;
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    color: #333;
    text-decoration: none;
    font: normal normal normal 14px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    transition: background-color 0.3s ease;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    text-align: left;
}

.dropdown-menu .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #026751;
    flex-shrink: 0;
    margin-left: auto;
}

.dropdown-menu a:hover .arrow {
    transform: translateX(5px);
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
    color: #026751;
}

/* ===== MOBILE DROPDOWN MENU ===== */
.mobile-dropdown {
    position: relative;
}

.mobile-dropdown-menu {
    display: none;
    background: #f8f9fa;
    border-left: 3px solid #026751;
    margin-left: 1rem;
    padding: 0.5rem 0;
    list-style: none;
    margin-top: 0.5rem;
    opacity: 0;
    visibility: hidden;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-dropdown.active .mobile-dropdown-menu {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    max-height: 800px !important;
    overflow: visible !important;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
}

.mobile-dropdown-menu li {
    list-style: none;
    margin: 0;
    position: relative;
}

.mobile-dropdown-menu li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1px;
    background-color: #E0F3AB;
}

.mobile-dropdown-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    color: #333;
    text-decoration: none;
    font: normal normal normal 14px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    transition: color 0.3s ease;
    width: auto;
    height: auto;
    background: transparent;
    border-radius: 0;
    text-align: left;
}

.mobile-dropdown-menu .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    color: #026751;
    flex-shrink: 0;
    margin-left: auto;
}

.mobile-dropdown-menu a:hover {
    color: #026751;
}

/* Indicador visual para el dropdown activo */
.mobile-dropdown.active > a .arrow {
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

/* ===== CONTENEDOR PRINCIPAL CON MAX-WIDTH 1280PX ===== */
.versiones-container {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
    width: 100%;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* ===== HERO SECTION DE VERSIONES ===== */
.versiones-hero {
    background: #F9F7EE;
    padding: 4rem 0 6rem 0;
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    overflow: visible;
}

/* Elemento decorativo izquierdo - Círculo amarillo */
.versiones-decorative-left {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 87px;
    height: 87px;
    background: #E7E033 0% 0% no-repeat padding-box;
    border-radius: 44px;
    opacity: 1;
    z-index: 5;
}

/* Título principal */
.versiones-title {
    width: 180px;
    height: 48px;
    color: #313131;
    text-align: center;
    font: normal normal 900 40px/48px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    margin: 2rem auto 2rem auto;
    z-index: 20;
    display: block;
}

/* Párrafo introductorio */
.versiones-intro {
    position: absolute;
    top: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 588px;
    min-height: 72px;
    color: #313131;
    text-align: center;
    font: normal normal normal 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
    letter-spacing: 0px;
    opacity: 1;
    z-index: 20;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}

/* Elemento decorativo derecho - Flores */
.versiones-decorative-right {
    position: absolute;
    top: -13px;
    right: -53px;
    width: 362px;
    height: 362px;
    background: transparent url('../../assets/images/Collage_versiones.png') 0% 0% no-repeat padding-box;
    background-size: contain;
    background-position: center;
    opacity: 1;
    z-index: 100;
}

/* ===== SECCIÓN DE CONTENIDO PRINCIPAL ===== */
.versiones-content {
    background: #F9F7EE;
    padding: 2rem 0;
    position: relative;
    z-index: 1;
    margin-top: -60px;
    overflow: visible;
}

.versiones-content-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Contenedor específico para imagen y cuadro */
.versiones-elements-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 3rem;
}

.versiones-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Imagen principal */
.versiones-image {
    width: 493px;
    height: 348px;
    background: transparent url('img/9.png') 0% 0% no-repeat padding-box;
    box-shadow: 0px 3px 6px #00000029;
    border-radius: 14px;
    opacity: 1;
    overflow: hidden;
    flex-shrink: 0;
}

.versiones-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

/* Caja de contenido destacado */
.versiones-featured-box {
    width: 494px;
    height: 343px;
    background: #FFFCEF 0% 0% no-repeat padding-box;
    border: 1px solid #026751;
    border-radius: 12px;
    box-shadow: 0px 3px 6px #00000029;
    opacity: 1;
    padding: 2rem;
    z-index: 10;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.versiones-featured-box:hover {
    background: #E0F3AB;
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px #00000040;
}

.featured-box-header {
    margin-bottom: 1.5rem;
}

.featured-box-title {
    font: normal normal 900 24px/30px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    margin: 0;
}

.featured-box-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.featured-box-text {
    font: normal normal normal 16px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    text-align: left;
    margin: 0;
}

.featured-box-button {
    width: 102px;
    height: 23px;
    background: #93B8E2 0% 0% no-repeat padding-box;
    border: 1px solid #336BAC;
    border-radius: 23px;
    opacity: 1;
    color: white;
    font: normal normal bold 16px/20px 'Lato', 'Lato-Local', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-box-button:hover {
    background: #357ABD;
}

.featured-box-button:link,
.featured-box-button:visited,
.featured-box-button:active {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Reglas adicionales para asegurar que no haya subrayado */
a.featured-box-button,
a.featured-box-button:link,
a.featured-box-button:visited,
a.featured-box-button:hover,
a.featured-box-button:active,
a.featured-box-button:focus {
    text-decoration: none !important;
    color: #ffffff !important;
    outline: none !important;
}

/* ===== SECCIÓN DE VERSIONES ANTERIORES ===== */
.versiones-grid-section {
    background: #F9F7EE;
    padding: 1rem 0 3rem 0;
    position: relative;
}

.versiones-grid-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    margin-top: 0.5rem;
}

.versiones-grid-title {
    font: normal normal 900 28px/34px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    text-align: center;
    margin: 0 0 1rem 0;
    padding: 0;
}

.versiones-grid {
    display: grid;
    grid-template-columns: repeat(3, 324px);
    gap: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.version-card {
    width: 324px;
    height: 434px;
    background: #FBF9EF 0% 0% no-repeat padding-box;
    border: 1px solid #026751;
    border-radius: 17px;
    opacity: 1;
    box-shadow: 0px 3px 6px #00000029;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 400px;
}

.version-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 8px 20px #00000040;
    background: #E0F3AB;
}

.version-card-header {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.version-card-title {
    font: normal normal 900 20px/24px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #026751;
    margin: 0;
}

.version-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.version-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.version-card-content {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
    justify-content: space-between;
}

.version-card-text {
    font: normal normal normal 14px/20px 'Lato', 'Lato-Local', Arial, sans-serif;
    color: #313131;
    margin: 0;
    text-align: left;
}

.version-card-button {
    width: 80px;
    height: 20px;
    background: #93B8E2 0% 0% no-repeat padding-box;
    border: 1px solid #336BAC;
    border-radius: 20px;
    color: white;
    font: normal normal bold 12px/16px 'Lato', 'Lato-Local', Arial, sans-serif;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.version-card-button:hover {
    background: #357ABD;
}

.version-card-button:link,
.version-card-button:visited,
.version-card-button:active {
    text-decoration: none !important;
    color: #ffffff !important;
}

/* Reglas adicionales para asegurar que no haya subrayado */
a.version-card-button,
a.version-card-button:link,
a.version-card-button:visited,
a.version-card-button:hover,
a.version-card-button:active,
a.version-card-button:focus {
    text-decoration: none !important;
    color: #ffffff !important;
    outline: none !important;
}

/* Contenedor para las tarjetas adicionales */
.versiones-additional-grid {
    display: grid;
    grid-template-columns: repeat(3, 324px);
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.versiones-more-button-container {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.versiones-more-button {
    width: 203px;
    height: 33px;
    /* UI Properties */
    border: 1px solid var(--unnamed-color-336bac);
    box-shadow: 0px 3px 6px #00000029;
    border: 1px solid #336BAC;
    border-radius: 23px;
    opacity: 1;
    background: transparent;
    /* UI Properties */
    color: #93B8E2;
    text-align: left;
    font: normal normal normal 20px/24px Lato;
    letter-spacing: 0px;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.versiones-more-button:hover {
    background: #357ABD;
    color: white;
}

.versiones-more-button:link,
.versiones-more-button:visited,
.versiones-more-button:active {
    text-decoration: none !important;
    color: #93B8E2 !important;
}

/* Reglas adicionales para asegurar que no haya subrayado */
a.versiones-more-button,
a.versiones-more-button:link,
a.versiones-more-button:visited,
a.versiones-more-button:hover,
a.versiones-more-button:active,
a.versiones-more-button:focus {
    text-decoration: none !important;
    outline: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
    .versiones-title {
        font-size: 42px;
        line-height: 52px;
        margin: 2rem auto 2rem auto;
    }
    
    .versiones-intro {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 600px;
        margin: 0 auto 3rem auto;
        font-size: 16px;
        line-height: 26px;
    }
    
    .versiones-decorative-right {
        width: 150px;
        height: 250px;
        right: 30px;
    }
    
    .versiones-decorative-left {
        width: 60px;
        height: 60px;
        left: 30px;
    }
    
    .versiones-content {
        margin-top: -40px;
        padding: 1.5rem 0;
    }
    
    .versiones-additional-grid {
        grid-template-columns: repeat(3, 324px);
        gap: 2rem;
        justify-content: center;
    }
}

@media (max-width: 968px) {
    .versiones-title {
        font-size: 36px;
        line-height: 46px;
        margin: 2rem auto 2rem auto;
    }
    
    .versiones-intro {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: 500px;
        margin: 0 auto 3rem auto;
        font-size: 15px;
        line-height: 24px;
    }
    
    .versiones-decorative-right {
        width: 120px;
        height: 200px;
        right: 20px;
    }
    
    .versiones-decorative-left {
        width: 50px;
        height: 50px;
        left: 20px;
    }
    
    .versiones-content {
        margin-top: -40px;
        padding: 1.5rem 0;
    }
    
    .versiones-grid {
        grid-template-columns: repeat(2, 324px);
        gap: 1.5rem;
        justify-content: center;
    }
    
    .versiones-additional-grid {
        grid-template-columns: repeat(2, 324px);
        gap: 1.5rem;
        justify-content: center;
    }
}

@media (max-width: 968px) and (min-width: 769px) {
    .versiones-additional-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        justify-content: center;
    }
    
    .version-card {
        width: 100%;
        max-width: 350px;
        height: auto;
        min-height: 380px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .versiones-hero {
        min-height: auto;
        padding: 2rem 0;
    }
    
    .versiones-grid-section {
        padding: 0.5rem 0 2rem 0;
    }
    
    .versiones-grid-container {
        padding: 0 1rem;
        margin-top: 0.5rem;
    }
    
    .versiones-grid-title {
        font-size: 24px;
        line-height: 30px;
        margin-bottom: 0.5rem;
    }
    
    .versiones-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: stretch;
    }
    
    .versiones-additional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: stretch;
    }
    
    .version-card {
        width: 100%;
        height: auto;
        max-width: none;
        min-height: 360px;
        margin: 0 auto;
    }
    
    .version-card-image {
        height: 200px;
    }
    
    .version-card-header {
        padding: 1.5rem 1.5rem 1rem 1.5rem;
    }
    
    .version-card-title {
        font-size: 20px;
        line-height: 24px;
        text-align: left;
    }
    
    .version-card-content {
        padding: 1rem 1.5rem 1.5rem 1.5rem;
    }
    
    .version-card-text {
        font-size: 14px;
        line-height: 20px;
        text-align: left;
    }
    
    .version-card-button {
        width: 100px;
        height: 32px;
        font-size: 12px;
        align-self: flex-start;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 32px;
        touch-action: manipulation;
    }
    
    .versiones-more-button {
        width: 203px;
        height: 33px;
        font-size: 14px;
        background: transparent;
        color: #93B8E2;
    }
    
    .versiones-additional-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        justify-content: stretch;
    }
    
    .versiones-container {
        padding: 0 1rem;
        max-width: 100%;
    }
    
    .versiones-title {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 32px;
        line-height: 40px;
        margin: 2rem 0 1.5rem 0;
        text-align: center;
    }
    
    .versiones-intro {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        font-size: 14px;
        line-height: 22px;
        margin: 0 0 2rem 0;
        text-align: left;
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        box-sizing: border-box;
    }
    
    .versiones-decorative-left {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 40px;
        height: 40px;
    }
    
    .versiones-decorative-right {
        position: absolute;
        top: 266px;
        right: -50px;
        width: 180px;
        height: 180px;
        z-index: 100;
    }
    
    .versiones-content {
        padding: 1rem 0 1.5rem 0;
        margin-top: -30px;
    }
    
    .versiones-content-container {
        padding: 0 1rem;
    }
    
    .versiones-elements-container {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .versiones-image {
        width: 100vw;
        height: 250px;
        order: 1;
        margin-left: calc(-50vw + 50%);
        margin-right: calc(-50vw + 50%);
        border-radius: 0;
    }
    
    .versiones-featured-box {
        width: 100%;
        height: auto;
        padding: 1.5rem;
        margin-top: -50px;
        order: 2;
        border-radius: 15px;
    }
    
    .featured-box-title {
        font-size: 20px;
        line-height: 24px;
        margin-bottom: 1rem;
    }
    
    .featured-box-text {
        width: 219px;
        min-height: 166px;
        text-align: left;
        font: normal normal normal 15px/18px 'Lato', 'Lato-Local', Arial, sans-serif;
        letter-spacing: 0px;
        color: #707070;
        opacity: 1;
        margin-bottom: 1.5rem;
        overflow: visible;
    }
    
    .featured-box-button {
        width: 100px;
        height: 20px;
        font-size: 14px;
        align-self: flex-start;
        padding: 0;
    }
}

@media (max-width: 480px) {
    .versiones-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .versiones-intro {
        font-size: 13px;
        line-height: 20px;
    }
    
    .versiones-decorative-left {
        width: 30px;
        height: 30px;
    }
    
    .versiones-decorative-right {
        width: 180px;
        height: 180px;
    }
    
    .versiones-image {
        height: 200px;
    }
    
    .versiones-featured-box {
        padding: 1rem;
    }
    
    .featured-box-title {
        font-size: 18px;
        line-height: 24px;
    }
    
    .featured-box-text {
        font-size: 13px;
        line-height: 20px;
    }
    
    .versiones-additional-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        justify-content: stretch;
    }
    
    .version-card {
        width: 100%;
        height: auto;
        max-width: none;
        min-height: 340px;
        margin: 0 auto;
    }
    
    .version-card-button {
        width: 120px;
        height: 36px;
        font-size: 14px;
        min-height: 36px;
    }
    
    .version-card-text {
        font-size: 15px;
        line-height: 22px;
    }
    
    .versiones-grid-title {
        font-size: 22px;
        line-height: 28px;
        margin-bottom: 0.5rem;
    }
}

/* Escritorio grande - mantener orden con max-width */
@media (min-width: 1281px) {
    .versiones-hero-content {
        max-width: 1280px;
    }
    
    .versiones-title {
        max-width: 600px;
    }
    
    .versiones-intro {
        max-width: 800px;
    }
}