/* =============================
   VARIABLES Y CONFIGURACIÓN GENERAL
============================= */

:root {
    --color-primario: rgba(46, 26, 71, 1);
    --color-primario-rgb: 46, 26, 71;
    --color-secundario: rgba(138, 36, 134, 1);
    --color-acento: #fccf00;
    --color-texto-claro: #981d97;
    --fuente-titulos: "Palanquin Dark", sans-serif;
    --fuente-cuerpo: 'Quicksand', sans-serif;
    --transicion-suave: all 0.3s ease;
}

body {
    background: linear-gradient(to bottom,
            rgba(var(--color-primario-rgb), 0.7) 0%,
            rgba(var(--color-primario-rgb), 0.3) 2%,
            rgba(var(--color-primario-rgb), 0.2) 3%,
            rgba(var(--color-primario-rgb), 0.1) 4%,
            rgba(var(--color-primario-rgb), 0) 6%,
            transparent 5%);
    font-family: "Open Sans", "Roboto", Arial, sans-serif;
    margin: 0;
}

/* =============================
   MENÚ PRINCIPAL
============================= */

.menu {
    width: 100%;
    height: 120px;
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    -webkit-transform: translate(-50%, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 !important;
    z-index: 1000;
}

.logo {
    height: 100%;
    width: 200px;
    background: url(../img/logo3.png) no-repeat center center;
    background-size: contain;
    margin-left: 30px !important;
}

.lista {
    height: 100%;
    width: 830px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 !important;
    list-style-type: none;
}

.lista li a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primario);
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    font-family: var(--fuente-cuerpo);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.lista li a:hover {
    color: var(--color-secundario);
}

.lista li a::after {
    content: '';
    width: 0;
    height: 3px;
    background: var(--color-secundario);
    position: absolute;
    bottom: -60%;
    left: 0;
    border-radius: 10px;
    transition: width 500ms ease;
}

.lista li a:hover::after {
    width: 100%;
}

.redes {
    height: 100%;
    width: 150px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-right: 30px !important;
}

.redes div {
    height: 80px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transicion-suave);
}

/* Iconos redes sociales menú principal */
.face { background: url(../img/face_morado.png) no-repeat center center; background-size: contain; }
.inst { background: url(../img/inst_morado.png) no-repeat center center; background-size: contain; }
.link { background: url(../img/link_morado.png) no-repeat center center; background-size: contain; }
.twit { background: url(../img/twit_morado.png) no-repeat center center; background-size: contain; cursor: pointer; }

/* =============================
   MENÚ RESPONSIVE
============================= */

.menu_responsive {
    height: 100%;
    width: 70px;
    justify-content: center;
    align-items: center;
    margin-right: 30px !important;
    display: none;
    cursor: pointer;
}

.menu_desplegable {
    background: rgba(var(--color-primario-rgb), 0.98);
    width: 100vw;
    height: 100vh;
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: right 0.5s ease-in-out;
}

.menu_desplegable.active {
    right: 0;
}

.cerrar {
    width: 30px;
    height: 30px;
    background: url(../img/cerrrar.png) no-repeat center center;
    background-size: contain;
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
    z-index: 10001;
}

.logo_desplegable {
    height: 10%;
    width: 100%;
    background: url(../img/logo1.png) no-repeat center center;
    background-size: contain;
    margin-bottom: 30px !important;
}

.lista_desplegable {
    height: 60%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    margin: 0 0 30px !important;
    list-style-type: none;
}

.lista_desplegable li {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px !important;
}

.lista_desplegable li a {
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
    line-height: 16px;
    font-family: var(--fuente-cuerpo);
    position: relative;
    cursor: pointer;
    text-decoration: none;
}

.lista_desplegable li a:hover {
    color: var(--color-acento);
}

.redes2 {
    height: 5%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.redes2 div {
    height: 80px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transicion-suave);
    margin: 0 10px !important;
}

/* Iconos redes sociales menú desplegable */
.face2 { background: url(../img/face_blanco.png) no-repeat center center; background-size: contain; }
.inst2 { background: url(../img/inst_blanco.png) no-repeat center center; background-size: contain; }
.link2 { background: url(../img/link_blanco.png) no-repeat center center; background-size: contain; }

/* =============================
   TIPOGRAFÍA Y TEXTOS
============================= */

.ptexto {
    font-size: 20px;
    font-family: var(--fuente-cuerpo);
    color: rgb(13, 13, 14);
    line-height: 1.3 !important;
}

.ptexto p {
    line-height: 1.3 !important;
    margin: 15px 0 !important;
}

.ptexto strong {
    line-height: 1.3 !important;
    margin: 20px 0 0 !important;
}

