/* ============================= */
/* FOTOS CARRERAS - EVENTOS      */
/* ============================= */


/* ================= BODY ================= */
html, body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1a1a1a, #2b2b2b);
    color: white;
    display: flex;
    flex-direction: column;
}


/* ================= HEADER ================= */
header {
    background: rgba(255, 0, 0, 0.9);
    padding: 20px 5%;
    text-align: center;
    box-shadow: 0 0 20px red;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    text-shadow: 0 0 10px #000;
}

header p {
    font-size: 1.2rem;
    font-weight: 300;
}


/* ================= NAVBAR ================= */
nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
}

nav li {
    margin: 0 15px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
}

nav a:hover {
    color: #ff7f7f;
}


/* ================= HERO ================= */
.hero {
    height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    color: #ff7f7f;
    text-shadow: 0 0 12px black;
}


/* ================= ACTIVITIES GRID ================= */
.activities {
    padding: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}


/* ================= TARJETA BASE ================= */
.activity {
    border-radius: 14px;
    overflow: hidden;
}


/* ================= CARRERA CARD ================= */
.activity.carrera {
    aspect-ratio: 16 / 9;
    position: relative;
    width: 100%;
}


/* ================= IMAGEN ================= */
.activity.carrera img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: brightness(0.55);
    transition: transform 0.6s ease, filter 0.6s ease;
}


/* ================= HOVER IMAGEN ================= */
.activity.carrera:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}


/* ================= CAPA INFO ================= */
.carrera-info {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.25),
        rgba(0,0,0,0.85)
    );
}


/* ================= TEXTO ================= */
.carrera-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: #ff7f7f;
    text-shadow: 0 0 12px black;
}

.carrera-info p {
    font-size: 0.95rem;
    color: #ddd;
    max-width: 400px;
    margin-bottom: 18px;
}


/* ================= BOTÓN ================= */
.btn-galeria {
    text-decoration: none;
    padding: 12px 26px;
    border-radius: 30px;
    font-weight: bold;
    color: white;
    background: linear-gradient(145deg, #ff3b3b, #c40000);
    box-shadow: 0 0 15px rgba(255, 59, 59, 0.8);
    transition: all 0.3s ease;
}

.btn-galeria:hover {
    background: linear-gradient(145deg, #ff7f7f, #ff3b3b);
    box-shadow: 0 0 25px rgba(255, 59, 59, 1);
    transform: translateY(-2px);
}


/* ================= FOOTER ================= */
footer {
    background: #111;
    text-align: center;
    padding: 20px;
    box-shadow: 0 -2px 10px red;
    margin-top: auto;
}


/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav a {
        font-size: 0.8rem;
    }

    .hero h2 {
        font-size: 1.3rem;
    }

    .activities {
        padding: 20px;
        gap: 20px;
    }
}
/* ================= MOBILE CARDS MÁS GRANDES ================= */
@media (max-width: 768px) {

    /* Más espacio entre tarjetas */
    .activities {
        padding: 25px 15px;
        gap: 30px;
    }

    /* Tarjeta más alta */
    .activity.carrera {
        aspect-ratio: 4 / 5;   /* antes 16/9 */
    }

    /* Texto más grande */
    .carrera-info h3 {
        font-size: 1.6rem;
    }

    .carrera-info p {
        font-size: 1rem;
        line-height: 1.4;
    }

    /* Botón más grande y cómodo */
    .btn-galeria {
        padding: 14px 32px;
        font-size: 1rem;
    }
}
