:root {
    --naranja: #ff6a00;
    --naranja-oscuro: #d94300;
    --amarillo: #ffd54f;
    --blanco: #ffffff;
    --negro: #222222;
}

/* ==========================
   ESTRUCTURA GENERAL
========================== */

html,
body {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #f5f5f5;
    font-family: 'Segoe UI', Arial, sans-serif;
}

main {
    width: 100%;
}

/* ==========================
   NAVBAR
========================== */

.navbar-samba {
    background: linear-gradient(
        90deg,
        var(--naranja-oscuro),
        var(--naranja)
    );

    box-shadow: 0 4px 15px rgba(0,0,0,.18);

    padding-top: 12px;
    padding-bottom: 12px;
}

.navbar-brand {
    margin-right: 25px;
}

.navbar-logo {
    width: 200px;
    height: auto;
    object-fit: contain;

    margin-right: -45px;
    margin-left: -80px;

    filter: drop-shadow(
        0 4px 8px rgba(0,0,0,.25)
    );
}

/*
.navbar-logo {
    width: 260px;
    height: 115px;
    object-fit: contain;
    margin-right: 15px;

    filter: drop-shadow(
        0 4px 8px rgba(0,0,0,.25)
    );
}
*/

.brand-title {
    color: white;
    font-weight: 900;
    font-size: 34px;
    line-height: 1;
}

.brand-subtitle {
    color: var(--amarillo);
    font-size: 15px;
    font-weight: 700;
}

/* ==========================
   HERO / DASHBOARD
========================== */

.hero-samba {
    background: linear-gradient(
        90deg,
        var(--naranja-oscuro),
        var(--naranja)
    );

    color: white;

    border-radius: 20px;

    padding: 10px 20px;

    margin-bottom: 35px;

    text-align: left;
}

/*
.hero-samba {
    background: linear-gradient(
        90deg,
        var(--naranja-oscuro),
        var(--naranja)
    );

    color: white;

    border-radius: 20px;

    padding: 35px;

    margin-bottom: 35px;

    text-align: center;
}
*/

.hero-logo {
    width: 260px;
    height: auto;

    margin-bottom: 20px;

    filter: drop-shadow(
        0 8px 18px rgba(0,0,0,.35)
    );
}

.hero-samba h1 {
    font-size: 38px;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-samba p {
    font-size: 20px;
}

/* ==========================
   CARDS
========================== */

.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 5px 15px rgba(0,0,0,.08);
}

.card-header {
    background: white;
    font-weight: 700;
    border-bottom: 1px solid #eee;
}

.metric-card h2 {
    font-size: 36px;
    font-weight: 800;
}

.metric-icon {
    width: 58px;
    height: 58px;

    border-radius: 50%;

    background: var(--naranja);

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 26px;
}

/* ==========================
   BOTONES
========================== */

.btn-samba {
    background: var(--naranja);
    color: white;
    border: none;
}

.btn-samba:hover {
    background: var(--naranja-oscuro);
    color: white;
}

/* ==========================
   BADGES
========================== */

.badge-bateria {
    background: var(--naranja);
}

.badge-pasistas {
    background: var(--amarillo);
    color: #222;
}

/* ==========================
   FOOTER
========================== */

.samba-footer {
    margin-top: auto;

    background: linear-gradient(
        90deg,
        var(--naranja-oscuro),
        var(--naranja)
    );

    color: white;

    padding: 35px 0;
}

.footer-logo {
    width: 200px;
    height: auto;
    object-fit: contain;

    margin-right: -40px;
    margin-left: -80px;
    
    /*width: 90px;
    height: 90px;
    object-fit: contain;

    margin-right: 15px;
    */
    filter: drop-shadow(
        0 4px 8px rgba(0,0,0,.25)
    );
}

.samba-footer a {
    color: white;
    text-decoration: none;
    font-weight: 600;
}

.samba-footer a:hover {
    color: var(--amarillo);
}

/* ==========================
   MENU SAMBA
========================== */

.menu-samba {
    display: flex;
    gap: 5px;
    flex-wrap: nowrap;
    align-items: center;
    margin-left: auto;
}

.menu-samba .btn {
    white-space: nowrap;
    padding: 5px 10px;
    font-size: 14px;
}

