/* ============================================================
LUUPIGO — FICHA ANIMAL APP STYLE 2026
Archivo limpio definitivo v2.1
✅ Estilos base
✅ Zona caliente normal
✅ Zona caliente extrema (< 3h)
✅ Botones de emergencia
✅ Animaciones
============================================================ */


/* ============================================================
ROOT MODAL OVERLAY
============================================================ */

.modal-animal.luupigo-ficha-animal {

position: fixed;
inset: 0;

z-index: 99999;

display: flex;
justify-content: center;
align-items: stretch;

background: rgba(15,23,42,.72);

backdrop-filter: blur(10px);

}


/* ============================================================
CONTENEDOR APP
============================================================ */

.luupigo-ficha-animal .modal-contenido-pantalla-completa {

width: 100%;
max-width: 430px;

height: 100dvh;

background: #f8fafc;

overflow-y: auto;

margin: auto;

padding-bottom: 90px;

box-shadow:
0 24px 80px rgba(15,23,42,.35);

}


/* ============================================================
HEADER STICKY
============================================================ */

.modal-header-pantalla-completa {

position: sticky;
top: 0;

z-index: 50;

background: white;

min-height: 62px;

padding: 14px 52px 12px 18px;

border-bottom: 1px solid rgba(15,23,42,.08);

}


.modal-titulo-pantalla-completa {

margin: 0;

font-size: 18px;
font-weight: 800;

color: #111827;

}


.cerrar-modal-pantalla-completa {

position: absolute;

right: 14px;
top: 14px;

width: 34px;
height: 34px;

border-radius: 999px;

background: #f1f5f9;

border: 0;

font-size: 22px;

cursor: pointer;

}


/* ============================================================
BODY CONTENT
============================================================ */

.contenido-principal-pantalla-completa {

padding: 16px;

}


/* ============================================================
SECTIONS CONTROL (tabs)
============================================================ */

.luupigo-ficha-animal [data-ficha-section][hidden] {

display: none !important;

}

.luupigo-ficha-animal [data-ficha-section]:not([hidden]) {

display: block !important;

}


/* ============================================================
IDENTIDAD CARD
============================================================ */

.ficha-card-identidad {

display: flex;
gap: 14px;

align-items: center;

background: white;

padding: 10px;

border-radius: 18px;

margin-bottom: 16px;

}


.ficha-card-identidad img {

width: 92px;
height: 92px;

object-fit: cover;

border-radius: 18px;

}


.ficha-animal-nombre {

font-size: 20px;

font-weight: 800;

margin: 0;

}


.ficha-animal-meta {

font-size: 13px;

color: #64748b;

margin-top: 2px;

}


.ficha-ubicacion-mini {

font-size: 12px;

color: #475569;

margin-top: 4px;

}


.ficha-chip {

font-size: 11px;

padding: 4px 8px;

border-radius: 999px;

background: #eef2ff;

}


.ficha-chip-perdido {

background: #fee2e2;

color: #991b1b;

}

.ficha-chip-activo {

background: #dcfce7;

color: #166534;

}


/* ============================================================
TARJETAS
============================================================ */

.tarjeta-info-pantalla-completa {

background: white;

border-radius: 14px;

padding: 16px;

margin-bottom: 12px;

border: 1px solid rgba(15,23,42,.06);

box-shadow:

0 6px 18px rgba(15,23,42,.06);

}


.tarjeta-titulo-moderno {

font-size: 15px;

font-weight: 700;

margin-bottom: 12px;

}


/* ============================================================
METRICAS
============================================================ */

.metricas-avistamientos {

display: flex;

gap: 10px;

margin-bottom: 16px;

}


.metrica-item {

flex: 1;

background: #f1f5f9;

border-radius: 14px;

padding: 10px;

text-align: center;

}


.metrica-valor {

font-size: 20px;

font-weight: 800;

color: #7c4dff;

}


.metrica-label {

font-size: 11px;

color: #64748b;

}


/* ============================================================
TIMELINE
============================================================ */

.timeline-avistamientos {

position: relative;

padding-left: 22px;

}


.timeline-avistamientos::before {

content: "";

position: absolute;

left: 6px;

top: 0;
bottom: 0;

width: 2px;

background: #e2e8f0;

}


.timeline-item {

position: relative;

margin-bottom: 16px;

}


.timeline-marcador {

position: absolute;

left: -22px;

top: 2px;

width: 26px;
height: 26px;

border-radius: 50%;

background: white;

border: 2px solid #7c4dff;

display: flex;

align-items: center;
justify-content: center;

}


