@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tangerine:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Tangerine:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* =========================
   BASE GENERAL
========================= */


form .form-label {
    font-weight: 600;
}

.pagination {
    background: #ffffff;
    padding: 8px 12px;
    border-radius: 6px;
}

.matriz-table {
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

.fila-cupo {
    background-color: #e8f5e9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.fila-cupo:hover {
    background-color: #d0ebd8;
}

.detalle-cupo {
    background-color: #f9f9f9;
}

.badge {
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    h3 {
        font-size: 1.3rem;
    }
}

.cursor-pointer {
    cursor: pointer;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    color: #333;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    position: relative;
    background-color: #48A111;
}

/* Layout global */
.layout-cmh {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.contenido-principal {
    flex: 1;
    padding-top: 80px; /* espacio para navbar fijo */
    display: flex;
    flex-direction: column;
}

/* Ayuda a que las views respiren mejor */
.contenido-principal > .container,
.contenido-principal > .container-fluid {
    padding-top: 30px;
    padding-bottom: 50px;
}

/* =========================
   TITULOS GENERALES
========================= */
.titulos {
    color: #ffffff;
    font-weight: 700;
    font-size: 42px;
}

/* =========================
   NAVBAR
========================= */
.navbar {
    padding: 10px 0;
}

.navbar-brand img {
    transition: transform 0.2s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
}

.dropdown-menu {
    border-radius: 10px;
}

/* =========================
   FORMULARIOS / REGISTRO / LOGIN
========================= */
.formulario-reserva {
    border-radius: 20px;
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.titulo-formulario {
    color: #198754;
    font-weight: 700;
}

.form-label {
    color: #2b2b2b;
    margin-bottom: 8px;
}

.form-control,
.form-select {
    min-height: 46px;
    border-radius: 10px;
    border: 1px solid #ced4da;
}

.form-control:focus,
.form-select:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.btn-warning,
.btn-outline-secondary {
    border-radius: 12px;
}

.btn-sm {
    border-radius: 8px;
}

/* =========================
   SECCION CUPOS
========================= */
.seccion-cupos-wrapper {
    background: linear-gradient(135deg, #0f5132 0%, #198754 40%, #dff5e8 100%);
    min-height: auto;
    padding: 50px 0;
}

.titulo-cupos {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.subtitulo-cupos {
    color: rgba(255, 255, 255, 0.92);
    font-size: 1.05rem;
    margin-bottom: 0;
}

.seccion-cupos {
    background: #ffffff;
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.encabezado-cupos {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    gap: 15px;
    flex-wrap: wrap;
}

.titulo-seccion-cupo {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
}

.texto-seccion-cupo {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-size: 1rem;
}

.badge-tipo {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.badge-provisional {
    background: #d1fae5;
    color: #065f46;
}

.badge-definitiva {
    background: #dbeafe;
    color: #1d4ed8;
}

/* =========================
   TARJETAS DE CUPOS
========================= */
.card-cupo {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    background: #ffffff;
    height: 100%;
}

.card-cupo:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.20);
}

.franja-top {
    height: 7px;
    width: 100%;
}

.franja-provisional {
    background: linear-gradient(90deg, #198754, #43c07a);
}

.franja-definitiva {
    background: linear-gradient(90deg, #0d6efd, #4f8cff);
}

.titulo-card {
    font-size: 1.7rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.dato-card {
    color: #374151;
    font-size: 1.05rem;
    margin-bottom: 10px;
}

.dato-card strong {
    color: #111827;
}

.cupos-badge {
    display: inline-block;
    margin-top: 10px;
    padding: 9px 16px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
}

.cupos-provisional {
    background: #ecfdf3;
    color: #198754;
}

.cupos-definitiva {
    background: #eff6ff;
    color: #0d6efd;
}

.btn-cupo {
    border-radius: 12px;
    padding: 11px 28px;
    font-weight: 700;
    border: none;
    color: #ffffff;
    margin-top: 18px;
    min-width: 150px;
}

.btn-provisional {
    background-color: #198754;
    color: #ffffff;
}

.btn-provisional:hover {
    background-color: #157347;
    color: #ffffff;
}

.btn-definitiva {
    background-color: #0d6efd;
    color: #ffffff;
}

.btn-definitiva:hover {
    background-color: #0b5ed7;
    color: #ffffff;
}

/* =========================
   VISTA ADMINISTRACION
========================= */
.tabla-cupos thead th {
    background-color: #198754;
    color: #ffffff;
    border: none;
    font-weight: 700;
}

.tabla-cupos tbody tr {
    background-color: #ffffff;
}

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

.table-responsive {
    border-radius: 14px;
    overflow: hidden;
}

/* =========================
   FOOTER
========================= */
.footer-cmh {
    background: #f8f9fa;
    color: #1f2937;
    border-top: 4px solid #48A111;
    margin-top: auto;
    padding-top: 48px;
    padding-bottom: 0;
}

.footer-contenido {
    padding-bottom: 40px;
}

.footer-cmh h3 {
    color: #48A111;
    font-weight: 700;
}

.footer-cmh p {
    color: #374151;
}

.linea-footer {
    border: 0;
    border-top: 1px solid #dcdfe3;
    margin: 10px 0 20px 0;
    width: 70%;
}

.correo-footer {
    color: #48A111 !important;
    font-weight: 700;
}

.telefono-footer {
    color: #4b5563 !important;
}

.logo-footer {
    max-height: 180px;
    width: auto;
    display: inline-block;
}

.footer-bottom {
    background: linear-gradient(90deg, #198754, #157347);
    color: #ffffff;
    padding: 14px 0;
    margin: 0;
}

/* =========================
  LOGIN 
========================= */
.login-page {
    min-height: calc(100vh - 80px);
    background: linear-gradient(180deg, #3fa30d 0%, #2f8f10 100%);
    display: flex;
    align-items: center;
}

.login-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(8px);
}

.login-logo {
    height: 72px;
    width: auto;
}

.login-title {
    font-size: 2.4rem;
    font-weight: 800;
    color: #14532d;
    letter-spacing: -0.5px;
}

.login-subtitle {
    color: #4b5563;
    font-size: 0.98rem;
    line-height: 1.6;
}

.login-label {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.login-input {
    min-height: 56px;
    border-radius: 14px;
    border: 1px solid #d1d5db;
    padding: 0 16px;
    font-size: 1rem;
    transition: all 0.25s ease;
}

.login-input:focus {
    border-color: #198754;
    box-shadow: 0 0 0 0.2rem rgba(25, 135, 84, 0.15);
}

.login-btn {
    min-height: 54px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(90deg, #198754 0%, #157347 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.25s ease;
}

.login-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(21, 115, 71, 0.25);
}

.login-note {
    color: #6b7280;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .login-title {
        font-size: 2rem;
    }

    .login-card {
        border-radius: 20px;
    }

    .login-logo {
        height: 60px;
    }
}
/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .titulos {
        font-size: 2.4rem;
    }

    .titulo-cupos {
        font-size: 2.2rem;
    }

    .titulo-seccion-cupo {
        font-size: 1.6rem;
    }

    .titulo-card {
        font-size: 1.35rem;
    }

    .seccion-cupos {
        padding: 22px;
    }

    .logo-footer {
        max-height: 120px;
        margin-top: 20px;
    }

    .linea-footer {
        width: 100%;
    }
}



.footer-interno{
    background: #1f2937; /* gris oscuro elegante */
    color: #e5e7eb;
    font-size: 0.85rem;
    border-top: 1px solid #374151;
}

.footer-interno .footer-left{
    font-weight: 600;
    color: #f9fafb;
}

.footer-interno .footer-center{
    color: #9ca3af;
}

.footer-interno .footer-right{
    font-size: 0.8rem;
}

.estado-sistema{
    color: #22c55e;
    font-weight: 600;
}

.header-cupos{
    background: #3fa30f; /* tu verde */
    padding: 40px 0;
    color: #ffffff;
}

.header-cupos h2{
    color: #ffffff;
    font-weight: 800;
}

.header-cupos p{
    color: rgba(255,255,255,0.9);
}

.estado-activo{
    background: #d1fae5; /* verde claro */
    color: #065f46;      /* verde oscuro elegante */
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
}

.acordeon-docs-wrapper{
    background: #ffffff;
}

.badge-docs{
    background: #e8f5ee;
    color: #198754;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
}

.titulo-docs{
    font-size: 2.2rem;
    font-weight: 800;
    color: #1f2937;
}

.subtitulo-docs{
    color: #4b5563;
    font-size: 1rem;
}

.texto-docs{
    color: #6b7280;
}

.barra-docs{
    height: 12px;
    border-radius: 999px;
    overflow: hidden;
    background: #e5e7eb;
}

.barra-docs .progress-bar{
    background: linear-gradient(90deg, #198754, #34d399);
}

.accordion-documentos .accordion-item{
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #ffffff;
}

.accordion-documentos .accordion-button{
    background: #ffffff;
    box-shadow: none;
    padding: 18px 20px;
}

.accordion-documentos .accordion-button:not(.collapsed){
    background: #f8fafc;
    color: inherit;
}

.documento-titulo{
    font-weight: 700;
    color: #1f2937;
}

.estado-badge{
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 12px;
    border-radius: 999px;
}

.estado-pendiente{
    background: #fef3c7;
    color: #92400e;
}

.estado-completado{
    background: #dcfce7;
    color: #166534;
}

.documento-item.pendiente{
    border-left: 5px solid #f59e0b;
}

.documento-item.completado{
    border-left: 5px solid #22c55e;
}

.archivo-actual-box{
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #166534;
    border-radius: 12px;
    padding: 10px 12px;
}

.titulo-seccion {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 700;
}

.sub-seccion {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
}

.etiqueta-provisional {
    color: #ffffff;
}

.etiqueta-definitiva {
    color: #ffffff;
}

