/* Estilos específicos para la página de Consultorios Externos */

/* Estilos responsivos adicionales para el header */
@media (max-width: 768px) {
  .top-header {
    flex-direction: column !important;
    padding: 10px !important;
    gap: 10px !important;
  }
  
  .contact-info {
    flex-direction: column !important;
    gap: 5px !important;
    text-align: center !important;
  }
  
  .contact-info span {
    font-size: 12px !important;
  }
  
  .header-buttons {
    justify-content: center !important;
  }
  
  .main-header {
    padding: 15px !important;
    text-align: center !important;
  }
  
  .logo-section {
    flex-direction: column !important;
    align-items: center !important;
  }
  
  .logo-mdm {
    width: 60px !important;
    height: 60px !important;
    margin-bottom: 10px !important;
  }
  
  .logo-texto {
    text-align: center !important;
  }
  
  .logo-texto-line1 {
    font-size: 16px !important;
  }
  
  .ext-logo-texto-line2 {
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  .top-header {
    padding: 8px !important;
  }
  
  .contact-info span {
    font-size: 11px !important;
  }
  
  .logo-mdm {
    width: 50px !important;
    height: 50px !important;
  }
  
  .logo-texto-line1 {
    font-size: 14px !important;
  }
  
  .ext-logo-texto-line2 {
    font-size: 10px !important;
  }
}

/* Estilos específicos para móvil */
.mobile-device .especialidades-grid {
  display: block !important;
}

.mobile-device .especialidades-grid > div {
  width: 100% !important;
  margin-bottom: 15px !important;
}

/* Navegación */
.nav-back-container {
  text-align: center;
  margin-top: 40px;
}

.nav-back-link {
  display: inline-block;
  background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
  color: white;
  padding: 15px 30px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  box-shadow: 0 4px 8px rgba(25,118,210,0.3);
  transition: all 0.3s ease;
}

.nav-back-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(25,118,210,0.4);
}

/* Contenido principal */
.externos-content {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.externos-title {
  color: #e0e0e0;
}

.externos-description {
  color: #e0e0e0;
}

/* Grid de consultorios */
.consultorios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

/* Tarjetas de consultorio */
.consultorio-card {
  background-color: #ffffff;
  padding: 25px;
  border-radius: 12px;
  border-left: 5px solid #7b1fa2;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.consultorio-header {
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.consultorio-header h3 {
  color: #7b1fa2;
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.consultorio-badge {
  background-color: #f3e5f5;
  color: #7b1fa2;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.consultorio-info {
  margin-bottom: 20px;
}

.consultorio-info p {
  margin: 8px 0;
}

.especialidades-title {
  color: #333;
  margin-bottom: 15px;
  font-size: 16px;
}

/* Grid de especialidades */
.especialidades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.especialidades-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.especialidad-item {
  padding: 8px 12px;
  border-bottom: 1px solid #f0f0f0;
  position: relative;
  padding-left: 20px;
}

.especialidad-item:last-child {
  border-bottom: none;
}

/* Sección de información importante */
.info-important {
  background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
  padding: 25px;
  border-radius: 12px;
  margin-top: 40px;
  border: 1px solid #1976d2;
  box-shadow: 0 2px 6px rgba(25,118,210,0.1);
}

.info-important h3 {
  color: #1976d2;
  margin-bottom: 20px;
  font-size: 22px;
  display: flex;
  align-items: center;
}

.info-icon {
  background-color: #1976d2;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 14px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  background-color: rgba(255,255,255,0.7);
  padding: 15px;
  border-radius: 8px;
}

.info-item strong {
  color: #1976d2;
}

.info-item span {
  color: #555;
}

/* Sección de contacto */
.contact-section {
  background: linear-gradient(135deg, #f1f8e9 0%, #e8f5e8 100%);
  padding: 30px;
  border-radius: 12px;
  margin-top: 25px;
  text-align: center;
  border: 1px solid #2e7d32;
  box-shadow: 0 2px 6px rgba(46,125,50,0.1);
}

.contact-card {
  background-color: rgba(255,255,255,0.9);
  padding: 25px;
  border-radius: 10px;
  display: inline-block;
  min-width: 300px;
}

.contact-title {
  color: #2e7d32;
  margin-bottom: 15px;
  font-size: 20px;
}

.contact-phone {
  background-color: #2e7d32;
  color: white;
  padding: 15px;
  border-radius: 8px;
  margin: 15px 0;
}

.contact-phone p {
  font-size: 24px;
  font-weight: bold;
  margin: 0;
  color: white;
}

.contact-hours {
  color: #555;
  margin: 10px 0;
}

.contact-email {
  background-color: #f1f8e9;
  padding: 10px;
  border-radius: 6px;
  margin-top: 15px;
}

.contact-email p {
  margin: 0;
  color: #2e7d32;
}

/* Responsive: Estilos móviles específicos para externos */
@media (max-width: 768px) {
  .content {
    padding: 10px !important;
  }
  
  .consultorios-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .consultorio-card {
    padding: 15px !important;
  }
  
  .consultorio-header h3 {
    font-size: 18px !important;
  }
  
  .consultorio-header {
    text-align: center;
  }
  
  .consultorio-badge {
    display: block !important;
    text-align: center;
    margin-top: 10px;
  }
  
  .consultorio-info p {
    font-size: 14px;
  }
  
  .especialidades-grid {
    display: block !important;
    grid-template-columns: none !important;
  }
  
  .especialidades-grid > div {
    margin-bottom: 20px;
    width: 100%;
  }
  
  .info-important {
    padding: 15px !important;
  }
  
  .info-important h3 {
    font-size: 18px !important;
    flex-direction: column;
    align-items: flex-start !important;
  }
  
  .info-important h3 span {
    margin-bottom: 10px;
    margin-right: 0 !important;
  }
  
  .info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .contact-section {
    padding: 20px !important;
  }
  
  .contact-card {
    min-width: auto !important;
    width: 100% !important;
  }
  
  .nav-back-container {
    margin-top: 20px;
  }
  
  .nav-back-link {
    padding: 12px 20px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .externos-content {
    padding: 10px;
  }
  
  .consultorio-info p {
    font-size: 14px;
  }
  
  .contact-phone p {
    font-size: 20px;
  }
  
  .especialidades-title {
    text-align: center;
  }
}
