﻿/* Estilos generales */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

    /* Estilos para la página Index */
    body.index-page {
        background-color: #f0f0f0;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh;
    }

.login-container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.login-input {
    width: 250px;
    padding: 8px 10px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.login-btn {
    background-color: green;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 14px;
}

    .login-btn:hover {
        background-color: darkgreen;
    }

.error-message {
    color: red;
    margin-top: 10px;
    font-size: 14px;
}

/* Estilos para la página InfoAsociado */
body.info-page {
    background-color: #f9f9f9;
    padding: 20px;
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.section-title {
    color: #2c3e50;
    border-bottom: 2px solid green; /*Color de la linea del titulo*/
    padding-bottom: 10px;
    margin-top: 0;
}

.photo-frame {
    width: 150px;
    height: 180px;
    border: 2px solid #ddd;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.payment-status {
    text-align: center;
    padding: 15px;
    border-radius: 6px;
    margin: 15px 0;
}

.up-to-date {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* ===== INFORMACIÓN CON MÁS ESPACIO ===== */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 20px; /* ↑ Aumentado de 18px a 20px */
    margin-top: 15px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 18px 20px; /* ↑ Aumentado padding */
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid green;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.info-label {
    font-weight: bold;
    color: #555;
    margin-bottom: 12px; /* ↑ Aumentado de 8px a 12px */
    font-size: 14px;
}

.info-value {
    padding: 12px 14px; /* ↑ Aumentado padding interno */
    background-color: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
    font-size: 15px;
    min-height: 20px;
}

.dependents-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

    .dependents-table th,
    .dependents-table td {
        padding: 12px;
        text-align: left;
        border: 1px solid #ddd;
    }

    .dependents-table th {
        background-color: green;
        color: white;
    }

    .dependents-table tr:nth-child(even) {
        background-color: #f2f2f2;
    }

.back-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: green;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    text-align: center;
}

    .back-link:hover {
        background-color: darkgreen;
    }

.center {
    text-align: center;
}

.no-data {
    text-align: center;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 4px;
    font-style: italic;
}

/* Estilos para estado de pagos */
.pago-al-dia {
    background-color: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.pago-pendiente {
    background-color: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.estado-pago {
    text-align: center;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: bold;
    font-size: 18px;
}

.detalle-pendiente {
    font-weight: bold;
    font-size: 16px;
    margin: 10px 0;
    padding: 8px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

.error-info {
    font-size: 12px;
    color: #856404;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 5px 10px;
    border-radius: 4px;
    margin-top: 10px;
    display: inline-block;
}

/* Estilos para la foto del asociado */
.photo-container {
    width: 150px;
    height: 180px;
    border: 2px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Centrado horizontal */
}

    /* QUITAR el hover y zoom */
    .photo-container:hover {
        transform: none; /* Eliminar transformación */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Mantener sombra original */
    }

.asociado-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

    /* QUITAR el hover en la foto */
    .asociado-photo:hover {
        transform: none; /* Sin zoom */
    }

/* Placeholder cuando no hay foto */
.photo-placeholder {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    margin-bottom: 10px;
    opacity: 0.6;
}

.placeholder-text {
    font-weight: 600;
    margin: 5px 0;
    font-size: 14px;
}

.placeholder-subtext {
    font-size: 12px;
    margin: 0;
    opacity: 0.7;
}

.photo-info {
    font-size: 12px;
    color: #6c757d;
    margin-top: 8px;
    font-style: italic;
    text-align: center; /* Centrado */
}

/* Efectos de carga */
.asociado-photo[src] {
    opacity: 0;
    animation: fadeIn 0.5s ease-in-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .photo-container {
        width: 130px;
        height: 160px;
    }

    .placeholder-text {
        font-size: 12px;
    }

    .placeholder-icon svg {
        width: 30px;
        height: 30px;
    }
}

/* QUITAR completamente los estados de hover */
.photo-placeholder:hover {
    background-color: transparent; /* Sin cambio de fondo */
}





/* LOGIN*/
/* Estilos para página de login */
/* Estilos para página de login */
body.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    text-align: center;
    padding: 20px;
}

.login-header {
    color: #2c3e50;
    margin-bottom: 30px;
}

    .login-header h1 {
        margin: 0;
        font-size: 2.5rem;
        font-weight: 600;
        text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    }

    .login-header p {
        margin: 10px 0 0 0;
        opacity: 0.9;
        font-size: 1.1rem;
    }

.login-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid #e1e5e9;
}

    .login-card h2 {
        margin: 0 0 30px 0;
        color: #2c3e50;
        font-weight: 600;
        font-size: 1.8rem;
    }

.form-group {
    margin-bottom: 25px;
    text-align: left;
}

    .form-group label {
        display: block;
        margin-bottom: 8px;
        color: #495057;
        font-weight: 500;
        font-size: 14px;
    }

.form-control {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background-color: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #28a745;
        background-color: white;
        box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

    .btn-login:hover {
        background: linear-gradient(135deg, #218838, #1ea085);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Estilos para logout en otras páginas */
.logout-section {
    text-align: right;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-left: 15px;
}

    .btn-logout:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

.user-info {
    color: #495057;
    font-weight: 500;
}

/* Responsive para login */
@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }

    .login-card {
        padding: 30px 20px;
    }

    .login-header h1 {
        font-size: 2rem;
    }
}



/*BOTON DE DESLOGEAR*/
/* Estilos para la sección de logout */


/* ===== ESTILOS LOGOUT - OPÇÃO 3 CORREGIDA ===== */
.logout-section {
    position: relative;
    background: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28a745;
    margin: 0 auto 20px auto;
    text-align: right;
    max-width: 400px; /* ← Mismo ancho que el login-container del Index */
    width: 100%;
    box-sizing: border-box;
}

/* Para InfoAsociado - más ancho como las secciones */
body.info-page .logout-section {
    max-width: 1000px; /* ← Mismo ancho que info-container */
}

/* Para Index - mismo ancho que el formulario */
body.index-page .logout-section {
    max-width: 400px; /* ← Mismo ancho que login-container */
}

.user-info {
    color: #495057;
    font-weight: 500;
    font-size: 14px;
    margin-right: 15px;
}

.btn-logout {
    background: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

    .btn-logout:hover {
        background: #c82333;
        transform: translateY(-1px);
    }

/* Ocultar en página de login */
body.login-page .logout-section {
    display: none;
}

/* ===== ESTILOS EXISTENTES ===== */
body.index-page {
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column; /* ← Cambiar a columna para alinear verticalmente */
    justify-content: flex-start; /* ← Alinear al inicio */
    align-items: center;
    height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.login-container {
    text-align: center;
    background-color: white;
    padding: 40px;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    box-sizing: border-box;
}

body.info-page {
    background-color: #f9f9f9;
    padding: 20px;
}

.info-container {
    max-width: 1000px;
    margin: 0 auto;
}
