/* Neurofeedback Pro - Custom Styles */

:root {
  --orange-primary: #FF6600;
  --orange-light: #FF8533;
  --orange-dark: #E55A00;
  --blue-primary: #5B6BC9;
  --blue-light: #7B88DB;
  --blue-dark: #4A5AAB;
  --gray-primary: #808080;
  --gray-light: #F8F9FA;
  --gray-dark: #333333;
  --white: #FFFFFF;
  --success: #28A745;
  --danger: #DC3545;
  --warning: #FFC107;
  --info: #17A2B8;
}

/* Global Styles */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: var(--gray-dark);
  background: linear-gradient(135deg, var(--blue-light) 0%, var(--blue-primary) 100%);
  min-height: 100vh;
}

/* Hide navbar for clean linktree look */
.navbar {
  display: none;
}

/* Home section - Full screen linktree style */
#home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 2rem 0;
}

/* Linktree Container */
.linktree-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Profile Header */
.profile-header {
  margin-bottom: 3rem;
}

.profile-avatar {
  background: transparent;
  box-shadow: none;
  margin-bottom: 1.5rem;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 120px;
  margin: 0 auto 1.5rem auto;
  /* Create a subtle gradient background that complements the logo */
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(248,249,250,0.95));
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* Match linktree button styling */
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.profile-avatar:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--blue-light);
}

.profile-avatar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-primary), var(--blue-primary));
  border-radius: 15px 15px 0 0;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.profile-avatar:hover::before {
  opacity: 1;
}



.avatar-img {
  border-radius: 10px;
  width: auto;
  height: 100px;
  max-width: 200px;
  object-fit: contain;
  background: transparent !important;
  position: relative;
  z-index: 1;
  /* Remove white background using advanced CSS */
  filter: brightness(1.05) contrast(1.05) saturate(1.1);
  /* Better image rendering */
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.profile-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.profile-motto {
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  text-shadow: 0 1px 8px rgba(0,0,0,0.10);
  margin-bottom: 1rem;
}

.profile-description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Custom Colors */
.text-orange {
  color: var(--orange-primary) !important;
}

.bg-orange {
  background-color: var(--orange-primary) !important;
}

.bg-gradient-primary {
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-primary) 100%);
}

.btn-orange {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 102, 0, 0.3);
}

.btn-primary {
  background-color: var(--gray-dark);
  border-color: var(--gray-dark);
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--gray-primary);
  border-color: var(--gray-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(128, 128, 128, 0.3);
}

/* Navigation */
.navbar {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
    z-index: 1002;
}

.navbar-brand {
  font-weight: 700;
  color: var(--orange-primary) !important;
  display: flex;
  align-items: center;
}

.nav-link {
  font-weight: 500;
  color: var(--gray-dark) !important;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--orange-primary) !important;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--orange-primary);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar .fw-bold.text-primary {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
}

.navbar .d-inline-block.align-top {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.18));
}

/* Hero Section */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, var(--gray-dark) 0%, var(--gray-primary) 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23FF6600" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.hero-image {
  position: relative;
  z-index: 1;
}

/* Feature Cards */
.feature-card {
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.feature-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
  color: white;
  box-shadow: 0 8px 25px rgba(255, 102, 0, 0.3);
}

/* Auth Cards */
.auth-card {
  background: white;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* Forms */
.form-control {
  border: 2px solid #E9ECEF;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--orange-primary);
  box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.15);
}

.input-group-text {
  background-color: var(--gray-light);
  border: 2px solid #E9ECEF;
  border-right: none;
  border-radius: 10px 0 0 10px;
  color: var(--gray-primary);
}

.input-group .form-control {
  border-left: none;
  border-radius: 0 10px 10px 0;
}

.input-group:focus-within .input-group-text {
  border-color: var(--orange-primary);
  background-color: rgba(255, 102, 0, 0.05);
  color: var(--orange-primary);
}

