/* ═══════════════════════════════════════════════
   TOKENS DE DISEÑO
═══════════════════════════════════════════════ */
:root {
    --blue-deep: #000000;
    --blue-mid: #01030a;
    --blue-brand: #00008A;
    --blue-bright: #00FFFF;
    --blue-glow: rgba(0, 255, 255, 0.25);
    --blue-glow-dim: rgba(0, 255, 255, 0.08);

    --glass-bg: rgba(2, 5, 13, 0.75);
    --glass-border: rgba(0, 255, 255, 0.25);
    --glass-border-h: rgba(0, 255, 255, 0.65);

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.65);
    --text-dim: rgba(255, 255, 255, 0.35);

    --accent: #00FFFF;
    --accent-dim: rgba(0, 255, 255, 0.35);

    --radius: 14px;
    --shadow-card: 0 40px 120px rgba(0, 0, 0, 0.9), 0 0 60px rgba(0, 0, 138, 0.4);

    --modal-bg: rgba(0, 0, 0, 0.65);
    --modal-z: 100;

    /* Animación de entrada */
    --anim-duration: 600ms;
    --anim-delay-base: 200ms;
    --anim-stagger: 120ms;
}

/* ═══════════════════════════════════════════════
   TEMA CLARO
═══════════════════════════════════════════════ */
html[data-theme="light"] {
    --blue-deep: #f0f2f5;
    --blue-mid: #e1e5eb;
    --blue-brand: #0f6bdc;
    --blue-bright: #2196f3;
    --blue-glow: rgba(15, 107, 220, 0.15);
    --blue-glow-dim: rgba(15, 107, 220, 0.06);

    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 107, 220, 0.15);
    --glass-border-h: rgba(15, 107, 220, 0.35);

    --text-primary: #1a1a2e;
    --text-secondary: rgba(26, 26, 46, 0.6);
    --text-dim: rgba(26, 26, 46, 0.35);

    --accent: #0f6bdc;
    --accent-dim: rgba(15, 107, 220, 0.25);

    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.1), 0 0 30px rgba(15, 107, 220, 0.08);
}

