/* 
   💎 MedentIA - Master Design System v2.0
   Identidad Visual, Paleta de Colores "Diamond Edition" y Componentes Unificados
*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Space+Mono:wght@400;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* --- Paleta de Colores Oficial --- */
    --md-blue-deep: #0A2A66;      /* Azul Profundo */
    --md-blue-medical: #124A9E;   /* Azul Médico */
    --md-cyan-ia: #18D1E6;        /* Cyan IA */
    --md-green-medical: #00b894;  /* Verde Médico Fuerte */
    --md-teal-clinical: #19B7A5;  /* Teal Clínico */
    --md-white-clinical: #F8FBFF; /* Blanco Clínico */
    --md-gray-soft: #D9E2EC;      /* Gris Suave UI */
    --md-text-primary: #102A43;   /* Texto Principal */
    --md-text-secondary: #486581; /* Texto Secundario */
    --md-accent: #00C2FF;         /* Cyan de Acento (CTA) */
    --azul-suave: #e8f3ff;         /* Azul Suave */

    --bg-medentia-gradient: linear-gradient(135deg, var(--md-blue-deep), var(--md-blue-medical));
    --bg-ospulso-gradient: linear-gradient(135deg, var(--md-blue-deep), var(--md-blue-medical));

    /* --- Semántica de Colores --- */
    --primary: var(--md-blue-deep);
    --secondary: var(--md-blue-medical);
    --accent: var(--md-accent);
    --bg-main: var(--md-white-clinical);
    --bg-card: #ffffff;
    --border-color: var(--md-gray-soft);
    
    /* --- Tipografía --- */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-accent: 'Outfit', sans-serif;

    /* --- Elevación y Sombras --- */
    --shadow-sm: 0 2px 4px rgba(10, 42, 102, 0.05);
    --shadow-md: 0 10px 25px rgba(10, 42, 102, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 42, 102, 0.12);

    /* --- Bordes --- */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
}

/* --- Estilos Base --- */
body {
    background-color: var(--bg-main);
    color: var(--md-text-primary);
    font-family: var(--font-secondary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 600;
    color: var(--md-blue-deep);
}

/* ==========================================================================
   1. Utilidades de Marca - lo llama: todo el proyecto (global)
   ========================================================================== */
.bg-medentia-gradient {
    background: linear-gradient(135deg, var(--md-blue-deep), var(--md-blue-medical));
}

.text-cyan {
    color: var(--md-cyan-ia) !important;
}

.text-white h1, .text-white h2, .text-white h3, 
.text-white h4, .text-white h5, .text-white h6, 
.text-white .modal-title, .text-white i {
    color: white !important;
}

.text-mono {
    font-family: var(--font-mono);
}

.text-navy {
    color: var(--md-blue-deep) !important;
}

.text-navy-50 {
    color: rgba(10, 42, 102, 0.5) !important;
}

.x-small {
    font-size: 0.75rem !important;
}

/* ==========================================================================
   2. Componentes de Botones e Iconos - lo llama: todo el proyecto (global)
   ========================================================================== */
.btn-medentia {
    background-color: var(--md-blue-deep);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    padding: 0.6rem 1.5rem;
    font-family: var(--font-primary);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-medentia:hover {
    background-color: var(--md-blue-medical);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ==========================================================================
   3. Tarjetas de Diseño (Bento/Card) - lo llama: todo el proyecto (global)
   ========================================================================== */
.card-medentia {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--md-teal-clinical);
    box-shadow: 0 10px 30px rgba(10, 42, 102, 0.15);
    transition: all 0.3s ease;
}

.card-medentia:hover {
    box-shadow: 0 15px 40px rgba(10, 42, 102, 0.18);
    transform: translateY(-2px);
}

/* ==========================================================================
   4. Scrollbar Personalizada - lo llama: todo el proyecto (global)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--md-white-clinical);
}

::-webkit-scrollbar-thumb {
    background: var(--md-gray-soft);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--md-text-secondary);
}

/* ==========================================================================
   5. Componentes Clínicos (Tarjetas de Estudio) - lo llama: render_consultas.pl, pacientes.pl
   ========================================================================== */
.card-estudio {
    background-color: #f0fdfa !important;
    border: 2px solid #5eead4 !important;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1) !important;
    transition: all 0.3s ease-in-out !important;
}

.card-estudio:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.15), 0 4px 6px -4px rgb(0 0 0 / 0.1) !important;
    border-color: #14b8a6 !important;
}

.card-estudio .card-body {
    padding: 1.5rem !important;
}

.card-estudio .font-poppins {
    font-family: 'Poppins', sans-serif;
    color: #115e59 !important;
}

.card-estudio .ls-wide {
    letter-spacing: 0.5px;
}

/* ==========================================================================
   6. MedentIA Canvas Resumen Dashboard (Aura/Diamond UI) - lo llama: inicial.pl
   ========================================================================== */
