/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;

}

/* ================= NAVBAR ================= */
.navbar {
    position: relative;
    top: 0;
    width: 100%;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
    z-index: 10;
    overflow: visible;
}

.logo img {
    height: 60px;
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.navbar a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
}

.navbar a:hover {
    color: #c5a46d;
}

/* ===== DROPDOWN CONVOCATORIAS ===== */
.convocatoria-dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0; /* 👈 clave si está del lado derecho */

    background: #111;
    min-width: 220px;
    border: 1px solid #d4af37;
    border-radius: 10px;

    z-index: 9999;
}

.dropdown-btn {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 14px;
}

.dropdown-content a {
    display: block;
    padding: 12px;
    color: white;
    text-decoration: none;
}

.dropdown-content a:hover {
     background: #d4af37;
    color: black;
}

.convocatoria-dropdown:hover .dropdown-content {
    display: block;
}

/* ================= HERO ================= */
.hero {
    height: 100vh;
    background: url("../IMG/fondo.jpeg") center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 0 80px;
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.6);

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 60px;
    font-family: 'Playfair Display', serif;
}

.hero-content span {
    color: #c5a46d;
}

.hero-content p {
    margin-top: 15px;
    color: #ccc;
}

/* ================= SECCIONES ================= */
section {
    padding: 100px 80px;
}

h2 {
    font-family: 'Playfair Display', serif;
    color: #c5a46d;
    margin-bottom: 30px;
}

/* ================= GRID ================= */
.ediciones-container,
.articulos-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

/* ================= TARJETAS ================= */
.edicion, .articulo {
    background: #111;
    border-radius: 15px;
    overflow: hidden;
    max-width: 200px;
    margin: auto;
    transition: 0.3s;
}

.edicion a,
.articulo a {
    display: block;
    color: #fff;
    text-decoration: none;
}

.edicion a:visited,
.articulo a:visited {
    color: #fff;
}

/* IMÁGENES */
.edicion img,
.articulo img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #000;
    padding: 5px;
}

/* TEXTO */
.edicion h3,
.articulo h3 {
    color: #fff;
    font-size: 14px;
    padding: 10px 10px 0;
}

.edicion p,
.articulo p {
    color: #aaa;
    font-size: 12px;
    padding: 0 10px 10px;
}

/* HOVER */
.edicion:hover,
.articulo:hover {
    transform: translateY(-5px);
}

.edicion:hover h3,
.articulo:hover h3 {
    color: #c5a46d;
}

/* ================= BOTÓN ================= */
.ver-todas {
    text-align: center;
    margin-top: 30px;
}

.btn-ver-todas {
    background: #c5a46d;
    color: #000;
    padding: 10px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
}

/* ================= SOBRE NOSOTROS ================= */
.cards-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    justify-items: center;
}

.card-info {
    background: #111;
    border-radius: 15px;
    padding: 20px;
    border: 2px solid #d4af37;
    text-align: center;
    max-width: 280px;
    width: 100%;
}

.card-info img {
    width: 100%;
    max-width: 140px;
    height: 140px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

/* ===== VALORES DESPLEGABLE ===== */
.card {
    background: #111;
    margin: 10px 0;
    padding: 15px;
    border-radius: 10px;
    cursor: pointer;
}

.card h3 {
    color: #c5a46d;
}

.card .contenido {
    display: none;
    margin-top: 10px;
    color: #ccc;
}

/* ================= CONTACTO ================= */
/* ===== CONTACTO AISLADO ===== */

#contacto {
    max-width: 1100px;
    margin: auto;
    padding: 100px 20px;
}

#contacto .contacto-container {
    display: flex;
    gap: 60px;
    align-items: center;
}

#contacto .contacto-texto {
    flex: 1;
    color: #bbb;
}

#contacto .contacto-texto .intro {
    font-size: 20px;
    color: #fff;
    margin-bottom: 15px;
}

#contacto .contacto-texto .cta {
    margin-top: 20px;
    color: #c5a46d;
}

/* 🔒 TARJETA SOLO AQUÍ */
#contacto .contacto-card {
    flex: 1;
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid rgba(197,164,109,0.5);
    padding: 30px;
    border-radius: 15px;

    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: 0.3s;
}

#contacto .contacto-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(197,164,109,0.2);
}

/* RESPONSIVE SOLO CONTACTO */
@media (max-width: 768px) {
    #contacto .contacto-container {
        flex-direction: column;
    }
}
/* ================= REDES ================= */
/* CONTENEDOR */
.redes-sociales {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);

    display: flex;
    flex-direction: column;
    gap: 15px;

    z-index: 999;
}

/* BOTONES */
.btn-red {
    width: 55px;
    height: 55px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;
    text-decoration: none;

    color: white;
    font-size: 20px;
    font-weight: bold;

    box-shadow: 0 6px 15px rgba(0,0,0,0.3);

    transition: all 0.3s ease;
}

/* EFECTO HOVER */
.btn-red:hover {
    transform: scale(1.15) translateX(-5px);
}

/* COLORES */
.facebook {
    background: #1877f2;
}

.instagram {
    background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af, #515bd4);
}

.x-twitter {
    background: #000;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1200px) {
    .ediciones-container,
    .articulos-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {

    .navbar {
        padding: 10px 15px;
    }

    .navbar nav {
        gap: 10px;
        flex-wrap: wrap;
    }

    .hero {
        min-height: 100vh;
        height: auto;
        display: flex;
        align-items: flex-start;
        padding: 140px 20px 60px;
    }

    .hero-content h1 {
        font-size: 32px;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 14px;
    }

    section {
        padding: 60px 20px;
    }

    .ediciones-container,
    .articulos-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .edicion, .articulo {
        max-width: 100%;
    }


    .redes-sociales {
        display: none;
    }
}

@media (max-width: 480px) {
    .ediciones-container,
    .articulos-container {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 26px;
    }
}