/* ------------------------------
   ESTILOS GENERALES
------------------------------ */
body {
    font-family: "Roboto", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #adc4d7; /* Gris azulado */
    color: #333;
    box-sizing: border-box;
}

p {
    font-family: "Roboto", sans-serif;
}

/* ------------------------------
   HEADER SUPERIOR – LOGO + TÍTULO
------------------------------ */
.top-header {
    background-color: #5b89ae; /* Gruta azul */
    color: white;
    text-align: center;
    padding: 25px 0;
}

.logo-container {
    position: absolute;
    left: 20px; 
}


.logo {
    height: 60px;
}

 .header-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center; /* Centra el título */
}

h1 { 
    font-family: "Rye", serif;
    font-weight: 150;
    margin: 0; 
}


/* MENÚ A LA DERECHA */
/* CONTENEDOR DEL MENÚ */
.right-menu {
    position: absolute;
    right: 20px;
    display: flex;
    align-items: center;
}

/* ICONO */
.menu-icon {
    font-size: 32px;
    color: white;
    cursor: pointer;
    text-transform: none;
    letter-spacing: normal; 
}

/* DROPDOWN OCULTO */
.dropdown {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    padding: 10px;
    min-width: 150px;
    z-index: 100;
}

/* LINKS DEL DROPDOWN */
.dropdown a,
.dropdown button.logout-btn {
    display: block;
    padding: 10px 12px;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    width: 100%;
    text-align: left;
    border: none;
    background: none;
    cursor: pointer;
}

.dropdown a:hover,
.dropdown button.logout-btn:hover {
    background-color: #f3f3f3;
    color: #cb8e66;
}

.right-menu a:hover {
    color: #cb8e66; /* lirio tigre */
}



.btn-volver {
    display: inline-block;
    margin-top: 15px;
    padding: 8px 14px;
    background: #4a6fa5;
    color: white;
    text-decoration: none;
    border-radius: 6px;
}


/* ------------------------------
   BARRA para cuenta de inicio de sesion
------------------------------ */
/* === CONTENEDOR GENERAL === */
.cuenta-container { 
    background: white;
    padding: 25px;
    border-radius: 12px;
    max-width: 550px;
    margin: 25px auto;
    border-top: 6px solid #cb8e66; /* Lirio tigre */
    border-bottom: 6px solid #cb8e66; /* Lirio tigre */
    box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.cuenta-container h2 {
    margin-bottom: 20px;
    font-size: 26px;
    text-align: center;
    color: #333;
}

/* === FORMULARIO === */
.cuenta-container form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cuenta-container label {
    font-weight: bold;
    color: #444;
}

.cuenta-container input {
    width: 100%;
    padding: 10px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    font-size: 15px;
    background: #fafafa;
    transition: 0.2s;
}

.cuenta-container input:focus {
    background: white;
    border-color: #5b89ae; /* Gruta azul */
    outline: none;
    box-shadow: 0 0 4px rgba(91, 137, 174, 0.4);
}

/* === BOTÓN GUARDAR === */
.btn-guardar {
    background: #5b89ae; /* Gruta azul */
    color: white;
    font-size: 16px;
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

.btn-guardar:hover {
    background: #4a6f8d;
}

/* === BOTÓN VOLVER === */
.btn-volver {
    display: inline-block;
    margin-top: 20px;
    padding: 8px 14px;
    background: #a68e45; /* Lirio dorado */
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
}

.btn-volver:hover {
    background: #8f7a3a;
}

/* === MENSAJE DE ÉXITO === */
.alert-success {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 15px;
    border-left: 5px solid #71d38c;
}


/* ------------------------------
   BARRA INFERIOR DE CATEGORÍAS 
------------------------------ */
.category-bar {
    background-color: #d3d2c7; /* Verde salvia */
    padding: 12px 0;
    border-bottom: 3px solid #cb8e66; /* Lirio tigre */
}

.category-bar nav {
    margin: 0;
}

.category-bar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 40px;
    justify-content: center;
}

.category-bar li {
    display: inline-block;
}

.category-bar a {
    color: #333;
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    transition: color .3s ease;
}

.category-bar a:hover {
    color: #cb8e66; /* Lirio tigre */
}

.category-bar .active {
    color: #cb8e66;
}

/* ------------------------------
   PIE DE PÁGINA
------------------------------ */
footer {
    text-align: center;
    padding: 15px;
    background-color: #5b89ae; 
    color: white;
    width: 100%;
}

footer a {
    color: white;
    text-decoration: none;
}

* {
    box-sizing: border-box;

}


/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 768px) {

    /* Header superior */
    .logo {
        width: 80px;
        height: auto;
    }

    h1 {
        font-size: 22px;
    }

    /* Barra inferior */
    .category-bar ul {
        flex-wrap: wrap;
        gap: 20px;
    }

    .category-bar a {
        font-size: 15px;
    }

    footer {
        font-size: 14px;
    }
}
