/* ==========================
   3x3 LA PISTA
========================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background: url("fondo.png");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

html {
    scroll-behavior: smooth;
}

h2 {
    color: #1448b5;
}

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    background:
        linear-gradient(rgba(12, 40, 100, .75), rgba(12, 40, 100, .75)),
        url("fondo.png");
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 40px;
}

.logo {
    width: 190px;
    margin-bottom: 20px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, .45));
}

.hero h1 {
    color: white;
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero-subtitle {
    color: white;
    font-size: 1.3rem;
    margin-top: 15px;
    opacity: .95;
}

.hero-info {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-item {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(8px);
    color: white;
    padding: 18px 28px;
    border-radius: 18px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}

.hero-btn {
    display: inline-block;
    margin-top: 45px;
    background: #ffb000;
    color: #222;
    text-decoration: none;
    padding: 18px 40px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: .3s;
}

.hero-btn:hover {
    transform: translateY(-3px);
    background: #ffc933;
}

/* Contenido */
.logo,
.presentacion {
    position: relative;
    z-index: 2;
}

.logo:hover {
    transform: scale(1.05);
}

.presentacion {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

h1 {
    margin: 0;
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -2px;
}

.subtitle {
    margin-top: 18px;
    font-size: 1.25rem;
    opacity: .9;
    letter-spacing: .5px;
}

main {
    max-width: 1100px;
    margin: auto;
    padding: 70px 20px;
}


.card {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
    border-radius: 22px;
    margin-bottom: 35px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .12);
    transition: .35s;
    border: 1px solid rgba(255, 255, 255, .4);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .18);
}

.plazas {
    margin: 25px 0;
    padding: 15px;
    background: #eef5ff;
    border-radius: 12px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #1448b5;
}

.btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #1d4fb7, #103b93);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: .3s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
}

.btn:active {
    transform: scale(.98);
}

.info {
    background: white;
    border-radius: 22px;
    padding: 35px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .12);
}

.info h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #1448b5;
}

.datos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.dato {
    background: #f6f8fc;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: .3s;
}

.dato:hover {
    transform: translateY(-5px);
}

.dato h3 {
    color: #1448b5;
    margin-bottom: 12px;
}

.dato a {
    color: #1448b5;
    text-decoration: none;
    font-weight: 600;
}

.dato a:hover {
    text-decoration: underline;
}

.dato:nth-child(2) a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.pdf {
    display: inline-block;
    margin-top: 25px;
    padding: 15px 30px;
    background: #1448b5;
    color: white;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: .3s;
}

.pdf:hover {
    background: #b81d1d;
    transform: translateY(-2px);
}

footer {
    border-top: 4px solid #ffb000;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
    background: #1a47a0;
    color: white;
}


/* ==========================
      MODAL
========================== */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, .6);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.contenido {
    background: white;
    width: 100%;
    max-width: 450px;
    padding: 30px;
    border-radius: 18px;
    position: relative;
    animation: aparecer .25s;

}

form input {
    background: #fafafa;
    border: 2px solid #e6e6e6;
}

form input:focus {
    border-color: #1448b5;
    background: white;
}

@keyframes aparecer {
    from {
        transform: scale(.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.cerrar {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 32px;
    cursor: pointer;
}

form {
    margin-top: 20px;
}

form input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 16px;

}

form input:focus {
    outline: none;
    border-color: #15803d;
}

form button {
    width: 100%;
    padding: 15px;
    background: #15803d;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
}

form button:hover {
    background: #166534;
}

.card {

    animation: entrada .7s ease;

}

@keyframes entrada {
    from {
        opacity: 0;
        transform: translateY(35px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }

}


/* ==========================
      MÓVIL
========================== */

@media (max-width:768px) {

    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        height: auto;
        padding: 35px 20px;
        gap: 20px;
    }

    .logo {
        width: 120px;
    }

    h1 {
        font-size: 2.3rem;
        letter-spacing: 0;
    }

    .subtitle {
        font-size: 1rem;
        margin-top: 8px;
    }

    .card {
        padding: 22px;
        border-radius: 18px;
    }

    .card h2 {
        font-size: 1.5rem;
    }

    .plazas {
        font-size: 1rem;
    }

    .btn {
        font-size: 17px;
    }

    .contenido {
        width: 95%;
        padding: 22px;
    }

    form input {
        padding: 14px;
        font-size: 16px;
    }

    form button {
        padding: 15px;
    }

    footer {
        font-size: .9rem;
        padding: 18px;
    }
}