:root {
  --medentia-saldo-tenue: #ffb3b3;
}

.paciente-info-bento {
  display: flex;
  align-items: center;
}
.paciente-info-bento img {
  border-radius: 50%;
  margin-right: 1rem;
}
.paciente-info-bento h6 {
  font-weight: 700;
  margin-bottom: 0;
  color: var(--md-blue-deep);
  font-family: var(--font-primary);
}
.paciente-info-bento small {
  color: #6b7280;
  font-family: var(--font-secondary);
}

.kpi-card-bento {
  border: 2px solid var(--md-teal-clinical) !important;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  padding: 1rem;
  height: 100%;
}
.kpi-card-bento.cargos {
  background-color: #e2e8f0;
  color: #111827;
}
.kpi-card-bento.abonos {
  background-color: #e2e8f0;
  color: #111827;
}
.kpi-card-bento.saldo {
  background-color: #e2e8f0;
  color: #111827;
}
.kpi-card-bento h6 {
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  font-family: var(--font-secondary);
  opacity: 0.9;
  margin-bottom: 0.25rem;
}
.kpi-card-bento h5 {
  font-weight: 700;
  margin-bottom: 0;
  font-family: var(--font-primary);
}

.toolbar-operativa {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background-color: #f8fafc;
  border: 2px solid var(--md-teal-clinical) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.toolbar-operativa .btn-toolbar-medentia {
  font-weight: 700;
  font-size: 0.8rem;
  font-family: var(--font-secondary);
  border-radius: 10px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-decoration: none;
  width: 100%;
  text-align: center;
  background: transparent;
  border: 1px solid transparent;
  color: #64748b;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.toolbar-operativa .btn-toolbar-medentia i {
  color: var(--md-teal-clinical) !important;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}
.toolbar-operativa .btn-toolbar-medentia:hover {
  background: rgba(24, 209, 230, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(24, 209, 230, 0.15);
  color: var(--md-blue-deep);
  transform: translateX(2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(24, 209, 230, 0.1);
}
.toolbar-operativa .btn-toolbar-medentia:hover i {
  color: var(--md-blue-deep) !important;
  transform: scale(1.1);
}

.historial-consultas-h {
  display: flex;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.historial-consultas-h::-webkit-scrollbar {
  display: none;
}
.historial-consultas-h .card-consulta {
  min-width: 180px;
  border: 2px solid var(--md-teal-clinical) !important;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  margin-right: 0.75rem;
  padding: 0.75rem;
  background: white;
  display: flex;
  flex-direction: column;
}
.historial-consultas-h .card-consulta h6 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--md-blue-deep);
  font-family: var(--font-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.historial-consultas-h .card-consulta small {
  color: #6b7280;
  font-family: var(--font-secondary);
  font-weight: 500;
}

/* ==========================================================================
   7. Botones de Exportación Premium (Glassmorphism) - lo llama: todo el proyecto (global)
   ========================================================================== */
:root {
  --medentia-border: #dad9df;
  --medentia-bg-glass: rgba(255, 255, 255, 0.7);
}

.export-toolbar {
  background: var(--medentia-bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 0.625rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  box-shadow: 0 8px 32px 0 rgba(10, 42, 102, 0.05);
  width: fit-content;
}

.btn-export {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  padding: 0.625rem 1.25rem;
  background-color: #ffffff;
  color: var(--md-blue-deep);
  font-family: var(--font-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--medentia-border);
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
}

.btn-export i, 
.btn-export svg {
  font-size: 1.1rem;
  color: var(--md-blue-deep);
  transition: color 0.3s ease;
}

.btn-export:hover {
  background-color: #f4f3f9;
  border-color: var(--md-cyan-ia);
  color: var(--md-blue-deep);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(24, 209, 230, 0.2);
}

.btn-export:hover i,
.btn-export:hover svg {
  color: var(--md-cyan-ia);
}

.btn-export:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(24, 209, 230, 0.1);
}

.btn-export:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ==========================================================================
   8. Sistema de Cabecera y Menú Lateral (Aura Sidebar & Navbar) - lo llama: sub_header.pl
   ========================================================================== */
.sdm-navbar {
    background: rgba(232, 243, 255, 0.96) !important;
    backdrop-filter: blur(15px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(15px) saturate(180%) !important;
    border-bottom: 1px solid rgba(10, 42, 102, 0.08) !important;
    box-shadow: var(--shadow-sm) !important;
}

.sdm-navbar .navbar-brand {
    color: var(--md-blue-deep) !important;
}

.sdm-navbar .nav-link-item {
    color: var(--md-blue-deep) !important;
    font-weight: 600 !important;
    opacity: 0.8 !important;
    transition: all 0.2s ease !important;
}

.sdm-navbar .nav-link-item:hover {
    color: var(--md-cyan-ia) !important;
    opacity: 1 !important;
}

.sdm-search-input {
    background: white !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    padding: 0.5rem 1rem 0.5rem 2.5rem !important;
    color: var(--md-text-primary) !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
}

.sdm-search-input:focus {
    outline: none !important;
    border-color: var(--md-cyan-ia) !important;
    box-shadow: 0 0 0 3px rgba(24, 209, 230, 0.15) !important;
}

.search-icon {
    position: absolute !important;
    left: 1rem !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: var(--md-text-secondary) !important;
}

.profile-info-text span {
    color: var(--md-blue-deep) !important;
}

.ospulso-avatar {
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: var(--bg-ospulso-gradient) !important;
    color: white !important;
    font-size: 1.1rem !important;
    box-shadow: var(--shadow-sm) !important;
}

.ospulso-avatar-lg {
    width: 48px !important;
    height: 48px !important;
    font-size: 1.25rem !important;
}

.ospulso-avatar i {
    color: white !important;
}

.ui-autocomplete {
    z-index: 10500 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: var(--shadow-lg) !important;
    border: 1px solid rgba(10, 42, 102, 0.08) !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    font-family: var(--font-secondary) !important;
    padding: 0.5rem 0 !important;
    max-height: 300px;
    overflow-y: auto;
}

.ui-menu-item {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.ui-menu-item-wrapper {
    padding: 0.6rem 1.2rem !important;
    color: var(--md-blue-deep) !important;
    font-weight: 500 !important;
    font-size: 0.9rem !important;
    transition: all 0.2s ease !important;
    border: none !important;
    background: transparent !important;
    cursor: pointer !important;
}

.ui-menu-item-wrapper.ui-state-active, 
.ui-menu-item-wrapper:hover {
    background: var(--azul-suave) !important;
    color: var(--md-blue-medical) !important;
    border-radius: 8px !important;
    margin: 0 0.4rem !important;
}

.navbar-brand span { 
    font-family: var(--font-primary) !important; 
    letter-spacing: -0.5px !important; 
}

.aura-sidebar-menu { 
    background: rgba(255, 255, 255, 0.88) !important;
    backdrop-filter: blur(25px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(25px) saturate(180%) !important;
    border: 1.5px solid var(--md-teal-clinical) !important;
    width: 290px !important;
    height: calc(100% - 30px) !important;
    top: 15px !important;
    right: 15px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    z-index: 1050 !important;
}

.user-aura-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: var(--radius-md) !important;
    padding: 1.25rem !important;
    border: 1px solid var(--md-gray-soft) !important;
    box-shadow: var(--shadow-sm) !important;
}

.aura-nav-link {
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    padding: 0.8rem 1rem !important;
    border-radius: var(--radius-md) !important; 
    color: var(--md-text-secondary) !important; 
    font-weight: 600 !important; 
    font-size: 0.9rem !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important; 
    text-decoration: none !important;
    font-family: var(--font-primary) !important;
    border: 1px solid transparent !important;
}

.aura-nav-link i { 
    font-size: 1.2rem !important; 
    color: var(--md-blue-deep) !important;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.aura-nav-link:hover {
    background: white !important; 
    color: var(--md-teal-clinical) !important;
    transform: translateX(6px) scale(1.03) !important;
    box-shadow: var(--shadow-sm) !important;
    border-color: rgba(25, 183, 165, 0.2) !important;
}

.aura-nav-link:hover i {
    color: var(--md-teal-clinical) !important;
    transform: scale(1.1) rotate(5deg) !important;
}

.aura-nav-link.active {
    background: var(--md-blue-deep) !important; 
    color: white !important;
}
.aura-nav-link.active i {
    color: white !important;
}

.aura-nav-link.text-danger {
    color: #ef4444 !important;
}
.aura-nav-link.text-danger i {
    color: #ef4444 !important;
}
.aura-nav-link.text-danger:hover {
    background: #fff5f5 !important;
    color: #ef4444 !important;
    border-color: rgba(239, 68, 68, 0.2) !important;
}
.aura-nav-link.text-danger:hover i {
    color: #ef4444 !important;
}

/* ==========================================================================
   9. Landing Page & Formulario de Login - lo llama: index.html, registro.pl
   ========================================================================== */
body {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, .nav-link-react, .sidebar-nav-link, .btn-skeuo-raised {
    font-family: var(--font-accent);
}

/* --- Animaciones --- */
@keyframes pulse-soft {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 42, 102, 0.2); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(10, 42, 102, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(10, 42, 102, 0); }
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.icon-pulse-container {
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 8px 16px rgba(10, 42, 102, 0.08);
    animation: pulse-soft 2.5s infinite;
}

.navbar-fixed-pill {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(10, 42, 102, 0.1);
    border-radius: 0;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-content {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.navbar-logo-svg {
    height: 38px;
    width: auto;
}

@media (max-width: 768px) {
    .navbar-logo-svg { height: 26px; }
    .navbar-fixed-pill { padding: 0.6rem 1rem; }
}

.nav-link-react {
    text-decoration: none !important;
    color: var(--md-blue-deep) !important;
    font-weight: 800;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link-react::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--md-cyan-ia);
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link-react:hover::after, .nav-link-react.active::after { width: 100%; }

.btn-mobile-toggle {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 4px 10px;
    color: var(--md-blue-deep);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-sidebar {
    position: fixed;
    top: 15px;
    right: -100%;
    width: calc(100% - 30px);
    max-width: 340px;
    height: auto;
    max-height: calc(100vh - 30px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    z-index: 10000;
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1.5px solid var(--md-teal-clinical) !important;
    box-shadow: var(--shadow-lg);
}

.mobile-sidebar.open {
    right: 15px;
}

.sidebar-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2.5rem;
}

.btn-close-sidebar {
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 14px;
    border: 1px solid #f1f5f9;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--md-blue-deep);
    transition: 0.3s;
}

.btn-close-sidebar:active { transform: scale(0.9); }

.sidebar-nav-link {
    display: flex;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--md-blue-deep);
    text-decoration: none !important;
    padding: 0.85rem 1.25rem;
    margin-bottom: 0.75rem;
    border-radius: var(--radius-md);
    background: var(--md-white-clinical);
    border: 1.5px solid transparent;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateX(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sidebar.open .sidebar-nav-link {
    opacity: 1;
    transform: translateX(0) scale(1);
    border: 1.5px solid #e2e8f0;
}

.mobile-sidebar.open .sidebar-nav-link:hover {
    background: white;
    border: 1.5px solid var(--md-teal-clinical);
    color: var(--md-blue-medical);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(24, 209, 230, 0.15);
}

.mobile-sidebar.open .sidebar-nav-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-sidebar.open .sidebar-nav-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-sidebar.open .sidebar-nav-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-sidebar.open .sidebar-nav-link:nth-child(4) { transition-delay: 0.4s; }

.sidebar-nav-link.active { color: var(--md-cyan-ia); }

.sidebar-divider { 
    height: 1px; 
    background: linear-gradient(90deg, rgba(10, 42, 102, 0.1) 0%, transparent 100%); 
    margin: 2rem 0; 
}

.sidebar-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-client-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--md-blue-deep) !important;
    text-decoration: none !important;
}

.btn-solicitar-cita-mobile {
    background: var(--md-blue-deep);
    color: white !important;
    text-align: center;
    padding: 1rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(10, 42, 102, 0.2);
}

.btn-whatsapp-global {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.8rem;
    text-decoration: none !important;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3);
    z-index: 9998;
}

.btn-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
    background: var(--md-blue-deep);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white !important;
    font-size: 1.5rem;
    text-decoration: none !important;
    box-shadow: var(--shadow-md);
    z-index: 9998;
    transition: all 0.3s ease;
}

.btn-back-to-top:hover {
    transform: translateY(-5px);
    background: var(--md-blue-medical);
}

.login-card-container {
    max-width: 400px;
    width: 100%;
}

.login-card {
    border-radius: 2rem;
    background: white;
    box-shadow: 0 20px 50px rgba(10, 42, 102, 0.08);
    border: 1px solid var(--md-green-medical) !important;
    overflow: hidden;
}

.modal {
    z-index: 10500 !important;
}

.modal-backdrop {
    z-index: 10400 !important;
}

.login-header-premium {
    padding: 1.5rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid #f1f5f9;
}

.card-body {
    padding: 1rem 1.5rem !important;
}

.form-control {
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    border: 1.5px solid #e2e8f0;
    height: auto;
}

.btn-medentia-action, .btn-skeuo-raised, .register-btn-fix, .forgot-btn-fix {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.8rem 1.5rem;
    border-radius: 1.25rem;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 0.9rem;
    border: none;
    background: var(--md-blue-deep);
    color: white !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 20px rgba(10, 42, 102, 0.15);
}

.btn-medentia-action:hover, .btn-skeuo-raised:hover, .register-btn-fix:hover, .forgot-btn-fix:hover {
    transform: scale(1.03) translateY(-2px);
    background: white;
    color: var(--md-blue-deep) !important;
    box-shadow: 0 12px 25px rgba(10, 42, 102, 0.2);
    border: 1px solid var(--md-blue-deep);
}

.btn-skeuo-raised {
    margin-bottom: 0.8rem;
}

.btn-medentia-action:disabled {
    background: rgba(18, 74, 158, 0.65) !important;
    color: white !important;
    opacity: 1 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
    pointer-events: none !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.btn-toggle-pass-inline {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    z-index: 10;
    color: #94a3b8;
}

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 42, 102, 0.9);
    backdrop-filter: blur(10px);
    display: none;
    place-items: center;
    z-index: 10000;
}
.loading-overlay.show { display: grid; }

.navbar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1rem 5% !important;
    background: rgba(232, 243, 255, 0.96) !important;
    backdrop-filter: blur(15px) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    border-bottom: 1px solid rgba(10, 42, 102, 0.08) !important;
}

.navbar .logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 1.5rem !important;
    font-weight: 800 !important;
    color: var(--md-blue-deep) !important;
}

.navbar .logo-overlay-container {
    position: relative;
    z-index: 10005;
    background: transparent !important;
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.navbar .logo-overlay-container:hover {
    transform: scale(1.05) !important;
}

@keyframes ekg-beat {
    0% { transform: scale(1); transform-origin: 135px 30px; }
    15% { transform: scale(1.08) translateY(-1px); transform-origin: 135px 30px; }
    30% { transform: scale(1); transform-origin: 135px 30px; }
    45% { transform: scale(1.08) translateY(-1px); transform-origin: 135px 30px; }
    70% { transform: scale(1); transform-origin: 135px 30px; }
}

.ekg-line-anim {
    animation: ekg-beat 1.8s infinite ease-in-out;
}

.navbar .menu {
    gap: 20px !important;
}

/* Impactful Animated Menu Items */
.navbar .menu {
    position: relative;
    gap: 1.5rem !important;
    align-items: center;
}

.navbar .menu a {
    text-decoration: none !important;
    color: var(--md-blue-deep) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    position: relative;
    padding: 0.4rem 0.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.navbar .menu a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--md-teal-clinical), #18d1e6);
    border-radius: 5px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    box-shadow: 0 0 10px rgba(0, 196, 196, 0.6);
}

.navbar .menu a:hover {
    color: var(--md-teal-clinical) !important;
    text-shadow: 0 0 15px rgba(0, 196, 196, 0.3);
    transform: translateY(-2px);
}

.navbar .menu a:hover::before {
    width: 100%;
    opacity: 1;
}

.navbar .acciones {
    gap: 15px !important;
}

.btn-outline {
    border: 2px solid var(--md-blue-deep) !important;
    color: var(--md-blue-deep) !important;
    padding: 0.5rem 1.25rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    background: transparent !important;
}

.btn-outline:hover {
    background: var(--md-blue-deep) !important;
    color: white !important;
}

.btn-primary {
    background: var(--md-blue-medical) !important;
    border: none !important;
    color: white !important;
    padding: 0.6rem 1.5rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
}

.btn-primary:hover {
    background: var(--md-blue-deep) !important;
}

.hero {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 6rem 5% 4rem !important;
    gap: 3rem !important;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%) !important;
}

.hero-texto {
    flex: 1 !important;
    max-width: 600px !important;
    text-align: left !important;
}

.hero-texto h1 {
    font-size: 3rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    color: var(--md-blue-deep) !important;
    margin-bottom: 1.5rem !important;
}

.hero-texto p {
    font-size: 1.15rem !important;
    color: var(--md-blue-deep) !important;
    opacity: 0.8 !important;
    margin-bottom: 2rem !important;
}

.hero-botones {
    display: flex !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
}

.btn-success {
    background: var(--md-green-medical) !important;
    color: white !important;
    padding: 0.8rem 1.5rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    transition: all 0.3s !important;
    border: none !important;
}

.btn-success:hover {
    background: #009d7d !important;
}

.hero-imagen {
    flex: 1 !important;
    position: relative !important;
    max-width: 550px !important;
    text-align: center !important;
}

.hero-imagen img {
    width: 100% !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.1) !important;
}

.btn-video {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: rgba(10, 42, 102, 0.9) !important;
    color: white !important;
    border: none !important;
    padding: 0.6rem 1.25rem !important;
    border-radius: 30px !important;
    font-weight: 700 !important;
    font-size: 0.9rem !important;
    backdrop-filter: blur(5px) !important;
    transition: all 0.3s !important;
}

.btn-video:hover {
    background: var(--md-cyan-ia) !important;
    color: var(--md-blue-deep) !important;
}

.estadisticas {
    display: flex !important;
    justify-content: space-around !important;
    padding: 3rem 5% !important;
    background: white !important;
    border-top: 1px solid #e2e8f0 !important;
    border-bottom: 1px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
    gap: 2rem !important;
}

.stat {
    text-align: center !important;
}

.stat h3 {
    font-size: 2.5rem !important;
    font-weight: 800 !important;
    color: var(--md-cyan-ia) !important;
    margin-bottom: 0.5rem !important;
}

.stat p {
    font-weight: 700 !important;
    color: var(--md-blue-deep) !important;
    margin: 0 !important;
}

.testimonios {
    padding: 5rem 5% !important;
    text-align: center !important;
    background: #f8fafc !important;
}

.testimonios h2 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    margin-bottom: 3rem !important;
    color: var(--md-blue-deep) !important;
}

.testimonios .cards {
    display: flex !important;
    gap: 20px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    margin-bottom: 3rem !important;
}

.testimonios .cards article {
    background: white !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 25px rgba(10, 42, 102, 0.04) !important;
    max-width: 350px !important;
    flex: 1 1 300px !important;
    text-align: left !important;
}

.testimonios .cards article p {
    font-style: italic !important;
    color: var(--md-text-secondary) !important;
    margin-bottom: 1.5rem !important;
}

.testimonios .cards article span {
    font-weight: 700 !important;
    color: var(--md-blue-deep) !important;
    font-size: 0.85rem !important;
}

.logos-clientes {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 40px !important;
    opacity: 0.7 !important;
    flex-wrap: wrap !important;
}

.logo-client-item {
    font-weight: 800 !important;
    font-size: 1.5rem !important;
    color: var(--md-blue-deep) !important;
}

.login {
    padding: 5rem 5% !important;
    background: white !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.login h2 {
    font-size: 2.25rem !important;
    font-weight: 800 !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    color: var(--md-blue-deep) !important;
}

footer {
    background: #0d1e3d !important;
    color: white !important;
    padding: 4rem 5% 2rem !important;
    margin-top: auto !important;
}

.footer-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 2.5rem !important;
    max-width: 1300px !important;
    margin: 0 auto !important;
}

.footer-column h4 {
    color: white !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    margin-bottom: 1.5rem !important;
}

.footer-column a {
    display: block !important;
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.9rem !important;
    transition: color 0.3s !important;
}

.footer-column a:hover {
    color: var(--md-cyan-ia) !important;
}

.footer-column.newsletter input {
    width: 100% !important;
    padding: 0.75rem !important;
    border-radius: 8px !important;
    border: none !important;
    margin-bottom: 1rem !important;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-top: 2rem !important;
    margin-top: 3rem !important;
    text-align: center !important;
    font-size: 0.85rem !important;
    color: rgba(255, 255, 255, 0.5) !important;
}

@media (max-width: 768px) {
    .hero {
        flex-direction: column !important;
        padding: 4rem 5% 2rem !important;
        text-align: center !important;
    }
    .hero-texto {
        text-align: center !important;
    }
    .hero-botones {
        justify-content: center !important;
    }
    .navbar .menu {
        display: none !important;
    }
}

/* =================================================================
   LANDING PAGE STYLES & RESPONSIVENESS OVERRIDES
   ================================================================= */
.hero-graphics-container {
    position: relative;
    width: 100%;
    height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(0, 196, 196, 0.08) 0%, transparent 70%);
}
.chaos-order-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.hotspot-badge {
    position: absolute;
    background: rgba(10, 42, 102, 0.9);
    color: white;
    font-size: 0.72rem;
    padding: 4px 8px;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.leak-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 5px;
    background: #cbd5e1;
    outline: none;
    transition: background .15s ease-in-out;
}
.leak-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #00C4C4;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 196, 196, 0.5);
    transition: transform 0.1s;
}
.leak-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}
.mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(10, 42, 102, 0.08);
    z-index: 999;
    padding: 12px 20px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
}
.social-proof-card {
    transition: all 0.3s;
}
.social-proof-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(10, 42, 102, 0.08) !important;
}
.tooltip-custom {
    position: absolute;
    background: #0A2A66;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    z-index: 100;
    pointer-events: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}