.ptexto2 {
    font-size: 30px;
    font-family: 'Proxima Nova Th';
    font-weight: 800;
    line-height: 35px;
    color: var(--color-primario);
    margin-bottom: 0;
}

.ptitulo,
.ptitulo2 {
    color: var(--color-primario);
    animation: example 4s infinite;
    font-weight: bold;
}

.ptitulo {
    font-size: 30px;
    line-height: 35px;
    margin: 40px 0 0;
}

.ptitulo2 {
    font-size: 35px;
    line-height: 50px;
    margin: 0 0 40px;
}

/* =============================
   SECCIÓN ACTUALIDAD
============================= */

.actualidad {
    text-align: center;
    padding: 4% 0 1%;
}

.text-2 {
    color: #532f88;
    font-family: var(--fuente-titulos);
    font-size: 60px;
    font-weight: bold;
    margin-top: 1%;
}

.text-span-2 {
    color: #532f88;
    font-family: var(--fuente-cuerpo);
    font-size: 50px;
    font-weight: 500;
}

/* =============================
   CONTENIDO PRINCIPAL
============================= */

.principal {
    width: 90%;
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

.principal img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    margin: 0 auto 25px;
}

.texto-principal {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

/* =============================
   TARJETAS (CARDS)
============================= */

.card-text h3 {
    padding: 8px 0;
    font-size: 18px;
    color: var(--color-texto-claro);
}

.card-text p {
    font-size: 26px;
    color: #2e1d46;
    font-family: var(--fuente-titulos);
    font-weight: bold;
    margin: 0;
    line-height: 1.4;
}

/* Contenedor grid de tarjetas */
.card-actualidad {
    width: 95%;
    max-width: 1400px;
    margin: auto;
}

.card-actualidad .row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.card-actualidad [class*="col-"] {
    width: 100%;
    padding: 0;
}

/* Estilos base para tarjetas */
.card-act,
.card-act-2 {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.08);
    transition: var(--transicion-suave);
    min-height: 430px;
    width: 400px;
}

.card-act:hover,
.card-act-2:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.14);
}

.card-act img,
.card-act-2 img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.card-act:hover img {
    transform: scale(1.06);
}

/* Contenido de tarjetas */
.card-text-2 {
    padding: 18px 18px 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-text-2 h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-texto-claro);
    margin-bottom: 6px;
}

