@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

@import url('seteos.css');
@import url('week_nav.css?dcsvd');
@import url('card.css?q');



/**/
        .btn-rutina { background-color: #f3e8ff; color: #7e22ce; border: 1px solid #e9d5ff; font-weight: 600; transition: all 0.2s ease; }
        .btn-rutina:hover, .btn-rutina[aria-expanded="true"] { background-color: #e9d5ff; color: #6b21a8; }
        .text-rutina { color: #9333ea !important; }

        .time-badge-floating { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); color: #1e293b; padding: 6px 12px; border-radius: 10px; font-weight: 700; font-size: 0.75rem; box-shadow: 0 4px 10px rgba(0,0,0,0.1); display: flex; align-items: center; gap: 6px; }

        .registro-tags .badge { font-weight: 600; font-size: 0.65rem; background: #f1f5f9; color: #475569; border: none; padding: 6px 10px; }
        .registro-tags .badge.activo { background: #22c55e; color: #fff; }
        .status-recurrente .registro-tags .badge { background: #f3e8ff; color: #7e22ce; }
        
        .section-header { font-size: 0.8rem; font-weight: 800; color: #94a3b8; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; }
        .section-header i.icon-title { font-size: 1.1rem; margin-right: 8px; }
        
        /* TIMELINE CSS */
        .timeline-container { position: relative; width: 100%; padding-top: 20px; margin-bottom: 5px; }
        .timeline-track { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 12px; position: relative; width: 100%; padding: 5px 0; transition: height 0.3s ease; }
        .timeline-marker { position: absolute; top: -5px; font-size: 0.8rem; font-weight: 500; color: #64748b; transform: translateX(-50%); }
        .timeline-grid-line { position: absolute; height: 100%; border-left: 1px dashed #cbd5e1; top:0; z-index: 0; }
        .timeline-event { position: absolute; height: 6px; border-radius: 10px; z-index: 1; transition: all 0.2s ease; cursor: pointer; border: 1.5px solid #f1f5f9; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
        .timeline-event:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 4px 8px rgba(0,0,0,0.2); filter: brightness(1.1); }
        
        .timeline-point { width: 10px !important; height: 10px !important; border-radius: 50% !important; margin-top: -4px; margin-left: -7px; }

        @keyframes pulse-red {
            0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
            70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
            100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
        }
        .timeline-now-marker {
            position: absolute;
            top: -5px;
            height: calc(100% + 10px);
            width: 2px;
            background-color: #ef4444;
            z-index: 20;
            pointer-events: none;
        }
        .timeline-now-marker::before {
            content: '';
            position: absolute;
            top: 0;
            left: -3px;
            width: 8px;
            height: 8px;
            background-color: #ef4444;
            border-radius: 50%;
            animation: pulse-red 2s infinite;
        }
        
        :root {
            --bs-primary: #ccc;
            --bs-primary-rgb: 0, 160, 224; 
        }

        .text-primary { color: #ccc !important; }
        .bg-primary { background-color: #ccc !important; }
        .border-primary { border-color: #ccc !important; }

        .btn-primary {
            --bs-btn-color: #fff;
            --bs-btn-bg: #ccc;
            --bs-btn-border-color: #ccc;
            --bs-btn-hover-color: #fff;
            --bs-btn-hover-bg: #008cbd;
            --bs-btn-hover-border-color: #0080ad;
            --bs-btn-focus-shadow-rgb: 38, 174, 229;
            --bs-btn-active-color: #fff;
            --bs-btn-active-bg: #ccc;
            --bs-btn-active-border-color: #00749e;
            --bs-btn-disabled-color: #fff;
            --bs-btn-disabled-bg: #ccc;
            --bs-btn-disabled-border-color: #ccc;
        }        


        /* --- ESTILOS PARA EL TOGGLE DEL TIMELINE --- */
        .herramientas-divider {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 15px 0 5px 0;
        }








        /* --- ESTILOS PARA EL TOGGLE DEL TIMELINE --- */
        .timeline-divider {
            position: relative;
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 15px 0 5px 0;
        }
        .timeline-divider hr {
            position: absolute;
            width: 100%;
            margin: 0;
            z-index: 0;
        }
        .btn-timeline-toggle {
            background-color: #fff;
            border: 1px solid #e2e8f0;
            color: #64748b;
            border-radius: 20px;
            padding: 2px 12px;
            font-size: 0.7rem;
            font-weight: 600;
            box-shadow: 0 2px 6px rgba(0,0,0,0.03);
            position: relative;
            z-index: 1;
            transition: all 0.2s ease;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
        }
        .btn-timeline-toggle:hover {
            color: #00A0E0;
            border-color: #cbd5e1;
            background-color: #f8fafc;
        }
        .btn-timeline-toggle i.chevron-icon {
            transition: transform 0.3s ease;
        }
        .btn-timeline-toggle[aria-expanded="true"] i.chevron-icon {
            transform: rotate(180deg);
        }



/* tooltip-clickeable */

.tooltip-clickeable {
    pointer-events: auto !important;
}

.mi-tooltip-link {
    cursor: pointer !important;
    display: block; /* Asegura que tome todo el ancho del tooltip */
}

/* Efecto visual opcional para que se note al pasar el mouse */
.mi-tooltip-link:hover {
    opacity: 0.8;
}


/* Fuerza al modal a tener altura y al iframe a llenarlo */
#iframeModal .modal-dialog {
    height: 85vh; /* Ocupa el 85% de la pantalla vertical */
    display: flex;
    align-items: center;
}
#iframeModal .modal-content {
    height: 100%;
}
#iframeModal .modal-body {
    height: 100%;
    overflow: hidden; /* Evita scrolls dobles */
}
#iframeModal iframe {
    height: 100% !important; /* Fuerza al iframe a ocupar el 100% del body */
}