.tooltip-custom::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #0A2A66 transparent;
    display: block;
    width: 0;
}

@media (max-width: 576px) {
    .hero-graphics-container {
        height: 280px !important;
    }
    .hero-texto h1 {
        font-size: 2.1rem !important;
    }
    .hero-texto h2 {
        font-size: 1.1rem !important;
        line-height: 1.4 !important;
    }
    .hero-botones {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hero-botones a, .hero-botones button {
        width: 100%;
        margin-left: 0 !important;
        text-align: center;
    }
    .search-demo-container {
        padding: 1rem !important;
    }
}

/* Fix overlapping floating buttons with mobile sticky CTA */
@media (max-width: 991px) {
    .btn-whatsapp-global {
        bottom: 80px; /* Push above sticky CTA */
        transform: scale(0.9);
        right: 15px;
    }
    .btn-back-to-top {
        display: none !important; /* Hide on mobile to reduce clutter */
    }
}


/* Hero WOW Immersive Redesign */
.hero-immersive {
    background-image: url('../img/hero_parallax_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Parallax effect */
    min-height: 85vh;
    width: 100%;
    position: relative;
    padding-bottom: 3rem;
    overflow: hidden;
}

.hero-glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(25px) saturate(150%);
    -webkit-backdrop-filter: blur(25px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 30px 60px rgba(10, 42, 102, 0.08);
}

.shadow-premium {
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.08);
}

/* Magnetic Pulse Button */
.btn-magnetic-pulse {
    animation: pulseGlow 2.5s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 196, 196, 0.7); }
    70% { box-shadow: 0 0 0 20px rgba(0, 196, 196, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 196, 196, 0); }
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 196, 196, 0.6) !important;
    transform: translateY(-2px) scale(1.02);
    transition: all 0.3s ease;
}

