/* ============================================
   SENTINEL — Premium UI · Contalisto
   ============================================ */

/* Garantiza que [hidden] siempre oculte aunque el CSS defina display */
[hidden] { display: none !important; }

/* ============================================
   INTRO SCREEN
   ============================================ */

/* Bloquear card mientras la intro está activa */
body.intro-active .container {
    opacity: 0;
    pointer-events: none;
}

/* Overlay */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, #0a1628 0%, #0d2140 50%, #0f2952 100%);
    animation: introExit 0.7s cubic-bezier(0.7, 0, 0.3, 1) 3.2s both;
}

/* Estado final tras la animación — sin bloquear clics */
.intro-overlay.hidden {
    opacity: 0;
    pointer-events: none !important;
    visibility: hidden;
}

@keyframes introExit {
    0% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.04);
        visibility: hidden;
    }
}

/* Content wrapper */
.intro-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    padding: 20px;
}

/* Logo */
.intro-logo {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(53, 129, 171, 0.4);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: introLogoIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
    box-shadow: 0 0 60px rgba(53, 129, 171, 0.35), 0 8px 32px rgba(0,0,0,0.3);
}

.intro-logo svg {
    width: 44px;
    height: 44px;
}

@keyframes introLogoIn {
    from {
        opacity: 0;
        transform: scale(0.5) rotate(-10deg);
    }

    to {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* "Bienvenido a" */
.intro-welcome {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    animation: introTextIn 0.5s ease 0.75s both;
}

/* "Sentinel" */
.intro-title {
    font-family: 'Inter', sans-serif;
    font-size: clamp(42px, 8vw, 72px);
    font-weight: 800;
    letter-spacing: -2px;
    background: linear-gradient(135deg, #ffffff 0%, #b8d9ee 50%, #7ab8d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: introTitleIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.95s both;
    line-height: 1.1;
}

@keyframes introTitleIn {
    from {
        opacity: 0;
        transform: translateY(24px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes introTextIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Subtitle */
.intro-sub {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #475569;
    letter-spacing: 0.04em;
    animation: introTextIn 0.5s ease 1.3s both;
}

/* Progress bar */
.intro-bar {
    margin-top: 36px;
    width: 180px;
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    overflow: hidden;
    animation: introTextIn 0.4s ease 1.4s both;
}

.intro-bar-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    background: linear-gradient(90deg, #3581AB, #4fa8d8, #1c6fa0);
    animation: introBarGrow 1.6s cubic-bezier(0.25, 1, 0.5, 1) 1.5s both;
}

@keyframes introBarGrow {
    from {
        width: 0%;
    }

    to {
        width: 100%;
    }
}

/* Reveal main content after intro */
body.intro-done .container {
    animation: cardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}


/* --- Reset & Base --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #3581AB;
    --primary-dark: #1c6fa0;
    --primary-light: #5aa3c8;
    --secondary: #4fa8d8;
    --accent: #7ab8d8;

    --bg-from: #0a1628;
    --bg-mid: #0d2140;
    --bg-to: #0f2952;

    --card-bg: rgba(255, 255, 255, 0.07);
    --card-border: rgba(255, 255, 255, 0.13);

    --text-primary: #f0f6fa;
    --text-secondary: #94b8cc;
    --text-muted: #5a7f96;

    --input-bg: rgba(255, 255, 255, 0.07);
    --input-border: rgba(255, 255, 255, 0.14);
    --input-focus-border: var(--primary-light);
    --input-focus-shadow: rgba(53, 129, 171, 0.28);

    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-card: 0 32px 80px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(53, 129, 171, 0.1);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    background: linear-gradient(140deg, #0a1628 0%, #0d2a4a 50%, #082038 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    color: var(--text-primary);
    position: relative;
    overflow-x: hidden;
}

/* --- Background orbs --- */
.bg-orbs {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #3581AB, transparent 70%);
    top: -140px;
    left: -120px;
    animation: orbFloat 12s ease-in-out infinite;
}

.orb-2 {
    width: 380px;
    height: 380px;
    background: radial-gradient(circle, #1c6fa0, transparent 70%);
    bottom: -100px;
    right: -80px;
    animation: orbFloat 16s ease-in-out infinite reverse;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, #4fa8d8, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 20s ease-in-out infinite;
}

@keyframes orbFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 30px) scale(0.96);
    }
}

/* --- Container & Card --- */
.container {
    width: 100%;
    max-width: 540px;
    position: relative;
    z-index: 1;
    animation: cardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.card {
    background: var(--card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    box-shadow: var(--shadow-card);
}

/* --- Card Header --- */
.card-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: rgba(53, 129, 171, 0.1);
    border: 1px solid rgba(53, 129, 171, 0.25);
    padding: 7px 14px 7px 9px;
    border-radius: 50px;
}

.client-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    color: #7ab8d8;
    background: rgba(53, 129, 171, 0.14);
    border: 1px solid rgba(53, 129, 171, 0.3);
    padding: 5px 11px;
    border-radius: 50px;
    letter-spacing: 0.02em;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: rgba(255,255,255,0.92);
    overflow: hidden;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: #b8d9ee;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.card-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #b8d9ee 60%, #7ab8d8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* --- Form --- */
.form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.credentials-section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-md);
}

/* --- Form Group --- */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #5aa3c8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.label-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    opacity: 0.8;
}

.optional-tag {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.07);
    padding: 1px 7px;
    border-radius: 20px;
    text-transform: none;
    letter-spacing: 0;
    margin-left: 2px;
}

/* --- Inputs --- */
.input-wrapper {
    position: relative;
}

.input-wrapper input,
.input-wrapper select {
    width: 100%;
    padding: 13px 16px;
    padding-right: 44px;
    background: var(--input-bg);
    border: 1.5px solid var(--input-border);
    border-radius: var(--radius-sm);
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text-primary);
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
    -webkit-appearance: none;
    appearance: none;
}