.timeline-contenido {

background: #f8fafc;

padding: 12px;

border-radius: 14px;

border: 1px solid rgba(15,23,42,.05);

}


.timeline-fecha {

font-size: 11px;

font-weight: 700;

color: #7c4dff;

}


.timeline-ubicacion {

font-size: 14px;

font-weight: 600;

margin-top: 4px;

}


.timeline-footer {

display: flex;

justify-content: space-between;

font-size: 11px;

margin-top: 6px;

}


/* ============================================================
MAPA
============================================================ */

.mapa-triangulacion-ficha {

height: 320px;

border-radius: 18px;

overflow: hidden;

}


.mapa-mini-info-moderno {

display: flex;

gap: 10px;

margin-top: 10px;

}


.mapa-mini-info-moderno .info-item {

flex: 1;

background: #f1f5f9;

padding: 10px;

border-radius: 12px;

text-align: center;

font-size: 12px;

}


/* ============================================================
BOTONES
============================================================ */

.acciones-grid-moderno {

display: grid;

grid-template-columns: 1fr 1fr;

gap: 12px;

margin-top: 16px;

}


.btn-accion-moderno {

padding: 14px;

border-radius: 40px;

border: 0;

font-weight: 700;

cursor: pointer;

}


.btn-primario {

background:

linear-gradient(135deg,#6366f1,#8b5cf6);

color: white;

}


.btn-whatsapp {

background:

linear-gradient(135deg,#25D366,#128C7E);

color: white;

}


/* ============================================================
NAV INFERIOR APP
============================================================ */

.luupigo-ficha-animal .nav-ficha-movil {

position: fixed;

bottom: 0;

left: 50%;

transform: translateX(-50%);

width: 100%;

max-width: 430px;

display: flex;

background: white;

border-top: 1px solid rgba(15,23,42,.08);

}


.nav-ficha-movil__btn {

flex: 1;

padding: 10px;

border: 0;

background: transparent;

font-size: 11px;

color: #8a94a6;

}


.nav-ficha-movil__btn.nav-activo {

color: #7c4dff;

background:

rgba(124,77,255,.1);

}


/* ============================================================
BODY LOCK WHEN MODAL OPEN
============================================================ */

body:has(.luupigo-ficha-animal) {

overflow: hidden;

}


/* ============================================================
🆕 ZONA CALIENTE Y BOTONES DE EMERGENCIA
============================================================ */

/* Banner zona caliente normal (< 24h) */
.ficha-alerta-caliente {
    margin-top: 12px;
    padding: 8px 12px;
    background: #fef3c7;
    border-radius: 12px;
    color: #92400e;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ficha-alerta-caliente::before {
    content: "🔥";
    font-size: 1rem;
}

/* Banner zona caliente extrema (< 3h) */
.ficha-alerta-caliente-extrema {
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    border-radius: 12px;
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    text-align: center;
    animation: pulseEmergency 1.5s infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ficha-alerta-caliente-extrema::before {
    content: "🚨";
    font-size: 1rem;
}

/* Contenedor de acciones del mapa */
.acciones-mapa-ficha {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.acciones-mapa-ficha button {
    width: 100%;
    padding: 12px 16px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Botón de reportar avistamiento (CTA dinámico) */
.cta-reportar-mapa {
    margin-top: 8px;
}

/* Botón de emergencia para zona caliente extrema */
.btn-emergencia {
    background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
    color: white !important;
    border: none !important;
    animation: pulseEmergency 1.5s infinite;
    font-weight: 800 !important;
    letter-spacing: 0.5px;
}

.btn-emergencia:active {
    transform: scale(0.97);
}

/* Botón secundario (ir a buscar ahora normal) */
.btn-secundario {
    background: #f1f5f9;
    color: #1e293b;
    border: 1px solid #cbd5e1;
    transition: all 0.2s ease;
}

.btn-secundario:active {
    transform: scale(0.97);
    background: #7c4dff;
    color: white;
    border-color: #7c4dff;
}

/* Botón caliente (reportar cuando hay actividad reciente) */
.btn-caliente {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: white !important;
    border: none !important;
    font-weight: 700 !important;
}

/* Animación de pulsación para emergencias */
@keyframes pulseEmergency {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(220, 38, 38, 0);
    }
}

/* Animación de entrada */
@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* Modal de confirmación de navegación */
.modal-confirmacion-navegacion {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: white;
    padding: 12px 20px;
    border-radius: 40px;
    font-size: 0.85rem;
    z-index: 20002;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
    max-width: 90%;
}

.modal-confirmacion-navegacion button {
    background: #7c4dff;
    color: white;
    border: none;
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive para móvil */
@media (max-width: 480px) {
    .acciones-mapa-ficha {
        gap: 8px;
    }
    
    .acciones-mapa-ficha button {
        padding: 10px 12px;
        font-size: 0.75rem;
    }
    
    .btn-emergencia {
        font-size: 0.8rem;
    }
    
    .ficha-alerta-caliente-extrema {
        font-size: 0.75rem;
        padding: 8px 12px;
    }
    
    .ficha-alerta-caliente {
        font-size: 0.75rem;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    .btn-secundario {
        background: #1e293b;
        color: #f1f5f9;
        border-color: #334155;
    }
    
    .modal-confirmacion-navegacion {
        background: #0f172a;
        border: 1px solid #334155;
    }
    
    .ficha-alerta-caliente {
        background: #451a03;
        color: #fde68a;
    }
}

/* ============================================================
LUUPIGO FICHA V3 - APP OPERATIVA
============================================================ */

.luupigo-ficha-animal.ficha-v3 {
    background: rgba(15, 23, 42, .45);
    backdrop-filter: blur(8px);
}

.ficha-v3 .modal-contenido-pantalla-completa {
    max-width: 390px;
    background: #f8fafc;
    color: #0f172a;
    padding-bottom: 142px;
}

.ficha-v3 .modal-header-pantalla-completa {
    min-height: 58px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: blur(16px);
}

.ficha-v3 .header-content-pantalla-completa {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 8px;
}

.ficha-v3 .modal-titulo-pantalla-completa {
    text-align: center;
    font-size: 15px;
    font-weight: 800;
}

.ficha-v3 .modal-subtitulo-pantalla-completa,
.ficha-v3 .cerrar-modal-pantalla-completa {
    display: none;
}

.ficha-header-actions {
    display: flex;
    gap: 6px;
}

.ficha-header-btn {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    font-size: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ficha-header-actions .ficha-header-btn {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    font-size: 18px;
}

.ficha-v3 .contenido-principal-pantalla-completa {
    padding: 12px;
}

.ficha-hero-card,
.ficha-metric-strip,
.ficha-hot-zone,
.ficha-map-panel,
.ficha-v3 .tarjeta-info-pantalla-completa {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.ficha-hero-card {
    overflow: hidden;
    margin-bottom: 12px;
}

.ficha-hero-media {
    position: relative;
    aspect-ratio: 1 / .88;
    background: linear-gradient(135deg, #e0f2fe, #f5f3ff);
}

.ficha-hero-img,
.ficha-hero-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-hero-placeholder {
    font-size: 72px;
}

.ficha-hero-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.ficha-hero-body {
    padding: 14px;
}

.ficha-title-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.ficha-v3 .ficha-animal-nombre {
    font-size: 18px;
    line-height: 1.15;
    letter-spacing: 0;
}

.ficha-v3 .ficha-animal-meta,
.ficha-v3 .ficha-ubicacion-mini {
    margin: 6px 0 0;
    color: #334155;
}

.ficha-v3 .ficha-chip {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-weight: 800;
}

.ficha-v3 .ficha-estado-linea {
    display: flex;
    gap: 7px;
    align-items: center;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.ficha-metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.ficha-v3 .metrica-item {
    background: #f4f1ff;
    border: 1px solid #eee9ff;
    border-radius: 10px;
    padding: 12px 8px;
}

.ficha-v3 .metrica-valor {
    font-size: 18px;
    color: #5635d9;
}

.ficha-v3 .metrica-label {
    margin-top: 4px;
    color: #334155;
}

.ficha-hot-zone {
    display: grid;
    grid-template-columns: 28px 1fr 28px;
    gap: 8px;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    border-color: #fed7aa;
    background: #fff7ed;
}

.ficha-hot-zone p,
.ficha-map-legend p,
.ficha-owner-card p,
.ficha-report-card p {
    margin: 3px 0 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.35;
}

.ficha-hot-zone button {
    border: 0;
    background: transparent;
    color: #f97316;
    font-size: 22px;
}

.ficha-description-card,
.ficha-details-card {
    padding: 14px;
}

.ficha-text-link {
    margin-top: 8px;
    border: 0;
    background: transparent;
    color: #5635d9;
    font-weight: 800;
    padding: 0;
}

.ficha-v3 .info-grid-pantalla-completa {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ficha-v3 .info-item-pantalla-completa {
    background: #f8fafc;
    border: 1px solid #eef2f7;
    border-radius: 10px;
    padding: 10px;
}

.ficha-tab-header {
    padding: 4px 4px 12px;
}

.ficha-tab-header h2 {
    margin: 0;
    font-size: 16px;
    text-align: center;
}

.ficha-tab-header h2 span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    margin-left: 5px;
    align-items: center;
    justify-content: center;
    background: #eee7ff;
    color: #5635d9;
    font-size: 12px;
}

.ficha-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 12px;
}

.ficha-filter-row button {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #0f172a;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.ficha-filter-row .is-active {
    border-color: #5635d9;
    background: #5635d9;
    color: #fff;
}

.ficha-timeline-card {
    padding: 14px 10px 8px;
}

.ficha-v3 .timeline-avistamientos {
    padding-left: 24px;
}

.ficha-v3 .timeline-avistamientos::before {
    left: 8px;
    background: #d8def0;
}

.ficha-v3 .timeline-marcador {
    left: -25px;
    width: 18px;
    height: 18px;
    border: 4px solid #ede9fe;
    background: #6d4aff;
    color: #fff;
    font-size: 10px;
}

.ficha-v3 .timeline-contenido {
    background: #fff;
    border: 0;
    padding: 8px 0 18px 14px;
}

.ficha-v3 .timeline-fecha {
    display: flex;
    gap: 8px;
    align-items: center;
    color: #111827;
    font-size: 13px;
}

.timeline-badge-nuevo,
.timeline-badge-verificado {
    display: inline-flex;
    border-radius: 999px;
    padding: 3px 7px;
    font-size: 10px;
    font-weight: 800;
}

.timeline-badge-nuevo {
    background: #ffedd5;
    color: #ea580c;
}

.timeline-badge-verificado {
    background: #dcfce7;
    color: #166534;
}

.timeline-zona,
.timeline-media-note {
    color: #475569;
    font-size: 12px;
    margin-top: 5px;
}

.timeline-map-preview {
    height: 102px;
    margin-top: 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background:
        radial-gradient(circle at center, rgba(109, 74, 255, .82) 0 14px, rgba(249, 115, 22, .34) 15px 46px, transparent 48px),
        linear-gradient(90deg, rgba(99, 102, 241, .18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(99, 102, 241, .18) 1px, transparent 1px),
        #fff7ed;
    background-size: auto, 36px 36px, 36px 36px, auto;
    border: 1px solid #fed7aa;
}

.ficha-report-card {
    text-align: left;
}

.ficha-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: #ede9fe;
    color: #5635d9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-map-panel {
    padding: 12px;
    margin-bottom: 12px;
}

.ficha-v3 .mapa-container-moderno {
    border-radius: 12px;
    overflow: hidden;
}

.ficha-v3 .mapa-triangulacion-ficha,
.ficha-v3 #mapa-triangulacion-ficha {
    height: 360px;
    border-radius: 12px;
}

.ficha-map-legend {
    display: grid;
    gap: 12px;
    margin-top: 12px;
}

.ficha-map-legend__item {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
}

.ficha-dot {
    width: 14px;
    height: 14px;
    border-radius: 999px;
    margin-top: 3px;
}

.ficha-dot-hot {
    background: #f59e0b;
}

.ficha-dot-sight {
    background: #5635d9;
}

.acciones-mapa-ficha {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ficha-v3 .btn-accion-pantalla-completa,
.ficha-v3 .btn-accion-moderno {
    min-height: 46px;
    border-radius: 10px;
    font-weight: 850;
}

.ficha-v3 .btn-secundario {
    background: #fff;
    color: #172033;
    border: 1px solid #cfd8e6;
}

.ficha-help-card,
.ficha-owner-card,
.ficha-quick-card {
    padding: 16px;
}

.ficha-owner-card {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.ficha-help-card h3,
.ficha-owner-card h3,
.ficha-quick-card h3,
.ficha-report-card h3 {
    margin: 0 0 12px;
    font-size: 16px;
}

.ficha-action-row {
    width: 100%;
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    text-align: left;
    border: 0;
    background: transparent;
    padding: 12px 0;
    color: #0f172a;
}

.ficha-action-row + .ficha-action-row {
    border-top: 1px solid #eef2f7;
}

.ficha-action-icon {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #5635d9;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-action-row small {
    display: block;
    margin-top: 4px;
    color: #475569;
    line-height: 1.35;
}

.ficha-owner-access {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    isolation: isolate;
    width: 100%;
    margin-top: 14px;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 18px;
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #7c4dff;
    color: #3f2ac5;
    text-align: left;
    overflow: hidden;
}

.ficha-owner-access::before,
.ficha-owner-access::after {
    content: none !important;
}

.ficha-owner-access > * {
    position: relative;
    z-index: 1;
}

.ficha-owner-access__icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: #ede9fe;
    color: #4f30d8;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ficha-owner-access__text {
    min-width: 0;
    display: block;
}

.ficha-owner-access__text strong {
    display: block;
    color: #3723b6;
    font-size: 13px;
    line-height: 1.2;
}

.ficha-owner-access__arrow {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    color: #5635d9;
    font-size: 22px;
    line-height: 1;
}

.ficha-action-row-compact {
    min-height: 46px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 10px;
    padding: 11px 12px;
    margin-top: 8px;
    grid-template-columns: 24px 1fr;
}

.ficha-owner-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ficha-owner-modal__backdrop {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(15, 23, 42, .42);
    backdrop-filter: blur(8px);
    pointer-events: auto;
}

.ficha-owner-modal__panel {
    position: relative;
    z-index: 1;
    width: min(390px, 100%);
    max-height: min(760px, calc(100dvh - 28px));
    overflow: auto;
    border-radius: 18px;
    background: #fff;
    color: #0f172a;
    padding: 24px 18px 18px;
    box-shadow: 0 24px 80px rgba(15, 23, 42, .28);
}

.ficha-owner-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 999px;
    background: #f1f5f9;
    color: #0f172a;
    font-size: 24px;
    line-height: 1;
}

.ficha-owner-modal__shield {
    width: 74px;
    height: 74px;
    margin: 26px auto 14px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #8b5cf6, #5635d9);
    color: #fff;
    font-size: 30px;
    box-shadow: 0 12px 28px rgba(86, 53, 217, .25);
}

.ficha-owner-modal__panel h2 {
    margin: 0;
    text-align: center;
    font-size: 20px;
}

.ficha-owner-modal__panel p {
    margin: 8px auto 18px;
    color: #475569;
    text-align: center;
    line-height: 1.45;
}

.ficha-owner-access-form {
    display: grid;
    gap: 10px;
}

.ficha-owner-access-form label {
    font-size: 13px;
    font-weight: 800;
    color: #334155;
}

.ficha-owner-code-input {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #0f172a;
    padding: 0 14px;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ficha-owner-code-input:focus {
    outline: 0;
    border-color: #6d4cff;
    box-shadow: 0 0 0 4px rgba(109, 76, 255, .14);
}

.ficha-owner-modal__status {
    min-height: 20px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 750;
}

.ficha-owner-submit,
.ficha-owner-recovered {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 900;
    color: #fff;
}

.ficha-owner-submit {
    background: linear-gradient(135deg, #6d4cff, #5635d9);
}

.ficha-owner-submit:disabled {
    opacity: .62;
}

.ficha-poster-actions {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ficha-poster-actions .ficha-owner-submit-secondary {
    background: #f8fafc;
    color: #5635d9;
    border: 1px solid #ddd6fe;
}

.ficha-owner-modal__note {
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #ddd6fe;
    border-radius: 10px;
    background: #f5f3ff;
    color: #5b43d6;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.ficha-owner-panel-state {
    width: max-content;
    margin: 10px auto 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 900;
}

.ficha-owner-panel-name {
    font-weight: 850;
    color: #172033 !important;
}

.ficha-owner-panel-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 16px 0;
}

.ficha-owner-panel-summary div {
    min-height: 66px;
    border-radius: 12px;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.ficha-owner-panel-summary strong {
    color: #5635d9;
    font-size: 20px;
}

.ficha-owner-panel-summary span {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.ficha-owner-panel-actions {
    display: grid;
    gap: 8px;
}

.ficha-owner-panel-actions button {
    min-height: 58px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    color: #0f172a;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    text-align: left;
}

.ficha-owner-panel-actions small {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11px;
}

.ficha-owner-recovered {
    margin-top: 16px;
    background: linear-gradient(135deg, #fb3d68, #e11d48);
}

.ficha-owner-section {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #e8edf5;
    border-radius: 14px;
    background: #fff;
}

.ficha-owner-section h3 {
    margin: 0 0 12px;
    color: #0f172a;
    font-size: 15px;
    font-weight: 950;
}

.ficha-owner-section p {
    margin: 0 0 12px;
    color: #64748b;
    text-align: left;
    font-size: 12px;
}

.ficha-owner-edit-form {
    display: block;
}

.ficha-owner-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ficha-owner-field {
    display: grid;
    gap: 6px;
    margin-bottom: 10px;
}

.ficha-owner-field-wide {
    grid-column: 1 / -1;
}

.ficha-owner-field span,
.ficha-owner-upload span {
    color: #334155;
    font-size: 12px;
    font-weight: 850;
}

.ficha-owner-field input,
.ficha-owner-field textarea,
.ficha-owner-field select {
    width: 100%;
    border: 1px solid #dbe3ee;
    border-radius: 10px;
    background: #fff;
    color: #0f172a;
    padding: 10px 11px;
    font: inherit;
    font-size: 13px;
    box-sizing: border-box;
}

.ficha-owner-field textarea {
    resize: vertical;
    min-height: 92px;
}

.ficha-owner-field input:focus,
.ficha-owner-field textarea:focus,
.ficha-owner-field select:focus {
    outline: 0;
    border-color: #6d4cff;
    box-shadow: 0 0 0 4px rgba(109, 76, 255, .12);
}

.ficha-owner-check {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 4px 0 12px;
    color: #334155;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.ficha-owner-check input {
    width: 18px;
    height: 18px;
    accent-color: #5b43d6;
    flex: 0 0 auto;
}

.ficha-owner-inline-status {
    min-height: 18px;
    color: #5b43d6;
    font-size: 12px;
    font-weight: 850;
}

.ficha-owner-submit-secondary {
    margin-top: 10px;
    color: #5635d9;
    background: #f5f3ff;
    border: 1px solid #ddd6fe;
}

.ficha-owner-submit:disabled,
.ficha-owner-submit-secondary:disabled {
    opacity: .62;
}

.ficha-owner-media-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.ficha-owner-media-thumb {
    position: relative;
    overflow: hidden;
    margin: 0;
    aspect-ratio: 1;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
}

.ficha-owner-media-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ficha-owner-media-thumb figcaption {
    position: absolute;
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    border-radius: 999px;
    padding: 3px 7px;
    background: rgba(15, 23, 42, .72);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
}

.ficha-owner-media-empty {
    grid-column: 1 / -1;
    min-height: 58px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 850;
}

.ficha-owner-upload {
    display: grid;
    gap: 7px;
}

.ficha-owner-upload input {
    width: 100%;
    border: 1px dashed #a78bfa;
    border-radius: 10px;
    background: #faf7ff;
    color: #334155;
    padding: 10px;
    font-size: 12px;
    box-sizing: border-box;
}

.ficha-bottom-actions {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 56px;
    transform: translateX(-50%);
    width: min(390px, 100%);
    display: grid;
    grid-template-columns: .8fr .95fr 1.35fr;
    overflow: hidden;
    background: #fff;
    border-top: 1px solid #e8edf5;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, .08);
}

.ficha-bottom-action {
    min-height: 50px;
    border: 0;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
}

.ficha-bottom-action:disabled {
    opacity: .42;
}

.ficha-bottom-action-call,
.ficha-bottom-action-whatsapp {
    background: #16a34a;
}

.ficha-bottom-action-report {
    background: linear-gradient(135deg, #6d4aff, #5635d9);
}

.ficha-v3 .nav-ficha-movil {
    max-width: 390px;
    min-height: 56px;
    bottom: 0;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(14px);
}

.ficha-v3 .nav-ficha-movil__btn {
    font-size: 10px;
    font-weight: 800;
    color: #475569;
}

.ficha-v3 .nav-ficha-movil__btn.nav-activo {
    background: transparent;
    color: #5635d9;
}

.ficha-v3 .nav-ficha-movil__btn.nav-activo::after {
    content: "";
    display: block;
    width: 20px;
    height: 3px;
    margin: 4px auto 0;
    border-radius: 999px;
    background: #7c4dff;
}

@media (max-width: 430px) {
    .ficha-v3 .modal-contenido-pantalla-completa,
    .ficha-v3 .nav-ficha-movil,
    .ficha-bottom-actions {
        max-width: none;
        width: 100%;
    }
}

/* Hover effects */
.btn-emergencia:hover {
    animation: none;
    transform: scale(1.02);
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
}

.btn-secundario:hover {
    background: #e2e8f0;
}

.btn-caliente:hover {
    transform: scale(1.02);
}