/* Floating Orbs */
.floating-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
    animation: floatOrb 10s infinite alternate ease-in-out;
}
.orb-teal {
    background: var(--md-teal-clinical);
    width: 350px; height: 350px;
    top: -50px; left: -100px;
}
.orb-navy {
    background: var(--md-blue-deep);
    width: 450px; height: 450px;
    bottom: -150px; right: 15%;
    animation-duration: 15s;
    animation-delay: -5s;
}
@keyframes floatOrb {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(60px) scale(1.1); }
}

/* Staggered Reveal Animations */
.reveal-1 { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.1s; }
.reveal-2 { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.4s; }
.reveal-3 { opacity: 0; animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: 0.7s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =========================================
   PREMIUM REFACTOR: SUPER NITIDEZ Y BOTONES
   ========================================= */

/* Global Anti-aliasing for Super Nitidez */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Premium Buttons */
.btn-premium-primary {
    background: linear-gradient(135deg, var(--md-teal-clinical), #12908f);
    color: white !important;
    border: none;
    box-shadow: 0 8px 15px rgba(0, 196, 196, 0.2);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-premium-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, #12908f, var(--md-blue-deep));
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
}
.btn-premium-primary:hover::before {
    opacity: 1;
}
.btn-premium-primary:hover {
    transform: translateY(-2px) scale(1.02);
    transition: all 0.3s ease;
}

.btn-premium-secondary {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: var(--md-blue-deep) !important;
    box-shadow: 0 8px 15px rgba(10, 42, 102, 0.05);
    transition: all 0.3s ease;
}
.btn-premium-secondary:hover {
    background: white;
    box-shadow: 0 12px 20px rgba(10, 42, 102, 0.1);
    transform: translateY(-2px);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--md-teal-clinical);
    color: var(--md-blue-deep) !important;
    font-weight: bold;
    transition: all 0.3s ease;
}
.btn-premium-outline:hover {
    background: var(--md-teal-clinical);
    color: white !important;
    box-shadow: 0 8px 15px rgba(0, 196, 196, 0.3);
    transform: translateY(-2px);
}

/* Fix Magnetic Pulse */
.btn-magnetic-pulse {
    animation: premiumPulseGlow 2.5s infinite cubic-bezier(0.66, 0, 0, 1) !important;
}
@keyframes premiumPulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(0, 196, 196, 0.7) !important; }
    70% { box-shadow: 0 0 0 20px rgba(0, 196, 196, 0) !important; }
    100% { box-shadow: 0 0 0 0 rgba(0, 196, 196, 0) !important; }
}