.navbar-samba .container-fluid,
.navbar-samba .container-xl {
    display: flex;
    align-items: center;
}

/* ==========================
   RESPONSIVE
========================== */

@media (max-width: 992px) {

    .navbar-logo {
        width: 80px;
        height: 80px;
    }

    .brand-title {
        font-size: 26px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .hero-logo {
        width: 180px;
    }

    .hero-samba h1 {
        font-size: 36px;
    }
}

.login-card {
    border-radius: 22px;
}

.login-logo {
    width: 170px;
    height: auto;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
}

.login-samba-wrapper {
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-samba-box {
    width: 100%;
    max-width: 1050px;
    min-height: 560px;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0,0,0,.18);
}

.login-samba-left {
    position: relative;
    background:
        radial-gradient(circle at center, rgba(255,213,79,.35), transparent 35%),
        linear-gradient(135deg, #d94300, #ff6a00);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-samba-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            35deg,
            rgba(255,255,255,.08) 0,
            rgba(255,255,255,.08) 2px,
            transparent 2px,
            transparent 18px
        );
    opacity: .35;
}

.login-samba-left::after {
    content: "";
    position: absolute;
    inset: auto -80px -120px -80px;
    height: 230px;
    background: rgba(0,0,0,.18);
    border-radius: 50%;
    filter: blur(10px);
}

.login-samba-overlay {
    position: absolute;
    right: -120px;
    width: 260px;
    height: 120%;
    background: white;
    border-radius: 50%;
}

.login-samba-brand {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 30px;
}

.login-samba-big-logo {
    width: 300px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.35));
    margin-bottom: 20px;
}

.login-samba-brand h2 {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 5px;
}

.login-samba-brand p {
    font-size: 18px;
    font-weight: 600;
}

.login-samba-right {
    position: relative;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.login-form-card {
    width: 82%;
    background: white;
    border-radius: 22px;
    padding: 38px;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
}

.login-form-card h2 {
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 15px;
}

.login-subtitle {
    font-size: 22px;
    margin-bottom: 30px;
    color: #444;
}

.login-subtitle strong {
    color: var(--naranja);
    font-size: 30px;
}

.login-form-card .form-control {
    height: 48px;
    border-radius: 10px;
}

.login-form-card .btn-samba {
    height: 50px;
    border-radius: 10px;
    font-weight: 700;
}

.login-copy {
    position: absolute;
    bottom: 25px;
    color: #555;
    font-size: 14px;
}

@media (max-width: 992px) {
    .login-samba-box {
        grid-template-columns: 1fr;
    }

    .login-samba-left {
        min-height: 260px;
    }

    .login-samba-big-logo {
        width: 190px;
    }

    .login-samba-brand h2 {
        font-size: 30px;
    }

    .login-form-card {
        width: 90%;
        margin: 30px 0 70px;
    }
}

/* ==========================
   LOGIN SAMBA TOTAL
========================== */

.login-page {
    min-height: calc(100vh - 260px);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 25px 0;
}

.login-panel {
    width: 100%;
    max-width: 1180px;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18);
}

.login-left {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(rgba(230, 81, 0, .88), rgba(255, 106, 0, .88)),
        radial-gradient(circle at center, rgba(255, 213, 79, .45), transparent 42%);
}

.login-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        repeating-linear-gradient(
            35deg,
            rgba(255, 255, 255, .08) 0,
            rgba(255, 255, 255, .08) 2px,
            transparent 2px,
            transparent 18px
        );
    opacity: .5;
}

.login-left::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -50px;
    width: 300px;
    height: 115%;
    background: white;
    border-radius: 50%;
    z-index: 1;
}

.login-left-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 55px 45px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(circle at center top, rgba(255, 213, 79, .22), transparent 35%),
        linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, .16) 100%);
}

.login-main-logo {
    width: 660px;
    height: auto;
    margin-bottom: 5px;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .38));
}

.login-left p {
    color: var(--amarillo);
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
    margin-top: -30px;
}

.login-consulta-btn {
    color: white;
    border: 2px solid white;
    border-radius: 10px;
    padding: 13px 34px;
    font-weight: 800;
    text-decoration: none;
    background: rgba(255, 255, 255, .08);
    transition: .2s ease;
}

.login-consulta-btn:hover {
    color: var(--naranja);
    background: white;
}

