/* Paleta de colores */
:root {
    --vibrant-pink: #12345b;
    --alt-pink: #1aa9d5;
    --fresh-green: #4CAF50;
    --alt-green: #81C784;
    --soft-cream: #FDFDFD;
    --dark-charcoal: #2E2E2E;
}

/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--soft-cream);
    color: var(--dark-charcoal);
    line-height: 1.6;
}

/* ===== CABECERA (Logo y Título) ===== */ 
.header-logo {
    background-color: var(--fresh-green);
    color: var(--soft-cream);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-img {
    height: 50px;
    width: auto;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

/* ===== MAIN Y SECCIONES (Inicio) ===== */
main {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    text-align: center;
    color: var(--vibrant-pink);
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.nav-opciones {
    margin-top: 2rem;
}

.opciones {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
}

article {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    flex: 1 1 300px;
    max-width: 350px;
    text-align: center;
    border-top: 4px solid var(--alt-pink);
    transition: transform 0.3s ease;
}

article:hover {
    transform: translateY(-5px);
}

article h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

article h3 a {
    color: var(--vibrant-pink);
    text-decoration: none;
}

article h3 a:hover {
    color: var(--alt-pink);
    text-decoration: underline;
}

article p {
    color: var(--dark-charcoal);
    font-size: 1rem;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--dark-charcoal);
    color: var(--soft-cream);
    text-align: center;
    padding: 1.5rem;
    margin-top: auto; 
}

.correo-contacto {
    color: var(--alt-pink);
    text-decoration: none;
    font-weight: bold;
}

.correo-contacto:hover {
    text-decoration: underline;
    color: var(--soft-cream);
}

/* =========================================
   MODALES (Login / Logout / General)
   ========================================= */
.oculto {
    display: none !important;
}

.modal {
    display: block; 
    position: fixed; 
    z-index: 1000; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.5); 
}

.modal-contenido {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 90%; 
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    position: relative;
    font-family: Arial, sans-serif;
}

.cerrar {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.cerrar:hover,
.cerrar:focus {
    color: var(--vibrant-pink);
    text-decoration: none;
}

/* --- Formularios dentro de Modales --- */
#tituloLogin {
    color: var(--vibrant-pink);
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
}

#formLogin label, #formRecuperar p {
    font-weight: bold;
    color: var(--dark-charcoal);
    font-size: 14px;
}

#formLogin input[type="text"],
#formLogin input[type="password"],
#formRecuperar input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    font-size: 14px;
}

#formLogin button, #formRecuperar button {
    width: 100%;
    background-color: var(--fresh-green);
    color: white;
    padding: 12px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

#formLogin button:hover, #formRecuperar button:hover {
    background-color: var(--alt-green);
}

#feedback, #feedback2 {
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
    color: var(--dark-charcoal);
}

/* Enlaces modales */
.link-forgot {
    display: inline-block;
    margin-top: 8px;
    color: var(--vibrant-pink);
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    width: 100%;
}

.link-forgot:hover {
    text-decoration: underline;
    color: #c2185b;
}

/* --- Logout --- */
#contenedor-logout h2 {
    color: var(--vibrant-pink);
    font-size: 1.6em;
    margin-bottom: 10px;
    text-align: center;
}

#comentario {
    font-size: 1em;
    color: var(--dark-charcoal);
    text-align: center;
    margin-bottom: 20px;
}

.opciones-logout {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.opcion-logout {
    background-color: var(--fresh-green);
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    width: 100%;
    text-align: center;
    transition: background-color 0.3s;
}

.opcion-logout:hover {
    background-color: var(--alt-green);
}

#opcion-logout-no {
    background-color: #d9534f; 
}

#opcion-logout-no:hover {
    background-color: #c9302c;
}
/* 📱 Responsive ajustes */
@media screen and (max-width: 480px) {
  .modal-contenido {
    padding: 20px;
    border-radius: 10px;
  }

  .cerrar {
    font-size: 24px;
  }

  #tituloLogin {
    font-size: 1.5em;
  }

  .modal-contenido input,
  .modal-contenido button[type="submit"],
  .opcion-logout {
    font-size: 1em;
    padding: 10px;
  }

  .link-forgot {
    font-size: 13px;
  }
}