.input-wrapper input::placeholder {
    color: var(--text-muted);
    font-weight: 400;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
    outline: none;
    border-color: var(--input-focus-border);
    box-shadow: 0 0 0 4px var(--input-focus-shadow);
    background: rgba(255, 255, 255, 0.09);
}

/* Date inputs */
input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.8) opacity(0.6);
    cursor: pointer;
}

/* Input icon */
.input-icon {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    display: flex;
}

.input-icon svg {
    width: 17px;
    height: 17px;
}

/* Toggle password */
.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: color var(--transition), background var(--transition);
}

.toggle-password:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.07);
}

.toggle-password svg {
    width: 17px;
    height: 17px;
}

/* Password strength */
.strength-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 10px;
    margin-top: 2px;
    overflow: hidden;
    opacity: 0;
    transition: opacity var(--transition);
}

.strength-bar.visible {
    opacity: 1;
}

.strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 10px;
    transition: width 0.4s ease, background-color 0.4s ease;
}

.strength-label {
    font-size: 11px;
    font-weight: 500;
    min-height: 14px;
    transition: color var(--transition);
}

/* Select wrapper */
.select-wrapper {
    position: relative;
}

.select-arrow {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--text-muted);
    pointer-events: none;
}


/* --- Query Sections (toggle) --- */
.query-section {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition), opacity var(--transition);
}

.query-section.disabled {
    opacity: 0.45;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    user-select: none;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title svg {
    width: 15px;
    height: 15px;
    color: #5aa3c8;
    flex-shrink: 0;
}

.section-tag {
    font-size: 11px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: 2px;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
    flex-shrink: 0;
}

.toggle-switch input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-track {
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    transition: background var(--transition), border-color var(--transition);
    padding: 2px;
}

.toggle-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: transform var(--transition), background var(--transition);
    flex-shrink: 0;
}

.toggle-switch input:checked+.toggle-track {
    background: rgba(53, 129, 171, 0.45);
    border-color: rgba(53, 129, 171, 0.7);
}

.toggle-switch input:checked+.toggle-track .toggle-thumb {
    transform: translateX(18px);
    background: #5aa3c8;
}

/* Section body */
.section-body {
    padding: 20px 18px;
    transition: opacity var(--transition);
}

.query-section.disabled .section-body {
    pointer-events: none;
}

.query-section.disabled input,
.query-section.disabled select {
    opacity: 0.5;
    cursor: not-allowed;
}



/* --- Two col layout --- */
.date-range,
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* --- Submit Button --- */
.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 28px;
    background: linear-gradient(135deg, #3581AB 0%, #1c6fa0 100%);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
    box-shadow: 0 4px 24px rgba(53, 129, 171, 0.5);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.submit-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 60%);
    pointer-events: none;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(53, 129, 171, 0.7);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(53, 129, 171, 0.45);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-icon svg {
    transition: transform var(--transition);
}

.submit-btn:hover:not(:disabled) .btn-icon svg {
    transform: translateX(4px);
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spin-anim {
    animation: spin 0.8s linear infinite;
}

/* --- Footer note --- */
.footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

/* --- Toast --- */
.toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    min-width: 280px;
    max-width: 360px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(120%) scale(0.95);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.toast-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.toast-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.toast-content strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.toast-content span {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
    padding: 2px;
    border-radius: 4px;
    display: flex;
    transition: color var(--transition);
    flex-shrink: 0;
}

.toast-close:hover {
    color: var(--text-primary);
}

/* --- Responsive --- */
@media (max-width: 560px) {
    .card {
        padding: 28px 20px;
    }

    .card-header h1 {
        font-size: 22px;
    }

    .date-range,
    .two-col {
        grid-template-columns: 1fr;
    }

    .toast {
        bottom: 16px;
        right: 16px;
        left: 16px;
        min-width: unset;
        max-width: unset;
    }
}
/* ============================================
   DVIAM BRANDING — PREMIUM
   ============================================ */

/* ── INTRO: bloque DVIAM ── */
.intro-devby {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    animation: introTextIn 0.6s ease 1.7s both;
}

.intro-devby-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.28);
}