.login-right {
    position: relative;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card-new {
    width: 78%;
    max-width: 430px;
    background: white;
    border-radius: 22px;
    padding: 45px 42px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
}

.login-card-new h2 {
    font-size: 36px;
    font-weight: 900;
    color: #20242a;
    margin-bottom: 22px;
}

.login-title-small {
    font-size: 23px;
    color: #444;
    margin-bottom: 3px;
}

.login-card-new h3 {
    color: var(--naranja);
    font-size: 32px;
    font-weight: 900;
    margin-bottom: 32px;
}

.login-input {
    height: 52px;
    border-radius: 12px;
    font-size: 16px;
}

.login-submit-btn {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 11px;
    background: linear-gradient(90deg, var(--naranja-oscuro), var(--naranja));
    color: white;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(255, 106, 0, .3);
}

.login-submit-btn:hover {
    filter: brightness(.95);
}

.login-copy {
    position: absolute;
    bottom: 60px;
    color: #555;
    font-size: 14px;
}

/* Oculta navbar/footer solo visualmente en login si querés usar pantalla limpia */
body:has(.login-page) .samba-footer {
    display: none;
}

/* Responsive */
@media (max-width: 992px) {
    .login-panel {
        grid-template-columns: 1fr;
        max-width: 620px;
    }

    .login-left {
        min-height: 420px;
    }

    .login-left::after {
        display: none;
    }

    .login-main-logo {
        width: 210px;
    }

    .login-left h1 {
        font-size: 36px;
    }

    .login-card-new {
        width: 90%;
        margin: 40px 0 70px;
    }
}

/* LOGIN SIN NAVBAR */

.login-page {
    min-height: calc(100vh - 180px);
}

body:has(.login-page) main {
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}

/* ==========================
   CONSULTA ASISTENCIA
========================== */

.consulta-page {
    min-height: calc(100vh - 180px);

    display: flex;
    justify-content: center;
    align-items: center;
}

.consulta-panel {

    width: 100%;
    max-width: 1150px;

    min-height: 550px;

    display: grid;
    grid-template-columns: 40% 60%;

    overflow: hidden;

    background: white;

    border-radius: 28px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.12);
}

.consulta-left {

    background:
        linear-gradient(
            135deg,
            var(--naranja-oscuro),
            var(--naranja)
        );

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    color: white;

}

.consulta-logo {

    width: 540px;
    margin-bottom: -40px;

    filter:
        drop-shadow(
            0 8px 16px rgba(0,0,0,.35)
        );
}

.consulta-left h1 {

    font-size: 52px;
    font-weight: 900;

    margin-bottom: 10px;
}

.consulta-left p {

    color: var(--amarillo);

    text-align: center;

    font-size: 18px;
    font-weight: 700;

    margin-bottom: 30px;
}

.consulta-back-btn {

    border: 2px solid white;

    color: white;

    text-decoration: none;

    padding: 12px 28px;

    border-radius: 10px;

    font-weight: 700;
}

.consulta-back-btn:hover {

    background: white;
    color: var(--naranja);
}

.consulta-right {

    display: flex;
    align-items: center;
    justify-content: center;

    background: #fafafa;
}

.consulta-card {

    width: 450px;

    background: white;

    border-radius: 20px;

    padding: 40px;

    box-shadow:
        0 10px 30px rgba(0,0,0,.08);
}

.consulta-card h2 {

    font-size: 36px;
    font-weight: 800;

    margin-bottom: 10px;
}

.consulta-input {

    height: 55px;

    border-radius: 12px;
}

.consulta-btn {

    width: 100%;

    border: none;

    background:
        linear-gradient(
            90deg,
            var(--naranja-oscuro),
            var(--naranja)
        );

    color: white;

    height: 55px;

    border-radius: 12px;

    font-weight: 700;

    font-size: 18px;
}

.consulta-btn:hover {

    opacity: .95;
}

/* ==========================
   RESULTADO CONSULTA
========================== */

.consulta-resultado-header {
    background: linear-gradient(90deg, var(--naranja-oscuro), var(--naranja));
    color: white;
    border-radius: 20px;
    padding: 26px 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.consulta-resultado-header h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 4px;
}

.resultado-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 6px 12px rgba(0,0,0,.25));
}

/* ==========================
   REDES SOCIALES
========================== */

