/* 
  CONSCIENTE DE APRENDER - EXPERT UI OVERRIDES
  Role: World-Class UX/UI Architect
  Focus: Premium Mobile Experience, Micro-animations, & 8pt Grid
*/

:root {
  --transition-smooth-expert: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-premium-mobile: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 
                           0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

/* 1. NAVEGACIÓN MÓVIL: Entrada Lateral Sedosa (Right-to-Left) */
#mobile-menu {
  transition: var(--transition-smooth-expert);
  transform: translateX(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  display: block !important;
  transform-origin: top right;
  /* Forzado de posición a la derecha */
  right: 1.5rem !important;
  left: auto !important;
  max-width: 320px !important;
}

#mobile-menu:not(.hidden) {
  transform: translateX(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#mobile-menu.hidden {
  transform: translateX(20px) scale(0.95);
    align-items: center;
    justify-content: center;
}

/* --- Team Page Redesign: Iconographic Conventions --- */

/* 1. CLINICAL FILTERS (Mobile-First Chips) */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.filter-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 9999px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    cursor: pointer;
}

.filter-chip:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filter-chip.active {
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Dots dentro de los Chips */
.dot-all, .dot-neuro-chip, .dot-psico-chip, .dot-pedagogia-chip {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

/* Colores Dinámicos Acorde a la Especialidad */
.filter-chip[data-filter="all"].active { background: #1e293b; }
.filter-chip[data-filter="neuro"].active { background: #fb923c; }
.filter-chip[data-filter="psico"].active { background: #3b82f6; }
.filter-chip[data-filter="pedagogia"].active { background: #f472b6; }

/* Indicadores de color cuando NO están activos (sutil) */
.filter-chip[data-filter="neuro"] .dot-neuro-chip { background: #fb923c; }
.filter-chip[data-filter="psico"] .dot-psico-chip { background: #3b82f6; }
.filter-chip[data-filter="pedagogia"] .dot-pedagogia-chip { background: #f472b6; }
.filter-chip[data-filter="all"] .dot-all { background: #1e293b; }

.filter-chip.active .dot-all, 
.filter-chip.active .dot-neuro-chip, 
.filter-chip.active .dot-psico-chip, 
.filter-chip.active .dot-pedagogia-chip {
    background: white;
}

/* 1.1 MOBILE FILTER DROPDOWN SYSTEM */
.filter-dropdown-container.open {
    border-radius: 2rem !important;
    border-color: rgba(178, 229, 213, 0.6) !important;
    background: white !important;
}

.filter-dropdown-container.open #filter-chevron {
    transform: rotate(180deg);
}

.filter-chip-mobile {
    background: transparent;
    border: 1px solid transparent;
    color: #64748b;
    transition: var(--transition-smooth-expert);
}

.filter-chip-mobile:active {
    background: rgba(178, 229, 213, 0.1);
    transform: scale(0.98);
}

.filter-chip-mobile.active {
    background: #f8fafc;
    border-color: #f1f5f9;
    color: #1e293b;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.filter-chip-mobile.active span:last-child {
    font-weight: 900;
}

/* Thick Ring Avatars (Reference Style) */
.avatar-ring {
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    padding: 0; /* Sin padding para que el anillo sea directo */
    border: 8px solid white;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.avatar-ring img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Foco facial superior */
    transition: transform 0.6s ease;
}

.team-card:hover .avatar-ring {
    transform: scale(1.05);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.ring-neuro { border-color: #fb923c; }
.ring-psico { border-color: #3b82f6; }
.ring-pedagogia { border-color: #f472b6; }

/* Clinical Card Minimalism */
.team-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.team-card h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.5rem !important;
}

.credential-list {
    text-align: left;
    background: white;
    padding: 2rem;
    border-radius: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.02);
}

.credential-list li {
    font-size: 12.5px !important;
    line-height: 1.5;
    margin-bottom: 0.75rem !important;
    display: flex;
    gap: 0.75rem;
    align-items: center; /* Alineación centrada para los puntitos */
}

/* Puntitos de Color por Especialidad */
.dot-neuro, .dot-psico, .dot-pedagogia {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.dot-neuro { background-color: #fb923c; }
.dot-psico { background-color: #3b82f6; }
.dot-pedagogia { background-color: #f472b6; }

/* 2. REFINAMIENTO DE CARDS (Native Feel on Mobile) */
@media (max-width: 768px) {
  .service-card, .team-card, .blog-card {
    border-radius: 2.5rem !important; /* Más redondeado, más amigable */
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-premium-mobile) !important;
    margin-bottom: 1.5rem;
  }

  /* Mejora de espaciado lateral para respetar el grid */
  header, section, footer {
    padding-left: 1.5rem !important;  /* 24px - 8pt multi */
    padding-right: 1.5rem !important;
  }
}

/* 3. BOTÓN DE CITA MÓVIL (Premium Finish) */
.md\:hidden a[href="index.html#contacto"] {
  transition: var(--transition-smooth-expert);
  box-shadow: 0 4px 12px rgba(178, 229, 213, 0.4);
}

.md\:hidden a[href="index.html#contacto"]:active {
  transform: scale(0.95);
}

/* 4. WHATSAPP BUBBLE IMPROVEMENT */
.fixed.bottom-8.right-6 a {
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}
