/* ========== RESPONSIVE ====================================================== */
/* Resoluciones recomendadas:
Tablet (1024 x 768 px) Landscape.
Laptop 1 (1280 x 800 px) Landscape.
Laptop 2 (1600 x 900 px) Landscape.
Laptop 3 (1920 x 1200 px) Landscape.
*/
/* ============================================================================ */
html,
body {
    height: 100%;
}

.contenedor_plantilla {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;
    /* ← CLAVE */
}

header,
footer {
    flex: 0 0 auto;
}

/* ===============================
   CONTENEDOR PRINCIPAL
================================ */
.Contenedor-primario {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-height: 0;

    width: 100%;
    margin: 0 auto;

    flex: 1;
    padding: clamp(1.25rem, 2.5vw, 1.875rem);
    gap: clamp(1.25rem, 2.5vw, 1.875rem);

    background-color: #ffffff;

}

.dashboard-layout {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}



/* ===============================
   CONTENEDOR IMAGEN
================================ */
.Contenedor-imagen {
    flex: 1 1 50%;
    /* ← CLAVE */
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    background-color: #ffffff;
    border-radius: clamp(0.75rem, 1.2vw, 1rem);
    border: 1px solid #ccc;
    box-shadow: 0 clamp(0.25rem, 0.6vw, 0.5rem) clamp(0.5rem, 1.2vw, 0.75rem) rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.responsive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===============================
   CONTENEDOR PIZARRA
================================ */
.Contenedor-board {
    flex: 1 1 50%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;

    background-color: #ffffff;
    border-radius: clamp(0.75rem, 1.2vw, 1rem);
    border: 1px solid #ccc;
    box-shadow: 0 clamp(0.25rem, 0.6vw, 0.5rem) clamp(0.5rem, 1.2vw, 0.75rem) rgba(0, 0, 0, 0.1);
    font-family: "Poppins", sans-serif;
}

.dashboard-billing-card {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(13rem, 0.85fr) auto;
    gap: 1rem;
    align-items: center;
    padding: clamp(0.95rem, 1.5vw, 1.15rem) clamp(1rem, 1.8vw, 1.25rem);
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 60%, #fff9db 100%);
    border-bottom: 1px solid #d8e3f2;
}

.dashboard-billing-copy h2,
.dashboard-billing-copy p,
.dashboard-billing-meta dt,
.dashboard-billing-meta dd {
    margin: 0;
}

.dashboard-billing-eyebrow {
    display: inline-flex;
    margin-bottom: 0.28rem;
    color: #1d4ed8;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-billing-copy h2 {
    color: #20385f;
    font-size: clamp(1rem, 1vw + 0.7rem, 1.32rem);
    line-height: 1.1;
}

.dashboard-billing-copy p {
    margin-top: 0.35rem;
    color: #547195;
    font-size: clamp(0.78rem, 0.9vw, 0.9rem);
    line-height: 1.5;
}

.dashboard-billing-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.dashboard-billing-meta dt {
    color: #6480a3;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.dashboard-billing-meta dd {
    margin-top: 0.25rem;
    color: #20385f;
    font-size: 0.84rem;
    font-weight: 700;
}

.dashboard-billing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    justify-content: flex-end;
}

.dashboard-billing-button,
.dashboard-billing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0.58rem 0.95rem;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.dashboard-billing-button {
    color: #fff;
    background: linear-gradient(135deg, #20385f, #315a93);
}

.dashboard-billing-link {
    color: #20385f;
    background: #facc15;
}

.dashboard-billing-button:hover,
.dashboard-billing-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.45rem 0.9rem rgba(32, 56, 95, 0.15);
}

.pizarra {
    display: grid;
    grid-template-columns: clamp(7.75rem, 11vw, 9.75rem) minmax(0, 1fr);
    align-items: start;
    gap: 0.18rem 0.9rem;

    padding-block: clamp(0.45rem, 0.8vw, 0.65rem);
    padding-inline: clamp(0.6rem, 1vw, 0.8rem);
}

.pizarra-header {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 5;
    border-bottom: 1px solid #ddd;
    padding-block: 0.4rem;
}

.pizarra-header .panel-text {
    grid-column: 1 / -1;
    margin-top: 0.3rem;
}

.pizarra-item {
    background: var(--pizarra-bg, transparent);
}

.pizarra-item>.panel-value:only-child {
    grid-column: 1 / -1;
    text-align: center;
}

.dashboard-fullwidth {
    flex: 1;
    display: flex;
    overflow: hidden;
    min-height: 0;

}

/* ===============================
   BOTÓN ABRIR
================================ */
.boton_abrir {
    display: flex;
    justify-content: flex-end;
    padding-inline: clamp(1rem, 2vw, 1.25rem);
    padding-block: 0.4rem;
}