/* Scroll Reveal Classes */
.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Premium Panel for Cards */
.premium-panel {
    background: white;
    border: none !important;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(10, 42, 102, 0.04) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.premium-panel:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(10, 42, 102, 0.08) !important;
}

/* Glass Navbar */
.glass-navbar {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(10, 42, 102, 0.05);
}

/* Base Parallax Sections */
.parallax-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}
.parallax-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}
.parallax-overlay-navy::before {
    background: rgba(10, 42, 102, 0.85); /* Deep Navy Overlay */
}
.parallax-overlay-teal::before {
    background: rgba(0, 196, 196, 0.7); /* Teal Overlay */
}
.parallax-content {
    position: relative;
    z-index: 1;
}

/* Demo Gradient Background */
.demo-gradient-bg {
    background: linear-gradient(135deg, var(--md-blue-deep) 0%, #0e5e8e 100%);
    color: white;
}

/* Holographic Modules CSS */
.holo-card {
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(24, 209, 230, 0.15), transparent);
    transform: rotate(0deg);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    pointer-events: none;
}

.holo-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 196, 196, 0.2), 0 0 20px rgba(0, 196, 196, 0.1);
    border-color: rgba(0, 196, 196, 0.5) !important;
}

.holo-card:hover::before {
    opacity: 1;
    animation: rotateHolo 4s linear infinite;
}

