/* ==========================================================================
   1. VARIABLES DE COLOR (IDENTIDAD DE LA PELUQUERÍA DE MICHI)
   ========================================================================== */
:root {
    /* Paleta Naranja, Rojo Pastel y Coral con alto contraste para letras blancas */
    --naranja-michi: #ff7324;
    --rojo-pastel: #ff5768;
    --coral-claro: #ff8577;
    --fondo-crema-activo: #fff2ed;
    --borde-suave: #ffd8c7;

    /* Degradado principal más vivo para que las letras blancas resalten perfecto */
    --degradado-michi: linear-gradient(135deg, #ff7324 0%, #ff5768 60%, #ff8577 100%);
    --degradado-hover: linear-gradient(135deg, #f05e0e 0%, #f23d51 65%, #ff6f5e 100%);

    /* Colores de fondo y texto (Modo Claro) */
    --bg-pagina: #fafafa;
    --bg-tarjeta: #ffffff;
    --texto-principal: #18181b;
    --texto-secundario: #52525b;
    --borde-gris: #f0f0f4;
    --sombra-tarjeta: 0 4px 20px rgba(255, 107, 107, 0.06);
}

/* MODO OSCURO (Contraste alto y legible) */
body.modo-oscuro {
    --bg-pagina: #121316;
    --bg-tarjeta: #1c1e24;
    --texto-principal: #ffffff;
    --texto-secundario: #d4d4d8;
    /* Más claro para que se lea súper bien de noche */
    --borde-gris: #2d3039;
    --fondo-crema-activo: #33201d;
    --borde-suave: #523029;
}

/* ==========================================================================
   2. RESETEO GENERAL
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-pagina);
    color: var(--texto-principal);
    transition: background-color 0.25s, color 0.25s;
}

/* ==========================================================================
   3. BARRA SUPERIOR DE SIMULACIÓN DE ROLES
   ========================================================================== */
.barra-roles {
    background: linear-gradient(90deg, #1f1918 0%, #2d1f1e 100%);
    color: #ffffff;
    padding: 8px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    border-bottom: 2px solid var(--naranja-michi);
}

.selector-roles {
    display: flex;
    gap: 8px;
}

.btn-rol {
    background: rgba(255, 255, 255, 0.1);
    color: #e4e4e7;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-rol:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-rol.activo {
    background: var(--degradado-michi);
    color: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 2px 10px rgba(255, 107, 107, 0.4);
}

/* ==========================================================================
   4. ESTRUCTURA PRINCIPAL (SIDEBAR A LA IZQUIERDA + CONTENIDO A LA DERECHA)
   ========================================================================== */
.app-layout {
    display: flex;
    min-height: calc(100vh - 42px);
}

/* MENÚ LATERAL (SIDEBAR) */
.sidebar {
    width: 265px;
    background-color: var(--bg-tarjeta);
    border-right: 1px solid var(--borde-gris);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex-shrink: 0;
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 10px;
}

.img-logo-michi {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #ffffff;
    border: 2px solid var(--naranja-michi);
    box-shadow: 0 4px 12px rgba(255, 115, 36, 0.25);
}

.texto-logo {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.3px;
    color: #d97706;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--texto-principal);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.item-menu i {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    color: var(--texto-secundario);
}

.item-menu:hover {
    background-color: var(--fondo-crema-activo);
}

/* Cuando una opción del menú está seleccionada (Igual a las capturas pero en Naranja/Rojo Pastel) */
.item-menu.activo {
    background-color: var(--fondo-crema-activo);
    color: var(--rojo-pastel);
    font-weight: 600;
}

.item-menu.activo i {
    color: var(--naranja-michi);
}

.item-whatsapp {
    color: #16a34a;
}

.item-whatsapp i {
    color: #16a34a;
}

/* ==========================================================================
   5. ZONA DERECHA Y BARRA SUPERIOR (TOPBAR)
   ========================================================================== */
.main-wrapper {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 68px;
    width: 100%;
    max-width: 100%;
    background-color: var(--bg-tarjeta);
    border-bottom: 1px solid var(--borde-gris);
    padding: 0 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.buscador-global {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    padding: 10px 18px;
    border-radius: 999px;
    width: 380px;
}

.buscador-global i {
    color: var(--texto-secundario);
}

.buscador-global input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--texto-principal);
    font-size: 0.9rem;
}

.topbar-acciones {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-icono {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--borde-gris);
    background-color: var(--bg-tarjeta);
    color: var(--texto-principal);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
}

.btn-icono:hover {
    border-color: var(--naranja-michi);
    color: var(--naranja-michi);
}

.avatar-usuario {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--degradado-michi);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.35);
}

/* ==========================================================================
   6. CONTENIDO PRINCIPAL, BOTONES CON DEGRADADO Y TARJETAS
   ========================================================================== */
.contenido-principal {
    padding: 28px 32px;
    max-width: 1250px;
    width: 100%;
    min-width: 0;
    margin: 0 auto;
    box-sizing: border-box;
    overflow-x: hidden;
}

.vista {
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* Banner Superior de Pasos */
.banner-onboarding {
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
    border: 1px solid var(--borde-suave);
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 28px;
}

.banner-header {
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.pasos-onboarding {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--texto-principal);
}

.pasos-onboarding strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--degradado-michi);
    color: #ffffff;
    font-size: 0.78rem;
    margin-right: 6px;
}

/* Encabezado y Botón Principal Naranja + Rojo Pastel + Blanco */
.encabezado-vista {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.encabezado-vista h1 {
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.subtitulo {
    color: var(--texto-secundario);
    font-size: 0.95rem;
    margin-top: 4px;
}

.btn-primario {
    background: var(--degradado-michi);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 12px 24px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.35), inset 0 1px 1px rgba(255, 255, 255, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primario:hover {
    background: var(--degradado-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(255, 107, 107, 0.45);
}

/* Grid de 4 Tarjetas de Resumen */
.grid-resumen {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.tarjeta-metrica {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 18px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    box-shadow: var(--sombra-tarjeta);
}

.titulo-metrica {
    color: var(--texto-secundario);
    font-size: 0.9rem;
    font-weight: 500;
}

.valor-metrica {
    font-size: 2rem;
    font-weight: 800;
    margin-top: 28px;
}

.icono-metrica {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.icono-metrica.rosa {
    background-color: #ffe4e6;
    color: #f43f5e;
}

.icono-metrica.morado {
    background-color: #ffedd5;
    color: #ea580c;
}

.icono-metrica.amarillo {
    background-color: #fef3c7;
    color: #d97706;
}

.icono-metrica.verde {
    background-color: #dcfce7;
    color: #16a34a;
}

/* ==========================================================================
   7. MÓDULO TUTORES, MASCOTAS, CARNET DIGITAL E HISTORIAL EVOLUTIVO
   ========================================================================== */

/* Regla de Privacidad: Si el rol activo es Tutor, oculta todo lo interno (solo-staff) */
body[data-rol-actual="tutor"] .solo-staff {
    display: none !important;
}

.oculto {
    display: none !important;
}

/* Buscador del módulo */
.barra-busqueda-modulo {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    padding: 14px 20px;
    border-radius: 14px;
    margin-bottom: 20px;
    box-shadow: var(--sombra-tarjeta);
}

.barra-busqueda-modulo i {
    color: var(--naranja-michi);
    font-size: 1.1rem;
}

.barra-busqueda-modulo input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--texto-principal);
    font-size: 0.95rem;
}

/* Tarjeta del Formulario de Registro */
.tarjeta-formulario {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-suave);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 30px;
    box-shadow: var(--sombra-tarjeta);
}

.encabezado-formulario {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-cerrar-form {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--texto-secundario);
    cursor: pointer;
}

.titulo-bloque {
    font-size: 1.05rem;
    color: var(--naranja-michi);
    margin: 18px 0 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.divisor-form {
    border: none;
    border-top: 1px solid var(--borde-gris);
    margin: 22px 0;
}

.grid-formulario {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.campo-ancho-completo {
    grid-column: 1 / -1;
}

.campo-form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--texto-principal);
}

.campo-form input,
.campo-form select,
.campo-form textarea {
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--borde-gris);
    background-color: var(--bg-pagina);
    color: var(--texto-principal);
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.campo-form input:focus,
.campo-form select:focus,
.campo-form textarea:focus {
    border-color: var(--naranja-michi);
}

/* Caja condicional que se abre cuando eligen "Sí" */
.campo-condicional {
    margin-top: 8px;
    padding: 12px;
    background-color: var(--fondo-crema-activo);
    border-left: 3px solid var(--naranja-michi);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.campo-condicional small {
    font-size: 0.75rem;
    color: var(--texto-secundario);
}

/* Chips / Etiquetas de Personalidad y Comportamiento */
.selector-etiquetas {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.chip-etiqueta {
    padding: 6px 13px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.chip-etiqueta.seleccionable {
    cursor: pointer;
    opacity: 0.55;
}

.chip-etiqueta.seleccionable:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.chip-etiqueta.seleccionable.seleccionada {
    opacity: 1;
    border-color: var(--texto-principal);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12);
}

/* Colores de cada personalidad */
.chip-etiqueta.zen {
    background-color: #e0f2fe;
    color: #0369a1;
}

.chip-etiqueta.verde {
    background-color: #dcfce7;
    color: #15803d;
}

.chip-etiqueta.amarillo {
    background-color: #fef3c7;
    color: #b45309;
}

.chip-etiqueta.rosa {
    background-color: #fce7f3;
    color: #be185d;
}

.chip-etiqueta.naranja {
    background-color: #ffedd5;
    color: #c2410c;
}

.chip-etiqueta.rojo {
    background-color: #fee2e2;
    color: #b91c1c;
}

.chip-etiqueta.azul {
    background-color: #dbeafe;
    color: #1d4ed8;
}

.chip-etiqueta.peligro {
    background-color: #dc2626;
    color: #ffffff;
}

.btn-secundario-sm {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid var(--naranja-michi);
    background: transparent;
    color: var(--naranja-michi);
    font-weight: 600;
    cursor: pointer;
}

.acciones-formulario {
    margin-top: 22px;
    display: flex;
    justify-content: flex-end;
}

/* Tarjetas de Expediente / Carnet Digital */
.grid-expedientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 22px;
}

.tarjeta-expediente {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--sombra-tarjeta);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.tarjeta-expediente.baneado {
    border: 2px solid #dc2626;
}

.cabecera-expediente {
    display: flex;
    gap: 16px;
    align-items: center;
}

.foto-mascota-carnet {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--naranja-michi);
    background-color: var(--fondo-crema-activo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.caja-carnet-salud {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    background-color: var(--bg-pagina);
    padding: 12px;
    border-radius: 12px;
    font-size: 0.83rem;
}

.historial-evolutivo {
    border-top: 1px dashed var(--borde-gris);
    padding-top: 12px;
}

.item-historial {
    font-size: 0.83rem;
    padding: 8px 10px;
    background-color: var(--fondo-crema-activo);
    border-radius: 8px;
    margin-top: 6px;
}

/* Alertas automáticas de vacunas y desparasitación */
.alerta-salud-banner {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 12px 16px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
}

/* Regla de Seguridad Exclusiva: Solo el Administrador puede ver elementos .solo-admin */
body[data-rol-actual="profesional"] .solo-admin,
body[data-rol-actual="tutor"] .solo-admin {
    display: none !important;
}

.btn-peligro-sm {
    padding: 8px 14px;
    border-radius: 8px;
    border: 1px solid #dc2626;
    background: #fee2e2;
    color: #dc2626;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-peligro-sm:hover {
    background: #dc2626;
    color: #ffffff;
}

/* Contenedor de la foto circular con botón de cámara flotante (para todos los roles) */
.contenedor-avatar-carnet {
    position: relative;
    width: 76px;
    height: 76px;
    flex-shrink: 0;
}

.btn-camara-flotante {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--degradado-michi);
    color: #ffffff;
    border: 2px solid var(--bg-tarjeta);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s;
}

.btn-camara-flotante:hover {
    transform: scale(1.12);
}

/* Efecto de lupa al pasar el mouse sobre la foto de la mascota */
img.foto-mascota-carnet {
    cursor: zoom-in;
    transition: transform 0.2s, box-shadow 0.2s;
}

img.foto-mascota-carnet:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 12px rgba(255, 115, 36, 0.35);
}

/* Modal Lightbox para ver la foto de la mascota en grande */
.modal-visor-foto {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    animation: aparecerSuave 0.2s ease;
}

.contenedor-imagen-grande {
    position: relative;
    max-width: 520px;
    width: 100%;
    background-color: var(--bg-tarjeta);
    padding: 16px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.contenedor-imagen-grande img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 14px;
    border: 2px solid var(--borde-gris);
}

.btn-cerrar-visor {
    position: absolute;
    top: -14px;
    right: -14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--degradado-michi);
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   ESTILOS LECCIÓN 5: SERVICIOS INTERACTIVOS, MODALES Y CARRITO WHATSAPP
   ========================================================================== */
.barra-config-whatsapp {
    background-color: var(--bg-tarjeta);
    border: 1px dashed var(--naranja-michi);
    padding: 10px 16px;
    border-radius: 12px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
}

.barra-config-whatsapp input {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-pagina);
    color: var(--texto-principal);
    font-weight: 600;
    width: 170px;
}

.badge-contador-carrito {
    background-color: #ffffff;
    color: #ff5768;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 2px 9px;
    border-radius: 999px;
    margin-left: 6px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.grid-servicios-interactivos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 18px;
}

/* Tarjeta que cambia de color al pasar el mouse y abre el menú al hacer clic */
.tarjeta-servicio-michi {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--borde-gris);
    border-radius: 18px;
    padding: 22px;
    cursor: pointer;
    box-shadow: var(--sombra-suave);
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    position: relative;
}

.tarjeta-servicio-michi:hover {
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
    border-color: var(--naranja-michi);
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(255, 115, 36, 0.22);
}

.icono-servicio-michi {
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background-color: var(--fondo-crema-activo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    transition: transform 0.25s ease;
}

.tarjeta-servicio-michi:hover .icono-servicio-michi {
    transform: scale(1.1) rotate(-4deg);
    background: var(--degradado-michi);
}

.precio-servicio-michi {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--naranja-michi);
}

/* Modal emergente que deja ver los servicios atrás */
.overlay-menu-servicio {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: aparecerSuave 0.2s ease;
}

.caja-menu-flotante {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 22px;
    max-width: 520px;
    width: 100%;
    padding: 26px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    max-height: 88vh;
    overflow-y: auto;
}

/* Tarjeta para elegir mascota cuando el tutor tiene 2 o más */
.opcion-mascota-modal {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 2px solid var(--borde-gris);
    border-radius: 14px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.opcion-mascota-modal:hover {
    border-color: var(--naranja-michi);
    background-color: var(--fondo-crema-activo);
}

.item-carrito-fila {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border-radius: 12px;
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    margin-bottom: 10px;
}

/* Buscador y fijador de mascota en Servicios (Exclusivo Admin y Profesional) */
.panel-seleccion-mascota-staff {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: var(--sombra-suave);
}

.lista-resultados-staff {
    margin-top: 10px;
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid var(--borde-gris);
    border-radius: 12px;
    background-color: var(--bg-pagina);
    padding: 6px;
}

.item-resultado-staff {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s;
}

.item-resultado-staff:hover {
    background-color: var(--fondo-crema-activo);
}

.banner-mascota-fijada {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--fondo-crema-activo);
    padding: 10px 14px;
    border-radius: 12px;
    border-left: 4px solid var(--naranja-michi);
}

/* Signo de interrogación (?) con burbuja explicativa para la foto obligatoria */
.label-con-ayuda {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.icono-ayuda-foto {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--degradado-michi);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(255, 87, 104, 0.35);
}

.burbuja-ayuda-foto {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 135%;
    left: 0;
    width: 290px;
    background-color: #1e293b;
    color: #ffffff;
    font-weight: 500;
    font-size: 0.78rem;
    line-height: 1.45;
    padding: 10px 12px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    z-index: 200;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
}

.icono-ayuda-foto:hover .burbuja-ayuda-foto,
.icono-ayuda-foto:focus .burbuja-ayuda-foto {
    visibility: visible;
    opacity: 1;
}

/* ==========================================================================
   ESTILOS MULTI-MASCOTA ILIMITADO (FAMILIAS Y FUNDACIONES) Y CO-TUTORES
   ========================================================================== */
.caja-cotutores-form {
    background-color: var(--bg-pagina);
    border: 1px dashed var(--borde-gris);
    border-radius: 14px;
    padding: 14px 16px;
    margin-top: 16px;
}

.fila-cotutor {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1.3fr auto;
    gap: 8px;
    align-items: center;
    background-color: var(--bg-tarjeta);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid var(--borde-gris);
    margin-top: 8px;
}

.fila-cotutor input {
    padding: 8px 10px;
    border: 1px solid var(--borde-gris);
    border-radius: 8px;
    background: var(--bg-pagina);
    color: var(--texto-principal);
    font-size: 0.82rem;
    width: 100%;
}

.caja-selector-multi-mascota {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: var(--fondo-crema-activo);
    border: 2px solid var(--naranja-michi);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
}

.controles-numero-mascotas {
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-numero-mascotas {
    width: 90px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 2px solid var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    color: var(--texto-principal);
    font-weight: 800;
    font-size: 1rem;
    text-align: center;
}

.tarjeta-sub-mascota {
    background-color: var(--bg-pagina);
    border: 2px solid var(--borde-gris);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 18px;
    position: relative;
}

.encabezado-sub-mascota {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--degradado-michi);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
}

.cuerpo-sub-mascota {
    margin-top: 16px;
}

@media (max-width: 768px) {
    .fila-cotutor {
        grid-template-columns: 1fr;
    }
}

/* Deja ÚNICAMENTE el botón de Ver Carrito flotando arriba a la derecha al hacer scroll */
#btn-abrir-carrito {
    position: fixed;
    top: 125px;
    right: 36px;
    z-index: 900;
    box-shadow: 0 8px 24px rgba(255, 87, 104, 0.4);
}