html[data-theme="light"] .bg-gradient {
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(15, 107, 220, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(56, 182, 255, 0.05) 0%, transparent 55%),
        linear-gradient(160deg, #e8ecf1 0%, #f0f2f5 60%);
}

html[data-theme="light"] .bg-grid {
    background-image:
        linear-gradient(rgba(15, 107, 220, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 107, 220, 0.06) 1px, transparent 1px);
}

html[data-theme="light"] .glow-orb--left {
    background: rgba(15, 107, 220, 0.06);
}

html[data-theme="light"] .glow-orb--right {
    background: rgba(56, 182, 255, 0.04);
}

html[data-theme="light"] .card__left {
    background: rgba(15, 107, 220, 0.04);
}

html[data-theme="light"] .profile__name {
    background: linear-gradient(120deg, #0a0a1a 0%, #0d47a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
    filter: contrast(1.2);
}

html[data-theme="light"] .contact-item {
    border-color: rgba(15, 107, 220, 0.1);
    background: rgba(15, 107, 220, 0.03);
}

html[data-theme="light"] .contact-item:hover,
html[data-theme="light"] .contact-item:focus-visible {
    border-color: rgba(15, 107, 220, 0.25);
    background: rgba(15, 107, 220, 0.06);
}

/* ═══════════════════════════════════════════════
   TEMA CLARO — MODAL DE SERVICIOS (OVERRIDE)
═══════════════════════════════════════════════ */

/* Overlay: fondo blanco translúcido en vez de negro */
html[data-theme="light"] .services-modal {
    background: rgba(240, 242, 245, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Imágenes de fondo: atenuar drásticamente para no ensuciar */
html[data-theme="light"] .svc-vid {
    filter: brightness(1.1) contrast(0.9) saturate(0.6);
}

html[data-theme="light"] .svc-vid.active {
    opacity: 0.08;
}

/* Fallback gradient claro */
html[data-theme="light"] .services-modal__videos::before {
    background: radial-gradient(circle at 50% 50%, rgba(15, 107, 220, 0.08) 0%, rgba(240, 242, 245, 0.3) 80%);
    opacity: 0.6;
}

/* Contenido principal: Glass blanco premium */
html[data-theme="light"] .services-modal__content {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(15, 107, 220, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.08),
        0 0 40px rgba(15, 107, 220, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

/* Header del modal */
html[data-theme="light"] .services-header {
    border-bottom: 1px solid rgba(15, 107, 220, 0.12);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(240, 242, 245, 0.8) 100%);
}

html[data-theme="light"] .services-header h2 {
    color: #0f6bdc;
}

/* Botón cerrar (X) */
html[data-theme="light"] .btn-close {
    color: rgba(26, 26, 46, 0.5);
}

html[data-theme="light"] .btn-close:hover {
    color: #0f6bdc;
    background: rgba(15, 107, 220, 0.08);
}

/* Lista de servicios: Scrollbar clara */
html[data-theme="light"] .services-list {
    background: transparent;
}

html[data-theme="light"] .services-list::-webkit-scrollbar-thumb {
    background-color: rgba(15, 107, 220, 0.2);
}

/* Items del catálogo */
html[data-theme="light"] .svc-item {
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(15, 107, 220, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Hover de items: acento azul corporativo elegante */
html[data-theme="light"] .svc-item:hover,
html[data-theme="light"] .svc-item.is-hovered {
    border-color: rgba(15, 107, 220, 0.3);
    background: rgba(15, 107, 220, 0.06);
    box-shadow: 0 4px 18px rgba(15, 107, 220, 0.1);
    transform: translateX(4px);
}

/* Glow sweep en light mode */
html[data-theme="light"] .svc-item__glow {
    background: linear-gradient(90deg, transparent, rgba(15, 107, 220, 0.06), transparent);
}

/* Títulos de servicio */
html[data-theme="light"] .svc-item__title {
    color: #1a1a2e;
}

/* Descripciones de servicio */
html[data-theme="light"] .svc-item__desc {
    color: rgba(26, 26, 46, 0.65);
}

/* Botón "VER NUESTROS SERVICIOS" en light mode */
html[data-theme="light"] .action-btn--services {
    background: rgba(15, 107, 220, 0.08);
    border-color: rgba(15, 107, 220, 0.2);
    color: #0f6bdc;
}

html[data-theme="light"] .action-btn--services:hover {
    background: rgba(15, 107, 220, 0.14);
    border-color: rgba(15, 107, 220, 0.4);
    box-shadow: 0 0 20px rgba(15, 107, 220, 0.15);
}

/* ═══════════════════════════════════════════════
   RESET
═══════════════════════════════════════════════ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ═══════════════════════════════════════════════
   FONDO
═══════════════════════════════════════════════ */
body {
    min-height: 100vh;
    background-color: var(--blue-deep);
    font-family: 'Inter', sans-serif;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.bg-scene {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.bg-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(0, 0, 138, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0, 255, 255, 0.12) 0%, transparent 55%),
        linear-gradient(160deg, var(--blue-mid) 0%, var(--blue-deep) 60%);
}

/* Retícula tecnológica */
.bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Orbes de glow ambiental */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.glow-orb--left {
    width: 500px;
    height: 500px;
    background: rgba(0, 0, 138, 0.25);
    bottom: -100px;
    left: -150px;
}

.glow-orb--right {
    width: 400px;
    height: 400px;
    background: rgba(0, 255, 255, 0.1);
    top: -80px;
    right: -100px;
}

/* ═══════════════════════════════════════════════
   ESCENARIO
═══════════════════════════════════════════════ */
.stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    perspective: 1400px;
}

/* ═══════════════════════════════════════════════
   TARJETA
═══════════════════════════════════════════════ */
.card {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    overflow: hidden;
    transition: transform 0.08s ease-out, background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;

    /* Layout horizontal por defecto */
    display: grid;
    grid-template-columns: 220px 1px 1fr;
    grid-template-rows: 1fr auto;
    grid-template-areas:
        "left  div  right"
        "left  div  qr   ";
    min-height: 340px;
}

/* Reflejo de luz que sigue al cursor */
.card__glare {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
    transition: background 0.1s ease;
    z-index: 2;
}

/* Esquinas decorativas */
.card__corner {
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: var(--accent-dim);
    border-style: solid;
    z-index: 3;
}

.card__corner--tl {
    top: 16px;
    left: 16px;
    border-width: 1px 0 0 1px;
}

.card__corner--br {
    bottom: 16px;
    right: 16px;
    border-width: 0 1px 1px 0;
}

/* ── COLUMNA IZQUIERDA ── */
.card__left {
    grid-area: left;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 40px 28px;
    background: rgba(15, 107, 220, 0.06);
}

.card__logo-wrap {
    position: relative;
}

.card__logo {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.4));
    overflow: visible;
    object-fit: contain;
}

.card__logo-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(15, 107, 220, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.card__company-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 8px var(--accent);
    }

    50% {
        opacity: 0.5;
        box-shadow: 0 0 3px var(--accent);
    }
}

/* ── DIVISOR VERTICAL ── */
.card__vdivider {
    grid-area: div;
    width: 1px;
    background: linear-gradient(to bottom,
            transparent 0%,
            var(--glass-border) 20%,
            var(--glass-border) 80%,
            transparent 100%);
    align-self: stretch;
}

/* ── COLUMNA DERECHA ── */
.card__right {
    grid-area: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 40px 36px 28px;
}

/* Perfil */
.profile__level {
    font-size: 8px;
    letter-spacing: 3px;
    color: var(--accent-dim);
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
}

.profile__name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 4px;
    font-family: 'Poppins', sans-serif;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 255, 255, 0.3);
    line-height: 1.15;
}

.profile__hdivider {
    height: 1px;
    width: 64px;
    background: linear-gradient(90deg, var(--blue-brand), var(--blue-bright));
    margin: 12px 0;
    border-radius: 1px;
    box-shadow: 0 0 8px var(--blue-bright);
}

.profile__title {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--accent);
    text-transform: uppercase;
}