/* Buttons */
.btn {
  border-radius: 10px;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-width: 2px;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Section Management */
.section-active {
  display: block !important;
}

.section-hidden {
  display: none !important;
}

.section-active {
  display: block !important;
  animation: fadeIn 0.3s ease-in;
}

/* Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  background: linear-gradient(135deg, var(--orange-primary), var(--orange-light));
  color: white;
  border-radius: 15px 15px 0 0 !important;
  border: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
}

/* Tables */
.table {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.table thead th {
  background-color: var(--gray-light);
  border: none;
  font-weight: 600;
  color: var(--gray-dark);
  padding: 1rem;
}

.table tbody td {
  border: none;
  padding: 1rem;
  vertical-align: middle;
}

.table tbody tr:nth-child(even) {
  background-color: rgba(248, 249, 250, 0.5);
}

/* Badges */
.badge {
  font-size: 0.8rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-weight: 500;
}

.badge-status-scheduled {
  background-color: var(--info);
  color: white;
}

.badge-status-confirmed {
  background-color: var(--success);
  color: white;
}

.badge-status-cancelled {
  background-color: var(--danger);
  color: white;
}

.badge-status-completed {
  background-color: var(--orange-primary);
  color: white;
}

/* Loading Spinner */
.spinner-border {
  width: 3rem;
  height: 3rem;
}

/* Alerts */
.alert {
  border: none;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: rgba(40, 167, 69, 0.1);
  color: var(--success);
  border-left: 4px solid var(--success);
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  color: var(--danger);
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background-color: rgba(255, 193, 7, 0.1);
  color: #856404;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background-color: rgba(23, 162, 184, 0.1);
  color: var(--info);
  border-left: 4px solid var(--info);
}

/* Toast */
.toast {
  border-radius: 12px;
  border: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.toast-header {
  background-color: var(--gray-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px 12px 0 0;
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--gray-dark) 0%, #222 100%) !important;
}

/* Utilities */
.text-muted {
  color: var(--gray-primary) !important;
}

.shadow-sm {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    min-height: 70vh;
    text-align: center;
  }
  
  .hero-section .col-lg-6:first-child {
    margin-bottom: 2rem;
  }
  
  .feature-card {
    margin-bottom: 2rem;
  }
  
  .auth-card {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .display-4 {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 2rem 0;
  }
  
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .feature-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Dashboard Specific Styles */
.stat-card {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  color: var(--gray-primary);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}

/* Calendar Styles */
.calendar-container {
  background: white;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--gray-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--orange-primary);
}

/* ===========================
   SISTEMA DE FILA VIRTUAL
=========================== */

/* Tarjetas de Eventos */
.event-card {
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    border-color: var(--orange-primary);
    box-shadow: 0 8px 25px rgba(255, 102, 0, 0.15);
    transform: translateY(-2px);
}

.event-details {
    font-size: 0.9rem;
}

.event-details i {
    width: 16px;
    text-align: center;
}

.queue-status .progress {
    border-radius: 10px;
}

/* Estado de Cola */
.queue-status-card {
    border: 3px solid var(--orange-primary);
    box-shadow: 0 10px 30px rgba(255, 102, 0, 0.2);
}

.position-info {
    background: linear-gradient(135deg, var(--orange-primary), #ff8533);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    margin: 1rem 0;
}

.position-number {
    font-size: 4rem;
    font-weight: bold;
    line-height: 1;
}

.position-label {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-top: 0.5rem;
}

.estimated-wait {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
}

.wait-time {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--orange-primary);
}

.wait-label {
    font-size: 1rem;
    color: var(--gray-600);
    margin-top: 0.5rem;
}

/* Alertas de Notificación */
.notification-status .alert {
    border-left: 4px solid var(--orange-primary);
    animation: pulse-subtle 2s infinite;
}

@keyframes pulse-subtle {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Modal de Alerta de Turno */
.modal-content .bg-orange {
    background: linear-gradient(135deg, var(--orange-primary), #ff8533) !important;
}

.turn-alert-icon {
    animation: bounce-attention 1s infinite;
}

@keyframes bounce-attention {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Instrucciones de Notificación */
.notification-instructions {
    background: #fff3cd;
    border-radius: 10px;
    padding: 1rem;
}

.notification-instructions ol {
    padding-left: 1.2rem;
}

.notification-instructions li {
    margin-bottom: 0.5rem;
}

/* Panel de Operador */
.operator-card {
    border: 2px solid var(--gray-200);
    transition: all 0.3s ease;
}

.operator-card:hover {
    border-color: var(--orange-primary);
    box-shadow: 0 5px 15px rgba(255, 102, 0, 0.1);
}

.station-status {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase;
}

.station-status.available {
    background: #d4edda;
    color: #155724;
}

.station-status.busy {
    background: #f8d7da;
    color: #721c24;
}

.station-status.maintenance {
    background: #fff3cd;
    color: #856404;
}

/* Botones Especiales */
.btn-outline-orange {
    border-color: var(--orange-primary);
    color: var(--orange-primary);
}

.btn-outline-orange:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    color: white;
}

/* Animaciones para Estados de Cola */
.queue-position-update {
    animation: highlight-update 0.8s ease;
}

@keyframes highlight-update {
    0% { background-color: transparent; }
    50% { background-color: rgba(255, 102, 0, 0.1); }
    100% { background-color: transparent; }
}

/* Responsive para Sistema de Cola */
@media (max-width: 768px) {
    .position-number {
        font-size: 3rem;
    }
    
    .wait-time {
        font-size: 1.2rem;
    }
    
    .event-card {
        margin-bottom: 1rem;
    }
    
    .queue-actions .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .queue-actions .btn:last-child {
        margin-bottom: 0;
    }
}

/* Estados de Vibración */
.vibrating {
    animation: vibrate 0.3s linear infinite;
}

@keyframes vibrate {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 2px); }
    40% { transform: translate(-2px, -2px); }
    60% { transform: translate(2px, 2px); }
    80% { transform: translate(2px, -2px); }
    100% { transform: translate(0); }
}

/* ===========================
   MENÚ Y NAVEGACIÓN
=========================== */

/* Badge para contador de eventos activos */
.badge.bg-orange {
    background-color: var(--orange-primary) !important;
    font-size: 0.7rem;
    border-radius: 50%;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    padding: 0;
    margin-left: 0.25rem;
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Mejoras para el menú principal */
.navbar-nav .nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
}

.navbar-nav .nav-link:hover {
    background-color: rgba(255, 102, 0, 0.1);
    color: var(--orange-primary);
}

.navbar-nav .nav-link.active {
    background-color: var(--orange-primary);
    color: white !important;
}

/* Formulario de solicitud de cita */
.form-label.fw-semibold {
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.form-label i {
    width: 20px;
    text-align: center;
}

.form-check-input:checked {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 102, 0, 0.25);
    border-color: var(--orange-primary);
}

/* Tarjeta mejorada para formularios */
.card.shadow-lg {
    border: none;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1) !important;
}

.card-body {
    padding: 2rem;
}

/* ===========================
   DOS LÍNEAS DE NEGOCIO
=========================== */

/* Iconos de servicios */
.service-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
}

.service-icon.bg-orange {
    background: linear-gradient(135deg, var(--orange-primary), #ff8533);
}

.service-section {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.service-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Grupos objetivo */
.target-group {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    height: 100%;
}

.target-group strong {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* Características profesionales */
.professional-features .feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
}

.professional-features .feature-item:last-child {
    margin-bottom: 0;
}

/* Estadísticas */
.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    color: var(--gray-600);
}

/* ===========================
   CURSOS PROFESIONALES
=========================== */

/* Tarjetas de cursos */
.course-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.course-header {
    background: linear-gradient(135deg, var(--primary), #0056b3);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.course-level {
    font-size: 0.8rem;
    font-weight: bold;
}

.course-price {
    font-size: 1.5rem;
    font-weight: bold;
}

.course-body {
    padding: 1.5rem;
    flex-grow: 1;
}

.course-title {
    color: var(--primary);
    margin-bottom: 1rem;
}

.course-description {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.course-duration {
    margin-bottom: 1rem;
    font-weight: 500;
}

.course-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.course-features li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.course-footer {
    padding: 1.5rem;
    background: #f8f9fa;
}

/* Beneficios de certificación */
.benefit-item {
    text-align: center;
    padding: 1rem;
}

.benefit-item h6 {
    margin-bottom: 0.5rem;
    color: var(--gray-600);
}

/* ===========================
   PLATAFORMA DE APRENDIZAJE
=========================== */

/* Materiales de estudio */
.module-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.module-title {
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary);
}

.lesson-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.lesson-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.lesson-info {
    display: flex;
    align-items: center;
}

.lesson-title {
    font-weight: 500;
    color: var(--gray-700);
}

.lesson-meta {
    display: flex;
    align-items: center;
}

.lesson-duration {
    font-size: 0.9rem;
    color: var(--gray-500);
}

/* Estadísticas del curso */
.course-stats .stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e9ecef;
}

.course-stats .stat-row:last-child {
    border-bottom: none;
}

/* Enlaces de recursos */
.resource-links a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.resource-links a:hover {
    background: rgba(13, 110, 253, 0.1);
    transform: translateX(5px);
}

/* Icono profesional */
.professional-icon {
    margin-bottom: 1rem;
}

/* Dropdown menus mejorados */
.dropdown-menu {
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: rgba(255, 102, 0, 0.1);
    color: var(--orange-primary);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
}

/* Appointment Request Form */
.form-step {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Office Selection Cards */
.office-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.office-card:hover {
    border-color: #FF6600;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.15);
    transform: translateY(-2px);
}

.office-card.selected {
    border-color: #FF6600;
    background-color: rgba(255, 102, 0, 0.05);
}

.office-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.office-label {
    cursor: pointer;
    margin: 0;
    width: 100%;
}

.office-info h6 {
    color: #FF6600;
    margin-bottom: 8px;
}

/* Calendar Container */
.calendar-container {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    margin-top: 15px;
}

.calendar-header {
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    padding: 10px 5px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 10px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: white;
    transition: all 0.2s ease;
    position: relative;
    min-height: 45px;
}

.calendar-day:hover {
    border-color: #FF6600;
    background: rgba(255, 102, 0, 0.05);
}

.calendar-day.available {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

.calendar-day.selected {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

.calendar-day.disabled {
    background: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

.calendar-day.today {
    background: #007bff;
    color: white;
}

/* Time Slots */
.time-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.time-slot {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.time-slot:hover {
    border-color: #FF6600;
    background: rgba(255, 102, 0, 0.05);
}

.time-slot.selected {
    background: #FF6600;
    color: white;
    border-color: #FF6600;
}

.time-slot.occupied {
    background: #dc3545;
    color: white;
    cursor: not-allowed;
}

/* Form validation states */
.form-control.is-valid {
    border-color: #28a745;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

/* Progress indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.step-indicator .step {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 10px;
    font-weight: bold;
    color: #6c757d;
    position: relative;
}

.step-indicator .step.active {
    background: #FF6600;
    color: white;
}

.step-indicator .step.completed {
    background: #28a745;
    color: white;
}

.step-indicator .step::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 100%;
    width: 20px;
    height: 2px;
    background: #e9ecef;
    transform: translateY(-50%);
}

.step-indicator .step:last-child::after {
    display: none;
}

.step-indicator .step.completed::after {
    background: #28a745;
}

/* ===============================================
   LINKTREE STYLES
   =============================================== */

/* Container Principal */
.linktree-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 2rem 0;
    display: flex;
    align-items: center;
}

/* Profile Header */
.profile-header {
    max-width: 600px;
    margin: 0 auto;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
}

.avatar-img {
    width: 120px;
    height: 120px;
    border-radius: 0 !important;
    border: none !important;
    object-fit: contain;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.profile-title {
    color: white;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.profile-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 0;
}

/* Navbar white strip styling */
.navbar {
    background-color: transparent !important;
    border-bottom: none !important;
    box-shadow: none !important;
}

.navbar .fw-bold.text-primary {
  color: var(--gray-dark) !important;
}

.navbar .fab.fa-instagram {
  color: #E4405F !important;
  font-size: 1.6rem;
}

.navbar .d-flex.align-items-center a {
  transition: color 0.2s;
}

.navbar .d-flex.align-items-center a:hover {
  color: #E4405F !important;
}

/* Profile Section */
.profile-section {
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.logo-image {
  max-width: 80px;
  height: auto;
}

/* Buttons Container */
.buttons-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Linktree Buttons */
.linktree-btn {
  width: 100%;
  border: none;
  border-radius: 15px;
  padding: 1.25rem 1.5rem;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  display: flex;
  align-items: center;
  text-decoration: none;
  border: 2px solid transparent;
}

.linktree-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--blue-light);
}

.linktree-btn:active {
  transform: translateY(-1px);
}

.linktree-btn .fas {
  flex-shrink: 0;
  width: 24px;
  text-align: center;
  color: var(--blue-primary);
  font-size: 1.25rem;
}

.btn-text {
  flex: 1;
  text-align: left;
}

.linktree-btn span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
  color: var(--gray-dark);
  line-height: 1.3;
}

.btn-description {
  display: block;
  font-size: 0.875rem;
  color: var(--gray-primary);
  font-weight: 400;
  margin-top: 0.25rem;
  line-height: 1.2;
}

.linktree-btn .fa-arrow-right {
  color: var(--gray-primary);
  font-size: 1rem;
}

/* Primary Button */
.linktree-btn.primary-btn {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
  border-color: var(--orange-primary);
}

.linktree-btn.primary-btn .fas,
.linktree-btn.primary-btn span,
.linktree-btn.primary-btn .btn-description,
.linktree-btn.primary-btn .fa-arrow-right {
  color: white;
}

.linktree-btn.primary-btn:hover {
  border-color: var(--orange-dark);
  background: linear-gradient(135deg, var(--orange-dark) 0%, var(--orange-primary) 100%);
}

/* Event Button with Live Indicator */
.event-btn {
  position: relative;
}

.event-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.live-indicator {
  background: #ff0000;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* MasterClass Button (NUEVO) */
.linktree-btn.masterclass-btn {
  background: linear-gradient(135deg, #8B5CF6 0%, #6366F1 100%);
  border-color: #8B5CF6;
  position: relative;
  overflow: hidden;
}

.linktree-btn.masterclass-btn .btn-content {
  color: white;
}

.linktree-btn.masterclass-btn .btn-icon,
.linktree-btn.masterclass-btn .btn-title,
.linktree-btn.masterclass-btn .btn-subtitle {
  color: white;
}

.linktree-btn.masterclass-btn:hover {
  background: linear-gradient(135deg, #7C3AED 0%, #4F46E5 100%);
  border-color: #7C3AED;
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* Badge NUEVO */
.badge-new {
  position: absolute;
  top: 10px;
  right: 10px;
  background: linear-gradient(135deg, #FF6600, #FF8533);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Badge purple for hybrid events */
.bg-purple {
  background: linear-gradient(135deg, #8B5CF6, #6366F1) !important;
}

/* MasterClass Section */
#masterclass-section {
  min-height: 100vh;
  background: linear-gradient(135deg, #F3F4F6 0%, #E5E7EB 100%);
  padding: 2rem 0;
}

.gradient-text {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Event Cards */
.event-card {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-left: 4px solid #8B5CF6;
}

.event-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.event-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1rem;
}

.event-date {
  background: linear-gradient(135deg, #8B5CF6, #6366F1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
}

.event-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.event-status.upcoming {
  background: #FEF3C7;
  color: #D97706;
}

.event-status.live {
  background: #FEE2E2;
  color: #DC2626;
  animation: pulse 1.5s infinite;
}

.event-status.completed {
  background: #D1FAE5;
  color: #059669;
}

/* Footer */
.linktree-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.linktree-footer p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 576px) {
  .hero-section {
    padding: 1rem 0;
  }
  
  .linktree-container {
    padding: 1rem 0.5rem;
  }
  
  .profile-avatar {
    width: 100px;
    height: 100px;
  }
  
  .logo-image {
    max-width: 70px;
  }
  
  .linktree-btn {
    padding: 1rem 1.25rem;
    border-radius: 12px;
  }
  
  .linktree-btn span {
    font-size: 0.95rem;
  }
  
  .btn-description {
    font-size: 0.8rem;
  }
  
  .linktree-btn .fas {
    font-size: 1.1rem;
  }
  
  .profile-section h1 {
    font-size: 1.75rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .linktree-container {
    padding: 1.5rem;
  }
  
  .profile-section h1 {
    font-size: 2rem;
  }
}

@media (min-width: 769px) {
  .linktree-container {
    padding: 2rem;
  }
  
  .buttons-container {
    gap: 1.25rem;
  }
}

/* Section Hidden/Active States */
.section-hidden {
  display: none;
}

.section-active {
  display: block;
}

/* Show navbar when not on home section */
body:not(.home-active) .navbar {
  display: block !important;
}

body:not(.home-active) {
  background: var(--gray-light);
  padding-top: 76px; /* Account for fixed navbar */
}

/* Other sections styling */
.section-hidden:not(#home-section),
.section-active:not(#home-section) {
  background: var(--gray-light);
  min-height: calc(100vh - 76px);
  padding: 2rem 0;
}

/* Custom Colors */
.text-orange {
  color: var(--orange-primary) !important;
}

.bg-orange {
  background-color: var(--orange-primary) !important;
}

.btn-orange {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-orange:hover {
  background-color: var(--orange-dark);
  border-color: var(--orange-dark);
  color: white;
}

.btn-outline-orange {
  border-color: var(--orange-primary);
  color: var(--orange-primary);
  background: transparent;
  transition: all 0.3s ease;
}

.btn-outline-orange:hover {
  background-color: var(--orange-primary);
  border-color: var(--orange-primary);
  color: white;
}

.btn-content {
    display: flex;
    align-items: center;
    padding: 1.2rem 1.5rem;
    position: relative;
}

.btn-icon {
    font-size: 2rem;
    margin-right: 1rem;
    width: 3rem;
    text-align: center;
    flex-shrink: 0;
}

.btn-text {
    flex: 1;
    text-align: left;
}

.btn-title {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 0.2rem;
}

.btn-subtitle {
    display: block;
    font-size: 0.9rem;
    color: var(--gray-primary);
    font-weight: 400;
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 1.5rem;
    border-radius: 15px;
    background: #f8f9fa;
    height: 100%;
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    margin-bottom: 1rem;
}

/* Event Button Styles */
.primary-btn {
    background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
}

.primary-btn .btn-title,
.primary-btn .btn-subtitle {
    color: white;
}

.primary-btn .btn-icon {
    color: white;
}

.event-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 100%);
    position: relative;
}

.event-btn .btn-title,
.event-btn .btn-subtitle {
    color: white;
}

.event-btn .btn-icon {
    color: white;
}

.live-indicator {
    position: absolute;
    top: 50%;
    right: 1.5rem;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.professional-btn {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
}

.professional-btn .btn-title,
.professional-btn .btn-subtitle {
    color: white;
}

.professional-btn .btn-icon {
    color: white;
}

.therapist-btn {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.therapist-btn .btn-title,
.therapist-btn .btn-subtitle {
    color: white;
}

.therapist-btn .btn-icon {
    color: white;
}

.therapist-btn:hover {
    background: linear-gradient(135deg, #0f8975 0%, #32d46b 100%);
    text-decoration: none;
}

.login-btn {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

.login-btn .btn-title,
.login-btn .btn-subtitle {
    color: white;
}

.login-btn .btn-icon {
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
}

.whatsapp-btn .btn-title,
.whatsapp-btn .btn-subtitle {
    color: white;
}

.whatsapp-btn .btn-icon {
    color: white;
}

/* Portal Selector Styles */
.portal-btn-container {
    position: relative;
    background: none !important;
    padding: 0 !important;
    margin-bottom: 1rem;
}

.portal-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    width: 100%;
}

.portal-btn .btn-title,
.portal-btn .btn-subtitle {
    color: white;
}

.portal-btn .btn-icon {
    color: white;
}

.portal-arrow {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.portal-btn.active .portal-arrow {
    transform: translateY(-50%) rotate(180deg);
}

.portal-selector {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-option {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border: none;
    background: white;
    width: 100%;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.portal-option:last-child {
    border-bottom: none;
}

.portal-option:hover {
    background: #f8f9fa;
    transform: translateX(5px);
}

.portal-option i {
    font-size: 1.5rem;
    margin-right: 15px;
    width: 24px;
    text-align: center;
}

.student-option i {
    color: #3498db;
}

.therapist-option i {
    color: #2ecc71;
}

.admin-option i {
    color: #e74c3c;
}

.option-title {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.option-desc {
    display: block;
    font-size: 0.85rem;
    color: #666;
}

/* Brain-related Icons Enhancement */
.btn-icon {
    font-size: 1.8rem !important;
    margin-right: 15px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Specific brain-themed colors */
.professional-btn .btn-icon {
    color: #ff6b6b;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.primary-btn .btn-icon {
    color: #ffd93d;
}

.event-btn .btn-icon {
    color: #74b9ff;
    animation: rotate 3s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.linktree-footer {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-text {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.social-link i {
    font-size: 1.2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .linktree-container {
        padding: 1rem 0;
    }
    
    .profile-title {
        font-size: 2rem;
    }
    
    .profile-description {
        font-size: 1rem;
    }
    
    .avatar-img {
        width: 100px;
        height: 100px;
    }
    
    .btn-content {
        padding: 1rem 1.2rem;
    }
    
    .btn-icon {
        font-size: 1.8rem;
        width: 2.5rem;
    }
    
    .btn-title {
        font-size: 1rem;
    }
    
    .btn-subtitle {
        font-size: 0.85rem;
    }
    
    .live-indicator {
        position: static;
        transform: none;
        margin-left: auto;
        margin-top: 0.5rem;
    }
}

@media (max-width: 480px) {
    .profile-title {
        font-size: 1.8rem;
    }
    
    .btn-content {
        padding: 0.9rem 1rem;
    }
    
    .btn-icon {
        font-size: 1.6rem;
        width: 2.2rem;
        margin-right: 0.8rem;
    }
    
    .avatar-img {
        width: 90px;
        height: 90px;
    }
}

/* Hide navbar in linktree view */
#home-section.section-active ~ * .navbar,
.section-active .navbar {
    display: none !important;
}

/* Show navbar for other sections */
.section-hidden ~ .navbar {
    display: block !important;
}

/* Adjust main content when navbar is hidden */
#home-section.section-active {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

#home-section.section-active main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Override any conflicting styles */
.linktree-container .container {
    max-width: 100%;
    padding: 0 1rem;
}

/* ===== SECCIÓN DE SOCIOS ===== */
.partners-section {
    margin-top: 3rem;
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.partners-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.partners-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.partner-item {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.partner-item:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.partner-logo {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    overflow: hidden;
    flex-shrink: 0;
}

.partner-img {
        max-width: 100px;
        max-height: 100px;
        width: 100%;
        height: auto;
        object-fit: contain;
        margin: 0 auto 12px auto;
        display: block;
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        padding: 8px;
}

@media (max-width: 768px) {
    .partner-img {
        max-width: 70px;
        max-height: 70px;
    }
}

.partner-info {
    flex: 1;
    min-width: 0;
}

.partner-name {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.partner-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.partner-link {
    color: #4facfe;
    text-decoration: none;
    transition: color 0.3s ease;
}

.partner-link:hover {
    color: #00f2fe;
    text-decoration: underline;
}

/* Responsive design para socios */
@media (min-width: 768px) {
    .partners-grid {
        max-width: 500px;
    }
    
    .partner-logo {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .partners-section {
        margin-top: 2rem;
        padding: 1.5rem 0;
    }
    
    .partners-title {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .partner-item {
        padding: 1.2rem;
        gap: 0.8rem;
    }
    
    .partner-logo {
        width: 50px;
        height: 50px;
        margin-right: 0.8rem;
    }
    
    .partner-name {
        font-size: 1rem;
    }
    
    .partner-description {
        font-size: 0.85rem;
    }
}

/* ===== LINKTREE STYLES - NEW VERSION ===== */

/* Linktree Buttons */
.linktree-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.linktree-btn {
  width: 100%;
  border: none;
  border-radius: 20px;
  padding: 0;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.linktree-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.linktree-btn:active {
  transform: translateY(-1px);
}

.btn-content {
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem;
  position: relative;
}

.btn-icon {
  font-size: 2rem;
  margin-right: 1rem;
  width: 3rem;
  text-align: center;
  flex-shrink: 0;
}

.btn-text {
  flex: 1;
  text-align: left;
}

.btn-title {
  display: block;
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--gray-dark);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.btn-subtitle {
  display: block;
  font-size: 0.9rem;
  color: var(--gray-primary);
  font-weight: 400;
  line-height: 1.2;
}

/* Button Types */
.primary-btn {
  background: linear-gradient(135deg, var(--orange-primary) 0%, var(--orange-light) 100%);
}

.primary-btn .btn-title,
.primary-btn .btn-subtitle,
.primary-btn .btn-icon {
  color: white;
}

.professional-btn {
  background: linear-gradient(135deg, #4CAF50 0%, #66BB6A 100%);
}

.professional-btn .btn-title,
.professional-btn .btn-subtitle,
.professional-btn .btn-icon {
  color: white;
}

.whatsapp-btn {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
}

.whatsapp-btn .btn-title,
.whatsapp-btn .btn-subtitle,
.whatsapp-btn .btn-icon {
  color: white;
}

.event-btn {
  background: linear-gradient(135deg, #FF9800 0%, #F57C00 100%);
  position: relative;
}

.event-btn .btn-title,
.event-btn .btn-subtitle,
.event-btn .btn-icon {
  color: white;
}

.portal-btn {
  background: linear-gradient(135deg, var(--blue-primary) 0%, var(--blue-light) 100%);
}

.portal-btn .btn-title,
.portal-btn .btn-subtitle,
.portal-btn .btn-icon {
  color: white;
}

.info-btn {
  background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
}

.info-btn .btn-title,
.info-btn .btn-subtitle,
.info-btn .btn-icon {
  color: white;
}

/* Live Indicator */
.live-indicator {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: #ff0000;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.live-dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

/* Footer */
.linktree-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0;
}

/* Responsive Design for Linktree */
@media (max-width: 576px) {
  .avatar-img {
    max-width: 120px;
    max-height: 120px;
  }
  
  .profile-title {
    font-size: 2rem;
  }
  
  .profile-motto {
    font-size: 1.1rem;
  }
  
  .btn-content {
    padding: 1rem 1.25rem;
  }
  
  .btn-title {
    font-size: 1rem;
  }
  
  .btn-subtitle {
    font-size: 0.85rem;
  }
  
  .btn-icon {
    font-size: 1.75rem;
    width: 2.5rem;
  }
}

@media (min-width: 577px) and (max-width: 768px) {
  .profile-title {
    font-size: 2.25rem;
  }
}

/* ===========================
   SELECTOR DE SEDES Y CALENDARIO
=========================== */

.sede-selector {
    margin-bottom: 1.5rem;
}

.sede-card {
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    height: 100%;
}

.sede-card:hover {
    border-color: var(--orange-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.1);
}

.sede-card.selected {
    border-color: var(--orange-primary);
    background: linear-gradient(135deg, rgba(255, 102, 0, 0.1) 0%, rgba(255, 102, 0, 0.05) 100%);
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.15);
}

.sede-header {
    text-align: center;
    margin-bottom: 1rem;
}

.sede-info {
    text-align: center;
}

.sede-info .small {
    color: #6c757d;
    line-height: 1.4;
}

/* Calendario */
.calendar-container {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    background: white;
}

.calendar-header {
    display: flex;
    justify-content: center;
    align-items: center;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin-bottom: 1rem;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
    background: white;
}

.calendar-day:hover {
    background-color: rgba(255, 102, 0, 0.1);
}

.calendar-day.disabled {
    background-color: #f8f9fa;
    color: #ced4da;
    cursor: not-allowed;
}

.calendar-day.available {
    background-color: #e8f5e8;
    color: #155724;
    border-color: #28a745;
}

.calendar-day.selected {
    background-color: var(--orange-primary);
    color: white;
    border-color: var(--orange-primary);
}

.calendar-day.other-month {
    color: #ced4da;
}

.calendar-header-day {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    color: #6c757d;
    background-color: #f8f9fa;
    border-radius: 6px;
}

/* Horarios disponibles */
.time-slots {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    padding: 0.75rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--orange-primary);
    background-color: rgba(255, 102, 0, 0.1);
}

.time-slot.selected {
    border-color: var(--orange-primary);
    background-color: var(--orange-primary);
    color: white;
}

.time-slot.occupied {
    background-color: #f8d7da;
    border-color: #dc3545;
    color: #721c24;
    cursor: not-allowed;
}

/* Responsivo para calendario */
@media (max-width: 768px) {
    .calendar-grid {
        gap: 3px;
    }
    
    .calendar-day {
        font-size: 0.8rem;
    }
    
    .time-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .time-slot {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
    
    .sede-card {
        padding: 1rem;
        margin-bottom: 1rem;
    }
}

/* ===========================
   CALENDARIO DEL TERAPEUTA
=========================== */

.therapist-calendar .calendar-table {
    font-size: 0.9rem;
}

.calendar-day {
    width: 120px;
    height: 100px;
    vertical-align: top;
    position: relative;
    padding: 0.5rem;
    border: 1px solid #dee2e6 !important;
}

.calendar-day.today {
    background-color: rgba(255, 102, 0, 0.1);
    border-color: var(--orange-primary) !important;
}

.calendar-day.has-appointments {
    background-color: rgba(0, 123, 255, 0.1);
}

.calendar-day.other-month {
    background-color: #f8f9fa;
    color: #ced4da;
}

.day-number {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.appointments-count {
    margin-bottom: 0.25rem;
}

.appointment-details {
    font-size: 0.75rem;
    line-height: 1.2;
}

.appointment-item {
    margin-bottom: 0.25rem;
    padding: 0.125rem;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 3px;
}

.upcoming-list .appointment-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.upcoming-list .appointment-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.calendar-legend .badge {
    font-size: 0.75rem;
}

/* Responsivo para calendario del terapeuta */
@media (max-width: 768px) {
    .calendar-day {
        width: 80px;
        height: 80px;
        padding: 0.25rem;
        font-size: 0.8rem;
    }
    
    .appointment-details {
        font-size: 0.7rem;
    }
    
    .upcoming-list .appointment-card {
        padding: 0.75rem;
    }
}

/* Additional styles for simplified form */
.btn-orange {
    background-color: #FF6600;
    border-color: #FF6600;
    color: white;
    transition: all 0.3s ease;
}

.btn-orange:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 102, 0, 0.3);
}

.border-orange {
    border-color: #FF6600 !important;
}

.form-control:focus, .form-select:focus {
    border-color: #FF6600;
    box-shadow: 0 0 0 0.2rem rgba(255, 102, 0, 0.25);
}

.card.border-2 {
    border-width: 2px !important;
}

.alert-info {
    background-color: rgba(255, 102, 0, 0.1);
    border-color: #FF6600;
    color: #8B4000;
}

.alert-info .fas {
    color: #FF6600;
}

/* Estilos para el portal de acceso - responsividad mejorada */
#loginButton {
    font-size: 0.9rem;
    padding: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mejoras para los botones de tipo de usuario */
.btn-check + label {
    min-height: 80px;
    font-size: 0.8rem;
}

.btn-check + label span {
    line-height: 1.2;
    word-break: break-word;
}

/* Responsive para pantallas pequeñas */
@media (max-width: 576px) {
    #loginButton {
        font-size: 0.8rem;
        padding: 0.6rem;
    }
    
    .btn-check + label {
        min-height: 70px;
        font-size: 0.7rem;
        padding: 0.5rem !important;
    }
    
    .btn-check + label i {
        font-size: 1.2rem !important;
        margin-bottom: 0.3rem !important;
    }
}

/* Partners Section Styles */
.partners-section {
    background: transparent;
}

.partner-card {
    transition: all 0.3s ease;
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.partner-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    border-color: var(--orange-primary);
}

.partner-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--orange-primary), var(--blue-primary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.partner-card:hover::before {
    transform: scaleX(1);
}

.partner-logo {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    margin: 0 auto 1rem;
    width: 120px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
}

/* Horizontal Partner Cards */
.partner-card-horizontal {
    width: 100%;
    border: 2px solid transparent;
    border-radius: 15px;
    padding: 1.25rem 1.5rem;
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
}

.partner-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    border-color: var(--blue-light);
}

.partner-card-horizontal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--orange-primary), var(--blue-primary));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.partner-card-horizontal:hover::before {
    transform: scaleY(1);
}

.partner-logo-horizontal {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(248,249,250,0.8);
    border-radius: 12px;
    flex-shrink: 0;
    margin-right: 1rem;
}

.partner-logo-horizontal img {
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(30%);
    transition: filter 0.3s ease;
}

.partner-card-horizontal:hover .partner-logo-horizontal img {
    filter: grayscale(0%);
}

.partner-card-horizontal h5 {
    color: var(--gray-dark);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.partner-card-horizontal .text-muted {
    font-size: 0.8rem;
    line-height: 1.3;
    margin-bottom: 0.5rem;
    color: #6c757d;
}

.partner-card-horizontal .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.partner-card-horizontal .btn:hover {
    background-color: var(--orange-primary);
    border-color: var(--orange-primary);
    color: white;
    transform: scale(1.05);
}

/* Responsive Partners Section */
@media (max-width: 768px) {
    .partners-section {
        padding: 3rem 0 !important;
    }
    
    .partner-card {
        margin-bottom: 1.5rem;
    }
    
    .partner-logo {
        width: 100px;
        height: 80px;
    }
    
    .partner-card h5 {
        font-size: 1rem;
    }
    
    .partner-card .text-muted {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .partners-section .container {
        padding: 0 1rem;
    }
    
    .partner-logo {
        width: 90px;
        height: 70px;
    }
    
    .partner-card {
        padding: 1.5rem !important;
    }
}

/* Contact Footer Styles */
.contact-footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    border-top: 3px solid var(--orange-primary);
}

.contact-footer .fas,
.contact-footer .fab {
    color: var(--orange-primary);
}

.contact-footer .btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(37, 211, 102, 0.3);
}

.contact-footer .btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
}

.contact-footer .btn-success .fab {
    color: white;
    font-size: 1.1rem;
}

.contact-footer span.fw-semibold {
    color: #ecf0f1;
    font-size: 0.95rem;
}

/* Responsive Contact Footer */
@media (max-width: 768px) {
    .contact-footer {
        padding: 1.5rem 0 !important;
    }
    
    .contact-footer .d-flex {
        flex-direction: column;
        align-items: center !important;
    }
    
    .contact-footer .me-4 {
        margin-right: 0 !important;
        margin-bottom: 0.8rem !important;
    }
    
    .contact-footer .btn-success {
        margin-top: 1rem;
        padding: 0.6rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .contact-footer span.fw-semibold {
        font-size: 0.85rem;
    }
    
    .contact-footer .fas,
    .contact-footer .fab {
        font-size: 0.9rem;
    }
}
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: 60px;
    background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
    color: white;
    border-radius: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    font-weight: 600;
    font-size: 15px;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.whatsapp-float i {
    font-size: 28px;
    animation: pulse 2s infinite;
}

.whatsapp-text {
    white-space: nowrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Animacin de pulso para el cono */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive para mviles */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 60px;
        height: 60px;
        padding: 0;
        border-radius: 50%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .whatsapp-float i {
        font-size: 32px;
    }
}

/* Tablet - texto ms corto */
@media (min-width: 769px) and (max-width: 1024px) {
    .whatsapp-float {
        padding: 0 20px;
    }
    
    .whatsapp-text {
        font-size: 14px;
    }
}