/* ==========================================================================
   ESTILOS LECCIÓN 6: AGENDA COMPARTIDA Y AVISO SOBRIO DE PAGO POR ADELANTADO
   ========================================================================== */
.bloque-bandeja-pendientes {
    background-color: var(--bg-tarjeta);
    border: 2px dashed var(--naranja-michi);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 26px;
}

.encabezado-bandeja-pendientes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
}

.badge-alerta-solicitudes {
    background: var(--degradado-michi);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 14px;
    border-radius: 999px;
}

.grid-pedidos-pendientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 16px;
}

.tarjeta-pedido-pendiente {
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    border-left: 5px solid #f59e0b;
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aviso-pago-adelantado {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.83rem;
    font-weight: 600;
    line-height: 1.4;
}

.caja-asignar-horario {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 12px;
    padding: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.caja-asignar-horario input,
.caja-asignar-horario select {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-pagina);
    color: var(--texto-principal);
    font-size: 0.84rem;
    font-weight: 600;
}

.barra-filtros-agenda {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    padding: 14px 18px;
    border-radius: 14px;
    margin-bottom: 20px;
}

.input-fecha-agenda {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-pagina);
    color: var(--texto-principal);
    font-weight: 600;
}

.grid-citas-agenda {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(370px, 1fr));
    gap: 18px;
}

.tarjeta-cita-agenda {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-left: 6px solid var(--naranja-michi);
    border-radius: 16px;
    padding: 18px;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
}

.tarjeta-cita-agenda.confirmada {
    border-left-color: #16a34a;
}

.tarjeta-cita-agenda.completada {
    border-left-color: #2563eb;
}

.tarjeta-cita-agenda.cancelada-con-aviso {
    border-left-color: #64748b;
    opacity: 0.85;
}

.tarjeta-cita-agenda.cancelada-sin-aviso {
    border-left-color: #d97706;
}

.badge-hora-agenda {
    background: var(--fondo-crema-activo);
    color: var(--naranja-michi);
    font-weight: 800;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--borde-suave);
}

/* ==========================================================================
   CIRCULITO CONTADOR EN EL MENÚ LATERAL (AGENDA) Y CALENDARIO DE CITAS
   ========================================================================== */
.badge-menu-notificacion {
    margin-left: auto;
    background: var(--degradado-michi);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(255, 87, 104, 0.35);
}

.barra-calendario-citas {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    padding: 14px 18px;
    border-radius: 16px;
    margin-bottom: 18px;
    box-shadow: var(--sombra-suave);
}

.nav-fechas-calendario {
    display: flex;
    align-items: center;
    gap: 8px;
}

.titulo-periodo-cal {
    font-size: 1.1rem;
    font-weight: 800;
    margin-left: 8px;
    text-transform: capitalize;
}

.selector-modo-calendario {
    display: flex;
    background-color: var(--bg-pagina);
    padding: 4px;
    border-radius: 12px;
    border: 1px solid var(--borde-gris);
    gap: 4px;
}

.btn-modo-cal {
    padding: 7px 14px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--texto-secundario);
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-modo-cal.activo {
    background: var(--degradado-michi);
    color: #ffffff;
}

/* 1. VISTA DÍA (FILAS POR HORAS) */
.grid-vista-dia {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 16px;
    overflow: hidden;
}

.fila-hora-dia {
    display: grid;
    grid-template-columns: 95px 1fr;
    border-bottom: 1px solid var(--borde-gris);
    min-height: 68px;
}

.etiqueta-hora-dia {
    padding: 14px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--texto-secundario);
    background-color: var(--bg-pagina);
    border-right: 1px solid var(--borde-gris);
    text-align: center;
}

.celda-citas-hora {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 2. VISTA SEMANA (7 COLUMNAS LUN A DOM) */
.grid-vista-semana {
    display: grid;
    grid-template-columns: repeat(7, minmax(150px, 1fr));
    gap: 10px;
    overflow-x: auto;
}

.columna-dia-semana {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 14px;
    min-height: 380px;
    display: flex;
    flex-direction: column;
}

.columna-dia-semana.es-hoy {
    border: 2px solid var(--naranja-michi);
}

.cabecera-columna-semana {
    padding: 10px;
    text-align: center;
    border-bottom: 1px solid var(--borde-gris);
    background-color: var(--bg-pagina);
    border-radius: 14px 14px 0 0;
    cursor: pointer;
}

.columna-dia-semana.es-hoy .cabecera-columna-semana {
    background: var(--fondo-crema-activo);
    color: var(--naranja-michi);
}

.cuerpo-columna-semana {
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* 3. VISTA MES (CUADRÍCULA MENSUAL 7 COLUMNAS) */
.grid-vista-mes {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 16px;
    overflow: hidden;
}

.encabezado-dias-mes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background-color: var(--bg-pagina);
    border-bottom: 1px solid var(--borde-gris);
    text-align: center;
    font-weight: 800;
    font-size: 0.82rem;
    padding: 10px 0;
    color: var(--texto-secundario);
}

.cuerpo-celdas-mes {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.celda-dia-mes {
    min-height: 115px;
    border-right: 1px solid var(--borde-gris);
    border-bottom: 1px solid var(--borde-gris);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.celda-dia-mes.otro-mes {
    background-color: var(--bg-pagina);
    opacity: 0.45;
}

.celda-dia-mes.es-hoy {
    background-color: var(--fondo-crema-activo);
}

.numero-dia-mes {
    font-size: 0.82rem;
    font-weight: 800;
    margin-bottom: 2px;
}

/* Pastillita de cita dentro de las vistas Semana y Mes */
.chip-cita-calendario {
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    border-left: 4px solid var(--naranja-michi);
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 0.76rem;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.chip-cita-calendario:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.chip-cita-calendario.confirmada {
    border-left-color: #16a34a;
}

.chip-cita-calendario.completada {
    border-left-color: #2563eb;
}

.chip-cita-calendario.cancelada-con-aviso {
    border-left-color: #64748b;
    opacity: 0.75;
}

.chip-cita-calendario.cancelada-sin-aviso {
    border-left-color: #d97706;
}

/* ==========================================================================
   AJUSTES VISUALES: BOTÓN MINIMIZAR, COTIZACIONES, FOTOS EN AGENDA/CITAS Y WHATSAPP
   ========================================================================== */
/* 1. Corrige el botón "Minimizar / Ver" para que se vea nítido con fondo blanco */
.encabezado-sub-mascota .btn-secundario-sm {
    background-color: #ffffff !important;
    color: #c2410c !important;
    border: none !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.encabezado-sub-mascota .btn-secundario-sm:hover {
    background-color: #fff7ed !important;
    transform: scale(1.04);
}

/* 2. Botón verde de chat directo por WhatsApp sin texto predeterminado */
.btn-whatsapp-directo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    border-radius: 8px;
    border: 1px solid #16a34a;
    background-color: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    font-size: 0.76rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-whatsapp-directo:hover {
    background-color: #16a34a;
    color: #ffffff;
}

/* 3. Panel de Cotización Manual en Agenda */
.panel-cotizacion-agenda {
    background-color: #fff7ed;
    border: 2px solid var(--naranja-michi);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.modo-oscuro .panel-cotizacion-agenda {
    background-color: #2a1c17;
}

.fila-input-cotizacion {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
}

.fila-input-cotizacion input {
    width: 145px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    color: var(--texto-principal);
    font-weight: 800;
    text-align: right;
}

/* 4. Miniatura de foto de la mascota en las celdas de Citas (Semana y Mes) */
.mini-avatar-cita {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--naranja-michi);
    flex-shrink: 0;
    background-color: var(--fondo-crema-activo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

/* 5. Caja de Observaciones Importantes (Vista Rápida auto-ajustable con botón de lápiz) */
.caja-observaciones-rapidas {
    background-color: #fffbeb;
    border: 1px solid #fde68a;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 12px;
}

body.modo-oscuro .caja-observaciones-rapidas {
    background-color: #292116;
    border-color: #78350f;
    border-left: 4px solid #f59e0b;
}

.titulo-observaciones-rapidas {
    font-size: 0.85rem;
    color: #b45309;
    display: flex;
    align-items: center;
    gap: 6px;
}

body.modo-oscuro .titulo-observaciones-rapidas {
    color: #fbbf24;
}

.textarea-observaciones-rapidas {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    line-height: 1.45;
    resize: none;
    overflow-y: hidden;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.textarea-observaciones-rapidas[readonly] {
    background-color: rgba(255, 255, 255, 0.65);
    border: 1px dashed #d97706;
    color: var(--texto-principal);
    cursor: default;
    outline: none;
}

body.modo-oscuro .textarea-observaciones-rapidas[readonly] {
    background-color: rgba(0, 0, 0, 0.25);
    border-color: #92400e;
}

.textarea-observaciones-rapidas:not([readonly]) {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    color: var(--texto-principal);
    box-shadow: 0 0 0 3px rgba(255, 115, 36, 0.18);
    outline: none;
}

/* ==========================================================================
   6. REDISEÑO ESTÉTICO DE BUSCADORES Y FILTROS (MIS MASCOTAS, SERVICIOS, CITAS Y TOPBAR)
   ========================================================================== */
.buscador-global {
    border: 1.5px solid var(--borde-gris);
    transition: all 0.2s ease;
}

.buscador-global i {
    color: var(--naranja-michi);
}

.buscador-global:focus-within {
    border-color: var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    box-shadow: 0 0 0 3px rgba(255, 115, 36, 0.15);
}

/* Barra unificada de Búsqueda + Filtros Rápidos por Especie en "Mis Mascotas" */
.contenedor-filtros-modulo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    background-color: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-suave);
    border-radius: 18px;
    padding: 10px 14px;
    margin-bottom: 22px;
    box-shadow: var(--sombra-tarjeta);
}

.contenedor-filtros-modulo .barra-busqueda-modulo {
    flex: 1;
    min-width: 260px;
    margin-bottom: 0;
    background-color: var(--bg-pagina);
    border: 1.5px solid var(--borde-gris);
    border-radius: 13px;
    padding: 8px 14px;
    box-shadow: none;
    transition: all 0.2s ease;
}

.barra-busqueda-modulo {
    border: 1.5px solid var(--borde-suave);
    transition: all 0.2s ease;
}

.barra-busqueda-modulo:focus-within,
.contenedor-filtros-modulo .barra-busqueda-modulo:focus-within {
    border-color: var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    box-shadow: 0 0 0 3px rgba(255, 115, 36, 0.15);
}

.icono-busqueda-badge {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--fondo-crema-activo);
    color: var(--naranja-michi);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.95rem;
}

.filtros-rapidos-especie {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    background-color: var(--bg-pagina);
    padding: 6px;
    border-radius: 13px;
    border: 1px solid var(--borde-gris);
    max-width: 100%;
    box-sizing: border-box;
}

.chip-filtro-especie {
    padding: 8px 14px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--texto-secundario);
    font-weight: 700;
    font-size: 0.83rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chip-filtro-especie:hover {
    color: var(--naranja-michi);
    background-color: var(--fondo-crema-activo);
}

.chip-filtro-especie.activo {
    background: var(--degradado-michi);
    color: #ffffff;
    box-shadow: 0 3px 10px rgba(255, 87, 104, 0.3);
}

/* Buscador interno de la barra de Calendario en "Citas" (antes no tenía estilos) */
.buscador-interno {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: var(--bg-pagina);
    border: 1.5px solid var(--borde-gris);
    border-radius: 12px;
    padding: 8px 14px;
    width: 260px;
    transition: all 0.2s ease;
}

.buscador-interno i {
    color: var(--naranja-michi);
    font-size: 0.92rem;
}

.buscador-interno input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    color: var(--texto-principal);
    font-size: 0.85rem;
    font-weight: 500;
}

.buscador-interno input::placeholder {
    color: var(--texto-secundario);
}

.buscador-interno:focus-within {
    border-color: var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    box-shadow: 0 0 0 3px rgba(255, 115, 36, 0.16);
}

/* ==========================================================================
   7. GESTIÓN DE CUENTAS Y PERFILES DE PROFESIONALES (ADMIN + MI PERFIL PROFESIONAL)
   ========================================================================== */
.banner-seguridad-prof {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
    border: 1px solid var(--borde-suave);
    border-left: 4px solid var(--naranja-michi);
    border-radius: 14px;
    padding: 12px 16px;
    margin-bottom: 18px;
    font-size: 0.85rem;
}

.banner-seguridad-prof i {
    color: var(--naranja-michi);
    font-size: 1.25rem;
}

.barra-sesion-profesional {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 20px;
    box-shadow: var(--sombra-suave);
}

.select-sesion-prof {
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--naranja-michi);
    background-color: var(--bg-pagina);
    color: var(--texto-principal);
    font-weight: 700;
    font-size: 0.85rem;
    outline: none;
    cursor: pointer;
}

.caja-input-password-prof {
    position: relative;
    display: flex;
    align-items: center;
}

.caja-input-password-prof input {
    width: 100%;
    padding-right: 42px;
}

.btn-ver-password-prof {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--texto-secundario);
    cursor: pointer;
    font-size: 1rem;
    padding: 4px;
}

.btn-ver-password-prof:hover {
    color: var(--naranja-michi);
}

.grid-profesionales-michi {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.tarjeta-profesional-michi {
    background-color: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--sombra-tarjeta);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: transform 0.2s, border-color 0.2s;
}

.tarjeta-profesional-michi.mi-perfil-activo {
    border: 2px solid var(--naranja-michi);
    box-shadow: 0 10px 26px rgba(255, 115, 36, 0.18);
}

.caja-datos-prof {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    border-radius: 12px;
    padding: 12px;
    font-size: 0.81rem;
}

.caja-credenciales-prof {
    background-color: var(--fondo-crema-activo);
    border: 1px dashed var(--naranja-michi);
    border-radius: 12px;
    padding: 10px 12px;
    font-size: 0.81rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.campo-form input[readonly],
.campo-form select:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

/* ==========================================================================
   8. ESTILOS LECCIÓN 7: MICHI-TRACKER EN VIVO, COLOR ESPECIAL DE RECHAZO EN CITAS Y MICHI PUNTOS
   ========================================================================== */

/* Color especial distintivo en CITAS para mascotas rechazadas en Recepción y Valoración */
.chip-etiqueta.morado-alerta {
    background-color: #f3e8ff;
    color: #7e22ce;
    border: 1px solid #d8b4fe;
}

.chip-cita-calendario.rechazada-valoracion {
    background-color: #faf5ff;
    border: 1.5px solid #c084fc;
    border-left: 5px solid #9333ea;
}

body.modo-oscuro .chip-cita-calendario.rechazada-valoracion {
    background-color: #2e1065;
    border-color: #7e22ce;
    border-left: 5px solid #c084fc;
}

.tarjeta-cita-agenda.rechazada-valoracion {
    border-left: 6px solid #9333ea;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.07) 0%, var(--bg-tarjeta) 100%);
}

/* Color para citas suspendidas a mitad del proceso (ej: por agresividad) */
.chip-cita-calendario.suspendida-proceso {
    background-color: #fef2f2;
    border: 1.5px solid #fca5a5;
    border-left: 5px solid #dc2626;
}

body.modo-oscuro .chip-cita-calendario.suspendida-proceso {
    background-color: #450a0a;
    border-color: #b91c1c;
    border-left: 5px solid #ef4444;
}

.tarjeta-cita-agenda.suspendida-proceso {
    border-left: 6px solid #dc2626;
}

/* Etiqueta especial de etapa en el Historial de Notas de Evolución (Mis mascotas) */
.badge-etapa-evolucion {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: var(--degradado-michi);
    color: #ffffff;
    margin-right: 6px;
}

.badge-etapa-evolucion.rechazo {
    background: #9333ea;
}

.badge-etapa-evolucion.suspension {
    background: #dc2626;
}

/* Panel superior de activación de Michi-Tracker */
.panel-iniciar-tracker {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 24px;
    box-shadow: var(--sombra-suave);
}

.controles-iniciar-tracker {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.lista-sesiones-tracker {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tarjeta-sesion-tracker {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--borde-suave);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--sombra-tarjeta);
    transition: all 0.3s ease;
}

.tarjeta-sesion-tracker.tracker-rechazada {
    border: 2.5px solid #9333ea;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.08) 0%, var(--bg-tarjeta) 100%);
}

.tarjeta-sesion-tracker.tracker-suspendida {
    border: 2.5px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.07) 0%, var(--bg-tarjeta) 100%);
}

.tarjeta-sesion-tracker.tracker-completada {
    border: 2.5px solid #16a34a;
}

/* Línea de tiempo de las 5 Etapas del Michi-Tracker */
.linea-etapas-tracker {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin: 22px 0;
    position: relative;
}

@media (max-width: 960px) {
    .linea-etapas-tracker {
        grid-template-columns: 1fr;
    }
}

.nodo-etapa-tracker {
    background-color: var(--bg-pagina);
    border: 2px solid var(--borde-gris);
    border-radius: 16px;
    padding: 14px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    position: relative;
    transition: all 0.25s ease;
}

.nodo-etapa-tracker.interactivo-staff {
    cursor: pointer;
}

.nodo-etapa-tracker.interactivo-staff:hover:not(.bloqueada) {
    border-color: var(--naranja-michi);
    transform: translateY(-3px);
}

.nodo-etapa-tracker.etapa-pasada {
    border-color: #16a34a;
    background-color: rgba(22, 163, 74, 0.07);
}

.nodo-etapa-tracker.etapa-actual {
    border-color: var(--naranja-michi);
    background-color: var(--fondo-crema-activo);
    box-shadow: 0 8px 22px rgba(255, 115, 36, 0.22);
    transform: translateY(-3px);
}

.nodo-etapa-tracker.bloqueada {
    opacity: 0.45;
    cursor: not-allowed !important;
    filter: grayscale(0.6);
}

/* Checkmark automático verde en la esquina superior de cada etapa ya superada */
.check-etapa-superada {
    position: absolute;
    top: -10px;
    right: -8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #16a34a;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(22, 163, 74, 0.4);
    border: 2px solid var(--bg-tarjeta);
}

.circulo-icono-etapa {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--borde-gris);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    transition: all 0.3s ease;
}