.card-text-2 p {
    font-size: 17px;
    color: #2e1d46;
    font-family: var(--fuente-titulos);
    font-weight: 600;
    line-height: 1.5;
    margin: 0 0 auto;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* =============================
   COMPONENTE LEER MÁS
============================= */

.leer-mas {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.leer-mas p {
    font-size: 15px;
    font-weight: 600;
    color: #2e1a47;
    margin: 0;
}

.leer-mas a {
    text-decoration: none;
}

.btn-flecha {
    background: var(--color-acento);
    border: none;
    color: var(--color-texto-claro);
    font-weight: bold;
    font-size: 18px;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transicion-suave);
}

.btn-flecha:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

/* =============================
   FOOTER
============================= */

.footer {
    width: 100%;
    background: var(--color-primario);
    margin-top: 40px;
    padding: 35px 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer_top {
    width: 100%;
    max-width: 1100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer_top_left {
    display: flex;
    align-items: center;
}

.foot_logo {
    width: 90px;
    height: 90px;
    background: url("../img/logo_vertical.png") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
}

.foot_txt1 {
    width: 280px;
    margin-left: 20px;
    color: white;
    font-family: var(--fuente-cuerpo);
    font-size: 15px;
    line-height: 1.4;
}

.foot_txt1 p {
    margin: 0;
}

.footer_top_right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

/* Redes sociales footer */
.redes1 {
    display: flex;
    gap: 15px;
}

.redes1 a div {
    width: 28px;
    height: 28px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: var(--transicion-suave);
}

.redes1 a div:hover {
    transform: scale(1.2);
}

.face1 { background-image: url("../img/facebook.png"); }
.inst1 { background-image: url("../img/instagram.png"); }
.link1 { background-image: url("../img/linkedin.png"); }
.twit1 { background-image: url("../img/twitter.png"); }

.foot_eslogan {
    width: 220px;
    height: 45px;
    background: url("../img/eslogan.png") no-repeat center;
    background-size: contain;
}

.footer_mid {
    width: 90%;
    max-width: 1400px;
    height: 50px;
    background: url("../img/linea.png") no-repeat center;
    background-size: contain;
}

.footer_bot p {
    font-family: var(--fuente-cuerpo);
    font-size: 14px;
    color: white;
    margin: 0;
    text-align: center;
}

/* =============================
   CLASES ADICIONALES
============================= */

.imagenprin {
    width: 90%;
    height: 100%;
    border-radius: 10px;
}

/* =============================
   MEDIA QUERIES - MENÚ RESPONSIVE
============================= */

@media (max-width: 991px) {
    .menu {
        height: 90px;
    }
    
    .lista,
    .redes {
        display: none !important;
    }
    
    .menu_responsive {
        display: flex !important;
    }
    
    .logo {
        width: 150px;
    }
}

@media (max-width: 576px) {
    .menu {
        height: 80px;
    }
    
    .menu_responsive {
        width: 40px;
        height: 40px;
        margin-right: 15px;
    }
    
    .menu_responsive img {
        width: 100%;
    }
    
    .logo {
        width: 130px;
        margin-left: 15px;
    }
    
    .menu_desplegable .logo_desplegable {
        width: 150px;
        height: 60px;
    }
    
    .menu_desplegable .lista_desplegable li a {
        font-size: 18px;
    }
    
    .menu_desplegable .redes2 div {
        width: 25px;
        height: 25px;
    }
    
    .cerrar {
        top: 20px;
        right: 20px;
        width: 25px;
        height: 25px;
    }
}

/* =============================
   MEDIA QUERIES - CONTENIDO PRINCIPAL
============================= */

@media (max-width: 1399px) {
    .card-actualidad {
        max-width: 1200px;
    }
    
    .card-actualidad .row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1199px) {
    .principal {
        width: 95%;
    }
    
    .text-2 {
        font-size: 50px;
    }
    
    .text-span-2 {
        font-size: 40px;
    }
    
    .lista {
        width: 600px;
    }
    
    .card-actualidad .row {
        gap: 24px;
    }
}

@media (max-width: 991px) {
    .actualidad {
        padding-top: 120px;
    }
    
    .text-2 {
        font-size: 42px;
    }
    
    .text-span-2 {
        font-size: 36px;
    }
    
    .card-actualidad .row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card-act,
    .card-act-2 {
        width: 70%;
        margin: auto;
    }
    
    .footer_top {
        flex-direction: column;
        text-align: center;
        gap: 25px;
    }
    
    .footer_top_left {
        flex-direction: column;
    }
    
    .foot_txt1 {
        width: 100%;
        margin-left: 0;
        text-align: center;
    }
    
    .footer_top_right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .foot_txt1 {
        margin: 10px 0 0;
    }
    
    .foot_eslogan {
        width: 180px;
        height: 40px;
    }
}

@media (max-width: 767px) {
    .actualidad {
        padding-top: 100px;
    }
    
    .actualidad img {
        max-height: 280px;
        max-width: 350px;
    }
    
    .text-2 {
        font-size: 34px;
    }
    
    .text-span-2 {
        font-size: 28px;
    }
    
    .principal img {
        max-height: 280px;
    }
    
    .card-text p {
        font-size: 20px;
    }
    
    .card-actualidad .row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-act img,
    .card-act-2 img {
        height: 200px;
    }
    
    .card-text-2 p {
        font-size: 16px;
        -webkit-line-clamp: 4;
    }
    
    .leer-mas {
        flex-direction: row;
    }
    
    .btn-flecha {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .footer_mid {
        height: 40px;
    }
}

@media (max-width: 575px) {
    .actualidad {
        padding-top: 90px;
    }
    
    .actualidad img {
        max-height: 220px;
    }
    
    .text-2 {
        font-size: 28px;
    }
    
    .text-span-2 {
        font-size: 22px;
    }
    
    .principal img {
        max-height: 220px;
    }
    
    .texto-principal {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .card-text p {
        font-size: 18px;
    }
    
    .card-act img,
    .card-act-2 img {
        height: 180px;
    }
    
    .card-text-2 {
        padding: 14px;
    }
    
    .card-text-2 p {
        font-size: 15px;
    }
    
    .btn-flecha {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }
    
    .footer {
        padding: 25px 10px;
    }
    
    .foot_logo {
        width: 70px;
        height: 70px;
    }
    
    .foot_txt1 {
        font-size: 14px;
    }
    
    .redes1 a div {
        width: 24px;
        height: 24px;
    }
    
    .foot_eslogan {
        width: 160px;
        height: 35px;
    }
    
    .footer_bot p {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    /* Mantiene las mismas reglas que en 575px para estos elementos */
    .foot_logo {
        width: 70px;
        height: 70px;
    }
    
    .foot_txt1 {
        font-size: 14px;
    }
    
    .redes1 a div {
        width: 24px;
        height: 24px;
    }
    
    .foot_eslogan {
        width: 160px;
        height: 35px;
    }
}

@media (max-width: 375px) {
    .text-2 {
        font-size: 24px;
    }
    
    .text-span-2 {
        font-size: 18px;
    }
    
    .card-text p {
        font-size: 16px;
    }
    
    .card-act img,
    .card-act-2 img {
        height: 160px;
    }
    
    .btn-flecha {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}