.profile__tagline {
    font-size: 11px;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-top: 3px;
}

/* Contactos Smart (Stacked) */
.card__contacts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-item {
    display: grid;
    grid-template-columns: 28px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "icon label" "icon value";
    align-items: center;
    gap: 0 12px;
    padding: 14px 18px;
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    background: rgba(0, 255, 255, 0.04);
}

.contact-item:hover,
.contact-item:focus-visible {
    border-color: var(--accent-dim);
    background: rgba(0, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
    transform: translateY(-2px);
    outline: none;
}

.contact-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}



.contact-item__icon {
    grid-area: icon;
    width: 22px;
    height: 22px;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    filter: drop-shadow(0 0 6px var(--blue-glow));
}

.contact-item__icon svg {
    width: 100%;
    height: 100%;
}

.contact-item__label {
    grid-area: label;
    font-size: 8px;
    letter-spacing: 2.2px;
    font-weight: 700;
    color: var(--text-dim);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.contact-item__value {
    grid-area: value;
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    letter-spacing: 0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Acciones */
.card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.action-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.action-btn__icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* WhatsApp */
.action-btn--wa {
    background: rgba(37, 211, 102, 0.1);
    border-color: rgba(37, 211, 102, 0.35);
    color: #25d366;
}

.action-btn--wa:hover {
    background: rgba(37, 211, 102, 0.2);
    border-color: #25d366;
    box-shadow: 0 0 16px rgba(37, 211, 102, 0.25);
}

/* LinkedIn */
.action-btn--li {
    background: rgba(10, 102, 194, 0.12);
    border-color: rgba(10, 102, 194, 0.35);
    color: #6ab5f5;
}

.action-btn--li:hover {
    background: rgba(10, 102, 194, 0.25);
    border-color: #0a66c2;
    box-shadow: 0 0 16px rgba(10, 102, 194, 0.25);
}

/* Hover Tech general */
.action-btn:hover {
    box-shadow: 0 0 16px rgba(0, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Guardar / Servicios Extra */
.action-btn--services {
    background: rgba(0, 255, 255, 0.12);
    border-color: var(--accent-dim);
    color: var(--accent);
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    margin-top: 10px;
    font-size: 11px;
}

.action-btn--services:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

/* Guardar */
.action-btn--save {
    background: rgba(15, 107, 220, 0.12);
    border-color: var(--accent-dim);
    color: var(--accent);
    font-family: inherit;
}

.action-btn--save:hover {
    background: rgba(56, 182, 255, 0.18);
    border-color: var(--accent);
    box-shadow: 0 0 20px rgba(56, 182, 255, 0.25);
}

.action-btn--success {
    background: rgba(56, 182, 255, 0.2) !important;
    border-color: var(--accent) !important;
    color: var(--accent) !important;
}

/* QR */
.card__qr {
    grid-area: qr;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 36px 20px;
    gap: 6px;
}

#qr-canvas canvas,
#qr-canvas img {
    border-radius: 6px;
    border: 1px solid rgba(56, 182, 255, 0.2);
    background: #fff;
    padding: 4px;
    width: 64px !important;
    height: 64px !important;
}

.card__qr-label {
    font-size: 7px;
    letter-spacing: 2px;
    color: var(--text-dim);
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

/* ═══════════════════════════════════════════════
   MODAL DE SERVICIOS CINEMÁTICO
═══════════════════════════════════════════════ */
.services-modal {
    position: fixed;
    inset: 0;
    z-index: var(--modal-z);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.4s ease, visibility 0.4s;
    background: var(--modal-bg);
}

.services-modal.is-open {
    opacity: 1;
    visibility: visible;
}

/* Videos de Fondo (Crossfade System) */
.services-modal__videos {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
}

.svc-vid {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    /* Corrección de color y contraste para acentuar el dark mode */
    filter: brightness(0.4) contrast(1.2) saturate(1.2);
    /* Animación cinemática fluida (Zoom Lento estilo Video) */
    animation: ken-burns 20s infinite alternate ease-in-out;
}

@keyframes ken-burns {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.1) translate(-2%, -1%);
    }
}

.svc-vid.active {
    opacity: 0.35;
    /* Transparencia tecnológica e iluminación de IA */
}

/* Fallback de gradiente por defecto en caso de no cargar video */
.services-modal__videos::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, #00008A 0%, #000000 80%);
    opacity: 0.5;
    z-index: -1;
}

/* Interfaz Modal sobre los Videos */
.services-modal__content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 600px;
    max-height: 85vh;
    background: rgba(5, 5, 10, 0.6);
    border: 1px solid rgba(0, 255, 255, 0.15);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 255, 255, 0.1);
    transform: translateY(20px) scale(0.98);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.services-modal.is-open .services-modal__content {
    transform: translateY(0) scale(1);
}

