/* ========================================================= */
/* CONFIGURACIÓN BASE Y NAMESPACE              */
/* ========================================================= */

/* Aplicamos la clase al body para que afecte a todo */
body.modulo-dasepark {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #f1f5f9; /* Fondo gris muy suave para la pantalla completa */
    margin: 0;
    padding: 0;
    color: #1e293b;
    overflow-x: hidden;
}

/* RESET LOCAL */
.modulo-dasepark * {
    box-sizing: border-box;
}

/* ========================================================= */
/* ESTRUCTURA DEL PANEL (SIDEBAR)               */
/* ========================================================= */

/* Barra lateral blanca y limpia */
.modulo-dasepark .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 260px;
    height: 100vh;
    background: #ffffff;
    border-right: 1px solid #e2e8f0; /* Borde gris sutil */
    padding: 25px 20px;
    z-index: 100;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 10px rgba(0,0,0,0.03);
}

.modulo-dasepark .sidebar-header {
    text-align: center;
    margin-bottom: 40px;
}

.modulo-dasepark .sidebar-header h2 {
    font-size: 1.8em;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.modulo-dasepark .sidebar-header h2 span {
    color: #2563eb; /* Azul corporativo */
}

/* Menú de navegación */
.modulo-dasepark .menu {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.modulo-dasepark .menu li {
    margin: 8px 0;
}

.modulo-dasepark .menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: #64748b; /* Gris texto medio */
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Hover suave */
.modulo-dasepark .menu a:hover {
    background: #f8fafc;
    color: #2563eb;
}

/* Elemento Activo (Estilo seleccionado) */
.modulo-dasepark .menu a.active {
    background: #eff6ff; /* Fondo azul muy claro */
    color: #2563eb;      /* Texto azul fuerte */
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.05);
}

/* Área principal (donde va el iframe) */
.modulo-dasepark .main-content {
    margin-left: 260px; /* Ancho del sidebar */
    padding: 30px;
    min-height: 100vh;
}

/* Título de bienvenida */
.modulo-dasepark .main-content h1 {
    color: #1e293b;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

/* Iframe limpio */
.modulo-dasepark iframe {
    width: 100%;
    height: 85vh;
    border: none;
    background: transparent;
    border-radius: 12px;
}

/* ========================================================= */
/* ESTILOS DE TUS MÓDULOS INTERNOS (PRESERVADOS)      */
/* ========================================================= */

.modulo-dasepark .container {
    max-width: 1400px;
    margin: 0 auto;
}

.modulo-dasepark .form-header,
.modulo-dasepark .form-section,
.modulo-dasepark .jugadores-table tbody td > *, /* Asegura fondo blanco en inputs */
.modulo-dasepark .jugador-section,
.modulo-dasepark .consentimiento-section {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Títulos Secciones */
.modulo-dasepark .section-title {
    background: #eff6ff;
    border: 1px solid #dbeafe;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.modulo-dasepark .section-title h2 {
    color: #1e40af;
    font-size: 1.25em;
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
}

/* Grillas y Forms */
.modulo-dasepark .form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.modulo-dasepark label {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.modulo-dasepark input[type="text"],
.modulo-dasepark input[type="date"],
.modulo-dasepark input[type="email"],
.modulo-dasepark input[type="tel"],
.modulo-dasepark select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95em;
    color: #334155;
    background: #fff;
    transition: border-color 0.2s;
}

.modulo-dasepark input:focus,
.modulo-dasepark select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Tablas */
.modulo-dasepark .jugadores-table-container {
    overflow-x: auto;
}

.modulo-dasepark .jugadores-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.modulo-dasepark .jugadores-table thead th {
    color: #64748b;
    font-size: 0.75em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 10px;
}

/* Botones */
.modulo-dasepark .input-button,
.modulo-dasepark .btn-facturar {
    background: #2563eb;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.modulo-dasepark .input-button:hover,
.modulo-dasepark .btn-facturar:hover {
    background: #1d4ed8;
}

/* Totales Facturación */
.modulo-dasepark .total-factura {
    background: #dcfce7 !important;
    border-color: #86efac !important;
    color: #14532d !important;
    font-weight: 800;
    font-size: 1.2em;
    text-align: right;
}
/* ========================================================= */
/* ESTILOS LANDING PAGE (INICIO)                */
/* ========================================================= */

/* Ajuste específico para el body del inicio */
body.landing-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f1f5f9; /* Mismo fondo gris suave del panel */
}

/* --- NAVBAR SUPERIOR --- */
.landing-navbar {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 15px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.landing-navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.landing-navbar .logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.landing-navbar .logo span {
    color: #2563eb; /* Azul DASE */
}

.landing-navbar nav a {
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    margin-left: 25px;
    transition: color 0.2s;
    font-size: 0.95em;
}

.landing-navbar nav a:hover {
    color: #2563eb;
}

/* Botón de acción en el menú (opcional) */
.landing-navbar nav a.cta-link {
    background: #eff6ff;
    color: #2563eb;
    padding: 8px 16px;
    border-radius: 6px;
}

/* --- CONTENIDO PRINCIPAL (HERO) --- */
.landing-main {
    flex: 1; /* Empuja el footer hacia abajo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.landing-main h1 {
    font-size: 2.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 800;
}

.landing-main p {
    font-size: 1.1rem;
    color: #64748b;
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* Contenedor de botones de acción */
.landing-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botones grandes de inicio */
.btn-hero {
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-hero.primary {
    background: #2563eb;
    color: white;
    box-shadow: 0 4px 6px rgba(37, 99, 235, 0.2);
}

.btn-hero.secondary {
    background: #ffffff;
    color: #1e293b;
    border: 1px solid #cbd5e1;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* --- FOOTER --- */
.landing-footer {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    text-align: center;
    padding: 20px;
    color: #94a3b8;
    font-size: 0.9em;
}


/* --- ESTILOS SISTEMA ADMINISTRATIVO (GRID & FORMS) --- */

/* Contenedor Principal */
.admin-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-header {
    margin-bottom: 25px;
    border-bottom: 1px solid #e1e4e8;
    padding-bottom: 10px;
}
.page-header h1 { margin: 0; color: #2c3e50; font-size: 1.8rem; }
.text-muted { color: #6c757d; font-size: 0.9rem; }
.text-danger { color: #dc3545; }
.text-primary { color: #007bff; }

/* Tarjetas (Cards) */
.card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}
.card-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e1e4e8;
    border-radius: 8px 8px 0 0;
}
.card-header h2 { margin: 0; font-size: 1.2rem; color: #495057; }
.card-body { padding: 20px; }

/* Sistema de Rejilla Simple (Grid) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}
[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    box-sizing: border-box;
}

/* Media Queries para Columnas */
@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Formularios */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; margin-bottom: 0.5rem; font-weight: 600; font-size: 0.9rem; color: #343a40; }

.form-control {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.form-control:focus {
    border-color: #80bdff;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}
.form-control[readonly] { background-color: #e9ecef; opacity: 1; }

/* Botones */
.btn {
    display: inline-block;
    font-weight: 400;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    padding: 0.5rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s, background-color 0.15s, border-color 0.15s;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.875rem; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1.1rem; }

.btn-primary { color: #fff; background-color: #2c3e50; border-color: #2c3e50; } /* Azul oscuro corporativo */
.btn-primary:hover { background-color: #1a252f; }

.btn-secondary { color: #fff; background-color: #6c757d; border-color: #6c757d; }
.btn-secondary:hover { background-color: #5a6268; }

.btn-danger { color: #fff; background-color: #dc3545; border-color: #dc3545; }
.btn-danger:hover { background-color: #c82333; }

/* Utilidades Extra */
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.ml-2 { margin-left: 0.5rem; }
.p-3 { padding: 1rem; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.text-right { text-align: right; }
.bg-light { background-color: #f8f9fa !important; }

/* Alertas */
.alert { padding: 0.75rem 1.25rem; margin-bottom: 1rem; border: 1px solid transparent; border-radius: 0.25rem; }
.alert-info { color: #0c5460; background-color: #d1ecf1; border-color: #bee5eb; }

/* ========================================================= */
/* NUEVOS ESTILOS - REGISTRO CLIENTE (Grid & Cards)         */
/* ========================================================= */

/* Contenedor fluido para módulos */
.admin-container {
    width: 100%;
    padding: 20px;
    background-color: #f1f5f9; /* Mismo gris del fondo */
    min-height: 100vh;
}

/* Tarjetas Blancas (Cards) */
.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    overflow: hidden; /* Para que el header no se salga */
}

.card-header {
    background: #f8fafc;
    padding: 15px 25px;
    border-bottom: 1px solid #e2e8f0;
}

.card-header h2 {
    margin: 0;
    font-size: 1.1rem;
    color: #334155;
    font-weight: 700;
    text-transform: uppercase;
}

.card-body {
    padding: 25px;
}

/* Sistema de Columnas (Grid System) */
.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -10px;
    margin-left: -10px;
}

.col-md-3, .col-md-4, .col-md-6, .col-12 {
    position: relative;
    width: 100%;
    padding-right: 10px;
    padding-left: 10px;
    margin-bottom: 15px; /* Espacio vertical */
}

@media (min-width: 768px) {
    .col-md-3 { flex: 0 0 25%; max-width: 25%; }
    .col-md-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
    .col-md-6 { flex: 0 0 50%; max-width: 50%; }
}

/* Inputs y Selects */
.form-group { margin-bottom: 0; }

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 0.85rem;
    color: #64748b;
    text-transform: uppercase;
}

.form-control {
    display: block;
    width: 100%;
    padding: 10px 12px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #1e293b;
    background-color: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    transition: all 0.2s ease-in-out;
}

.form-control:focus {
    border-color: #2563eb;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-control[readonly] {
    background-color: #f1f5f9;
    color: #94a3b8;
}

/* Botones */
.btn {
    display: inline-block;
    font-weight: 600;
    text-align: center;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.btn-primary { background-color: #2563eb; color: #fff; }
.btn-primary:hover { background-color: #1d4ed8; }

.btn-secondary { background-color: #fff; color: #64748b; border-color: #cbd5e1; }
.btn-secondary:hover { background-color: #f1f5f9; color: #334155; }

.btn-danger { background-color: #ef4444; color: #fff; padding: 5px 10px; font-size: 0.8rem;}
.btn-danger:hover { background-color: #dc2626; }

/* Utilidades */
.text-danger { color: #ef4444; }
.text-right { text-align: right; }
.d-flex { display: flex; }
.justify-content-between { justify-content: space-between; }
.align-items-center { align-items: center; }
.bg-light { background: #f8fafc; padding: 15px; border-radius: 8px; border: 1px solid #e2e8f0; }
.mr-3 { margin-right: 15px; }



/* ========================================================= */
/* MÓDULO DE FACTURACIÓN (Diseño Cliente - Azul/Cristal)     */
/* ========================================================= */

/* Títulos de sección con fondo azul suave */
.facturacion-module .section-title {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 10px;
    padding: 15px 20px;
    text-align: center;
    margin-bottom: 20px;
}

.facturacion-module .section-title h2 {
    color: #2563eb;
    font-size: 1.5em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Contenedores de secciones (Efecto Cristal) */
.facturacion-module .form-section {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 15px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
}

/* Inputs específicos de Facturación */
.facturacion-module input[type="text"],
.facturacion-module input[type="date"],
.facturacion-module select {
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    color: #1e293b;
    font-size: 0.95em;
    width: 100%;
    transition: all 0.3s;
}

.facturacion-module input:focus,
.facturacion-module select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.facturacion-module input[readonly] {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* Radio Buttons personalizados */
.facturacion-module .radio-group {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    height: 44px; /* Misma altura que los inputs */
}

/* --- TABLA DE JUGADORES (Estilo Facturación) --- */
.facturacion-module .jugadores-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 8px;
}

.facturacion-module .jugadores-table thead th {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    padding: 10px 5px;
    color: #2563eb;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    text-align: center;
}
.facturacion-module .jugadores-table thead th:first-child { border-radius: 8px 0 0 8px; border-right: none;}
.facturacion-module .jugadores-table thead th:last-child { border-radius: 0 8px 8px 0; border-left: none;}

.facturacion-module .jugadores-table tbody td {
    padding: 0 4px; /* Espacio horizontal entre celdas visuales */
    background: transparent;
    border: none;
}

/* Inputs dentro de la tabla */
.facturacion-module .jugadores-table input,
.facturacion-module .jugadores-table select,
.facturacion-module .jugadores-table .radio-group {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    border-radius: 8px;
    text-align: center;
    height: 40px;
    padding: 5px;
}

/* Campos Editables (Resaltados) */
.facturacion-module .editable.time-field,
.facturacion-module .editable.time-field select,
.facturacion-module .editable-radio {
    background: #fee2e2 !important; /* Rojo muy suave */
    border-color: #f87171 !important;
    color: #1e293b;
    font-weight: 600;
}

.facturacion-module .editable.value-field {
    background: #dcfce7 !important; /* Verde muy suave */
    border-color: #10b981 !important;
    color: #052e16;
    font-weight: 700;
}

/* --- SECCIÓN DE PAGOS (GRID 2 Columnas) --- */
.facturacion-module .payment-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
}

@media (max-width: 768px) {
    .facturacion-module .payment-section { grid-template-columns: 1fr; }
}

.facturacion-module .payment-summary {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.facturacion-module .payment-summary h2 {
    font-size: 1.2em;
    color: #2563eb;
    margin-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 5px;
}

.facturacion-module .summary-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 15px;
    align-items: center;
}

.facturacion-module .summary-row label {
    text-align: right;
    font-weight: 700;
    color: #475569;
}

/* CAJA DEL TOTAL (VERDE GRANDE) */
.facturacion-module .total-label-box {
    background: #6366f1; /* Azul indigo */
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    height: 50px;
}

.facturacion-module .total-input.total-factura {
    background: #dcfce7 !important;
    border-color: #10b981 !important;
    color: #052e16 !important;
    font-weight: 800 !important;
    font-size: 1.4em !important;
    height: 50px;
    text-align: right;
}

.facturacion-module .total-input {
    text-align: right;
    font-weight: 700;
    font-size: 1.1em;
}

.facturacion-module .total-positivo { border-color: #10b981 !important; color: #10b980 !important; }
.facturacion-module .total-negativo { border-color: #ef4444 !important; color: #ef4444 !important; }

/* Botones Finales */
.facturacion-module .final-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 10px;
}

.facturacion-module .btn-facturar {
    background: #2563eb;
    color: white;
    width: auto;
    padding: 12px 40px;
    font-size: 1.1em;
}
.facturacion-module .btn-facturar:hover { background: #1d4ed8; }

.facturacion-module .btn-etiquetas { background: #f59e0b; color: white; width: auto; padding: 12px 40px; }
.facturacion-module .btn-etiquetas:disabled { background: #cbd5e1; cursor: not-allowed; }

main.main-content iframe {
    width: 100%;
    height: 100%; /* Ocupar todo el alto disponible */
    border: none; /* Quitar bordes feos */
    display: block;
    min-height: 85vh; /* Altura mínima para que no se vea cortado */
}