/* =========================================
   CLUB NÁUTICO SALOBREÑA - ESTILOS GLOBALES
   ========================================= */

/* --- RESET Y VARIABLES --- */
:root {
    --color-primary: #003366;
    --color-secondary: #0066cc;
    --color-accent: #ff9900;
    --color-text: #333333;
    --color-text-light: #666666;
    --color-bg-light: #f4f7f6;
    --color-white: #ffffff;
    --color-success: #28a745;
    --color-danger: #dc3545;
    --color-warning: #ffc107;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.15);
    --radius-sm: 5px;
    --radius-md: 8px;
    --radius-lg: 15px;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-white);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--color-bg-light);
}

.text-center {
    text-align: center;
}

.section-title {
    text-align: center;
    color: var(--color-primary);
    margin-bottom: 40px;
    font-size: 2rem;
}

/* --- HEADER Y NAVEGACIÓN --- */
.main-header {
    background: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-area h1 {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text);
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-secondary);
}

.btn-acceso {
    background: var(--color-primary);
    color: var(--color-white) !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
}

.btn-acceso:hover {
    background: var(--color-secondary);
}

.btn-logout {
    background: var(--color-danger);
    color: var(--color-white) !important;
    padding: 8px 15px;
    border-radius: var(--radius-sm);
}

.btn-logout:hover {
    background: #c82333;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--color-primary);
    cursor: pointer;
}


/* --- CARRUSEL --- */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}



/* --- SERVICIOS --- */
.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.servicio-card {
    background: var(--color-white);
    padding: 30px;
    text-align: center;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.servicio-card i {
    font-size: 3rem;
    color: var(--color-secondary);
    margin-bottom: 15px;
}



/* --- MAPA --- */
.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}



/* --- FORMULARIO DE CONTACTO --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--color-white);
    padding: 30px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.btn-submit {
    width: 100%;
    padding: 12px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #e68a00;
}



/* Estilos para el formulario de contacto */
.required {
    color: #dc3545;
}

.form-note {
    margin-top: 15px;
    color: #6c757d;
    font-style: italic;
}

/* Campo honeypot - completamente oculto */
.hp-field {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
}

.hp-field input {
    position: absolute !important;
    left: -9999px !important;
}




/* --- ALERTAS --- */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.alert span {
    flex: 1;
}