.services-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 30px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.services-header h2 {
    font-size: 14px;
    letter-spacing: 4px;
    font-weight: 700;
    color: var(--accent);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

.btn-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.btn-close:hover {
    color: var(--accent);
    background: rgba(0, 255, 255, 0.1);
}

.btn-close svg {
    width: 20px;
    height: 20px;
}

/* Lista de Servicios Scrollable */
.services-list {
    padding: 24px 30px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.services-list::-webkit-scrollbar {
    width: 4px;
}

.services-list::-webkit-scrollbar-thumb {
    background-color: var(--accent-dim);
    border-radius: 4px;
}

.svc-item {
    position: relative;
    padding: 16px 20px;
    background: rgba(0, 255, 255, 0.03);
    border: 1px solid rgba(0, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.svc-item__glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s;
    pointer-events: none;
}

.svc-item:hover,
.svc-item.is-hovered {
    border-color: var(--accent-dim);
    background: rgba(0, 255, 255, 0.08);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transform: translateX(4px);
}

.svc-item:hover .svc-item__glow,
.svc-item.is-hovered .svc-item__glow {
    transform: translateX(100%);
}

.svc-item__title {
    font-size: 13px;
    color: var(--text-primary);
    font-family: 'Poppins', sans-serif;
    letter-spacing: 1px;
    margin-bottom: 4px;
    font-weight: 600;
}

.svc-item__desc {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 300;
}

/* ═══════════════════════════════════════════════
   TOGGLE TEMA CLARO/OSCURO (Legacy)
═══════════════════════════════════════════════ */
.theme-toggle {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 32px;
    height: 32px;
    padding: 6px;
    border: 1px solid var(--glass-border);
    border-radius: 6px;
    background: rgba(56, 182, 255, 0.06);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s, box-shadow 0.25s;
    font-family: inherit;
}

.theme-toggle:hover {
    background: rgba(56, 182, 255, 0.15);
    border-color: var(--accent-dim);
    box-shadow: 0 0 12px rgba(56, 182, 255, 0.2);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.theme-toggle svg {
    width: 16px;
    height: 16px;
}

/* Dark mode: mostrar sol, ocultar luna */
.theme-toggle__moon {
    display: none;
}

.theme-toggle__sun {
    display: block;
}

/* Light mode: mostrar luna, ocultar sol */
html[data-theme="light"] .theme-toggle__moon {
    display: block;
}

html[data-theme="light"] .theme-toggle__sun {
    display: none;
}

/* ═══════════════════════════════════════════════
   ANIMACIÓN DE ENTRADA
═══════════════════════════════════════════════ */

/* Fondo: fade-in primero */
@keyframes bgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.bg-scene {
    animation: bgFadeIn var(--anim-duration) ease-out both;
}

/* Tarjeta: fade + scale + slide */
@keyframes cardEntrance {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96);
    }

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

.card {
    animation: cardEntrance var(--anim-duration) cubic-bezier(0.22, 1, 0.36, 1) var(--anim-delay-base) backwards;
}

/* Elementos internos: fade + slide escalonado */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

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

.card__left {
    animation: fadeSlideIn 400ms ease-out calc(var(--anim-delay-base) + var(--anim-stagger) * 1) backwards;
}

.card__right .card__profile {
    animation: fadeSlideIn 400ms ease-out calc(var(--anim-delay-base) + var(--anim-stagger) * 2) backwards;
}

.card__contacts {
    animation: fadeSlideIn 400ms ease-out calc(var(--anim-delay-base) + var(--anim-stagger) * 3) backwards;
}

.card__actions {
    animation: fadeSlideIn 400ms ease-out calc(var(--anim-delay-base) + var(--anim-stagger) * 4) backwards;
}

.card__qr {
    animation: fadeSlideIn 400ms ease-out calc(var(--anim-delay-base) + var(--anim-stagger) * 5) backwards;
}

/* ═══════════════════════════════════════════════
   ACCESIBILIDAD — reducir movimiento
═══════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {

    .bg-scene,
    .card,
    .card__left,
    .card__right .card__profile,
    .card__contacts,
    .card__qr,
    .services-modal__content {
        animation: none;
    }

    .badge-dot {
        animation: none;
    }

    .card {
        transition: none;
    }

    .card__glare {
        transition: none;
    }

    .svc-vid {
        transition: opacity 0s;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — tablet
═══════════════════════════════════════════════ */
@media (max-width: 680px) {
    .card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas:
            "left"
            "right"
            "qr";
    }

    .card__vdivider {
        display: none;
    }

    .card__left {
        padding: 36px 28px 24px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
        background: rgba(15, 107, 220, 0.08);
    }

    .card__logo {
        width: 72px;
        height: 72px;
    }

    .card__right {
        padding: 24px 28px;
        gap: 20px;
    }

    .profile__name {
        font-size: 22px;
    }

    .card__qr {
        align-items: center;
        padding: 0 28px 28px;
    }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — móvil pequeño
═══════════════════════════════════════════════ */
@media (max-width: 400px) {
    body {
        padding: 12px;
    }

    .card__contacts {
        gap: 10px;
    }

    .profile__name {
        font-size: 20px;
        letter-spacing: 2px;
    }
}