
/*
    --verde: #00A859;
    --rojo: #D62828;
    --blanco: #F5F5F5;
    --negro: #121212;
    --gris: #1E1E1E;
*/

/* --- HEADER --- */

header {
    background-color: #121212;
    padding: 10px 20px;
    border-bottom: 3px solid #F5F5F5;
    font-family: "Bungee", sans-serif;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: nowrap;
    gap: 20px;
}

.logo {
    flex-shrink: 0;
    height: auto;
    width: 150px;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
}

.buscador {
    flex: 1;
    display: flex;
    align-items: center;
    background: transparent;
    border: 2px solid #F5F5F5;
    border-radius: 50px;
    padding: 5px 20px;
    max-width: 400px;
    transition: 0.3s ease;
}

.buscador input {
    background: transparent;
    border: none;
    outline: none;
    color: #F5F5F5;
    padding: 8px;
    font-size: 14px;
    width: 100%;
}

.buscador input::placeholder {
    color: #aaa;
}

.buscador button {
    background: none;
    border: none;
    color: #F5F5F5;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s ease;
}

.buscador:hover {
    box-shadow: 0 0 15px #00A859;
}

.buscador button:hover {
    transform: scale(1.2);
}

/* --- MENU --- */
.menu {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 16px;
    transition: 0.3s ease;
}

.menu a {
    color: #F5F5F5;
    text-decoration: none;
    margin: 0 10px;
    transition: 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu a:hover {
    color: #00A859;
}

/* --- BOTON DE INICIO DE SESION --- */
.menu a.login-boton {
    font-size: 28px;
}

/* --- BODY --- */
body {
    font-family: "Bungee", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #F5F5F5;
    color: #121212;
    text-align: center;
}

/* --- VIDEO SUPERIOR ---- */
.video-background {
    position: relative;
    height: 70vh; /* Reducido de 100vh */
    min-height: 400px;
    overflow: hidden;
}

.video-background video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    transform: translate(-50%, -50%);
}

/* --- TEXTO --- */

.title {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    text-shadow:
        0 0 5px #00A859,
        0 0 10px #00A859,
        0 0 20px #00A859;
}

.title text {
    font-size: clamp(16px, 4vw, 20px);
    margin-bottom: 30px;
    line-height: 1.6;
}

.title-contenedor {
    color: #F5F5F5;
    position: absolute;
    top: 55%; /* Centrado dentro del video */
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    width: 90%;
    max-width: 600px;

    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.main-content {
    max-width: 900px;
    margin: 60px auto; /* Aumentado para dar aire */
    padding: 0 20px;
    position: relative;
}

@media (max-width: 768px) {
    .video-background {
        height: 40vh; /* Mucho más pequeño en móviles */
        min-height: 250px;
    }

    .title-contenedor {
        top: 40%;
        padding: 10px;
    }

    header {
        padding: 5px 10px;
    }

    header nav {
        flex-direction: column;
        gap: 10px;
    }

    .logo {
        width: 100px;
    }

    .buscador {
        order: 2;
        width: 100%;
        max-width: none;
        padding: 4px 15px;
    }

    .buscador input {
        font-size: 13px;
        padding: 5px;
    }

    .menu {
        order: 3;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu a {
        font-size: 13px;
        margin: 2px 5px;
    }

    .menu a.login-boton {
        font-size: 24px;
    }

    .title-contenedor {
        top: 60%;
        width: 95%;
        padding: 15px;
    }

    .title {
        font-size: clamp(24px, 10vw, 36px);
    }

    h2 {
        font-size: 24px;
        padding: 0 10px;
    }

    p {
        font-size: 15px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    .logo {
        width: 90px;
    }

    .buscador {
        padding: 2px 10px;
    }

    .buscador button {
        font-size: 16px;
        padding: 10px;
    }

    .menu a {
        font-size: 11px;
    }

    .menu a.login-boton {
        font-size: 20px;
    }

    .title {
        font-size: 22px;
    }

    .footer-contenedor {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .boton-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}


/* --- MAIN CONTENT --- */
.main-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.main-content section {
    margin-bottom: 60px;
}

h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

p {
    font-size: 18px;
    line-height: 1.6;
}
/* Background */
.footer {
    font-family: "Bungee", serif;
    background-color: #121212;
    padding: 60px 0 20px;
    position: relative;
    bottom: 0;
    left: 0;
    width: 100%;
    color: #F5F5F5;
}

/* Contenedor principal */
.footer-contenedor {
    width: 90%;
    max-width: 1200px;
    margin: auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
}

/* Columnas */
.footer-columna h4 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 16px;
}

.footer-columna a {
    display: block;
    text-decoration: none;
    color: #aaa;
    margin-bottom: 10px;
    font-size: 14px;
    transition: 0.3s ease;
}

.footer-columna a:hover {
    color: #00A859;
}

/* Redes sociales */
.iconos i {
    font-size: 18px;
    margin-right: 12px;
    transition: 0.3s ease;
}

.iconos i:hover {
    color: #00A859;
    transform: scale(1.2);
}

/* Línea inferior */
.footer-bottom {
    border-top: 1px solid #222;
    margin-top: 40px;
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
}

/* --- BOTÓN FLOTANTE --- */
.boton-top {
    position: fixed;
    bottom: 30px;
    right: 30px;

    width: 55px;
    height: 55px;

    background-color: #111;
    color: #00A859;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 20px;
    text-decoration: none;

    border-radius: 50%;
    border: 2px solid #00A859;

    box-shadow: 0 0 15px #00A859;
    transition: 0.3s ease;

    z-index: 1000;
}

/* --- HOVER --- */
.boton-top:hover {
    background-color: #00A859;
    color: #111;
    transform: scale(1.1);
}