/* Reset y configuración global */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #363636;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Navegación lateral fija */
.nav {
    background-color: #ff6600;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 200px;
    z-index: 1000;
}

.nav a,
.dropbtn {
    color: #fff;
    text-decoration: none;
    padding: 5px;
    margin: 0 5px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.nav a {
    text-align: left;
    padding: 10px 15px;
    border-bottom: 1px solid #444;
}

/* Contenedor de páginas (excepto login) */
.container {
    max-width: 1100px;
    width: 100%;
    position: relative;
    margin: 20px auto;
    padding: 20px;
    flex: 1;
    margin-left: 220px;
}

/* Estilos para login */
.container_login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    flex: 1;
}

.login-box {
    background: #1e1e1e;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    width: 350px;
    text-align: center;
    backdrop-filter: blur(10px);
}

.logo {
    width: 100px;
    margin-bottom: 20px;
}

.login-box h2 {
    margin-bottom: 30px;
    color: #fff;
}

/* Grupos de input */
.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #999;
}

.input-group input {
    width: 91%;
    padding: 10px 15px;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    border-color: #ff6600;
    outline: none;
}

/* Botón */
.btn {
    width: 100%;
    padding: 12px;
    background: #ff6600;
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn:hover {
    background: #ff0000;
}

/* Header */
.header {
    background-color: #ff6600;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Menú desplegable (Dropdown) */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown .dropbtn {
    cursor: pointer;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #444;
    min-width: 250px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
    z-index: 9999;
    flex-direction: column;
}

.dropdown-content a {
    color: #fff;
    padding: 4px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
    color: #333;
}

.dropdown:hover .dropdown-content {
    display: flex;
}

.dropdown:hover .dropbtn {
    background-color: #575757;
}

/* Título central */
.titulo {
    display: flex;
    justify-content: center;
    margin: 5px;
}

/* Footer */
.footer {
    background-color: #1E1E1E;
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
    margin-top: 20px;
    font-size: 15px;
}

/* Frases */
.phrases {
    margin-top: 40px;
    text-align: center;
    font-size: 24px;
    font-weight: bold;
    color: #ff6600;
}

.phrases p {
    margin: 20px 0;
}

.salir {
    font-size: 24px;
    margin-right: 3px;
}

/* Menú Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Enlaces de teléfono */
.telefono a {
    color: #00C851;
    text-decoration: none;
}

.telefono a:hover {
    text-decoration: underline;
}

/* Responsividad */
@media (max-width: 1300px) {
    .container {
        max-width: calc(90vw - 120px);
     }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: -770px; /* Oculto inicialmente */
        width: 100%;
        height: auto;
        flex-direction: column;
        background-color: #333;
        transition: left 0.3s ease-in-out;
        z-index: 999;
    }

    .nav.active {
        left: 0;
    }

    .nav a {
        padding: 15px 20px;
        border-bottom: 1px solid #444;
    }

    .container {
        margin-left: 0;
    }

    .hamburger {
        display: flex;
        position: absolute;
        top: 40px;
        right: 40px;
    }
    .container {
        max-width: 100%;
     }
}

@media (max-width: 800px) {
    .phrases {
        margin-top: 30px;
        font-size: 17px;
    }
    .phrases p {
        margin: 10px 0;
    }
    .footer {
        padding: 5px 0;
        margin-top: 15px;
    }
    .footer p {
        font-size: 12px;
        margin: 5px;
    }
}

@media (max-width: 600px) {
    .phrases {
        margin-top: 30px;
        font-size: 17px;
    }
    .phrases p {
        margin: 10px 0;
    }
    .footer {
        padding: 5px 0;
        margin-top: 15px;
    }
    .footer p {
        font-size: 10px;
        margin: 2px;
    }
}