.intro-devby-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(53,129,171,0.18), rgba(28,111,160,0.22));
    border: 1px solid rgba(53, 129, 171, 0.45);
    box-shadow:
        0 0 18px rgba(53,129,171,0.35),
        0 0 40px rgba(28,111,160,0.18),
        inset 0 1px 0 rgba(255,255,255,0.1);
    overflow: hidden;
    cursor: default;
    animation: dviamPulse 3s ease-in-out infinite;
}

@keyframes dviamPulse {
    0%, 100% { box-shadow: 0 0 18px rgba(53,129,171,0.35), 0 0 40px rgba(28,111,160,0.18), inset 0 1px 0 rgba(255,255,255,0.1); }
    50%       { box-shadow: 0 0 28px rgba(53,129,171,0.6),  0 0 60px rgba(28,111,160,0.35), inset 0 1px 0 rgba(255,255,255,0.15); }
}

/* shimmer sweep */
.intro-devby-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
    animation: dviamShimmer 2.8s ease-in-out 2.2s infinite;
}

@keyframes dviamShimmer {
    0%   { left: -100%; }
    100% { left: 160%;  }
}

.intro-dviam-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #5aa3c8;
    box-shadow: 0 0 8px #3581AB, 0 0 16px #1c6fa0;
    animation: dotBlink 1.8s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes dotBlink {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.4; transform: scale(0.7); }
}

.intro-dviam-text {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #b8d9ee, #7ab8d8, #ffffff, #5aa3c8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dviamTextShine 3s linear infinite;
}

@keyframes dviamTextShine {
    0%   { background-position: 0%   center; }
    100% { background-position: 200% center; }
}

/* ── CARD FOOTER: bloque DVIAM ── */
.footer-devby {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.footer-devby-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

.footer-devby-badge {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 18px;
    border-radius: 100px;
    background: linear-gradient(135deg, rgba(53,129,171,0.12), rgba(28,111,160,0.16));
    border: 1px solid rgba(53, 129, 171, 0.35);
    box-shadow:
        0 0 14px rgba(53,129,171,0.25),
        0 0 30px rgba(28,111,160,0.12),
        inset 0 1px 0 rgba(255,255,255,0.07);
    overflow: hidden;
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
}

.footer-devby-badge:hover {
    box-shadow:
        0 0 24px rgba(53,129,171,0.5),
        0 0 50px rgba(28,111,160,0.28),
        inset 0 1px 0 rgba(255,255,255,0.14);
    border-color: rgba(53, 129, 171, 0.65);
    transform: translateY(-1px);
}

/* shimmer on hover */
.footer-devby-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.14), transparent);
    transition: left 0s;
}

.footer-devby-badge:hover::before {
    animation: dviamShimmer 0.7s ease forwards;
}

.footer-dviam-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #3581AB;
    box-shadow: 0 0 6px #1c6fa0, 0 0 12px rgba(53,129,171,0.6);
    animation: dotBlink 2.2s ease-in-out infinite;
    flex-shrink: 0;
}

.footer-dviam-text {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #7ab8d8, #b8d9ee, #5aa3c8, #7ab8d8);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: dviamTextShine 4s linear infinite;
}

/* ── Mode Selector ─────────────────────────────────── */
.mode-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.mode-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 12px 8px 10px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid rgba(255,255,255,0.09);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-secondary);
    font-family: inherit;
    text-align: center;
}

.mode-btn:hover {
    background: rgba(53,129,171,0.1);
    border-color: rgba(53,129,171,0.3);
    color: var(--text-primary);
}

.mode-btn--active {
    background: rgba(53,129,171,0.18);
    border-color: rgba(53,129,171,0.6);
    color: #7ec8e3;
    box-shadow: 0 0 0 1px rgba(53,129,171,0.2) inset;
}

.mode-svg   { width: 16px; height: 16px; flex-shrink: 0; }
.mode-label { font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em; }

/* ── Download Mode Selector (2 cols) ────────────────── */
.download-mode-selector {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 4px;
}

/* ── Section Divider ────────────────────────────────── */
.section-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 16px 0 10px;
}
.section-divider::before,
.section-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
}
.section-divider-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
}
.mode-tag   { font-size: 10px; color: var(--text-muted); line-height: 1.3; }
.mode-btn--active .mode-tag { color: rgba(126,200,227,0.65); }

/* ── Mode Panels ────────────────────────────────────── */
/* hidden nativo controla visibilidad; sin transición para evitar
   que inputs ocultos sean accidentalmente tabulables */
.mode-panel[hidden] { display: none; }

/* ── Período Info / Warning ─────────────────────────── */
.periodo-info {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(53,129,171,0.08);
    border: 1px solid rgba(53,129,171,0.2);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.periodo-info strong { color: #7ec8e3; }

.periodo-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    background: rgba(245,158,11,0.1);
    border: 1px solid rgba(245,158,11,0.3);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: #fbbf24;
    margin-bottom: 14px;
    line-height: 1.4;
    transition: background var(--transition), border-color var(--transition), color var(--transition);
}
.periodo-warning--danger {
    background: rgba(239,68,68,0.1);
    border-color: rgba(239,68,68,0.35);
    color: #f87171;
}