.nodo-etapa-tracker.etapa-pasada .circulo-icono-etapa {
    border-color: #16a34a;
    background-color: #dcfce7;
}

.nodo-etapa-tracker.etapa-actual .circulo-icono-etapa {
    border-color: transparent;
    background: var(--degradado-michi);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(255, 87, 104, 0.4);
}

/* Animaciones personalizadas para cada una de las 5 etapas cuando está activa */
.nodo-etapa-tracker.etapa-actual[data-codigo-etapa="recepcion"] .circulo-icono-etapa {
    animation: animPulsoRecepcion 1.6s infinite ease-in-out;
}

.nodo-etapa-tracker.etapa-actual[data-codigo-etapa="bano"] .circulo-icono-etapa {
    animation: animBurbujasBano 1.8s infinite ease-in-out;
}

.nodo-etapa-tracker.etapa-actual[data-codigo-etapa="secado"] .circulo-icono-etapa {
    animation: animBrisaSecado 1.4s infinite ease-in-out;
}

.nodo-etapa-tracker.etapa-actual[data-codigo-etapa="corte"] .circulo-icono-etapa {
    animation: animTijerasCorte 1.5s infinite ease-in-out;
}

.nodo-etapa-tracker.etapa-actual[data-codigo-etapa="listo"] .circulo-icono-etapa {
    animation: animFiestaListo 1.3s infinite ease-in-out;
}

@keyframes animPulsoRecepcion {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.13);
    }
}

@keyframes animBurbujasBano {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-6px) rotate(6deg);
    }
}

@keyframes animBrisaSecado {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px) rotate(-5deg);
    }

    75% {
        transform: translateX(4px) rotate(5deg);
    }
}

@keyframes animTijerasCorte {

    0%,
    100% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(-12deg) scale(1.1);
    }
}

@keyframes animFiestaListo {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    40% {
        transform: translateY(-7px) scale(1.15);
    }

    70% {
        transform: translateY(-2px) scale(1.06);
    }
}

.hora-marcada-etapa {
    font-size: 0.73rem;
    font-weight: 800;
    color: var(--naranja-michi);
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-suave);
    padding: 2px 8px;
    border-radius: 999px;
}

.nodo-etapa-tracker.etapa-pasada .hora-marcada-etapa {
    color: #15803d;
    border-color: #bbf7d0;
    background-color: #f0fdf4;
}

/* Bandeja de observación por etapa sincronizada con Notas de Evolución */
.bandeja-observacion-etapa {
    width: 100%;
    margin-top: 6px;
    padding-top: 8px;
    border-top: 1px dashed var(--borde-gris);
    text-align: left;
}

.bandeja-observacion-etapa textarea {
    width: 100%;
    padding: 7px 9px;
    border-radius: 8px;
    border: 1px solid var(--borde-gris);
    background-color: var(--bg-tarjeta);
    color: var(--texto-principal);
    font-size: 0.76rem;
    font-family: inherit;
    resize: vertical;
    min-height: 46px;
}

.bandeja-observacion-etapa textarea:focus {
    border-color: var(--naranja-michi);
    outline: none;
}

/* Cajas de Rechazo en Valoración y Suspensión por Agresividad */
.caja-accion-especial-tracker {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 2px solid #9333ea;
    background-color: #faf5ff;
}

body.modo-oscuro .caja-accion-especial-tracker {
    background-color: #2e1065;
}

.caja-accion-especial-tracker.suspension {
    border-color: #dc2626;
    background-color: #fef2f2;
}

body.modo-oscuro .caja-accion-especial-tracker.suspension {
    background-color: #450a0a;
}

/* ==========================================================================
   ESTILOS MICHI PUNTOS (6TO BAÑO GRATIS - PLAN MENSUAL 6 EN 6 MESES)
   ========================================================================== */
.banner-condiciones-fidelidad {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #fffbeb 0%, var(--bg-tarjeta) 100%);
    border: 2px solid #f59e0b;
    border-radius: 18px;
    padding: 18px 22px;
    margin-bottom: 22px;
    box-shadow: var(--sombra-suave);
}

body.modo-oscuro .banner-condiciones-fidelidad {
    background: linear-gradient(135deg, #292116 0%, var(--bg-tarjeta) 100%);
    border-color: #d97706;
}

.icono-trofeo-fidelidad {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    font-size: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.35);
}

.grid-tarjetas-fidelidad {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(430px, 1fr));
    gap: 22px;
}

.tarjeta-fidelidad-mascota {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--borde-suave);
    border-radius: 22px;
    padding: 22px;
    box-shadow: var(--sombra-tarjeta);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.tarjeta-fidelidad-mascota.premio-sexto-listo {
    border: 2.5px solid #f59e0b;
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.28);
}

.tarjeta-fidelidad-mascota.no-aplica-fidelidad {
    border: 1.5px dashed var(--borde-gris);
    opacity: 0.85;
}

/* Las 6 casillas de huellitas */
.grilla-huellas-fidelidad {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
    margin: 6px 0;
}

@media (max-width: 600px) {
    .grilla-huellas-fidelidad {
        grid-template-columns: repeat(3, 1fr);
    }
}

.casilla-huella-michi {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-pagina);
    border: 2px dashed var(--borde-gris);
    border-radius: 15px;
    padding: 12px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    min-height: 98px;
    transition: all 0.35s ease;
}

.casilla-huella-michi .icono-huella-sello {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: rgba(148, 163, 184, 0.16);
    color: var(--texto-secundario);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    opacity: 0.38;
    transition: all 0.35s ease;
}

/* Huella Dorada Exclusiva VIP con brillo suave (sin hostigar) */
.casilla-huella-michi.completada {
    border: 1.5px solid #f59e0b;
    background: linear-gradient(145deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
    color: #92400e;
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.22), inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

body.modo-oscuro .casilla-huella-michi.completada {
    border-color: #fbbf24;
    background: linear-gradient(145deg, #292116 0%, #451a03 60%, #78350f 100%);
    color: #fef3c7;
    box-shadow: 0 5px 16px rgba(251, 191, 36, 0.2);
}

/* Medallón dorado metálico para la huella timbrada */
.casilla-huella-michi.completada .icono-huella-sello {
    opacity: 1;
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(146, 64, 14, 0.55);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.45), inset 0 1px 2px rgba(255, 255, 255, 0.75);
    animation: animSelloHuella 0.65s cubic-bezier(0.34, 1.56, 0.64, 1), pulsoBrilloOroSuave 3.8s infinite ease-in-out;
}

/* Destello de luz diagonal sutil y elegante sobre cada huella dorada */
.casilla-huella-michi.completada::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -120%;
    width: 65%;
    height: 200%;
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.55) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: rotate(25deg);
    animation: destelloLuzExclusiva 5.5s infinite ease-in-out;
    pointer-events: none;
}

.casilla-huella-michi.sexto-bano-premio {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fef3c7 0%, #ffedd5 100%);
}

body.modo-oscuro .casilla-huella-michi.sexto-bano-premio {
    background: linear-gradient(135deg, #451a03 0%, #292116 100%);
}

.casilla-huella-michi.sexto-bano-premio .icono-huella-sello {
    opacity: 0.75;
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

@keyframes animSelloHuella {
    0% {
        transform: scale(0.2) rotate(-25deg);
        opacity: 0;
    }

    65% {
        transform: scale(1.25) rotate(8deg);
        opacity: 1;
    }

    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes pulsoBrilloOroSuave {

    0%,
    100% {
        box-shadow: 0 3px 10px rgba(245, 158, 11, 0.4), 0 0 0 0 rgba(251, 191, 36, 0);
    }

    50% {
        box-shadow: 0 4px 14px rgba(245, 158, 11, 0.65), 0 0 10px 2px rgba(253, 224, 71, 0.38);
    }
}

@keyframes destelloLuzExclusiva {

    0%,
    65% {
        left: -120%;
    }

    100% {
        left: 160%;
    }
}

@keyframes latidoPremioSexto {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* Tarjeta afectuosa con carita triste de Michi cuando la mascota no aplica para Michi Puntos */
.caja-michi-triste-no-aplica {
    margin-top: 14px;
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-pagina) 100%);
    border: 1.5px dashed var(--naranja-michi);
    border-radius: 16px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.avatar-michi-triste {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(255, 115, 36, 0.15);
}

/* Banner de Vencimiento al completar el 5to baño */
.banner-vencimiento-quinto-bano {
    background: linear-gradient(135deg, #fffbeb 0%, #ffedd5 100%);
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 0.82rem;
    color: #92400e;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.modo-oscuro .banner-vencimiento-quinto-bano {
    background: linear-gradient(135deg, #451a03 0%, #2a1c17 100%);
    color: #fde68a;
}

/* Modal Espectacular de Celebración cuando completan el 6to Baño Gratis */
.modal-celebracion-sexto-bano {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
    animation: aparecerSuave 0.25s ease;
}

.tarjeta-fiesta-sexto-bano {
    position: relative;
    background: var(--bg-tarjeta);
    border: 3px solid #f59e0b;
    border-radius: 28px;
    max-width: 520px;
    width: 100%;
    padding: 32px 26px;
    text-align: center;
    box-shadow: 0 0 60px rgba(245, 158, 11, 0.55);
    z-index: 2;
    animation: entradaTriunfalSexto 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes entradaTriunfalSexto {
    0% {
        transform: scale(0.4) translateY(60px);
        opacity: 0;
    }

    100% {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.medalla-gigante-sexto {
    width: 96px;
    height: 96px;
    margin: 0 auto 14px auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #fbbf24 0%, #ff5768 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.1rem;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.5);
    animation: latidoPremioSexto 1.2s infinite ease-in-out;
}

.particula-confeti {
    position: absolute;
    top: -40px;
    font-size: 1.7rem;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: caidaConfetiMichi 3.2s linear forwards;
}

@keyframes caidaConfetiMichi {
    0% {
        transform: translateY(-20px) rotate(0deg) scale(0.8);
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translateY(105vh) rotate(540deg) scale(1.2);
        opacity: 0;
    }
}

/* ==========================================================================
   9. ESTILOS LECCIÓN 8: INVENTARIO, FINANZAS E INFORMES MULTIFILTRO DE MASCOTAS
   ========================================================================== */
.tarjeta-insumo-inventario {
    background-color: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    border-radius: 18px;
    padding: 20px;
    box-shadow: var(--sombra-suave);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: all 0.2s ease;
}

.tarjeta-insumo-inventario.stock-bajo {
    border: 2px solid #dc2626;
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.06) 0%, var(--bg-tarjeta) 100%);
}

/* Tabla limpia para Finanzas, Informes y Zoomed (scroll horizontal SOLO dentro de la tabla) */
.tabla-informes-contenedor {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-shadow: var(--sombra-suave);
}

.tabla-michi {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.tabla-michi th {
    background-color: var(--bg-pagina);
    color: var(--texto-secundario);
    font-weight: 800;
    text-align: left;
    padding: 13px 16px;
    border-bottom: 1px solid var(--borde-gris);
    white-space: nowrap;
}

.tabla-michi td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--borde-gris);
    vertical-align: middle;
}

.tabla-michi tr:last-child td {
    border-bottom: none;
}

.tabla-michi tr:hover td {
    background-color: var(--fondo-crema-activo);
}

/* Informes y Zoomed: KPIs adaptables sin ensanchar nunca la pantalla */
.grid-kpis-informes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 100%;
}

.tarjeta-censo-especie {
    background-color: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-suave);
    border-radius: 18px;
    padding: 18px;
    min-width: 0;
    box-shadow: var(--sombra-tarjeta);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
}

.barra-progreso-informe {
    width: 100%;
    height: 10px;
    background-color: var(--bg-pagina);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--borde-gris);
}

.relleno-barra-informe {
    height: 100%;
    background: var(--degradado-michi);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Panel Multifiltro de Mascotas en Informes */
.panel-multifiltro-informes {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 26px;
    box-shadow: var(--sombra-tarjeta);
}

.grid-controles-filtro-informes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.barra-resumen-filtro-informes {
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-pagina) 100%);
    border: 1.5px solid var(--borde-suave);
    border-left: 5px solid var(--naranja-michi);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.grid-graficos-informes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 20px;
}

.tarjeta-grafico-informe {
    background-color: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 18px;
    padding: 22px;
    box-shadow: var(--sombra-tarjeta);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ==========================================================================
   10. ESTILOS LECCIÓN 9: CAMPANITA ANIMADA DE RECORDATORIOS, CONSENTIMIENTOS LEGALES Y WHATSAPP CRUD
   ========================================================================== */
.contenedor-campanita-topbar {
    position: relative;
}

.btn-campanita-michi {
    position: relative;
    overflow: visible;
}

.btn-campanita-michi.tiene-recordatorios {
    border-color: var(--naranja-michi);
    background-color: var(--fondo-crema-activo);
    color: var(--naranja-michi);
    animation: haloCampanitaElegante 2.8s infinite ease-in-out;
}

.btn-campanita-michi.tiene-recordatorios i {
    transform-origin: top center;
    animation: balanceoCampanitaElegante 3.2s infinite ease-in-out;
}

@keyframes balanceoCampanitaElegante {
    0%, 55%, 100% { transform: rotate(0deg); }
    10% { transform: rotate(15deg); }
    20% { transform: rotate(-13deg); }
    30% { transform: rotate(9deg); }
    40% { transform: rotate(-6deg); }
    48% { transform: rotate(3deg); }
}

@keyframes haloCampanitaElegante {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 115, 36, 0.35);
    }
    50% {
        box-shadow: 0 0 0 7px rgba(255, 115, 36, 0);
    }
}

