/* User profile menu */
/* Contenedor de menú */
nav {
    margin: 2rem 0;
    padding: 0;
}

/* Lista con Bootstrap .nav puede estar en linea o columna: forzamos vertical */
nav ul.nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0; /* elimina indentación */
    list-style: none;
}

/* Ítems del menú */
nav ul.nav li.nav-item {
    margin: 0;
}

/* Enlaces estilo botón */
nav ul.nav li.nav-item a.nav-link {
    display: block;
    padding: 0.5rem 1.25rem;
    border-radius: 5px;
    color: #2c3e50;
    font-weight: 600;
    background-color: #f7f9fa;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav ul.nav li.nav-item a.nav-link:hover {
    background-color: #3498db;
    color: white;
    text-decoration: none;
}

/* Enlace activo destacado */
nav ul.nav li.nav-item a.nav-link.active {
    background-color: #2980b9;
    color: white;
    cursor: default;
    box-shadow: 0 0 6px rgba(41, 128, 185, 0.6);
}
/* END User profile menu */

/* User profile page */
.user-profile-page {
    width: 100%;
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 0 12px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.user-profile-page h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
}

.img-profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 1/1;
    overflow: hidden;
}

.user-profile-page .user-profile-photo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.user-profile-page .user-profile-photo img {
    border-radius: 50%;
    border: 4px solid #00d184;
    max-width: 150px;
    width: 100%;
    height: auto;
    object-fit: cover;
    box-shadow: 0 2px 6px rgba(52, 152, 219, 0.3);
}

.user-profile-page .acf-form {
    margin-top: 1rem;
}

.user-profile-page .acf-form p {
    margin-bottom: 1.2rem;
}

.user-profile-page .acf-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #34495e;
}

.user-profile-page .acf-fields>.acf-field {
    padding: 16px 0;
}

.user-profile-page .acf-form input[type="text"],
.user-profile-page .acf-form input[type="password"],
.user-profile-page .acf-form input[type="email"],
.user-profile-page .acf-form input[type="file"],
.user-profile-page .acf-form select,
.user-profile-page .acf-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.user-profile-page .acf-form input[type="text"]:focus,
.user-profile-page .acf-form input[type="password"]:focus,
.user-profile-page .acf-form input[type="email"]:focus,
.user-profile-page .acf-form select:focus,
.user-profile-page .acf-form textarea:focus {
    border-color: #00d184;
    outline: none;
}

.user-profile-page .acf-form button[type="submit"], .user-profile-page .acf-form input[type="submit"] {
    background-color: #00d184;
    color: white;
    border: none;
    padding: 0.7rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    background-color: #00d184;
}

.user-profile-page .acf-form button[type="submit"]:hover {
    background-color: #2980b9;
}

.user-profile-page .acf-form-submit {
    text-align: center;
    margin-top: .5rem;
}

.logout-button-wrapper {
    text-align: center;
}

button.logout-button,
a.logout-button {
    display: inline-block;
    background-color: #e74c3c;
    color: white !important;
    text-decoration: none;
    padding: 0.6rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    transition: background-color 0.3s ease;
    margin-top: 1.5rem;
}

button.logout-button:hover,
a.logout-button:hover {
    background-color: #c0392b;
}

/* Responsive */
@media (max-width: 480px) {
    .user-profile-page {
        padding: 1rem;
        margin: 1rem;
    }
}
/* END User profile page */

/* Login page */
.user-login-page {
    width: 100%;
    max-width: 400px;
    margin: 3rem auto;
    padding: 2rem 2.5rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

.user-login-page h1 {
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 700;
    color: #2c3e50;
}

.login-error {
    background-color: #e74c3c;
    color: #fff;
    padding: 0.7rem 1rem;
    margin-bottom: 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
}

.user-login-page form p {
    margin-bottom: 1.2rem;
}

.user-login-page label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
    color: #34495e;
}

.user-login-page input[type="text"],
.user-login-page input[type="password"] {
    width: 100%;
    padding: 0.6rem 0.9rem;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.user-login-page input[type="text"]:focus,
.user-login-page input[type="password"]:focus {
    border-color: #00d184;
    outline: none;
}

.user-login-page input[type="checkbox"] {
    margin-right: 0.5rem;
    vertical-align: middle;
}

.user-login-page button[type="submit"] {
    width: 100%;
    background-color: #00d184;
    border: none;
    padding: 0.75rem;
    color: white;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.user-login-page button[type="submit"]:hover {
    background-color: #2980b9;
}

.user-login-page a {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #2980b9;
    text-decoration: none;
    font-weight: 600;
}

.user-login-page a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .user-login-page {
        margin: 1.5rem 1rem;
        padding: 1.5rem 1.5rem;
    }

    .user-login-page button[type="submit"] {
        font-size: 1rem;
    }
}
/* END Login page */