.holo-img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.5s ease;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
    border: 2px solid transparent;
}

.holo-card:hover .holo-img {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 196, 196, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.6);
}

@keyframes rotateHolo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.holo-card > * {
    position: relative;
    z-index: 1;
}

@keyframes floatHolo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); filter: drop-shadow(0 15px 20px rgba(24, 209, 230, 0.4)); }
    100% { transform: translateY(0px); }
}

.holo-carousel-img {
    animation: floatHolo 6s ease-in-out infinite;
    max-height: 400px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}

.carousel-control-prev, .carousel-control-next {
    width: 5%;
    z-index: 10;
}

.carousel-indicators [data-bs-target] {
    background-color: var(--md-teal-clinical);
}

/* Unify Pill Buttons */
.btn-pill-unify { border-radius: 12px !important; }


/* FAQ Holo Item */
.faq-holo-item { background: rgba(255, 255, 255, 0.9) !important; backdrop-filter: blur(10px); border: 1px solid rgba(24, 209, 230, 0.3) !important; border-radius: 12px !important; overflow: hidden; transition: all 0.3s ease; }
.faq-holo-item:hover { box-shadow: 0 10px 20px rgba(0, 196, 196, 0.1); transform: translateY(-2px); }
.faq-holo-item .accordion-button { background: transparent !important; box-shadow: none !important; }
.faq-holo-item .accordion-body { background: transparent !important; }