.badge-campanita-contador {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--degradado-michi);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-tarjeta);
    box-shadow: 0 2px 6px rgba(255, 87, 104, 0.45);
}

.panel-campanita-flotante {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 390px;
    max-height: 480px;
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    z-index: 9800;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: aparecerSuave 0.2s ease;
}

@media (max-width: 520px) {
    .panel-campanita-flotante {
        width: 310px;
        right: -50px;
    }
}

.encabezado-panel-campanita {
    padding: 14px 16px;
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
    border-bottom: 1px solid var(--borde-gris);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.cuerpo-panel-campanita {
    padding: 12px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 390px;
}

.item-notificacion-campanita {
    background-color: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    border-left: 4px solid var(--naranja-michi);
    border-radius: 12px;
    padding: 11px 13px;
    font-size: 0.8rem;
    line-height: 1.45;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.item-notificacion-campanita:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Generador y Hoja Oficial de Consentimientos Legales */
.panel-generador-consentimiento {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--sombra-tarjeta);
}

.hoja-consentimiento-legal {
    background-color: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 16px;
    padding: 28px 32px;
    margin-top: 16px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    font-size: 0.88rem;
    line-height: 1.6;
}

body.modo-oscuro .hoja-consentimiento-legal {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}

/* ==========================================================================
   11. ESTILOS LECCIÓN 10: LANDING PAGE PÚBLICA + LOGIN UNIFICADO SEGURO Y PORTAL DEL TUTOR
   ========================================================================== */
.overlay-landing-publica {
    position: fixed;
    inset: 0;
    background-color: var(--bg-pagina);
    z-index: 9400;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    animation: aparecerSuave 0.25s ease;
}

.navbar-landing-michi {
    position: sticky;
    top: 0;
    z-index: 20;
    background-color: var(--bg-tarjeta);
    border-bottom: 1.5px solid var(--borde-suave);
    padding: 14px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    box-shadow: var(--sombra-suave);
}

.marca-landing {
    display: flex;
    align-items: center;
    gap: 12px;
}

.marca-landing img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--naranja-michi);
}

.marca-landing strong {
    display: block;
    font-size: 1.15rem;
    color: var(--naranja-michi);
}

.marca-landing span {
    font-size: 0.76rem;
    color: var(--texto-secundario);
}

.acciones-navbar-landing {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.cuerpo-landing-michi {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 56px 24px;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.hero-landing-michi {
    display: grid;
    grid-template-columns: 1.35fr 0.85fr;
    gap: 28px;
    align-items: center;
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
    border: 2px solid var(--borde-suave);
    border-radius: 26px;
    padding: 36px;
    box-shadow: var(--sombra-tarjeta);
}

@media (max-width: 860px) {
    .hero-landing-michi {
        grid-template-columns: 1fr;
        padding: 24px;
    }
}

.hero-texto-landing h1 {
    font-size: 2.05rem;
    line-height: 1.22;
    font-weight: 800;
    margin: 14px 0 12px 0;
}

.hero-texto-landing p {
    font-size: 0.96rem;
    line-height: 1.55;
    color: var(--texto-secundario);
}

.hero-tarjeta-destacada {
    background-color: var(--bg-tarjeta);
    border: 2px solid var(--naranja-michi);
    border-radius: 22px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 12px 30px rgba(255, 115, 36, 0.18);
}

.logo-hero-landing {
    width: 108px;
    height: 108px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--naranja-michi);
    margin: 0 auto 12px auto;
}

.banner-landing-michi-puntos {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    background: linear-gradient(135deg, #fffbeb 0%, #ffedd5 100%);
    border: 2.5px solid #f59e0b;
    border-radius: 24px;
    padding: 26px 30px;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.22);
}

body.modo-oscuro .banner-landing-michi-puntos {
    background: linear-gradient(135deg, #292116 0%, #451a03 100%);
}

/* ==========================================================================
   CARRUSEL PRINCIPAL + MARQUEE INFINITO DE SERVICIOS (LANDING CON TAILWIND)
   ========================================================================== */
.overlay-landing-publica * {
    box-sizing: border-box;
}

.overlay-landing-publica img {
    max-width: 100%;
    display: block;
}

.carrusel-hero-landing {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 26px;
    border: 1.5px solid rgba(242, 100, 25, 0.25);
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 55%, #fffbeb 100%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.carrusel-hero-pista {
    display: flex;
    width: 100%;
    transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.slide-carrusel-landing {
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 28px;
    align-items: center;
    padding: 40px 68px;
}

@media (max-width: 900px) {
    .slide-carrusel-landing {
        grid-template-columns: 1fr;
        padding: 28px 22px 24px 22px;
        text-align: center;
    }
}

.foto-hero-michi-circular {
    width: 132px !important;
    height: 132px !important;
    max-width: 132px !important;
    max-height: 132px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 14px auto;
    border: 4px solid #fed7aa;
    box-shadow: 0 10px 24px rgba(242, 100, 25, 0.2);
}

.logo-footer-landing {
    width: 34px !important;
    height: 34px !important;
    max-width: 34px !important;
    max-height: 34px !important;
    border-radius: 10px;
    object-fit: cover;
    border: 1.5px solid var(--naranja-michi);
}

.btn-flecha-carrusel-landing {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    color: #334155;
    border: 1.5px solid #fed7aa;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 15;
    transition: all 0.25s ease;
}

.btn-flecha-carrusel-landing:hover {
    background: var(--naranja-michi);
    color: #ffffff;
    border-color: var(--naranja-michi);
    transform: translateY(-50%) scale(1.08);
}

.btn-flecha-carrusel-landing.izq {
    left: 14px;
}

.btn-flecha-carrusel-landing.der {
    right: 14px;
}

.indicadores-carrusel-landing {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0 0 20px 0;
}

.punto-carrusel-landing {
    width: 11px;
    height: 11px;
    border-radius: 9999px;
    border: none;
    background: rgba(242, 100, 25, 0.28);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.punto-carrusel-landing.activo {
    width: 30px;
    background: var(--naranja-michi);
}

body.modo-oscuro .carrusel-hero-landing,
body.modo-oscuro .dark-hero-landing {
    background: linear-gradient(135deg, #1f1b18 0%, #171717 55%, #2b1d14 100%) !important;
    border-color: rgba(242, 100, 25, 0.35) !important;
}

body.modo-oscuro .tarjeta-slide-landing {
    background: #1f1f23 !important;
    border-color: rgba(242, 100, 25, 0.35) !important;
    color: var(--texto-principal);
}

body.modo-oscuro .btn-flecha-carrusel-landing {
    background: #27272a;
    color: #f8fafc;
    border-color: rgba(242, 100, 25, 0.45);
}

/* Efecto de desvanecido elegante en los bordes izquierdo y derecho del carrusel de servicios */
.contenedor-marquee-servicios {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 12px 0;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

@keyframes marqueeServiciosLanding {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.pista-marquee-servicios {
    display: flex;
    gap: 20px;
    width: max-content;
    animation: marqueeServiciosLanding 34s linear infinite;
    will-change: transform;
}

/* Se pausa suavemente cuando el cliente pasa el cursor por encima para leer tranquilo */
.pista-marquee-servicios:hover {
    animation-play-state: paused;
}

.tarjeta-marquee-servicio {
    width: 295px;
    flex-shrink: 0;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    border-radius: 22px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.tarjeta-marquee-servicio:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--naranja-michi);
    box-shadow: 0 14px 30px rgba(242, 100, 25, 0.18);
}

.footer-landing-michi {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 20px 0 32px 0;
    border-top: 1px solid var(--borde-gris);
    font-size: 0.82rem;
}

/* ==========================================================================
   SELECTOR DE DÍAS DE LA SEMANA (LU-DO) Y HORARIOS (MAÑANA/TARDE) EN SOLICITUD DE SERVICIOS
   ========================================================================== */
.grid-dias-semana-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.btn-dia-semana {
    min-width: 44px;
    height: 38px;
    padding: 0 12px;
    border-radius: 10px;
    border: 1.5px solid #93c5fd;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-dia-semana:hover:not(:disabled):not(.deshabilitado) {
    background-color: #bfdbfe;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(37, 99, 235, 0.18);
}

.btn-dia-semana.activo {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.32);
}

.btn-dia-semana.activo:hover:not(:disabled):not(.deshabilitado) {
    background-color: #1e40af;
    color: #ffffff;
}

.btn-dia-semana:disabled,
.btn-dia-semana.deshabilitado {
    background-color: #e5e7eb !important;
    color: #9ca3af !important;
    border-color: #d1d5db !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.85;
}

body.modo-oscuro .btn-dia-semana:disabled,
body.modo-oscuro .btn-dia-semana.deshabilitado {
    background-color: #374151 !important;
    color: #6b7280 !important;
    border-color: #4b5563 !important;
}

.btn-horario-preferido {
    padding: 8px 16px;
    border-radius: 10px;
    border: 1.5px solid #93c5fd;
    background-color: #dbeafe;
    color: #1e3a8a;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-horario-preferido:hover {
    background-color: #bfdbfe;
    border-color: #3b82f6;
}

.btn-horario-preferido.activo {
    background-color: #1d4ed8;
    color: #ffffff;
    border-color: #1e40af;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.28);
}

.caja-preferencia-dias-carrito {
    background: var(--bg-pagina);
    border: 1.5px solid #bfdbfe;
    border-radius: 14px;
    padding: 13px 14px;
    margin-top: 12px;
}

.disclaimer-disponibilidad-agenda {
    margin-top: 10px;
    font-size: 0.74rem;
    color: var(--texto-secundario);
    font-style: italic;
    line-height: 1.4;
}

/* ==========================================================================
   LIENZO DE FIRMA TÁCTIL / MOUSE PARA CONSENTIMIENTOS LEGALES
   ========================================================================== */
.contenedor-lienzo-firma {
    background: #ffffff;
    border: 2px dashed #3b82f6;
    border-radius: 14px;
    padding: 8px;
    position: relative;
}

.lienzo-firma-michi {
    width: 100%;
    height: 175px;
    display: block;
    background: #ffffff;
    border-radius: 10px;
    cursor: crosshair;
    touch-action: none;
}

.miniatura-firma-consentimiento {
    max-width: 150px;
    max-height: 58px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 3px;
    object-fit: contain;
}

.tarjeta-consentimiento-tutor {
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: var(--sombra-suave);
}

.tarjeta-consentimiento-tutor.pendiente {
    border-color: var(--naranja-michi);
    background: linear-gradient(135deg, var(--fondo-crema-activo) 0%, var(--bg-tarjeta) 100%);
}

/* ==========================================================================
   MENÚ MÓVIL RESPONSIVE (HAMBURGUESA Y DRAWER DESLIZABLE)
   ========================================================================== */
.btn-menu-movil,
.btn-cerrar-sidebar-movil {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-tarjeta);
    color: var(--texto-principal);
    font-size: 1.1rem;
    cursor: pointer;
    flex-shrink: 0;
}

.btn-menu-movil:hover,
.btn-cerrar-sidebar-movil:hover {
    border-color: var(--naranja-michi);
    color: var(--naranja-michi);
}

.overlay-sidebar-movil {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(2px);
    z-index: 950;
}

.overlay-sidebar-movil.visible {
    display: block;
}

@media (max-width: 900px) {
    .btn-menu-movil {
        display: inline-flex;
    }

    .btn-cerrar-sidebar-movil {
        display: inline-flex;
        margin-left: auto;
        width: 34px;
        height: 34px;
        font-size: 0.95rem;
    }

    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        width: 280px;
        max-width: 85vw;
        z-index: 1000;
        overflow-y: auto;
        transform: translateX(-105%);
        transition: transform 0.25s ease;
        box-shadow: 0 18px 40px rgba(15, 23, 42, 0.25);
    }

    .sidebar.abierto-movil {
        transform: translateX(0);
    }

    .topbar {
        padding: 0 14px;
        height: 62px;
        gap: 8px;
    }

    .buscador-global {
        width: 100%;
        min-width: 0;
        padding: 8px 12px;
    }

    .topbar-acciones {
        gap: 6px;
        flex-shrink: 0;
    }

    .contenido-principal {
        padding: 16px 14px;
    }

    .barra-roles {
        padding: 8px 12px;
        flex-wrap: wrap;
        gap: 6px;
    }

    .encabezado-vista {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* ==========================================================================
   FILTROS DE PERÍODO FINANCIERO (DÍA/SEMANA/MES) Y GRÁFICO DINÁMICO MENSUAL
   ========================================================================== */
.barra-periodo-financiero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.controles-fecha-periodo-fin {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.controles-fecha-periodo-fin input[type="date"] {
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-pagina);
    color: var(--texto-principal);
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-periodo-activo {
    background: var(--fondo-crema-activo);
    color: var(--naranja-michi);
    border: 1px solid rgba(242, 100, 25, 0.35);
    padding: 5px 11px;
    border-radius: 999px;
    font-size: 0.77rem;
    font-weight: 700;
}

.caja-grafico-dinamico-meses {
    background: var(--bg-pagina);
    border: 1.5px solid var(--borde-gris);
    border-radius: 16px;
    padding: 16px;
}

.controles-grafico-meses {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
}

.controles-grafico-meses select {
    padding: 6px 10px;
    border-radius: 9px;
    border: 1px solid var(--borde-gris);
    background: var(--bg-tarjeta);
    color: var(--texto-principal);
    font-size: 0.8rem;
    font-weight: 600;
}

.leyenda-grafico-meses {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.punto-leyenda-mes {
    display: inline-block;
    width: 11px;
    height: 11px;
    border-radius: 3px;
    margin-right: 5px;
    vertical-align: middle;
}

.area-scroll-grafico-meses {
    overflow-x: auto;
    padding-bottom: 6px;
}

.lienzo-barras-meses {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    min-height: 230px;
    height: 230px;
    padding: 28px 10px 8px 10px;
    border-bottom: 2px solid var(--borde-gris);
    background-image: repeating-linear-gradient(
        to top,
        transparent,
        transparent 44px,
        rgba(148, 163, 184, 0.16) 44px,
        rgba(148, 163, 184, 0.16) 45px
    );
    min-width: 520px;
}

.col-mes-grafico {
    flex: 1;
    min-width: 62px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    padding: 4px 4px 0 4px;
    transition: background 0.2s ease;
}

.col-mes-grafico:hover,
.col-mes-grafico.seleccionado {
    background: rgba(242, 100, 25, 0.08);
}

.grupo-barras-mes {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    width: 100%;
    height: 100%;
}

.barra-dinamica-mes {
    flex: 1;
    max-width: 22px;
    min-height: 4px;
    border-radius: 6px 6px 2px 2px;
    position: relative;
    transition: height 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.2s ease, opacity 0.2s ease;
}

.barra-dinamica-mes:hover {
    transform: scaleY(1.03);
    filter: brightness(1.06);
}

.barra-dinamica-mes.ingreso {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%);
}

.barra-dinamica-mes.egreso {
    background: linear-gradient(180deg, #f87171 0%, #dc2626 100%);
}

.barra-dinamica-mes.utilidad {
    background: linear-gradient(180deg, #fb923c 0%, #ea580c 100%);
}

.barra-dinamica-mes.utilidad-negativa {
    background: linear-gradient(180deg, #a855f7 0%, #7e22ce 100%);
}

.etiqueta-mes-eje {
    margin-top: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--texto-secundario);
    text-align: center;
    white-space: nowrap;
}

.col-mes-grafico.seleccionado .etiqueta-mes-eje {
    color: var(--naranja-michi);
}

.detalle-mes-seleccionado-grafico {
    margin-top: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
}

.panel-comparador-dos-meses {
    margin-top: 14px;
    padding: 14px;
    border-radius: 14px;
    background: var(--bg-tarjeta);
    border: 1.5px dashed var(--naranja-michi);
}

.grid-comparacion-dos-meses {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.tarjeta-comp-mes {
    background: var(--bg-pagina);
    border: 1px solid var(--borde-gris);
    border-radius: 11px;
    padding: 10px 12px;
    font-size: 0.8rem;
}

/* ==========================================================================
   SISTEMA UNIVERSAL DE VENTANAS EMERGENTES (MODALES) PARA TODOS LOS FORMULARIOS
   Evita que el contenido de atrás se mueva al crear o editar registros
   ========================================================================== */
.backdrop-modal-formulario-global {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1150;
    animation: fadeBackdropModal 0.18s ease;
}

body.modal-form-abierto {
    overflow: hidden;
}

form.tarjeta-formulario:not(.oculto) {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 1200 !important;
    width: min(780px, 94vw) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    margin: 0 !important;
    padding: 0 24px 24px 24px !important;
    border-radius: 20px !important;
    border: 2px solid var(--naranja-michi) !important;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.36) !important;
    background: var(--bg-tarjeta) !important;
    animation: modalFormPopIn 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

form.tarjeta-formulario:not(.oculto) .encabezado-formulario {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--bg-tarjeta);
    margin: 0 -24px 16px -24px;
    padding: 18px 24px 14px 24px;
    border-bottom: 1.5px solid var(--borde-gris);
    border-radius: 18px 18px 0 0;
}

@keyframes modalFormPopIn {
    from {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeBackdropModal {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 640px) {
    form.tarjeta-formulario:not(.oculto) {
        width: 96vw !important;
        max-height: 92vh !important;
        padding: 0 16px 18px 16px !important;
        border-radius: 16px !important;
    }

    form.tarjeta-formulario:not(.oculto) .encabezado-formulario {
        margin: 0 -16px 14px -16px;
        padding: 14px 16px 12px 16px;
    }
}

/* ==========================================================================
   Z-INDEX MODALES SECUNDARIOS (SIEMPRE ENCIMA DE LA TARJETA DE CITA EN AGENDA)
   ========================================================================== */
#modal-reprogramar-cita,
#modal-recibo-pago-cita,
#modal-crud-opciones-servicio,
#modal-crud-domicilios-admin,
#modal-elegir-subopciones-solicitud,
#modal-historial-mascota-tutor,
#modal-cierre-caja-diario,
#modal-cita-rapida-local,
#modal-agregar-mascota-tutor,
#modal-agregar-autorizado-tutor,
#modal-examenes-zoomed-paciente,
#modal-solicitud-rapida-jornada-landing,
#modal-abonos-zoomed-paciente,
#modal-whatsapp-jornada-zoomed {
    z-index: 2600 !important;
}

/* Buscadores amplios en Zoomed (jornada y nuevo registro) */
.barra-busqueda-zoomed-grande {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 50px;
    padding: 8px 16px !important;
}

.barra-busqueda-zoomed-grande input {
    width: 100% !important;
    font-size: 0.94rem !important;
    padding: 6px 4px !important;
}

#zm-buscar-mascota-reg {
    width: 100% !important;
    min-width: 100% !important;
    padding: 11px 14px !important;
    font-size: 0.92rem !important;
}

/* Elementos exclusivos del rol Tutor (ocultos para Admin y Profesional) */
body:not([data-rol-actual="tutor"]) .solo-tutor {
    display: none !important;
}

/* ==========================================================================
   LANDING PAGE STORYTELLING (SCROLL-DRIVEN PARALLAX + STICKY SCENES + REVEAL)
   ========================================================================== */
.story-progress-track {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(242, 100, 25, 0.12);
    z-index: 9999;
}

.story-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #f26419, #f59e0b, #16a34a);
    transition: width 0.08s linear;
}

.story-hero-section {
    position: relative;
    padding: 36px 0 28px 0;
    overflow: hidden;
}

.story-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.42;
    pointer-events: none;
    will-change: transform;
}

.story-orb-1 {
    width: 340px;
    height: 340px;
    background: #fed7aa;
    top: -60px;
    right: -40px;
}

.story-orb-2 {
    width: 280px;
    height: 280px;
    background: #fde68a;
    bottom: -40px;
    left: -60px;
}

.story-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 36px;
    align-items: center;
}

.story-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    background: #fff7ed;
    color: #ea580c;
    border: 1px solid #fed7aa;
}

.story-hero-title {
    font-size: clamp(2.1rem, 4.4vw, 3.45rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.story-hero-sub {
    font-size: 1.02rem;
    line-height: 1.65;
    opacity: 0.84;
    max-width: 520px;
}

.story-scroll-cue {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--naranja-michi);
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.story-scroll-cue:hover {
    opacity: 1;
    transform: translateY(2px);
}

.story-scroll-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--naranja-michi);
    animation: pulsoScrollCue 1.8s infinite;
}

@keyframes pulsoScrollCue {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.45); opacity: 0.45; }
}

.story-hero-stage {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-main-portrait {
    width: 100%;
    max-width: 420px;
    background: var(--bg-tarjeta);
    border: 2px solid #fed7aa;
    border-radius: 30px;
    padding: 14px 14px 20px 14px;
    text-align: center;
    box-shadow: 0 24px 55px rgba(242, 100, 25, 0.16);
    will-change: transform;
}

.story-portrait-img {
    width: 158px !important;
    height: 158px !important;
    max-width: 158px !important;
    max-height: 158px !important;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px auto;
    border: 4px solid #fb923c;
    box-shadow: 0 12px 26px rgba(242, 100, 25, 0.22);
}

.story-portrait-frame {
    width: 100%;
    height: 455px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 3px solid #fed7aa;
    box-shadow: 0 14px 30px rgba(242, 100, 25, 0.2);
    cursor: zoom-in;
}

.story-portrait-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 20%;
    display: block;
    transition: transform 0.6s ease;
}

.story-main-portrait:hover .story-portrait-photo {
    transform: scale(1.03);
}

.story-stage-photo-wrap {
    position: relative;
    width: 100%;
    height: clamp(190px, 34vh, 265px);
    border-radius: 18px;
    overflow: hidden;
    margin: 10px 0 10px 0;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.14);
    cursor: zoom-in;
}

.story-stage-photo {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    object-position: center 18%;
    display: block;
    transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-stage-emoji-pill {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.16);
}

.tarjeta-polaroid-landing {
    width: 285px;
    flex-shrink: 0;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    border-radius: 22px;
    padding: 10px 10px 14px 10px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: zoom-in;
}

.tarjeta-polaroid-landing:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 36px rgba(242, 100, 25, 0.18);
    border-color: var(--naranja-michi);
}

