﻿@charset "utf-8";

/* Importación de fuentes y estilos externos */
@import url(//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css);

/* ---------- Variables Globales ---------- */
:root {
    --color-texto-primario: wheat;
    --color-texto-secundario: sandybrown;
    --color-fondo: #000;
    --color-blanco: #fff;
    --color-primario: #FF5733;
    --color-secundario: sandybrown;
    --color-gris: #bbb;
    --font-family: 'Open Sans', sans-serif;
}

/* ---------- General ---------- */
html {
    background: url('../img/bg-portal.png') no-repeat center center / cover;
    height: 100%;
}

body {
    color: var(--color-texto-primario);
    font: 80%/1.5em var(--font-family);
    margin: 0;
}

* {
    box-sizing: border-box;
    margin: 0;
}

a {
    color: var(--color-texto-secundario) !important;
    text-decoration: none;
}

    a:hover {
        text-decoration: none !important;
    }

p {
    line-height: 1.5em;
    color: var(--color-texto-primario);
}

input {
    border: none !important;
    font-size: 16px !important;
    color: var(--color-fondo) !important;
    padding: 0 !important;
    -webkit-appearance: none !important;
}

/* ---------- Layout ---------- */
.main {
    width: 100%;
}

.container {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -40%);
}

/* ---------- Login ---------- */
#login {
    display: inline;
    border-top: 1px solid var(--color-blanco);
    text-align: center;
}

    #login form {
        width: 80%;
        margin: 20px auto;
    }

        #login form span.fa {
            display: inline-block;
            float: left;
            width: 40px;
            height: 40px;
            background: var(--color-blanco);
            color: var(--color-texto-secundario);
            text-align: center;
            font-size: 20px;
            line-height: 40px;
            border-radius: 4px 0 0 4px;
        }

        #login form input {
            height: 40px;
            margin-bottom: 1em;
            padding: 0 8px !important;
            border-radius: 0 4px 4px 0;
            width: calc(100% - 40px);
        }

            #login form input[type="submit"] {
                height: 50px;
                width: 100%;
                background: var(--color-fondo);
                font-weight: bold;
                text-transform: uppercase;
                border-radius: 4px;
                cursor: pointer;
                transition: background 0.3s ease-in-out;
                color: var(--color-texto-primario) !important;
                border-color: var(--color-texto-secundario);
            }

                #login form input[type="submit"]:hover {
                    background: var(--color-texto-secundario);
                    border-color: var(--color-texto-secundario);
                }

/* ---------- Logo ---------- */
.logo {
    font-size: 80px;
    text-align: center;
    padding: 16px;
}

/* ---------- Modal-Politica ---------- */
.modal {
    display: none;
    position: fixed;
    z-index: 600;
    left: 0;
    top: 20%;
    background-color: rgba(0, 0, 0, 0.80);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: transparent !important;
    border-radius: 8px;
    padding: 12% 40px;
    width: 80%;
    box-shadow: 0 8px 8px rgba(0,0,0,0.4);
    position: relative;
    animation: fadeIn 0.4s ease-in-out;
    z-index: 10000;
}

.modal-body {
    font-family: var(--font-family);
    font-size: 24px;
    color: #333;
    line-height: 1.6;
}

    .modal-body p {
        margin-bottom: 20px;
    }

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 80px;
    font-weight: bold;
    color: #888;
    cursor: pointer;
    transition: color 0.4s;
}

    .close:hover {
        color: #000;
    }

/* Modal Recovery */

.modal2 {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1050;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
}

.modal-content2 {
    background-color: transparent !important;
    padding: 20px 30px;
    border-radius: 8px;
    max-width: 500px;
    width: 80%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.modal-body2 {
    font-size: 16px;
    margin-bottom: 20px;
}

.modal-footer2 {
    display: flex;
    justify-content: center;
}

#btnAceptarModal {
    position: relative;
    z-index: 1000;
    width: 80%;
}

/* ---------- Media Query (Dispositivos Móviles) ---------- */
@media (max-width: 720px) {
    #login {
        width: 100%;
    }

    .logo img {
        width: 80% !important;
        text-align: center !important;
        padding: 0 !important;
    }

    .modal-body {
        font-size: 16px;
    }
}