/* Premium Chevrons for Carousels */
.premium-chevron-prev, .premium-chevron-next { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; width: 50px !important; height: 50px !important; opacity: 1 !important; z-index: 20 !important; }
.premium-chevron-prev { left: 20px !important; right: auto !important; }
.premium-chevron-next { right: 20px !important; left: auto !important; }


/* OSPulso EKG Holographic Preloader */
#pagePreloader { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at center, rgba(10, 42, 102, 0.95) 0%, rgba(5, 20, 50, 1) 100%); z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; transition: opacity 0.8s ease-out, visibility 0.8s; backdrop-filter: blur(10px); }
#pagePreloader.hidden { opacity: 0; visibility: hidden; }
.holo-spinner-container { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.holo-pulse-ring { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(24, 209, 230, 0.8); box-shadow: 0 0 20px rgba(24, 209, 230, 0.5), inset 0 0 20px rgba(24, 209, 230, 0.5); animation: ekgPulse 1.5s cubic-bezier(0.215, 0.61, 0.355, 1) infinite; }
.holo-pulse-ring:nth-child(2) { animation-delay: 0.5s; border-color: rgba(0, 196, 196, 0.5); }
.holo-logo-center { height: 35px; width: auto; max-width: 100px; object-fit: contain; z-index: 2; animation: floatHolo 3s ease-in-out infinite; filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8)); }
.loading-text { margin-top: 30px; color: #18d1e6; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; animation: glowText 2s ease-in-out infinite; }
@keyframes ekgPulse { 0% { transform: scale(0.8); opacity: 0.8; } 50% { transform: scale(1.2); opacity: 1; border-width: 4px; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes glowText { 0%, 100% { opacity: 0.5; text-shadow: 0 0 5px rgba(24, 209, 230, 0.2); } 50% { opacity: 1; text-shadow: 0 0 15px rgba(24, 209, 230, 0.8); } }


/* Responsive Hero Title */
.hero-title-responsive { font-size: 2.8rem; line-height: 1.15; }
@media (max-width: 768px) { .hero-title-responsive { font-size: 2.2rem; } }
@media (max-width: 400px) { .hero-title-responsive { font-size: 1.8rem; } }


/* Responsive Pricing */
.pricing-title-responsive { font-size: 3rem; color: var(--md-blue-deep); }
@media (max-width: 576px) { .pricing-title-responsive { font-size: 2.2rem; } }


/* Premium Accordion FAQ */
.accordion-premium .accordion-item { background: var(--md-white-clinical); transition: all 0.3s ease; }
.accordion-premium .accordion-item:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(0, 196, 196, 0.15) !important; }
.accordion-premium .accordion-button { background: transparent; padding: 1.25rem 1.5rem; box-shadow: none !important; }
.accordion-premium .accordion-button:not(.collapsed) { color: var(--md-teal-clinical); background: rgba(0, 196, 196, 0.05); }
.accordion-premium .accordion-button::after { background-size: 1rem; transition: transform 0.3s ease; }
.accordion-premium .accordion-body { padding: 0 1.5rem 1.5rem 1.5rem; line-height: 1.6; }


/* Unified Premium Badge for Section Headers */
.badge-premium { display: inline-block; padding: 0.6rem 1.2rem; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--md-teal-clinical); background: rgba(0, 196, 196, 0.05); border: 1px solid rgba(0, 196, 196, 0.4); border-radius: 50rem; box-shadow: 0 4px 10px rgba(0, 196, 196, 0.1); margin-bottom: 1rem; }
.parallax-section .badge-premium, .demo-gradient-bg .badge-premium, .bg-navy .badge-premium { color: #fff; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.3); box-shadow: 0 4px 10px rgba(255, 255, 255, 0.1); }

