/* Estilos para la página Servicios */

/* Navigation Image Section */
.nav-image-section {
  position: relative;
  height: 33.33vh;
  margin-top: 125px; /* 100px (top de floating-nav) + 25px (mitad estimada del nav-content) */
  z-index: 1;
  overflow: hidden;
}

.nav-image-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.nav-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nav-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(1, 88, 122, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-image-overlay .container {
  text-align: center;
  color: white;
}

.nav-image-overlay h2 {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  color: white !important;
}

.nav-image-overlay p {
  font-size: var(--font-size-lg);
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Services Dashboard */
.services-dashboard-section {
  padding: 5rem 0;
  background-color: #f8f9fa;
  min-height: 80vh;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: var(--font-family-subtitle);
  font-size: var(--font-size-3xl);
  color: var(--primary-color) !important;
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.section-subtitle {
  font-family: var(--font-family-subtitle);
  font-size: 1.2rem;
  color: var(--text-primary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.dashboard-container {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Vertical Menu */
.services-menu {
  background: var(--gradient-primary);
  color: white;
  height: 80vh;
  overflow-y: auto;
  position: sticky;
  top: 2rem;
}

.menu-header {
  padding: 2rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  position: sticky;
  top: 0;
  background: inherit;
  z-index: 10;
}

.menu-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  text-align: center;
  color: white;
}

.menu-items {
  padding: 0.5rem 0;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: left;
  border-left: 4px solid transparent;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  border-left-color: var(--accent-light);
}

.menu-item.active {
  background: rgba(255, 255, 255, 0.15);
  border-left-color: var(--accent-light);
  box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.service-icon {
  font-size: 1.8rem;
  min-width: 2.5rem;
  text-align: center;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-name {
  font-family: var(--font-family-subtitle);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
}

.service-category {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Service Details Panel */
.service-details {
  padding: 2rem;
  height: 80vh;
  overflow-y: auto;
}

.service-display {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

.service-display.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.service-image {
  position: relative;
  width: 100%;
  height: 300px;
  margin-bottom: 2rem;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.service-image:hover img {
  transform: scale(1.05);
}

.service-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--accent-turquoise);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  font-family: var(--font-family-subtitle);
  font-size: 0.85rem;
  font-weight: var(--font-weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.service-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-header {
  text-align: center;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid #e9ecef;
}

.service-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-family-heading);
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-weight: var(--font-weight-bold);
}

.title-icon {
  font-size: 2rem;
}

.service-description {
  font-family: var(--font-family-primary);
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: var(--line-height-relaxed);
  max-width: 800px;
  margin: 0 auto;
}

.service-info-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  margin: 2rem 0;
}

.info-section h4 {
  font-family: var(--font-family-subtitle);
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: var(--font-weight-semibold);
}

.info-section h4::before {
  content: "📋";
  font-size: 1.2rem;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-features li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  padding-left: 2rem;
  line-height: 1.5;
}

.service-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.1rem;
}

.service-features li:last-child {
  border-bottom: none;
}

.service-hours,
.service-doctor {
  background: var(--bg-secondary);
  padding: 1rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 1rem;
  font-family: var(--font-family-primary);
  font-weight: var(--font-weight-medium);
  border-left: 4px solid var(--primary-color);
}

.service-hours {
  color: var(--primary-dark);
  font-weight: var(--font-weight-semibold);
}

.service-doctor {
  color: var(--primary-dark);
  font-weight: var(--font-weight-semibold);
}

.service-actions {
  display: flex;
  justify-content: center;
  padding-top: 2rem;
  border-top: 2px solid #e9ecef;
}

.btn-primary {
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--border-radius-full);
  font-family: var(--font-family-subtitle);
  font-size: 1rem;
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 5px 15px var(--shadow-primary);
  text-decoration: none;
  display: inline-block;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--shadow-primary);
  background: var(--gradient-accent);
  text-decoration: none;
  color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .dashboard-container {
    grid-template-columns: 300px 1fr;
    gap: 1rem;
  }
  
  .services-menu {
    height: 70vh;
  }
  
  .service-details {
    height: 70vh;
    padding: 1.5rem;
  }
  
  .service-info-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-image-section {
    margin-top: 110px; /* Ajuste para mobile: 85px + 25px */
  }

  .nav-image-overlay h2 {
    font-size: var(--font-size-3xl);
  }

  .services-dashboard-section {
    padding: 3rem 0;
  }
  
  .section-title {
    font-size: var(--font-size-3xl);
  }
  
  .dashboard-container {
    grid-template-columns: 1fr;
    margin: 0 1rem;
  }
  
  .services-menu {
    height: auto;
    position: static;
    order: 2;
    max-height: 400px;
  }
  
  .service-details {
    order: 1;
    height: auto;
    padding: 1rem;
  }
  
  .menu-item {
    padding: 0.8rem 1rem;
  }
  
  .service-icon {
    font-size: 1.5rem;
    min-width: 2rem;
  }
  
  .service-name {
    font-size: 0.9rem;
  }
  
  .service-category {
    font-size: 0.75rem;
  }
  
  .service-title {
    font-size: 2rem;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .service-actions {
    align-items: center;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .nav-image-section {
    margin-top: 100px; /* Ajuste para móviles pequeños: 75px + 25px */
  }

  .nav-image-overlay h2 {
    font-size: var(--font-size-2xl);
  }

  .services-dashboard-section {
    padding: 2rem 0;
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .dashboard-container {
    margin: 0 0.5rem;
    border-radius: 10px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .service-title {
    font-size: 1.5rem;
  }
  
  .service-description {
    font-size: 1rem;
  }
  
  .menu-header {
    padding: 1rem;
  }
  
  .menu-header h3 {
    font-size: 1.1rem;
  }
}