.tarjeta-polaroid-landing img {
    width: 100% !important;
    height: 365px !important;
    object-fit: cover;
    object-position: center 20%;
    border-radius: 16px;
    display: block;
}

.tarjeta-polaroid-landing span {
    display: block;
    margin-top: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    opacity: 0.88;
}

.story-portrait-caption strong {
    display: block;
    font-size: 1.05rem;
}

.story-portrait-caption span {
    display: block;
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 4px;
}

.story-float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    border-radius: 18px;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
    z-index: 12;
    will-change: transform;
}

.story-float-card span {
    font-size: 1.5rem;
}

.story-float-card strong {
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
}

.story-float-card small {
    display: block;
    font-size: 0.7rem;
    opacity: 0.75;
}

.story-float-top {
    top: 12px;
    left: -10px;
}

.story-float-bottom {
    bottom: 14px;
    right: -10px;
}

/* CAPÍTULO 2: STICKY STORYTELLING */
.story-sticky-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    align-items: stretch;
}

.story-steps-col {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding-bottom: 56px;
}

.story-step-card {
    padding: 28px 24px;
    min-height: 185px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 22px;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--borde-gris);
    opacity: 0.48;
    transform: translateX(-8px) scale(0.98);
    transition: all 0.42s cubic-bezier(0.22, 1, 0.36, 1);
    cursor: pointer;
}

.story-step-card.activo {
    opacity: 1;
    transform: translateX(0) scale(1);
    border-color: var(--naranja-michi);
    box-shadow: 0 18px 40px rgba(242, 100, 25, 0.14);
}

.story-step-num {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    color: var(--naranja-michi);
    background: #fff7ed;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 10px;
}

.story-step-card h3 {
    font-size: 1.22rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.story-step-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    opacity: 0.82;
}

.story-stage-col {
    position: relative;
}

