/* Estilos para páginas de especialidades */

/* Navigation Image Section */
.nav-image-section {
  position: relative;
  height: 50vh;
  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;
}

.specialty-hero-content {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.specialty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.specialty-hero-content h1 {
  font-size: 4rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  color: white !important;
}

.specialty-hero-content p {
  font-size: 1.5rem;
  font-weight: 300;
  margin: 0;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Specialty Overview */
.specialty-overview-section {
  padding: 5rem 0;
  background: white;
}

.overview-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.overview-text h2 {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.overview-description {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 2rem;
  text-align: justify;
}

.specialty-stats {
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, var(--color-primary), #1565c0);
  border-radius: 15px;
  color: white;
  flex: 1;
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.3);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.9;
}

.overview-image {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.overview-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.overview-image:hover img {
  transform: scale(1.05);
}

/* Services Section */
.services-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.section-title {
  text-align: center;
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border-top: 4px solid var(--color-primary);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  font-weight: 600;
}

.service-card p {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* Conditions Section */
.conditions-section {
  padding: 5rem 0;
  background: white;
}

.conditions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.condition-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 15px;
  border-left: 4px solid var(--color-secondary);
  transition: all 0.3s ease;
}

.condition-item:hover {
  background: #e9ecef;
  transform: translateX(5px);
}

.condition-number {
  background: var(--color-primary);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.condition-name {
  font-size: 1.1rem;
  color: var(--color-text);
  font-weight: 500;
}

/* Doctors Section */
.doctors-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
}

.doctor-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.doctor-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.doctor-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.doctor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.doctor-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;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.doctor-card:hover .doctor-overlay {
  opacity: 1;
}

.contact-info {
  display: flex;
  gap: 1rem;
}

.contact-btn {
  background: white;
  color: var(--color-primary);
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-btn:hover {
  background: var(--color-primary);
  color: white;
  transform: scale(1.05);
}

.doctor-info {
  padding: 2rem;
}

.doctor-info h3 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.doctor-title {
  font-size: 1.2rem;
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.doctor-specialization {
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e9ecef;
}

.doctor-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.detail-section h4 {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.detail-section h4::before {
  content: "📋";
  font-size: 1rem;
}

.detail-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-section li {
  padding: 0.3rem 0;
  color: var(--color-text);
  font-size: 0.9rem;
  position: relative;
  padding-left: 1.5rem;
}

.detail-section li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.detail-section p {
  color: var(--color-text);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

.appointment-btn {
  width: 100%;
  background: linear-gradient(45deg, var(--color-primary), #1565c0);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.appointment-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.4);
}

/* Technology Section */
.technology-section {
  padding: 5rem 0;
  background: white;
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.tech-card {
  display: flex;
  background: #f8f9fa;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.tech-image {
  width: 40%;
  height: 200px;
}

.tech-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-content {
  width: 60%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.tech-content h3 {
  font-size: 1.4rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.tech-content p {
  color: var(--color-text);
  line-height: 1.6;
  font-size: 1rem;
}

/* Contact and Schedule Section */
.contact-schedule-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--color-primary), #1565c0);
  color: white;
}

.contact-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.schedule-card,
.contact-card {
  background: rgba(255, 255, 255, 0.1);
  padding: 2.5rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.schedule-card h3,
.contact-card h3 {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

.schedule-info,
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.schedule-item,
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.schedule-icon,
.contact-icon {
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.schedule-item strong,
.contact-item strong {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.schedule-item p,
.contact-item p {
  margin: 0;
  opacity: 0.9;
}

.contact-item small {
  opacity: 0.7;
  font-size: 0.9rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: white;
  color: var(--color-primary);
}

.btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
  background: white;
  color: var(--color-primary);
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  color: white !important;
  font-family: var(--font-family-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .overview-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .doctor-details {
    grid-template-columns: 1fr;
  }
  
  .tech-card {
    flex-direction: column;
  }
  
  .tech-image {
    width: 100%;
    height: 250px;
  }
  
  .tech-content {
    width: 100%;
  }
  
  .contact-schedule-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-image-section {
    margin-top: 110px; /* Ajuste para mobile: 85px + 25px */
    height: 40vh;
  }

  .specialty-hero-content h1 {
    font-size: 2.5rem;
  }
  
  .specialty-hero-content p {
    font-size: 1.2rem;
  }
  
  .specialty-icon {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .conditions-grid {
    grid-template-columns: 1fr;
  }
  
  .doctors-grid {
    grid-template-columns: 1fr;
  }
  
  .technology-grid {
    grid-template-columns: 1fr;
  }
  
  .specialty-stats {
    flex-direction: column;
    gap: 1rem;
  }
  
  .contact-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .nav-image-section {
    margin-top: 100px; /* Ajuste para móviles pequeños: 75px + 25px */
    height: 35vh;
  }

  .specialty-overview-section,
  .services-section,
  .conditions-section,
  .doctors-section,
  .technology-section,
  .contact-schedule-section {
    padding: 3rem 0;
  }
  
  .specialty-hero-content h1 {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .service-card,
  .schedule-card,
  .contact-card {
    padding: 1.5rem;
  }
  
  .doctor-info {
    padding: 1.5rem;
  }
}