/* ===============================
   PIN / CELDAS
================================ */
.pin-cell {
    width: clamp(3rem, 4vw, 3.75rem);
    /* 48px → 60px */
    padding-left: clamp(1rem, 2vw, 1.25rem);
    padding-top: clamp(1rem, 2vw, 1.25rem);
    vertical-align: middle;
}

/* ===============================
   TEXTO DE LA PIZARRA
================================ */
.board-title {
    font-family: "Poppins", sans-serif;
    font-size: clamp(1rem, 1.7vw, 1.45rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #20385f;
    text-align: left;
    vertical-align: middle;
    line-height: 1.2;
}

.panel-text {
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.78rem, 1vw, 0.92rem);
    font-weight: 500;
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    padding-top: clamp(1rem, 2vw, 1.25rem);
    color: #547195;
    line-height: 1.45;
}

.panel-label {
    padding-left: clamp(1.5rem, 3vw, 2.5rem);
    padding-block: clamp(0.25rem, 0.6vw, 0.3125rem);
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.74rem, 0.96vw, 0.86rem);
    font-weight: 600;
    color: #2c486c;
    white-space: nowrap;
    line-height: 1.55;
}

.panel-value {
    padding-block: clamp(0.25rem, 0.6vw, 0.3125rem);
    font-family: "Poppins", sans-serif;
    font-size: clamp(0.76rem, 0.98vw, 0.88rem);
    font-weight: 400;
    color: #47688f;
    overflow-wrap: anywhere;
    line-height: 1.55;
}

.panel-value-file {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

/* ===============================
   DIVISOR
================================ */
.divider-line {
    border: 0;
    border-top: 2px solid #666;

    margin-block: clamp(0.5rem, 1vw, 0.75rem);
    margin-inline: clamp(1rem, 2vw, 1.5rem);
}


/* ===============================
   BOTÓN DE ACCIÓN
================================ */
.action-button {
    display: inline-flex;
    align-items: center;
    background-color: rgb(241, 196, 15);
    border: none;

    /* Radio más expresivo en pantallas grandes */
    border-radius: clamp(1.6rem, 3.5vw, 2.2rem);

    /* Más cuerpo vertical y horizontal */
    padding-block: clamp(0.45rem, 1vw, 0.7rem);
    padding-inline: clamp(0.85rem, 2vw, 1.25rem);

    /* Texto con crecimiento real */
    font-size: clamp(0.65rem, 1.1vw, 0.9rem);
    /* ~10.5px → ~14.5px */

    font-weight: bold;
    color: #000;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

.action-button:hover {
    background: rgb(244, 208, 63);
    box-shadow:
        0 0 0 2px rgba(0, 0, 0, 0.2),
        0 clamp(0.3rem, 0.8vw, 0.6rem) clamp(0.6rem, 1.6vw, 1rem) rgba(0, 0, 0, 0.15);
}

@media (max-width: 56rem) {
    main {
        overflow: auto;
    }

    .dashboard-fullwidth,
    .dashboard-layout {
        overflow: visible;
    }

    .Contenedor-primario {
        flex-direction: column;
        align-items: stretch;
        overflow-y: auto;
        padding: clamp(0.75rem, 3vw, 1.25rem);
        gap: clamp(0.75rem, 3vw, 1.25rem);
    }

    .Contenedor-imagen {
        flex: 0 0 clamp(10rem, 32vh, 16rem);
    }

    .Contenedor-board {
        flex: 1 1 auto;
        min-height: clamp(20rem, 48vh, 30rem);
        overflow: visible;
    }

    .dashboard-billing-card {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .dashboard-billing-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 40rem) {
    .dashboard-billing-meta {
        grid-template-columns: 1fr;
    }

    .dashboard-billing-actions {
        flex-direction: column;
    }

    .dashboard-billing-button,
    .dashboard-billing-link {
        width: 100%;
    }

    .pizarra {
        grid-template-columns: minmax(0, 1fr);
        gap: clamp(0.2rem, 1vw, 0.35rem);
        padding-inline: clamp(0.75rem, 4vw, 1rem);
    }

    .pizarra-header {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .pin-cell {
        width: clamp(2.25rem, 10vw, 3rem);
        padding-left: 0;
        padding-top: clamp(0.5rem, 2vw, 0.75rem);
    }

    .panel-text,
    .panel-label {
        padding-left: 0;
    }

    .panel-label {
        width: auto;
        white-space: normal;
    }

    .boton_abrir {
        justify-content: stretch;
        padding-inline: clamp(0.75rem, 4vw, 1rem);
    }

    .boton_abrir .BotonModal_Aceptar {
        width: 100%;
        justify-content: center;
    }
}