.social-icons {

    display: flex;
    justify-content: center;
    gap: 18px;

    margin-top: 10px;
}

.social-icons a {

    width: 46px;
    height: 46px;

    border-radius: 50%;

    background: rgba(255,255,255,.15);

    display: flex;
    align-items: center;
    justify-content: center;

    color: white;

    font-size: 22px;

    transition: .25s;
}

.social-icons a:hover {

    background: white;
    color: var(--naranja);

    transform: translateY(-3px);
}

/* ==========================
   WHATSAPP FLOTANTE
========================== */

.whatsapp-float {

    position: fixed;

    bottom: 25px;
    right: 25px;

    width: 65px;
    height: 65px;

    border-radius: 50%;

    background: #25D366;

    color: white;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 34px;

    text-decoration: none;

    box-shadow:
        0 8px 20px rgba(0,0,0,.25);

    z-index: 9999;

    transition: .25s;
}

.whatsapp-float:hover {

    transform: scale(1.08);

    color: white;

    box-shadow:
        0 12px 28px rgba(0,0,0,.35);
}

@keyframes whatsappPulse {

    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.whatsapp-float {

    animation:
        whatsappPulse 2.5s infinite;
}

/* ==========================
   RESPONSIVE MOBILE GENERAL
========================== */

@media (max-width: 768px) {

    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .navbar-samba {
        padding: 12px 10px;
    }

    .navbar-brand-samba,
    .navbar-brand {
        flex-direction: column;
        text-align: center;
        margin: 0 auto;
    }

    .navbar-logo {
        width: 90px !important;
        height: auto !important;
        margin: 0 0 8px 0 !important;
    }

    .brand-title {
        font-size: 24px !important;
    }

    .brand-subtitle {
        font-size: 11px !important;
    }

    .menu-samba {
        width: 100%;
        justify-content: center;
        margin-top: 12px;
        flex-wrap: wrap;
    }

    .menu-samba .btn {
        font-size: 12px;
        padding: 5px 8px;
    }

    .hero-samba {
        padding: 22px;
        border-radius: 16px;
    }

    .hero-samba h1 {
        font-size: 24px;
    }

    .hero-samba p {
        font-size: 15px;
    }

    .metric-card {
        margin-bottom: 12px;
    }

    .metric-icon {
        width: 46px;
        height: 46px;
        font-size: 22px;
    }

    .samba-footer {
        text-align: center;
        padding: 25px 10px;
    }

    .footer-logo {
        width: 80px !important;
        height: auto !important;
        margin: 0 0 10px 0 !important;
    }

    .samba-footer .d-flex {
        justify-content: center;
        flex-direction: column;
    }
}

/* ==========================
   CONSULTA ASISTENCIA MOBILE
========================== */

@media (max-width: 768px) {

    .consulta-page {
        min-height: auto;
        padding: 15px 0;
    }

    .consulta-panel {
        display: block;
        width: 100%;
        min-height: auto;
        border-radius: 18px;
    }

    .consulta-left {
        padding: 25px 18px;
    }

    .consulta-logo {
        width: 150px;
        margin-bottom: 12px;
    }

    .consulta-left h1 {
        font-size: 30px;
    }

    .consulta-left p {
        font-size: 14px;
        margin-bottom: 18px;
    }

    .consulta-back-btn {
        padding: 9px 18px;
        font-size: 14px;
    }

    .consulta-right {
        padding: 22px 15px;
    }

    .consulta-card {
        width: 100%;
        padding: 25px 20px;
    }

    .consulta-card h2 {
        font-size: 26px;
    }

    .consulta-input,
    .consulta-btn {
        height: 48px;
    }
}

.table-responsive {
    border-radius: 14px;
}

.table td,
.table th {
    vertical-align: middle;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .table {
        font-size: 14px;
    }

    .table img {
        max-width: 75px;
    }
}

/* ==========================
   TABLAS ADMINISTRATIVAS
========================== */

.table-responsive {
    width: 100%;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    white-space: nowrap;
}

.admin-table th,
.admin-table td {
    vertical-align: middle;
}

.admin-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
}

.admin-actions .btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.admin-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .admin-table {
        font-size: 14px;
    }

    .admin-actions .btn {
        width: 32px;
        height: 32px;
    }
}