.story-sticky-stage {
    position: sticky;
    top: 84px;
    border-radius: 24px;
    padding: 20px 22px;
    min-height: 0;
    max-height: calc(100vh - 102px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    border: 2px solid #fed7aa;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    transition: background 0.55s ease, border-color 0.55s ease, transform 0.45s ease;
}

.story-sticky-stage.escena-0 { background: linear-gradient(145deg, #fff7ed 0%, #ffedd5 100%); border-color: #fb923c; }
.story-sticky-stage.escena-1 { background: linear-gradient(145deg, #eff6ff 0%, #dbeafe 100%); border-color: #60a5fa; }
.story-sticky-stage.escena-2 { background: linear-gradient(145deg, #ecfdf5 0%, #d1fae5 100%); border-color: #34d399; }
.story-sticky-stage.escena-3 { background: linear-gradient(145deg, #fefce8 0%, #fef08a 100%); border-color: #f59e0b; }

.story-stage-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.story-stage-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: #0f172a;
    background: rgba(255, 255, 255, 0.82);
    padding: 5px 12px;
    border-radius: 999px;
}

.story-stage-dots {
    display: flex;
    gap: 6px;
}

.story-stage-dots .s-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.22);
    transition: all 0.3s ease;
}

.story-stage-dots .s-dot.activo {
    width: 22px;
    background: #ea580c;
}

.story-stage-emoji {
    font-size: 4.5rem;
    margin: 18px 0 8px 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-stage-titulo {
    font-size: 1.22rem;
    font-weight: 900;
    color: #0f172a;
    margin: 2px 0 0;
}

.story-stage-desc {
    font-size: 0.86rem;
    color: #334155;
    line-height: 1.5;
    margin: 6px auto 12px auto;
    max-width: 400px;
}

.story-stage-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.story-stage-pills span {
    background: rgba(255, 255, 255, 0.88);
    color: #0f172a;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

/* CAPÍTULO 4: MICHI PUNTOS CON HUELLAS ANIMADAS AL SCROLL */
.story-fidelidad-section {
    background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
    border: 2px solid #fcd34d;
    border-radius: 30px;
    padding: 36px 32px;
    color: #1e293b;
}

.story-fidelidad-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.story-huellas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.story-huella-item {
    background: #ffffff;
    border: 2px solid #fde68a;
    border-radius: 20px;
    padding: 18px 10px;
    text-align: center;
    opacity: 0.3;
    transform: translateY(16px) scale(0.9);
    transition: all 0.55s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.story-huellas-grid.encendidas .story-huella-item {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 12px 24px rgba(245, 158, 11, 0.16);
}

.story-huella-item span {
    display: block;
    font-size: 1.85rem;
}

.story-huella-item small {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    font-weight: 800;
    color: #92400e;
}

.story-huella-item.premio {
    background: linear-gradient(135deg, #f26419, #ea580c);
    border-color: #ea580c;
}

.story-huella-item.premio small {
    color: #ffffff;
}

/* CAPÍTULO 5: CTA FINAL EDITORIAL */
.story-cta-final {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 54px 28px;
    background: linear-gradient(135deg, #171514 0%, #291c16 60%, #431d0c 100%);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.story-cta-glow {
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(242, 100, 25, 0.45) 0%, transparent 70%);
    top: -120px;
    right: -80px;
    pointer-events: none;
}

/* ANIMACIÓN REVEAL AL HACER SCROLL */
.story-reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.story-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .story-hero-grid,
    .story-sticky-layout,
    .story-fidelidad-grid {
        grid-template-columns: 1fr;
    }

    .story-stage-col {
        position: relative;
        top: 0;
        order: -1;
    }

    .story-sticky-stage {
        position: static;
        top: auto;
    }

    .story-float-top,
    .story-float-bottom {
        position: static;
        margin: 10px auto;
        max-width: 300px;
    }

    .story-hero-stage {
        flex-direction: column;
        min-height: auto;
    }
}

/* ==========================================================================
   MEJORA VISUAL DE NAVBAR FLOTANTE, ROLES COMPACTOS Y GRUPOS DEL SIDEBAR
   ========================================================================== */
.barra-roles {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
    color: #f8fafc !important;
    padding: 6px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.etiqueta-barra-roles {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.selector-roles {
    background: rgba(255, 255, 255, 0.08);
    padding: 3px;
    border-radius: 999px;
    display: inline-flex;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.selector-roles .btn-rol {
    border-radius: 999px !important;
    padding: 4px 12px !important;
    font-size: 0.76rem !important;
    font-weight: 700 !important;
    background: transparent !important;
    color: #cbd5e1 !important;
    border: none !important;
    transition: all 0.2s ease !important;
}

.selector-roles .btn-rol:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.selector-roles .btn-rol.activo {
    background: linear-gradient(135deg, #f26419, #ea580c) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(242, 100, 25, 0.35) !important;
}

.grupo-menu-titulo {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-secundario);
    opacity: 0.7;
    padding: 12px 14px 4px 14px;
}

.grupo-menu-titulo:first-child {
    padding-top: 2px;
}

.navbar-landing-floating {
    background: rgba(255, 255, 255, 0.86);
    border: 1.5px solid rgba(254, 215, 170, 0.9);
    color: #0f172a;
}

body.modo-oscuro .navbar-landing-floating {
    background: rgba(15, 23, 42, 0.86);
    border-color: rgba(242, 100, 25, 0.35);
    color: #f8fafc;
}

/* ESCENARIO 3D INTERACTIVO DE MICHI EN EL HERO */
.story-michi-3d-stage {
    position: relative;
    width: 100%;
    height: 390px;
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 12px;
    background: radial-gradient(circle at 50% 35%, #fff7ed 0%, #ffedd5 55%, #fed7aa 100%);
    border: 2px solid #fdba74;
    cursor: pointer;
    box-shadow: inset 0 0 36px rgba(242, 100, 25, 0.14);
}

.story-michi-3d-stage canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.badge-michi-3d-tip {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #9a3412;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid #fed7aa;
    white-space: nowrap;
    pointer-events: none;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
}




/* ==========================================================================
   BUSCADOR INTELIGENTE DE MASCOTAS (AUTOCOMPLETE REUTILIZABLE SIN SELECT EXTRA)
   ========================================================================== */
.buscador-mascota-autocomplete {
    position: relative;
    width: 100%;
}

.lista-resultados-autocomplete {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    max-height: 210px;
    overflow-y: auto;
    background: var(--bg-tarjeta);
    border: 1.5px solid var(--naranja-michi);
    border-radius: 12px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);
    z-index: 2700;
}

.item-resultado-autocomplete {
    padding: 9px 12px;
    cursor: pointer;
    border-bottom: 1px dashed var(--borde-gris);
    font-size: 0.82rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.item-resultado-autocomplete:last-child {
    border-bottom: none;
}

.item-resultado-autocomplete:hover {
    background: var(--fondo-crema-activo);
}

.pill-mascota-elegida {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #f0fdf4;
    border: 1.5px solid #16a34a;
    color: #14532d;
    font-size: 0.82rem;
    font-weight: 700;
}

/* ==========================================================================
   RECIBO DE PAGO OFICIAL (COMPROBANTE DE SERVICIOS)
   ========================================================================== */
.hoja-recibo-oficial {
    background: #ffffff;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    border-radius: 12px;
    padding: 20px 22px;
    font-family: 'Inter', Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.5;
}

.hoja-recibo-oficial hr {
    border: none;
    border-top: 1.5px solid #cbd5e1;
    margin: 12px 0;
}

.tabla-recibo-oficial {
    width: 100%;
    border-collapse: collapse;
    margin: 8px 0;
}

.tabla-recibo-oficial th {
    text-align: left;
    padding: 6px 8px;
    background: #fff7ed;
    border-bottom: 1.5px solid #f26419;
    color: #9a3412;
    font-size: 0.77rem;
}

.tabla-recibo-oficial td {
    padding: 6px 8px;
    border-bottom: 1px dashed #e2e8f0;
}

.pie-recibo-oficial {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #cbd5e1;
    font-size: 0.71rem;
    color: #475569;
    white-space: pre-line;
}









/* ==========================================================================
   DRAWER LATERAL (FICHA RÁPIDA DE PACIENTE ZOOMED) Y HUBS UNIFICADOS
   ========================================================================== */
.drawer-zoomed-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(3px);
    z-index: 2350;
    display: flex;
    justify-content: flex-end;
    align-items: stretch;
}

.drawer-zoomed-overlay.oculto {
    display: none !important;
}

.drawer-zoomed-panel {
    width: min(650px, 96vw);
    height: 100vh;
    background: var(--bg-tarjeta, #ffffff);
    color: var(--texto-principal, #1e293b);
    box-shadow: -12px 0 36px rgba(15, 23, 42, 0.22);
    padding: 20px 22px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    animation: slideInDrawerZoomed 0.2s ease-out;
}

.drawer-zoomed-panel .filtros-rapidos-especie {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.drawer-zoomed-panel .filtros-rapidos-especie .chip-filtro-especie {
    padding: 6px 11px;
    font-size: 0.78rem;
}

@keyframes slideInDrawerZoomed {
    from { transform: translateX(36px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.fila-zoomed-clicable:hover {
    background: rgba(242, 100, 25, 0.05) !important;
}


/* ==========================================================================
   ALINEACIÓN GLOBAL UX/UI + PROTECCIÓN ANTI-DESBORDE EN TODAS LAS TARJETAS
   ========================================================================== */
.btn-primario,
.btn-secundario-sm,
.btn-peligro-sm,
.chip-filtro-especie,
.badge-periodo-activo,
.badge-alerta-solicitudes {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.chip-etiqueta {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    line-height: 1.3;
}

/* Protección global: ninguna tarjeta o grilla puede desbordar contenido fuera de su borde */
.tarjeta-pedido-pendiente,
.tarjeta-servicio-pro,
.tarjeta-grafico-informe,
.tarjeta-censo-especie,
.tarjeta-expediente,
.tarjeta-fidelidad,
.tarjeta-profesional,
.tarjeta-inventario,
.bloque-bandeja-pendientes {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.tarjeta-pedido-pendiente > *,
.tarjeta-servicio-pro > *,
.tarjeta-fidelidad > * {
    min-width: 0;
    max-width: 100%;
}

.grid-pedidos-pendientes {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)) !important;
}

/* Michi Puntos: 1 sola tarjeta amplia por fila para ver todo el detalle cómodamente */
#contenedor-tarjetas-michi-puntos,
.grid-tarjetas-fidelidad {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
}

.encabezado-vista {
    gap: 16px;
    align-items: center;
}

.encabezado-vista > div:first-child {
    min-width: 240px;
    flex: 1;
}

@media (max-width: 900px) {
    .acciones-encabezado-fila {
        flex-wrap: wrap !important;
    }
}


/* ==========================================================================
   INTERRUPTOR ANIMADO PREMIUM (SIN SALTO DE TEXTO AL ENCENDER / APAGAR)
   ========================================================================== */
.switch-animado-michi {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 12px 6px 8px;
    border-radius: 999px;
    border: 1.5px solid #cbd5e1;
    background: var(--bg-tarjeta, #ffffff);
    color: #475569;
    font-weight: 800;
    font-size: 0.8rem;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    min-width: 238px;
    transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.switch-animado-michi.activo {
    border-color: #16a34a;
    background: #f0fdf4;
    color: #15803d;
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.14);
}

.switch-animado-michi.compacto {
    min-width: 118px;
    padding: 4px 10px 4px 6px;
    font-size: 0.74rem;
    gap: 8px;
}

.switch-animado-michi .switch-pista {
    position: relative;
    width: 38px;
    height: 22px;
    border-radius: 999px;
    background: #cbd5e1;
    flex-shrink: 0;
    transition: background-color 0.25s ease;
}

.switch-animado-michi.compacto .switch-pista {
    width: 32px;
    height: 18px;
}

.switch-animado-michi.activo .switch-pista {
    background: #16a34a;
}

.switch-animado-michi .switch-bolita {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 2px 5px rgba(15, 23, 42, 0.25);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.switch-animado-michi.compacto .switch-bolita {
    top: 2px;
    left: 2px;
    width: 14px;
    height: 14px;
}

.switch-animado-michi.activo .switch-bolita {
    transform: translateX(16px);
}

.switch-animado-michi.compacto.activo .switch-bolita {
    transform: translateX(14px);
}

.switch-animado-michi .switch-texto {
    flex: 1;
    text-align: left;
}


/* ==========================================================================
   BLINDAJE GLOBAL UX/UI: CERO DESBORDES EN BARRAS DE PESTAÑAS, FILTROS Y TABLAS
   ========================================================================== */
.barra-subtabs-zoomed,
.contenedor-filtros-modulo,
.barra-periodo-financiero,
.controles-fecha-periodo-fin,
.encabezado-vista,
.encabezado-bandeja-pendientes,
.encabezado-formulario {
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.tabla-informes-contenedor,
.tabla-responsive {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
}

.grid-kpis-informes,
.grid-servicios-interactivos,
.grid-graficos-informes,
.grid-formulario,
.grid-resumen {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.grid-kpis-informes > *,
.grid-servicios-interactivos > *,
.grid-graficos-informes > *,
.grid-formulario > *,
.grid-resumen > * {
    min-width: 0;
}

/* ==========================================================================
   LANDING PAGE DE NIVEL INTERNACIONAL — EDITORIAL, CONFIANZA, ZOOMED, FAQ & FOOTER
   ========================================================================== */
#portal-landing-michi {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.landing-serif-accent {
    font-family: 'Instrument Serif', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}

/* Barra de confianza editorial (Trust Strip) */
.landing-trust-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    padding: 18px 20px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(242, 100, 25, 0.16);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px);
}

.landing-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 14px;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.landing-trust-item:hover {
    transform: translateY(-2px);
    background: rgba(255, 247, 237, 0.85);
}

.landing-trust-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.landing-trust-item strong {
    display: block;
    font-size: 0.86rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
}

.landing-trust-item small {
    display: block;
    font-size: 0.74rem;
    color: #475569;
    margin-top: 2px;
    line-height: 1.35;
}

/* Sección Jornadas de Esterilización (Alianza Clínica Zoomed) */
.landing-zoomed-section {
    background: linear-gradient(135deg, #ffffff 0%, #f5f3ff 60%, #eef2ff 100%);
    border: 1.5px solid #c7d2fe;
    border-radius: 28px;
    padding: 36px 32px;
    box-shadow: 0 18px 40px rgba(67, 56, 202, 0.08);
}

.landing-zoomed-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.95fr;
    gap: 32px;
    align-items: center;
}

.landing-zoomed-steps {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.landing-zoomed-step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e0e7ff;
    border-radius: 14px;
    padding: 12px 14px;
}

.landing-zoomed-step > span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #4338ca;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-zoomed-step strong {
    display: block;
    font-size: 0.88rem;
    color: #1e1b4b;
}

.landing-zoomed-step small {
    display: block;
    font-size: 0.76rem;
    color: #475569;
    margin-top: 2px;
}

.landing-zoomed-card-stat {
    background: linear-gradient(155deg, #1e1b4b 0%, #312e81 100%);
    color: #f8fafc;
    border-radius: 22px;
    padding: 28px 26px;
    box-shadow: 0 20px 38px rgba(30, 27, 75, 0.22);
}

.landing-zoomed-pill {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(165, 180, 252, 0.2);
    color: #e0e7ff;
    border: 1px solid rgba(199, 210, 254, 0.35);
    margin-bottom: 10px;
}

.landing-zoomed-card-stat h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 14px;
}

.landing-zoomed-card-stat ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.landing-zoomed-card-stat li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.84rem;
    color: #e2e8f0;
    line-height: 1.4;
}

.landing-zoomed-card-stat li i {
    color: #4ade80;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Testimonios editoriales */
.landing-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.landing-testimonial-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.landing-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(242, 100, 25, 0.1);
}

.landing-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
}

.landing-quote {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.6;
    margin: 0;
}

.landing-author {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px dashed #e2e8f0;
}

.landing-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff7ed;
    color: #ea580c;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.landing-author strong {
    display: block;
    font-size: 0.84rem;
    color: #0f172a;
}

.landing-author small {
    display: block;
    font-size: 0.72rem;
    color: #64748b;
}

/* Acordeón FAQ interactivo */
.landing-faq-list {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.landing-faq-item {
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.landing-faq-item.activo {
    border-color: rgba(242, 100, 25, 0.45);
    box-shadow: 0 8px 22px rgba(242, 100, 25, 0.08);
}

.landing-faq-trigger {
    width: 100%;
    padding: 16px 20px;
    background: transparent;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    text-align: left;
    font-size: 0.92rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    font-family: inherit;
}

.landing-faq-trigger i {
    color: #f26419;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.landing-faq-item.activo .landing-faq-trigger i {
    transform: rotate(180deg);
}

.landing-faq-answer {
    display: none;
    padding: 0 20px 18px;
    font-size: 0.86rem;
    color: #475569;
    line-height: 1.6;
}

.landing-faq-item.activo .landing-faq-answer {
    display: block;
}

/* Footer internacional de 4 columnas */
.landing-footer-pro {
    border-top: 1.5px solid #e2e8f0;
    padding-top: 36px;
    padding-bottom: 24px;
    color: #334155;
}

.landing-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr 1fr 1.1fr;
    gap: 28px;
    margin-bottom: 26px;
}

.landing-footer-col {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-footer-col h4 {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0f172a;
    margin: 0 0 4px;
}

.landing-footer-col a,
.landing-footer-col button,
.landing-footer-col span {
    font-size: 0.82rem;
    color: #475569;
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    font-family: inherit;
    line-height: 1.45;
}

.landing-footer-col a,
.landing-footer-col button {
    cursor: pointer;
    transition: color 0.2s ease;
}

.landing-footer-col a:hover,
.landing-footer-col button:hover {
    color: #f26419;
}

.landing-footer-bottom {
    border-top: 1px dashed #cbd5e1;
    padding-top: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.76rem;
    color: #64748b;
}

/* Botón flotante de WhatsApp dentro de la Landing */
.landing-whatsapp-fab {
    position: fixed;
    bottom: 22px;
    right: 22px;
    z-index: 9550;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 999px;
    border: 0;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #ffffff;
    font-size: 0.86rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(22, 163, 74, 0.36);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.landing-whatsapp-fab i {
    font-size: 1.25rem;
}

.landing-whatsapp-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 16px 34px rgba(22, 163, 74, 0.45);
}

/* Responsivo perfecto en tablet y celular */
@media (max-width: 960px) {
    .landing-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-zoomed-grid,
    .landing-testimonials-grid,
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
    .landing-zoomed-section {
        padding: 24px 20px;
    }
}

@media (max-width: 600px) {
    .landing-trust-strip {
        grid-template-columns: 1fr;
        padding: 14px;
    }
    .landing-whatsapp-fab span {
        display: none;
    }
    .landing-whatsapp-fab {
        padding: 14px;
        bottom: 16px;
        right: 16px;
    }
}

/* ==========================================================================
   LANDING PAGE EDITORIAL INSPIRADA EN LEADPAGES (POPPINS 900 + INTER)
   Paleta: #FF6B35 | #DC143C | #FFF5F0 | #FFE9DE | #3D2817 | #FFFFFF
   ========================================================================== */
.lp-root {
    --lp-primary: #FF6B35;
    --lp-accent: #DC143C;
    --lp-bg: #FFF5F0;
    --lp-peach: #FFE9DE;
    --lp-text: #3D2817;
    --lp-muted: #5A4433;
    --lp-white: #FFFFFF;
    background: var(--lp-bg);
    color: var(--lp-text);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
}

.lp-root h1,
.lp-root h2,
.lp-root h3,
.lp-root h4,
.lp-logo,
.lp-btn,
.lp-kick,
.lp-bigstat,
.lp-review-card q,
.lp-chap-num,
.lp-step-n,
.lp-svc-call {
    font-family: 'Poppins', sans-serif;
}

.lp-wrap {
    max-width: 1240px;
    width: 100%;
    margin: 0 auto;
    padding-inline: clamp(20px, 5vw, 64px);
    box-sizing: border-box;
}

/* 1. NAVBAR STICKY */
.lp-site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: rgba(255, 245, 240, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(61, 40, 23, 0.1);
}

.lp-nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 10px;
}

.lp-logo {
    font-weight: 900;
    font-size: clamp(19px, 2.2vw, 24px);
    letter-spacing: -0.02em;
    color: var(--lp-text);
    text-decoration: none;
    white-space: nowrap;
}

.lp-logo span {
    color: var(--lp-primary);
}

.lp-logo-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.lp-logo-img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    background: #FFFFFF;
    border: 2.5px solid var(--lp-primary);
    box-shadow: 0 5px 14px rgba(255, 107, 53, 0.26);
    image-rendering: -webkit-optimize-contrast;
    flex-shrink: 0;
}

.lp-footer .lp-logo-img {
    width: 64px;
    height: 64px;
}

.lp-logo-text-orange {
    color: var(--lp-primary);
    font-weight: 900;
}

.lp-logo-white {
    color: var(--lp-white);
}

.lp-nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.lp-nav-links a,
.lp-nav-link-btn {
    color: var(--lp-text);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.lp-nav-links a:hover,
.lp-nav-link-btn:hover {
    color: var(--lp-accent);
}

.lp-nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lp-btn-app-back {
    background: transparent;
    border: 1.5px solid rgba(61, 40, 23, 0.25);
    color: var(--lp-text);
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lp-btn-app-back:hover {
    background: var(--lp-text);
    color: var(--lp-white);
}

/* BOTONES PÍLDORA */
.lp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 15px 30px;
    font-weight: 700;
    font-size: 0.96rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
}

.lp-btn-sm {
    padding: 10px 22px;
    font-size: 0.86rem;
}

.lp-btn-primary {
    background: linear-gradient(135deg, #FF6B35 0%, #F26419 100%);
    color: var(--lp-white);
    box-shadow: 0 8px 24px rgba(255, 107, 53, 0.38);
}

.lp-btn-primary:hover {
    background: linear-gradient(135deg, #f55c24 0%, #e0530e 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 34px rgba(255, 107, 53, 0.48);
}

.lp-btn-ghost {
    background: rgba(255, 255, 255, 0.14);
    color: var(--lp-white);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
}

.lp-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-2px);
}

.lp-btn-dark {
    background: #000000;
    color: var(--lp-white);
}

.lp-btn-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
}

.lp-btn-line2 {
    background: transparent;
    color: #000000;
    border-color: #000000;
}

.lp-btn-line2:hover {
    background: #000000;
    color: var(--lp-white);
    transform: translateY(-2px);
}

/* 2. HERO FULL-BLEED */
.lp-hero {
    position: relative;
    min-height: calc(100svh - 68px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding-block: clamp(48px, 7vw, 90px);
}

.lp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 52% 28%;
}

.lp-hero-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(61, 40, 23, 0.35) 0%, rgba(61, 40, 23, 0.05) 30%, rgba(61, 40, 23, 0.22) 55%, rgba(61, 40, 23, 0.88) 100%);
}

.lp-hero-content {
    position: relative;
    z-index: 2;
    color: var(--lp-white);
}

.lp-hero-eyebrow {
    display: inline-block;
    background: var(--lp-accent);
    color: var(--lp-white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 18px;
}

.lp-hero-h1 {
    font-weight: 900;
    font-size: clamp(2.8rem, 8.8vw, 6.6rem);
    line-height: 0.94;
    letter-spacing: -0.03em;
    margin: 0 0 18px;
    color: var(--lp-white);
    text-shadow: 0 2px 24px rgba(61, 40, 23, 0.5);
}

.lp-hero-h1 em {
    font-style: normal;
    color: var(--lp-primary);
}

.lp-hero-sub {
    font-size: clamp(1.02rem, 1.9vw, 1.3rem);
    font-weight: 400;
    max-width: 640px;
    color: rgba(255, 255, 255, 0.92);
    margin: 0 0 28px;
}

.lp-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* SECCIONES BASE */
.lp-sec {
    padding-block: clamp(64px, 8.5vw, 116px);
}

.lp-sec-cream { background: var(--lp-bg); color: var(--lp-text); }
.lp-sec-white { background: var(--lp-white); color: var(--lp-text); }
.lp-sec-orange { background: var(--lp-primary); color: var(--lp-white); }
.lp-sec-dark { background: var(--lp-text); color: var(--lp-white); }

.lp-sec-head {
    max-width: 720px;
    margin-bottom: clamp(32px, 4.5vw, 56px);
}

.lp-kick {
    display: inline-block;
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 10px;
}

.lp-sec-dark .lp-kick {
    color: var(--lp-primary);
}

.lp-h2,
.lp-h2-story {
    font-weight: 900;
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 14px;
    color: var(--lp-text);
}

.lp-h2-story {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
}

.lp-h2-story em {
    font-weight: 400;
    font-style: italic;
    color: var(--lp-primary);
}

.lp-h2-white {
    color: var(--lp-white);
}

.lp-sec-p {
    font-size: 1.02rem;
    color: var(--lp-muted);
    margin: 0;
}

/* 3. HISTORIA EN 3 CAPÍTULOS ASIMÉTRICOS */
.lp-story-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: end;
}

.lp-chap-1 { grid-column: span 4; }
.lp-chap-2 { grid-column: span 5; transform: translateY(20px); }
.lp-chap-3 { grid-column: span 3; }

.lp-chap-photo {
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    margin-bottom: 22px;
    box-shadow: 0 20px 50px rgba(61, 40, 23, 0.18);
}

.lp-chap-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-chap-num {
    font-weight: 900;
    font-size: clamp(2.4rem, 4.5vw, 3.8rem);
    line-height: 1;
    color: var(--lp-primary);
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 10px;
}

.lp-chap-num small {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-text);
}

.lp-chap h3 {
    font-weight: 900;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.2;
    margin: 0 0 8px;
    color: var(--lp-text);
}

.lp-chap p {
    font-size: 0.94rem;
    color: var(--lp-muted);
    margin: 0;
}

/* 4. SERVICIOS BENTO GRID */
.lp-bento {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(16px, 2.5vw, 28px);
}

.lp-svc {
    border-radius: 22px;
    padding: clamp(24px, 3vw, 36px);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lp-svc:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(61, 40, 23, 0.12);
}

.lp-svc.white {
    background: var(--lp-white);
    border: 1px solid rgba(61, 40, 23, 0.12);
}

.lp-svc.peach {
    background: var(--lp-peach);
}

.lp-svc.lead {
    grid-column: 1 / span 2;
    background: var(--lp-text);
    color: var(--lp-white);
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
}

.lp-svc-lead-body {
    padding: clamp(28px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-svc-lead-img img {
    width: 100%;
    height: 100%;
    min-height: 320px;
    object-fit: cover;
}

.lp-svc-ic {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--lp-primary);
    color: var(--lp-white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    margin-bottom: 18px;
}

.lp-svc-call {
    display: block;
    font-weight: 700;
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lp-accent);
    margin-bottom: 8px;
}

.lp-svc.lead .lp-svc-call {
    color: var(--lp-primary);
}

.lp-svc h3 {
    font-weight: 900;
    font-size: clamp(1.35rem, 2.4vw, 1.9rem);
    line-height: 1.15;
    margin: 0 0 10px;
    color: var(--lp-text);
}

.lp-svc.lead h3 {
    color: var(--lp-white);
}

.lp-svc p {
    font-size: 0.95rem;
    color: var(--lp-muted);
    margin: 0;
}

.lp-svc.lead p {
    color: rgba(255, 255, 255, 0.84);
}

.lp-svc-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--lp-primary);
}

/* 5. MÉTRICAS Y RESEÑAS (#FF6B35) */
.lp-proof-top {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    align-items: center;
    margin-bottom: 40px;
}

.lp-bigstat {
    font-weight: 900;
    font-size: clamp(4.5rem, 13vw, 9.5rem);
    line-height: 0.85;
    letter-spacing: -0.04em;
    color: var(--lp-white);
}

.lp-bigstat-sub {
    font-size: 1.1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin: 12px 0 0;
}

.lp-proof-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.lp-stat-box strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    color: var(--lp-white);
}

.lp-stat-box span {
    display: block;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 4px;
    max-width: 210px;
}

.lp-reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.lp-review-card {
    background: var(--lp-white);
    color: var(--lp-text);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    box-shadow: 0 14px 34px rgba(61, 40, 23, 0.14);
}

.lp-review-stars {
    color: var(--lp-accent);
    font-size: 1.05rem;
    letter-spacing: 3px;
}

.lp-review-card q {
    font-weight: 700;
    font-size: 1.04rem;
    line-height: 1.45;
    color: var(--lp-text);
    quotes: none;
}

.lp-review-author {
    font-size: 0.82rem;
    font-weight: 600;
    color: #7A6350;
}

/* 6. GALERÍA MOSAICO + CARRUSEL CONTEMPORÁNEO SUAVE */
.lp-mosaic {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 230px;
    gap: 16px;
    margin-bottom: 64px;
}

.lp-mosaic figure {
    margin: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(61, 40, 23, 0.14);
}

.lp-mosaic figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.lp-mosaic figure:hover img {
    transform: scale(1.04);
}

.lp-g1 { grid-column: 1 / span 5; grid-row: 1 / span 2; }
.lp-g2 { grid-column: 6 / span 4; grid-row: 1; }
.lp-g-cap {
    grid-column: 6 / span 4;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 12px 10px;
    gap: 10px;
}
.lp-g-cap h3 {
    font-weight: 900;
    font-size: clamp(1.3rem, 2.2vw, 1.65rem);
    margin: 0;
    color: var(--lp-text);
}
.lp-g-cap p {
    font-size: 0.9rem;
    color: var(--lp-muted);
    margin: 0;
}
.lp-g3 { grid-column: 10 / span 3; grid-row: 1 / span 2; }

/* Carrusel contemporáneo suave (scroll-snap, sin movimiento automático que fatigue) */
.lp-carousel-block {
    padding-top: 24px;
    border-top: 1px solid rgba(61, 40, 23, 0.12);
}

.lp-carousel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.lp-car-h3 {
    font-weight: 900;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin: 0;
    color: var(--lp-text);
}

.lp-car-controls {
    display: flex;
    gap: 10px;
}

.lp-car-arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px solid rgba(61, 40, 23, 0.22);
    background: var(--lp-white);
    color: var(--lp-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.lp-car-arrow:hover {
    background: var(--lp-text);
    border-color: var(--lp-text);
    color: var(--lp-white);
    transform: translateY(-2px);
}

.lp-car-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 12px;
    scrollbar-width: none;
}

.lp-car-track::-webkit-scrollbar {
    display: none;
}

.lp-car-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--lp-white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(61, 40, 23, 0.1);
    box-shadow: 0 10px 28px rgba(61, 40, 23, 0.08);
    transition: transform 0.25s ease;
}

.lp-car-card:hover {
    transform: translateY(-4px);
}

.lp-car-img-wrap {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.lp-car-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lp-car-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(61, 40, 23, 0.84);
    color: var(--lp-white);
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.lp-car-body {
    padding: 18px 20px 20px;
}

.lp-car-body h3 {
    font-weight: 900;
    font-size: 1.08rem;
    margin: 0 0 6px;
    color: var(--lp-text);
}

.lp-car-body p {
    font-size: 0.86rem;
    color: var(--lp-muted);
    margin: 0;
}

.lp-car-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
}

.lp-car-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    border: 0;
    background: rgba(61, 40, 23, 0.22);
    cursor: pointer;
    padding: 0;
    transition: all 0.25s ease;
}

.lp-car-dot.activo {
    width: 28px;
    background: var(--lp-primary);
}

/* 7. CÓMO FUNCIONA / 3 PASOS (#3D2817) */
.lp-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(24px, 4vw, 48px);
}

.lp-step {
    position: relative;
}

.lp-step:not(:last-child)::after {
    content: '›';
    position: absolute;
    top: 8px;
    right: -24px;
    font-family: 'Poppins', sans-serif;
    font-size: 2.6rem;
    font-weight: 700;
    color: rgba(255, 107, 53, 0.45);
    line-height: 1;
}

.lp-step-n {
    font-weight: 900;
    font-size: clamp(3.2rem, 5.5vw, 5rem);
    line-height: 1;
    color: var(--lp-primary);
    margin-bottom: 12px;
}

.lp-step h3 {
    font-weight: 900;
    font-size: 1.3rem;
    color: var(--lp-white);
    margin: 0 0 10px;
}

.lp-step p {
    font-size: 0.94rem;
    color: rgba(255, 255, 255, 0.74);
    margin: 0;
}

/* 8. CTA FINAL (#FF6B35 + botones negros) */
.lp-cta-final {
    text-align: center;
}

.lp-cta-inner {
    max-width: 860px;
}

.lp-cta-h2 {
    font-weight: 900;
    font-size: clamp(2.2rem, 6vw, 4.6rem);
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: #000000;
    margin: 0 0 28px;
}

.lp-cta-btns {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.lp-cta-trust {
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.74);
    margin: 0;
}

/* 9. FOOTER OSCURO (#3D2817) */
.lp-footer {
    background: var(--lp-text);
    color: var(--lp-white);
    padding-top: 64px;
    padding-bottom: 32px;
}

.lp-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.lp-footer-desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.72);
    margin: 12px 0 0;
    max-width: 340px;
}

.lp-footer-col {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.lp-footer-col h4 {
    font-weight: 700;
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--lp-primary);
    margin: 0 0 6px;
}

.lp-footer-col a,
.lp-footer-col button,
.lp-footer-col span {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.76);
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.lp-footer-col a,
.lp-footer-col button {
    cursor: pointer;
    transition: color 0.2s ease;
}

.lp-footer-col a:hover,
.lp-footer-col button:hover {
    color: var(--lp-primary);
}

.lp-footer-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    padding-top: 22px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.52);
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .lp-nav-links {
        display: none;
    }
    .lp-story-grid {
        grid-template-columns: 1fr;
    }
    .lp-chap-1,
    .lp-chap-2,
    .lp-chap-3 {
        grid-column: span 1;
        transform: none;
    }
    .lp-mosaic {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .lp-g1,
    .lp-g2,
    .lp-g-cap,
    .lp-g3 {
        grid-column: span 1;
        grid-row: auto;
    }
    .lp-mosaic figure {
        height: 260px;
    }
}

@media (max-width: 760px) {
    .lp-bento,
    .lp-svc.lead,
    .lp-proof-top,
    .lp-reviews-grid,
    .lp-steps-grid,
    .lp-footer-grid {
        grid-template-columns: 1fr;
    }
    .lp-svc.lead {
        grid-column: span 1;
    }
    .lp-step:not(:last-child)::after {
        display: none;
    }
    .lp-car-card {
        flex: 0 0 82%;
    }
}

/* ==========================================================================
   MODALES EDITORIALES DE LA LANDING (LOGIN, REGISTRO Y CUPO ESTERILIZACIÓN)
   Paleta sincronizada: #3D2817 | #FFF5F0 | #FFE9DE | #FF6B35 | #DC143C
   ========================================================================== */
.lp-modal-overlay {
    background: rgba(61, 40, 23, 0.58) !important;
    backdrop-filter: blur(8px);
}

.lp-modal-card {
    padding: 0 !important;
    border-radius: 26px !important;
    overflow: hidden;
    background: #FFFFFF !important;
    border: 1px solid rgba(61, 40, 23, 0.1) !important;
    box-shadow: 0 28px 70px rgba(61, 40, 23, 0.28) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #3D2817;
}

.lp-modal-header {
    background: #FFFFFF;
    color: #3D2817;
    padding: 24px 26px 12px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.lp-modal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-modal-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #FF6B35;
    flex-shrink: 0;
}

.lp-modal-kick {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #FF6B35;
    margin-bottom: 2px;
}

.lp-modal-header h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.45rem;
    font-weight: 900;
    color: #3D2817;
    margin: 0;
    line-height: 1.15;
}

.lp-modal-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: #FFE9DE;
    color: #3D2817;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.lp-modal-close:hover {
    background: #FF6B35;
    color: #FFFFFF;
}

.lp-modal-body {
    padding: 12px 26px 26px;
    background: #FFFFFF;
}

.lp-modal-sub {
    font-size: 0.88rem;
    color: #5A4433;
    margin: 0 0 18px;
    line-height: 1.5;
}

.lp-modal-tabs {
    background: #FFF5F0 !important;
    padding: 5px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(61, 40, 23, 0.12) !important;
    display: flex;
    gap: 4px;
}

.lp-modal-tabs .btn-modo-cal {
    border-radius: 999px !important;
    font-family: 'Poppins', sans-serif;
    font-weight: 700 !important;
    font-size: 0.84rem !important;
    color: #5A4433 !important;
    padding: 9px 14px !important;
    background: transparent !important;
    border: 0 !important;
    transition: all 0.2s ease;
}

.lp-modal-tabs .btn-modo-cal.activo {
    background: #FF6B35 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.3);
}

.lp-modal-body .campo-form label {
    color: #3D2817 !important;
    font-weight: 700;
    font-size: 0.82rem;
    margin-bottom: 6px;
}

.lp-modal-body .campo-form input,
.lp-modal-body .campo-form select {
    background: #FFF5F0 !important;
    color: #3D2817 !important;
    border: 1.5px solid rgba(61, 40, 23, 0.16) !important;
    border-radius: 14px !important;
    padding: 12px 15px !important;
    font-size: 0.92rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.lp-modal-body .campo-form input:focus,
.lp-modal-body .campo-form select:focus {
    outline: none;
    background: #FFFFFF !important;
    border-color: #FF6B35 !important;
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.2) !important;
}

.lp-modal-submit {
    width: 100%;
    justify-content: center;
    padding: 14px 24px !important;
    font-size: 0.94rem !important;
}

.lp-modal-cancel {
    background: transparent;
    border: 1.5px solid rgba(61, 40, 23, 0.28);
    color: #3D2817;
    border-radius: 999px;
    padding: 10px 20px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.lp-modal-cancel:hover {
    background: #3D2817;
    color: #FFFFFF;
}

/* ==========================================================================
   SECCIÓN PROMOCIONAL BOUTIQUE: MICHI PUNTOS (#lp-michi-puntos)
   ========================================================================== */
.lp-mp-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: clamp(28px, 5vw, 56px);
    align-items: center;
}

.lp-mp-h2 em {
    font-style: normal;
    color: var(--lp-primary);
}

.lp-mp-beneficios {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 26px;
}

.lp-mp-ben {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #FFF5F0;
    border: 1px solid rgba(61, 40, 23, 0.08);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-mp-ben:hover {
    transform: translateX(4px);
    border-color: rgba(255, 107, 53, 0.35);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.1);
}

.lp-mp-ben-ic {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--lp-primary);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.lp-mp-ben:hover .lp-mp-ben-ic {
    transform: scale(1.14) rotate(-8deg);
    box-shadow: 0 8px 18px rgba(255, 107, 53, 0.36);
}

.lp-mp-ben strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.94rem;
    color: var(--lp-text);
}

.lp-mp-ben small {
    display: block;
    font-size: 0.84rem;
    color: var(--lp-muted);
    margin-top: 2px;
    line-height: 1.45;
}

.lp-mp-actions {
    margin-bottom: 12px;
}

.lp-mp-cond {
    font-size: 0.78rem;
    color: #7A6350;
    font-style: italic;
    margin: 0;
}

/* Tarjeta VIP Digital Gold Edition — Michi Puntos */
@keyframes lpGoldSheen {
    0% {
        transform: translateX(-140%) skewX(-22deg);
    }
    45%, 100% {
        transform: translateX(240%) skewX(-22deg);
    }
}

.lp-mp-vip-card {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: clamp(24px, 3.2vw, 34px);
    background: linear-gradient(135deg, #fffbeb 0%, #fde68a 28%, #f59e0b 68%, #d97706 100%);
    color: #3D2817;
    border: 2px solid #fef08a;
    box-shadow: 0 26px 60px rgba(180, 83, 9, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-mp-vip-card::after {
    content: '';
    position: absolute;
    inset: -20% auto -20% -35%;
    width: 48%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.58) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    pointer-events: none;
    z-index: 3;
    animation: lpGoldSheen 4.6s cubic-bezier(0.25, 0.8, 0.25, 1) infinite;
}

.lp-mp-vip-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 34px 74px rgba(217, 119, 6, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lp-mp-vip-glow {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 70%);
    top: -100px;
    right: -80px;
    pointer-events: none;
}

.lp-mp-vip-top {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

.lp-mp-vip-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lp-mp-vip-brand img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background: #FFFFFF;
    border: 2.5px solid #ffffff;
    box-shadow: 0 6px 16px rgba(120, 53, 15, 0.25);
}

.lp-mp-vip-brand strong {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 900;
    font-size: 1.08rem;
    letter-spacing: 0.04em;
    color: #3D2817;
}

.lp-mp-vip-brand span {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #78350f;
}

.lp-mp-vip-pill {
    font-family: 'Poppins', sans-serif;
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    padding: 6px 13px;
    border-radius: 999px;
    background: #3D2817;
    color: #fde68a;
    border: 1px solid rgba(254, 240, 138, 0.6);
    box-shadow: 0 4px 12px rgba(61, 40, 23, 0.24);
}

.lp-mp-stamps {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.lp-mp-stamp {
    border-radius: 20px;
    padding: 16px 10px 14px;
    text-align: center;
    background: linear-gradient(160deg, rgba(255, 253, 240, 0.92) 0%, rgba(254, 243, 199, 0.85) 100%);
    border: 1.5px solid rgba(217, 119, 6, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    cursor: default;
    box-shadow: 0 8px 18px rgba(146, 64, 14, 0.12);
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.lp-mp-stamp:hover {
    transform: translateY(-4px) scale(1.04);
    border-color: #b45309;
    box-shadow: 0 14px 26px rgba(180, 83, 9, 0.26);
}

.lp-mp-stamp.activo {
    background: linear-gradient(160deg, rgba(255, 253, 240, 0.95) 0%, rgba(254, 243, 199, 0.88) 100%);
    border-color: rgba(245, 158, 11, 0.72);
}

.lp-mp-stamp.premio {
    background: linear-gradient(145deg, #3D2817 0%, #5c3a1e 100%);
    border-color: #fef08a;
    box-shadow: 0 12px 26px rgba(61, 40, 23, 0.34);
}

.lp-mp-paw-medal {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 55%, #d97706 100%);
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.95rem;
    box-shadow: 0 8px 18px rgba(217, 119, 6, 0.38), inset 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.lp-mp-paw-medal i {
    filter: drop-shadow(0 2px 4px rgba(146, 64, 14, 0.3));
}

.lp-mp-paw-medal.premio {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #ea580c 100%);
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.6);
}

.lp-mp-stamp:hover .lp-mp-paw-medal {
    transform: scale(1.16) rotate(-10deg);
    box-shadow: 0 12px 24px rgba(217, 119, 6, 0.5);
}

.lp-mp-stamp.premio:hover .lp-mp-paw-medal {
    transform: scale(1.18) rotate(8deg);
}

.lp-mp-stamp small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.76rem;
    font-weight: 800;
    color: #78350f;
}

.lp-mp-stamp.premio small {
    color: #fde68a;
    font-weight: 900;
}

.lp-mp-vip-foot {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(61, 40, 23, 0.24);
    font-size: 0.76rem;
    font-weight: 700;
    color: #3D2817;
}

/* Micro-animaciones suaves en hover para todos los íconos de la Landing */
.lp-svc-ic {
    transition: transform 0.34s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease;
}

.lp-svc:hover .lp-svc-ic {
    transform: scale(1.14) rotate(-7deg);
    box-shadow: 0 10px 22px rgba(255, 107, 53, 0.36);
}

.lp-svc-link i {
    transition: transform 0.25s ease;
}

.lp-svc:hover .lp-svc-link i {
    transform: translateX(5px);
}

.lp-btn i,
.landing-whatsapp-fab i {
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lp-btn:hover i,
.landing-whatsapp-fab:hover i {
    transform: scale(1.18) rotate(-8deg);
}

.lp-mp-stamp small {
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.lp-mp-stamp.premio small {
    color: #FFFFFF;
    font-weight: 900;
}

.lp-mp-vip-foot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px dashed rgba(255, 255, 255, 0.18);
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.68);
}

@media (max-width: 860px) {
    .lp-mp-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   ANIMACIÓN BLUR-TO-SHARP AL HACER SCROLL EN LA LANDING PAGE (ESTILO APPLE/LINEAR)
   ========================================================================== */
.lp-blur-reveal {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(28px) scale(0.985);
    will-change: opacity, filter, transform;
    transition:
        opacity 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        filter 0.78s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.78s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-blur-reveal.lp-visible {
    opacity: 1;
    filter: blur(0px);
    transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
    .lp-blur-reveal {
        opacity: 1;
        filter: none;
        transform: none;
        transition: none;
    }
}

/* ==========================================================================
   ASISTENTE DE REGISTRO MULTI-PASO (3 PASOS — SIN SATURACIÓN VISUAL)
   ========================================================================== */
.lp-wizard-progress {
    margin-bottom: 16px;
}

.lp-wizard-steps-labels {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    color: #7A6350;
}

.lp-wizard-steps-labels span.activo {
    color: #FF6B35;
}

.lp-wizard-steps-labels span.completado {
    color: #16a34a;
}

.lp-wizard-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #FFE9DE;
    overflow: hidden;
}

.lp-wizard-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #FF6B35 0%, #F26419 100%);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.lp-wizard-step {
    animation: aparecerSuave 0.25s ease;
}

.lp-wizard-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed rgba(61, 40, 23, 0.14);
}

/* ==========================================================================
   RESUMEN COMPACTO DEL PORTAL DEL TUTOR (3 KPIs EN FILA, CERO ESPACIO MUERTO)
   ========================================================================== */
.grid-metricas,
.grid-metricas-portal-tutor {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}

.kpi-tutor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--bg-tarjeta);
    border: 1px solid var(--borde-gris);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.kpi-tutor-card:hover {
    transform: translateY(-2px);
    border-color: rgba(242, 100, 25, 0.45);
    box-shadow: 0 10px 22px rgba(242, 100, 25, 0.1);
}

.kpi-tutor-ic {
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.kpi-tutor-ic.naranja { background: #fff7ed; color: #ea580c; }
.kpi-tutor-ic.verde { background: #dcfce7; color: #16a34a; }
.kpi-tutor-ic.azul { background: #eff6ff; color: #2563eb; }

.kpi-tutor-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.kpi-tutor-lbl {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--texto-secundario);
}

.kpi-tutor-val {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--texto-principal);
    margin: 2px 0;
}

.kpi-tutor-sub {
    font-size: 0.72rem;
    color: #64748b;
    line-height: 1.25;
}

/* ==========================================================================
   HABEAS DATA (LEY 1581) Y TÉRMINOS EN LANDING PAGE Y REGISTRO
   ========================================================================== */
.lp-legal-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #FFF5F0;
    border: 1px solid rgba(255, 107, 53, 0.28);
    font-size: 0.82rem;
    line-height: 1.45;
    color: #3D2817;
    cursor: pointer;
}

.lp-legal-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #FF6B35;
    flex-shrink: 0;
    cursor: pointer;
}

.lp-legal-check a {
    color: #DC143C;
    font-weight: 700;
    text-decoration: underline;
}

.lp-footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.lp-footer-legal-links button {
    background: transparent;
    border: 0;
    padding: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    text-decoration: underline;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
}

.lp-footer-legal-links button:hover {
    color: #FF6B35;
}

.lp-legal-doc {
    font-size: 0.86rem;
    color: #3D2817;
    line-height: 1.65;
    max-height: 56vh;
    overflow-y: auto;
    padding: 14px 16px;
    border-radius: 16px;
    background: #FFF5F0;
    border: 1px solid rgba(61, 40, 23, 0.12);
}

.lp-legal-doc h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    color: #3D2817;
    margin: 14px 0 6px;
}

.lp-legal-doc h3:first-child {
    margin-top: 0;
}

.lp-legal-doc p,
.lp-legal-doc li {
    color: #5A4433;
    margin: 0 0 8px;
}

.lp-legal-doc ul {
    padding-left: 18px;
    margin: 0 0 10px;
}

/* ==========================================================================
   MODO PRODUCCIÓN WEB: ANTI-FLASH, SCROLL ÚNICO Y MENÚ DESPLEGABLE EN AVATAR (AD)
   ========================================================================== */
html.landing-publica-abierta,
html.landing-publica-abierta body,
html.inicio-landing-inmediato,
html.inicio-landing-inmediato body {
    overflow: hidden !important;
    height: 100% !important;
}

html.inicio-landing-inmediato .barra-roles,
html.inicio-landing-inmediato .app-layout {
    display: none !important;
}

html.inicio-landing-inmediato #portal-landing-michi {
    display: flex !important;
}

body.modo-produccion-web #btn-topbar-inicio-ingresar {
    display: none !important;
}

.contenedor-avatar-topbar {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.contenedor-avatar-topbar .avatar-usuario {
    border: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.contenedor-avatar-topbar .avatar-usuario:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(242, 100, 25, 0.28);
}

.menu-avatar-flotante {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-tarjeta, #ffffff);
    border: 1px solid var(--borde-gris, #e2e8f0);
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.16);
    padding: 8px;
    z-index: 9600;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.menu-avatar-cabecera {
    padding: 8px 10px 10px;
    border-bottom: 1px solid var(--borde-suave, #f1f5f9);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-avatar-cabecera strong {
    font-size: 0.84rem;
    color: var(--texto-principal, #1e293b);
}

.menu-avatar-cabecera span {
    font-size: 0.74rem;
    color: var(--texto-secundario, #64748b);
    word-break: break-all;
}

.menu-avatar-opcion {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--texto-principal, #1e293b);
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.menu-avatar-opcion:hover {
    background: #fff5f0;
    color: #f26419;
}

.menu-avatar-opcion.peligro {
    color: #b91c1c;
}

.menu-avatar-opcion.peligro:hover {
    background: #fef2f2;
    color: #991b1b;
}