/* --- FOOTER --- */
.main-footer {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 40px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-content h3 {
    margin-bottom: 15px;
    color: var(--color-accent);
}

.footer-content ul {
    list-style: none;
}

.footer-content a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-content a:hover {
    color: var(--color-white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    font-size: 0.9rem;
    color: #aaa;
}




/* =========================================
   LOGIN PAGE
   ========================================= */
.login-page {
    background: linear-gradient(135deg, #003366 0%, #0066cc 50%, #004080 100%);
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.login-wrapper {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-box {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.logo-container {
    margin-bottom: 20px;
}

.login-logo {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 50%;
    background: var(--color-white);
    padding: 10px;
    box-shadow: var(--shadow-md);
}

.login-header h1 {
    color: var(--color-primary);
    font-size: 1.8rem;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.login-header p {
    color: var(--color-text-light);
    font-size: 1rem;
    margin: 0;
}

.login-form {
    margin-bottom: 25px;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.login-form label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.95rem;
}

.login-form label i {
    color: var(--color-secondary);
    font-size: 1.1rem;
    width: 20px;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-md);
    font-size: 16px;
    transition: all 0.3s ease;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.1);
}

.login-form input::placeholder {
    color: #999;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
    flex-wrap: wrap;
    gap: 10px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--color-secondary);
}

.forgot-password {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #003366 0%, #0066cc 100%);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-login:hover {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
}

.btn-login:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
    margin-bottom: 20px;
}

.login-footer p {
    margin: 10px 0;
    color: var(--color-text-light);
}

.login-footer a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

.login-info {
    text-align: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    border: 1px dashed #dee2e6;
}

.login-info p {
    margin: 5px 0;
    color: #6c757d;
    font-size: 0.85rem;
}

.login-info strong {
    color: var(--color-secondary);
}



/* =========================================
   DASHBOARD
   ========================================= */
.dashboard {
    padding: 40px 0;
    background: var(--color-bg-light);
    min-height: calc(100vh - 200px);
}

.dashboard-header {
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-header h1 {
    color: var(--color-primary);
    margin-bottom: 10px;
}

.dashboard-header h1 i {
    margin-right: 10px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.dashboard-card {
    background: var(--color-white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.card-header {
    background: var(--color-primary);
    color: var(--color-white);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.card-body {
    padding: 25px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row .label {
    color: var(--color-text-light);
    font-weight: 500;
}

.info-row .label i {
    margin-right: 8px;
    color: var(--color-secondary);
}

.info-row .value {
    font-weight: 600;
    color: var(--color-text);
}



/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-admin {
    background: var(--color-danger);
    color: var(--color-white);
}

.badge-socio {
    background: var(--color-success);
    color: var(--color-white);
}

.badge-invitado {
    background: var(--color-warning);
    color: #333;
}

.badge-confirmada {
    background: var(--color-success);
    color: var(--color-white);
}

.badge-pendiente {
    background: var(--color-warning);
    color: #333;
}

.badge-cancelada {
    background: var(--color-danger);
    color: var(--color-white);
}



/* Reservas List */
.reservas-list {
    margin-bottom: 20px;
}

.reserva-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    transition: background 0.3s;
}

.reserva-item:hover {
    background: #e9ecef;
}

.reserva-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reserva-recurso {
    font-weight: 600;
    color: var(--color-primary);
}

.reserva-fecha {
    font-size: 14px;
    color: var(--color-text-light);
}

.reserva-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    background: var(--color-secondary);
    color: var(--color-white);
    text-decoration: none;
    transition: background 0.3s;
}

.btn-icon:hover {
    background: var(--color-primary);
}

.btn-icon.btn-danger {
    background: var(--color-danger);
}

.btn-icon.btn-danger:hover {
    background: #c82333;
}



/* Quick Links */
.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.3s;
}

.quick-link:hover {
    background: var(--color-primary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.quick-link i {
    font-size: 2rem;
    margin-bottom: 10px;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--color-secondary);
    color: var(--color-white);
}

.btn-primary:hover {
    background: var(--color-primary);
}

.btn-secondary {
    background: #6c757d;
    color: var(--color-white);
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 15px;
}

.text-muted {
    color: #6c757d;
}



/* =========================================
   RESPONSIVE - TABLET (768px - 1024px)
   ========================================= */
@media (max-width: 1024px) {
    .hero-carousel {
        height: 400px;
    }
    
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================
   RESPONSIVE - MÓVIL (< 768px)
   ========================================= */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }
    
    .hero-carousel {
        height: 300px;
    }
    
    .logo-area h1 {
        font-size: 1.2rem;
    }
    
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .login-box {
        padding: 30px 20px;
    }
    
    .login-header h1 {
        font-size: 1.5rem;
    }
    
    .login-logo {
        width: 80px;
        height: 80px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: 1fr;
    }
    
    .reserva-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reserva-actions {
        width: 100%;
        justify-content: flex-end;
    }
}



/* =========================================
   RESPONSIVE - MÓVIL PEQUEÑO (< 480px)
   ========================================= */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .header-content {
        padding: 10px 15px;
    }
    
    .logo {
        width: 50px;
        height: 50px;
    }
    
    .logo-area h1 {
        font-size: 1rem;
    }
    
    .hero-carousel {
        height: 250px;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .login-box {
        padding: 25px 15px;
    }
    
    .login-header h1 {
        font-size: 1.3rem;
    }
    
    .btn-login {
        padding: 14px;
        font-size: 1rem;
    }
}


/* =========================================
   LOGIN PAGE - MEJORAS PARA PC
   ========================================= */

/* Por defecto (móvil) - ya está configurado */
.login-container {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

/* Tablet - 768px a 1024px */
@media (min-width: 768px) and (max-width: 1024px) {
    .login-container {
        max-width: 500px;
        padding: 30px;
    }
    
    .login-box {
        padding: 40px;
    }
}

/* PC/Escritorio - más de 1024px */
@media (min-width: 1024px) {
    .login-container {
        max-width: 550px; /* Un poco más ancho en PC */
        padding: 40px;
    }
    
    .login-box {
        padding: 50px; /* Más espacio interior */
        max-width: 500px;
        margin: 0 auto; /* Centrado */
    }
    
    .login-header h1 {
        font-size: 2rem; /* Título más grande */
    }
    
    .login-logo {
        width: 120px; /* Logo más grande */
        height: 120px;
    }
    
    .login-form input[type="text"],
    .login-form input[type="password"] {
        padding: 16px 18px; /* Inputs más grandes */
        font-size: 16px;
    }
    
    .btn-login {
        padding: 18px; /* Botón más grande */
        font-size: 1.2rem;
    }
}



/* PC Grande - más de 1440px */
@media (min-width: 1440px) {
    .login-container {
        max-width: 600px;
    }
    
    .login-box {
        padding: 60px 50px;
    }
}



/* Ajustes adicionales para mejor visualización en PC */
@media (min-width: 1024px) {
    .login-wrapper {
        /* Añadir un fondo con gradiente más elaborado para PC */
        background: linear-gradient(135deg, #003366 0%, #004080 50%, #0066cc 100%);
    }
    
    .login-box {
        /* Sombra más pronunciada en PC */
        box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    }
    
    /* Espaciado mejorado entre elementos */
    .login-header {
        margin-bottom: 40px;
    }
    
    .login-form .form-group {
        margin-bottom: 30px;
    }
    
    .form-options {
        margin-bottom: 30px;
    }
}


/* Afiliados */
.afiliados-section {
    background: white;
}

.afiliados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.afiliado-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.afiliado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.afiliado-imagen {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #e0e0e0;
}

.afiliado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afiliado-info {
    padding: 20px;
}

.afiliado-info h3 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.afiliado-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.afiliado-contacto {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.afiliado-contacto i {
    color: #0066cc;
    width: 20px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}



/* =========================================
   ADMIN PAGES
   ========================================= */
.admin-page {
    padding: 40px 0;
    background: #f4f7f6;
    min-height: calc(100vh - 200px);
}

.admin-header-page {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.admin-header-page h1 {
    color: #003366;
    margin: 0;
}

.admin-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 25px;
}

.admin-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-card h2 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.form-admin .form-group {
    margin-bottom: 20px;
}

.form-admin label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-admin input[type="text"],
.form-admin input[type="email"],
.form-admin input[type="tel"],
.form-admin input[type="url"],
.form-admin input[type="number"],
.form-admin input[type="time"],
.form-admin input[type="date"],
.form-admin input[type="file"],
.form-admin select,
.form-admin textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-admin input:focus,
.form-admin select:focus,
.form-admin textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-admin small {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 0.85rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.preview-imagen {
    max-width: 150px;
    margin-top: 10px;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
}

/* Tablas Admin */
.tabla-responsive {
    overflow-x: auto;
}

.tabla-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.tabla-admin thead {
    background: #003366;
    color: white;
}

.tabla-admin th,
.tabla-admin td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tabla-admin tbody tr:hover {
    background: #f8f9fa;
}

.tabla-imagen {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 6px;
}

.acciones {
    display: flex;
    gap: 8px;
}



/* =========================================
   CALENDARIO
   ========================================= */
.calendario-page {
    padding: 40px 0;
    background: #f4f7f6;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #003366;
    margin-bottom: 10px;
}

.info-box {
    background: #e3f2fd;
    color: #0066cc;
    padding: 12px 20px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    margin-top: 10px;
}

.calendario-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 25px;
}

.reserva-form-card,
.calendario-semanal {
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.reserva-form-card h2,
.calendario-semanal h2 {
    color: #003366;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.form-reserva .form-group {
    margin-bottom: 18px;
}

.form-reserva label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
}

.form-reserva input,
.form-reserva select,
.form-reserva textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-reserva input:focus,
.form-reserva select:focus,
.form-reserva textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-reserva small {
    display: block;
    margin-top: 4px;
    color: #666;
    font-size: 0.85rem;
}

.dias-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    margin-bottom: 25px;
}

.dia-card {
    background: #f8f9fa;
    padding: 15px 10px;
    border-radius: 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.3s;
}

.dia-card.dia-activo {
    border-color: #0066cc;
    background: #e3f2fd;
}

.dia-card.completo {
    opacity: 0.6;
    background: #ffebee;
}

.dia-header h3 {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.dia-header .fecha {
    font-size: 1.1rem;
    font-weight: 700;
    color: #003366;
}

.dia-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.reservas-count {
    font-weight: 600;
    color: #0066cc;
    font-size: 0.9rem;
}

.reservas-lista h3 {
    color: #003366;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.reserva-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 4px solid #0066cc;
}

.reserva-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reserva-recurso {
    font-weight: 600;
    color: #003366;
}

.reserva-fecha,
.reserva-hora {
    font-size: 0.9rem;
    color: #666;
}

/* =========================================
   AFILIADOS
   ========================================= */
.afiliados-section {
    background: white;
}

.afiliados-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.afiliado-card {
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.afiliado-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.afiliado-imagen {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #e0e0e0;
}

.afiliado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.afiliado-card:hover .afiliado-imagen img {
    transform: scale(1.05);
}

.afiliado-info {
    padding: 20px;
}

.afiliado-info h3 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.afiliado-info p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.afiliado-contacto {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: #555;
}

.afiliado-contacto i {
    color: #0066cc;
    width: 20px;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.9rem;
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .admin-grid,
    .calendario-grid {
        grid-template-columns: 1fr;
    }
    
    .dias-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dias-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-header-page {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .reserva-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .acciones {
        width: 100%;
        justify-content: flex-end;
    }
}



/* =========================================
   PERFIL DE USUARIO
   ========================================= */
.perfil-page {
    padding: 40px 0;
    background: #f4f7f6;
    min-height: calc(100vh - 200px);
}

.page-header {
    text-align: center;
    margin-bottom: 30px;
}

.page-header h1 {
    color: #003366;
    margin-bottom: 10px;
}

.perfil-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 25px;
}

.perfil-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.perfil-card h2 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 1.3rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.info-estatica {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.info-estatica .info-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.info-estatica .info-row:last-child {
    border-bottom: none;
}

.info-estatica .label {
    font-weight: 600;
    color: #555;
}

.info-estatica .value {
    font-weight: 700;
    color: #003366;
}

.form-perfil .form-group {
    margin-bottom: 20px;
}

.form-perfil label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-perfil input,
.form-perfil textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.form-perfil input:focus,
.form-perfil textarea:focus {
    outline: none;
    border-color: #0066cc;
}

.form-perfil .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.text-muted.small {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .perfil-grid {
        grid-template-columns: 1fr;
    }
    
    .form-perfil .form-row {
        grid-template-columns: 1fr;
    }
}


/* Layout apilado para Gestión de Socios */
.admin-stacked {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.admin-stacked .admin-card {
    width: 100%;
}

/* En móvil, mantener apilado */
@media (max-width: 768px) {
    .admin-grid {
        grid-template-columns: 1fr !important;
    }
    
    .admin-stacked .admin-card {
        width: 100%;
    }
}

/* Panel Admin - Menú mejorado */
.admin-menu {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.admin-menu h2 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.menu-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    border-color: #0066cc;
}

.menu-item.danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
}

.menu-item i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.menu-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Responsive para el menú */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .menu-item {
        padding: 20px 15px;
    }
    
    .menu-item i {
        font-size: 2rem;
    }
    
    .menu-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .menu-grid {
        grid-template-columns: 1fr;
    }
}


/* Panel de Administración - Estadísticas mejoradas */
.admin-dashboard {
    padding: 40px 0;
    background: #f4f7f6;
    min-height: calc(100vh - 200px);
}

.admin-header {
    margin-bottom: 40px;
}

.admin-header h1 {
    color: #003366;
    margin-bottom: 10px;
    font-size: 2rem;
}

.welcome-message {
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* Grid de estadísticas */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.stat-card i {
    font-size: 3rem;
    color: #0066cc;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #003366;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-label {
    color: #666;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Sección de Gestión */
.admin-menu {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-menu h2 {
    color: #003366;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #0066cc;
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.menu-item {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 30px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.menu-item:hover {
    background: linear-gradient(135deg, #0066cc 0%, #003366 100%);
    color: white;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.3);
    border-color: #0066cc;
}

.menu-item.danger:hover {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border-color: #dc3545;
}

.menu-item i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.menu-item span {
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-card i,
    .menu-item i {
        font-size: 2rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .stats-grid,
    .menu-grid {
        grid-template-columns: 1fr;
    }
}



/* =========================================
   DASHBOARD - ESTADÍSTICAS MINI (SOCIO)
   ========================================= */
.stats-mini {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.stat-mini {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat-mini i {
    font-size: 1.8rem;
    color: #0066cc;
}

.stat-mini-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #003366;
}

.stat-mini-label {
    font-size: 0.85rem;
    color: #666;
}

/* =========================================
   DASHBOARD - TARJETAS
   ========================================= */
.dashboard-card.full-width {
    grid-column: 1 / -1;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #003366;
    color: white;
    padding: 15px 20px;
    border-radius: 10px 10px 0 0;
}

.card-header h3 {
    margin: 0;
    flex: 1;
    font-size: 1.1rem;
}

.card-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.card-header-flex h2 {
    margin: 0;
    color: #003366;
    font-size: 1.3rem;
}

.btn-ver-todas {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.btn-ver-todas:hover {
    opacity: 0.8;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Estado vacío */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 15px;
}

.empty-state p {
    margin-bottom: 20px;
}

/* Lista de reservas en dashboard */
.reservas-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reserva-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0066cc;
    transition: background 0.3s;
}

.reserva-item:hover {
    background: #e9ecef;
}

.reserva-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.reserva-recurso {
    font-weight: 600;
    color: #003366;
    font-size: 1rem;
}

.reserva-fecha,
.reserva-hora {
    font-size: 0.9rem;
    color: #666;
}

.reserva-estado {
    align-self: flex-start;
}

.reserva-actions {
    display: flex;
    gap: 8px;
}

/* Responsive */
@media (max-width: 768px) {
    .stats-mini {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reserva-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .reserva-actions {
        width: 100%;
        justify-content: flex-end;
    }
}


<style>
/* Contenedor del interruptor */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    flex-shrink: 0;
}

/* Ocultar el checkbox real */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* La "pista" del interruptor (fondo gris por defecto) */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

/* El círculo blanco interior */
.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

/* Cuando está ACTIVADO: fondo verde */
.switch input:checked + .slider {
    background-color: #28a745;
}

/* Cuando está ACTIVADO: círculo se desplaza a la derecha */
.switch input:checked + .slider:before {
    transform: translateX(24px);
}
</style>