/* Variables y Estilos Generales */
:root {
    --primary-color: #000080;
    --secondary-color: #2980b9;
    --background-color: #f5f5f5;
    --text-color: #333;
    --header-bg: #ffffff;
    --footer-bg: var(--primary-color);
}

body {
    /* Propiedades de estilo ya existentes */
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;

    /* Propiedades para el fondo de pantalla */
    background-image: url("bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.container {
    width: 90%;
    max-width: 960px;
    margin: 0 auto;
}

header {
    background-color: var(--header-bg);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
}

.logo-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.logo {
    max-height: 60px;
    width: auto;
}

.header-icons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.header-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}
.header-icon:hover {
    transform: scale(1.1);
}

h1 {
    font-size: 2rem;
    margin: 0;
    color: var(--primary-color);
    font-family: 'Montserrat', sans-serif;
}

.slogan {
    font-size: 0.8rem;
    margin-top: 5px;
    color: #666;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 0;
    text-align: center;
}

.main-content, .login-box, .menu-box {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.savings-quote {
    font-style: italic;
    font-size: 1.1rem;
    margin: 1.5rem 0;
    color: #555;
}

input {
    margin: 10px 0;
    padding: 12px;
    width: 100%;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

.boton {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
}
.boton:hover {
    background-color: #3498db;
}

button {
    background: var(--primary-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 250px;
    font-size: 1rem;
    box-sizing: border-box;
}

button:hover {
    background: #0b7dda;
}

.btn-cerrar-sesion {
    background: #c0392b;
    margin-top: 20px;
}
.btn-cerrar-sesion:hover {
    background: #e74c3c;
}

footer {
    background-color: var(--footer-bg);
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* Responsive */
@media (max-width: 600px) {
    .header-content {
        flex-direction: column;
        position: relative;
    }
    .logo {
        position: static;
        margin-bottom: 10px;
    }
    .header-icons {
        position: static;
        margin-top: 10px;
    }
}

/* Estilos de Registro de Socio - ANTES EN ETIQUETA <style> */
.form-container {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    box-sizing: border-box;
}
.form-container input, .form-container select, .form-container button {
    width: 100%;
    margin-bottom: 15px;
    padding: 10px;
    box-sizing: border-box;
}
h2, h3, h4 {
    color: #3F51B5;
    font-family: Arial, sans-serif;
}
label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}
#cuotasInfo table, #cuotasInfo th, #cuotasInfo td {
    border: 1px solid #ccc;
    border-collapse: collapse;
    padding: 8px;
    text-align: center;
}

/* esto es del socio */

/* ============================
   ESTILOS DE REGISTRO DE SOCIO
   ============================ */

.form-container {
    width: 90%;
    max-width: 600px;
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin: 20px auto;
    box-sizing: border-box;
}

.form-container h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.form-container label {
    display: block;
    margin: 10px 0 5px;
    font-weight: bold;
}

.form-container input,
.form-container select,
.form-container button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Botón dentro del formulario */
.form-container button {
    background: var(--primary-color);
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}

.form-container button:hover {
    background: var(--secondary-color);
}

/* ============================
   POPUP
   ============================ */
.popup-container {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0; top: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.5);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    position: relative;
    width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 10px; right: 10px;
    font-size: 22px;
    font-weight: bold;
    cursor: pointer;
    color: #888;
}
.close-btn:hover {
    color: #000;
}
