:root {
  --primary-color: #0077b6;
  --secondary-color: #20263b;
  --tercer-color: #4d5978;
  --accent-color: #e6f0ff;
  --heading-font: 'Playfair Display', serif;
  --body-font: 'Montserrat', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--body-font);
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #f8f9fa;
}

nav {
  background: white;
  padding: 1rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
#backToTop {
  position: fixed;
  bottom: 90px; /* Ajustado para que esté arriba del botón de WhatsApp */
  right: 25px;
  background-color:var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  font-size: 18px;
  display: none; /* Inicialmente oculto */
  cursor: pointer;
  z-index: 1000; /* Mayor que el botón de WhatsApp */
}
.nav-top {
    background: #f1f1f1;
    font-size: 0.95rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 10%;
  background: var(--secondary-color);
  color: white;
  font-size: 0.9em;
}

.nav-top a {
  color: white;
  text-decoration: none;
  font-size: 0.9em;
}

.nav-top a:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.contact-info {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  max-width: 100%; /* Evita que los elementos se desborden */
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap; /* Permite que el contenido se ajuste */
  max-width: 100%; /* Limita el ancho máximo */
  overflow: hidden; /* Evita desbordamientos */
}

.contact-info i {
  font-size: 1.2em;
  color: var(--accent-color);
  width: 20px;
  text-align: center;
  flex-shrink: 0; /* Evita que el ícono cambie de tamaño */
}

.contact-info a {
  color: white;
  text-decoration: none;
  word-break: break-word; /* Permite cortar palabras si es necesario */
  overflow-wrap: break-word;
  display: inline-block; /* Evita que el correo se desborde */
  max-width: calc(100% - 30px); /* Ajusta el ancho del correo para no desbordar */
}

.contact-info a:hover {
  color: var(--accent-color);
}


.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding-left: 2rem;
  border-left: 1px solid rgba(255,255,255,0.2);
}

.social-links a {
  color: white;
  font-size: 1.2em;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--accent-color);
  transform: translateY(-2px);
}

@media (max-width: 1200px) {
  .nav-top {
      padding: 0.8rem 5%;
  }
  
  .contact-info {
      gap: 1rem;
  }
}

@media (max-width: 992px) {
  .contact-info span {
      font-size: 0.85em;
  }
}

.nav-middle {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 1rem 2rem;
  background: white;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  margin-right: auto;
  padding-right: 2rem;
}

.logo:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.logo img {
  height: 70px;
  width: auto;
}

@media (max-width: 768px) {
  .logo img {
      height: 50px;
  }
}

.nav-bottom {
  background: var(--secondary-color);
  padding: 0.5rem 2rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
  border-radius: 4px;
  position: fixed;
  right: 1rem;
  top: 1rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: white;
  transition: transform 180ms ease, opacity 150ms ease;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1em;
  padding: 0.5rem 1rem;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  position: relative;
}

.nav-links a:hover {
  color: var(--accent-color);
  transform: scale(1.1);
}

.nav-links a.active {
  color: var(--accent-color);
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.nav-links a.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: var(--accent-color);
}
@media (max-width: 768px) {
  .nav-top {
      display: none;
  }
  .nav-middle {
      padding: 0.5rem;
      flex-direction: column;
      gap: 1rem;
      text-align: center;
  }
  
  .logo {
      margin-right: 0;
      padding-right: 0;
      justify-content: center;
  }
  
  .menu-toggle {
      display: flex;
  }
  
  .nav-links {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      background: var(--primary-color);
      padding-top: 60px;
      height: 100vh;
      flex-direction: column;
      overflow-y: auto;
  }
  
  .nav-links.active {
      display: flex;
  }
  .nav-links a {
      padding: 0.8rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .nav-links a:last-child {
      border-bottom: none;
  }
  .nav-links {
      gap: 0.5rem;
  }
  
  .slide-dot {
      width: 45px; 
      height: 45px;
  }

}

@media (max-width: 768px) {

  .cta-button {
      padding: 0.8rem 1.5rem !important;
      font-size: 1em;
  }
}
.cta-button {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white !important;
  padding: 1rem 2rem !important;
  border: none;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.3s ease;
  font-size: 1.1em;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.cta-button:hover {
  background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.4);
  transform: scale(1.05);
}


.cta-button {
  position: relative;
  z-index: 10; /* Asegúrate de que sea mayor que el z-index del slide */
  cursor: pointer;
}
.slider-container {
  margin-top: 180px;
  height: 80vh;
  position: relative;
  overflow: hidden;
}

@media (max-width: 480px) {
  .slider-container {
      margin-top: 240px; 
  }
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 90%; /* Reducción de altura */
  opacity: 0;
  transition: all 1.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.95);
  z-index: 1;
  pointer-events: auto;
}


.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2; /* Eleva el slide activo sobre los botones */
  pointer-events: auto;
}

.slide-button {
  position: relative; /* Ajuste para estar sobre el slide */
  z-index: 3; /* Más alto que el slide activo */
  margin-top: 1.5rem;
}
.slider-btn {
  display: relative;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  font-size: 1.2em;
  font-weight: 600;
  color: white;
  background-color: var(--primary-color);
  border-radius: 25px;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

  left: 0;
  bottom: -3rem;
}

.slider-btn:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.slide.active {
  opacity: 1;
  transform: scale(1);
}


.slide-content {
  display: flex;
  width: 80%;
  margin: auto;
  align-items: center;
  justify-content: space-between;
}

.slide-text {
  flex: 1;
  padding: 2rem;
}

.slide-text h1 {
  font-family: var(--heading-font);
  font-size: 3.5em;
  margin-bottom: 0.5em;
  color: var(--secondary-color);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.3s;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.slide-text h2 {
  font-family: var(--heading-font);
  font-size: 2.2em;
  margin-bottom: 1em;
  color: var(--primary-color);
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.6s;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.slide-text p {
  font-size: 1.3em;
  margin-bottom: 1.8em;
  line-height: 1.8;
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.9s;
  color: #333;
  font-weight: 400;
}

.slide-text .cta-button {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 1.2s;
}

.slide-image {
  flex: 1;
  text-align: center;
  opacity: 0;
  animation: fadeInRight 0.8s ease-out forwards;
  animation-delay: 0.6s;
  position: relative;
  height: 400px;
  width: 400px;
}

.slide-image svg {
  position: absolute;
  top: 0;
  left: 0;
}

.slide-image img.doctor-vector {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
  animation-delay: 1.6s;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

.slider-nav {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 15px;
  z-index: 100;
}

.slide-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid var(--primary-color);
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.slide-dot.active {
  border-color: var(--secondary-color);
  transform: scale(1.2);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.slide-dot svg {
  width: 40px;
  height: 40px;
}
.dot-image {
  width: 30px;  /* Ajusta el tamaño según lo que necesites */
  height: 30px;
  border-radius: 50%;  /* Para que sea circular */
  object-fit: cover;  /* Asegura que la imagen se recorte bien dentro del círculo */
}

@keyframes slideIn {
  from {
      transform: translateX(100%);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
      opacity: 0;
      transform: translateX(20px);
  }
  to {
      opacity: 1;
      transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
  }
  to {
      opacity: 1;
  }
}

.animate-in {
  animation: slideIn 1s ease-out forwards;
}

@media (max-width: 768px) {
.slide-content {
flex-direction: column;
padding: 3rem 1rem;
width: 95%;
gap: 2rem;
}

.slide-text {
text-align: center;
padding: 1rem;
order: 1;
width: 100%;
}

.slide-image {
  order: 2;
  margin: 0 auto;
  width: 90%;
  max-width: 300px;
  height: auto;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Subir la imagen */
  opacity: 1;
  padding-top: 3.5rem; /* Añadir espacio arriba */
}

.slide-image img.doctor-vector {
width: 100%;
height: auto; /* Asegura que la altura se ajuste al ancho */
object-fit: contain;
display: block; /* Para evitar que se recorte */
}

.slide-dot {
width: 45px; 
height: 45px;
}

.cta-button {
padding: 0.8rem 1.5rem !important;
font-size: 1em;
}
}
@media (max-width: 768px) {
  .p .intro-text {
    font-size: 14px;
    line-height: 1.4;
  }
}

/* Mejoras Responsive para Móviles */
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    padding: 1.5rem;
    width: 100%;
    gap: 1.5rem;
  }

  .slide-text {
    text-align: center;
    padding: 1rem;
    width: 100%;
  }

  .slide-text h1 {
    font-size: 2.2em;
  }

  .slide-text h2 {
    font-size: 1.6em;
  }

  .slide-text p {
    font-size: 1em;
    line-height: 1.5;
  }
}
@media (max-width: 768px) {
  .slide-image {
    width: 85%;
    max-width: 280px;
    margin: 0 auto;
    height: auto;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateY(0); /* Restablecer para móviles */
  }

  .slide-image img.doctor-vector {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
}
@media (max-width: 480px) {
  .slide-content {
    padding: 1rem;
    gap: 1rem;
  }

  .slide-text h1 {
    font-size: 1.8em;
  }

  .slide-text h2 {
    font-size: 1.3em;
  }

  .slide-text p {
    font-size: 0.7em;
  }

  .slide-image {
    max-width: 220px;
  }

  .slider-nav {
    gap: 10px;
  }

  .slide-dot {
    width: 35px;
    height: 35px;
  }
}


.contact-info {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.contact-info span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  font-size: 1.2em;
  color: var(--accent-color);
}

@media (max-width: 768px) {
  .nav-links .mobile-nav-top {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      width: 100%;
  }

  .nav-links .contact-info {
      flex-direction: column;
      gap: 0.5rem;
      color: white;
  }

  .nav-links .social-links {
      justify-content: center;
      margin-top: 0.5rem;
  }
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: var(--primary-color);
  border: none;
  cursor: pointer;
  padding: 0.8rem;
  z-index: 1001;
  border-radius: 4px;
  position: fixed;
  right: 1rem;
  top: 1rem;
}

@media (max-width: 768px) {
  .menu-toggle {
      display: flex;
  }
  
  .mobile-nav-top {
      display: block !important;
  }
  
  .nav-links .mobile-nav-top {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      padding: 1rem;
      border-bottom: 1px solid rgba(255,255,255,0.1);
      width: 100%;
  }
  
  .nav-top {
      display: none;
  }
}

@media (min-width: 769px) {
  .mobile-nav-top {
      display: none !important;
  }
}

/* New styles for about section */
.about-preview {
  padding: 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

.about-preview .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  gap: 4rem;
}

.about-preview .image-container {
  flex: 1;
  position: relative;
}

.about-preview .image-container img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.about-preview .image-container:hover img {
  transform: translateY(-10px);
}

.about-preview .content {
  flex: 1;
}

.about-preview h2 {
  font-family: var(--heading-font);
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.about-preview .subtitle {
  font-size: 1.2em;
  color: var(--primary-color);
  margin-bottom: 2rem;
  font-weight: 600;
}

.about-preview p {
  font-size: 1.1em;
  line-height: 1.8;
  color: #444;
  margin-bottom: 2rem;
}

.about-preview .about-btn {
  display: inline-block;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,102,204,0.3);
}

.about-preview .about-btn:hover {
  background: var(--secondary-color);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0,102,204,0.4);
}

@media (max-width: 768px) {
  .about-preview .container {
      flex-direction: column;
      text-align: center;
      gap: 2rem;
  }
  
  .about-preview {
      padding: 3rem 0;
  }
  
  .about-preview h2 {
      font-size: 2em;
  }
}

/* Styles for schedule section */
.schedule-preview {
padding: 6rem 0;
background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

.schedule-preview .container {
max-width: 1200px;
margin: 0 auto;
padding: 0 2rem;
display: flex;
align-items: center;
gap: 4rem;
}

.schedule-preview .image-container {
flex: 1;
}

.schedule-preview .calendar-img {
width: 100%;
max-width: 600px; /* Aumentado para escritorio */
border-radius: 10px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.schedule-preview .content {
flex: 1;
}

.schedule-preview h2 {
font-family: var(--heading-font);
font-size: 2.5em;
color: var(--secondary-color);
margin-bottom: 1rem;
}

.schedule-preview .subtitle {
font-size: 1.2em;
color: var(--primary-color);
margin-bottom: 2rem;
font-weight: 600;
}

.schedule-preview p {
font-size: 1.1em;
line-height: 1.8;
color: #444;
margin-bottom: 2rem;
}

.schedule-preview .schedule-btn {
display: inline-block;
padding: 1rem 2rem;
background: var(--primary-color);
color: white;
text-decoration: none;
border-radius: 50px;
font-weight: 600;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.schedule-preview .schedule-btn:hover {
background: var(--secondary-color);
transform: translateY(-3px);
box-shadow: 0 6px 20px rgba(0, 102, 204, 0.4);
}

@media (max-width: 768px) {
  .schedule-preview .container {
  flex-direction: column;
  text-align: center;
  gap: 2rem;
  }

  .schedule-preview {
  padding: 3rem 0;
  }

  .schedule-preview h2 {
  font-size: 2em;
  }

  .schedule-preview .calendar-img {
  max-width: 400px; /* Tamaño reducido para dispositivos móviles */
  height: auto;
  }
}

/* ====== SECCIÓN PRINCIPAL ====== */
.locations-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

.locations-section .container {
  max-width: 1200px;
  margin: 140px auto;
  padding: 0 2rem;
}

.locations-section h2 {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

/* ====== CONTENEDOR DE TARJETAS ====== */
.location-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== TARJETA INDIVIDUAL ====== */
.location-card {
  background: white;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-card:hover {
  transform: translateY(-5px);
}

/* ====== IMAGEN DE LA TARJETA ====== */
.location-card .location-image {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.location-card .location-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.location-card:hover .location-image img {
  transform: scale(1.05);
}

/* ====== LINKS Y TEXTO ====== */
.location-card .map-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.location-card .map-link:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.location-card h3 {
  color: var(--secondary-color);
  font-family: var(--heading-font);
  font-size: 1.5em;
  margin-bottom: 0.5rem;
}

.location-card .subtitle {
  color: var(--primary-color);
  font-size: 1.1em;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* ====== DETALLES DE LA UBICACIÓN ====== */
.location-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-details h4 {
  color: var(--secondary-color);
  margin-bottom: 0.8rem;
  font-size: 1.2em;
}

.location-details p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.location-details i {
  color: var(--primary-color);
  width: 20px;
}

/* ====== LISTA DE SERVICIOS ====== */
.location-details ul {
  list-style: none;
  padding-left: 1rem;
}

.location-details ul li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.5rem;
}

.location-details ul li .whatsapp-link {
  position: absolute;
  left: 0;
  top: 0;
  font-size: 1.2em;
  color: var(--primary-color);
  text-decoration: none;
}

.location-details ul li .whatsapp-link:hover {
  color: var(--secondary-color);
}

/* ====== RESPONSIVE DESIGN ====== */
@media (min-width: 1200px) {
  .location-cards {
    grid-template-columns: repeat(4, 1fr); /* 4 tarjetas por fila en pantallas grandes */
  }
}

@media (max-width: 1024px) {
  .location-cards {
    grid-template-columns: repeat(3, 1fr); /* 3 tarjetas en tablets */
  }
}

@media (max-width: 768px) {
  .location-cards {
    grid-template-columns: repeat(2, 1fr); /* 2 tarjetas en móviles grandes */
  }
}

@media (max-width: 480px) {
  .location-cards {
    grid-template-columns: repeat(1, 1fr); /* 1 tarjeta por fila en móviles pequeños */
  }
}

       /* New styles for about-me section */
       .about-me-preview {
        padding: 8rem 0;
        background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
    }

    .about-me-preview .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 2rem;
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 4rem;
        align-items: start;
    }

    .about-me-preview .image-container {
        position: sticky;
        top: 220px;
    }

    .about-me-preview .image-container img {
        width: 100%;
        border-radius: 20px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.1);
        transition: transform 0.3s ease;
    }

    .about-me-preview .content-about-me {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .about-me-preview h2 {
        font-family: var(--heading-font);
        font-size: 3em;
        color: var(--secondary-color);
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .about-me-preview .subtitle {
        font-size: 1.4em;
        color: var(--primary-color);
        font-weight: 600;
        letter-spacing: -0.01em;
    }

    .about-me-preview h3 {
        font-family: var(--heading-font);
        font-size: 2em;
        color: var(--secondary-color);
        margin: 1rem 0;
        border-bottom: 2px solid var(--accent-color);
        padding-bottom: 0.5rem;
    }

    .education-list {
        list-style: none;
        padding-left: 0;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .education-list li {
        padding: 1rem;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        transition: transform 0.3s ease;
        position: relative;
        padding-left: 2.5rem;
        line-height: 1.6;
    }

    .education-list li:before {
        content: "•";
        color: var(--primary-color);
        font-size: 1.5em;
        position: absolute;
        left: 1rem;
    }

    .education-list li:hover {
        transform: translateX(5px);
    }

    .pillars {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
        margin: 2rem 0;
    }

    .pillar {
        padding: 2rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        transition: all 0.3s ease;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .pillar:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 25px rgba(0,0,0,0.12);
    }

    .pillar h4 {
        color: var(--primary-color);
        font-size: 1.4em;
        margin-bottom: 0.5rem;
        font-family: var(--heading-font);
    }

    .research-profile {
        padding: 2rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .research-link {
        display: inline-flex;
        align-items: center;
        gap: 0.5rem;
        padding: 1rem 2rem;
        background: var(--primary-color);
        color: white;
        text-decoration: none;
        border-radius: 50px;
        font-weight: 600;
        margin-top: 1rem;
        transition: all 0.3s ease;
    }

    .research-link:hover {
        background: var(--secondary-color);
        transform: translateY(-3px);
    }

    .philosophy {
        padding: 2rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    }

    .philosophy p {
        line-height: 1.8;
        font-size: 1.1em;
        color: #444;
    }

    @media (max-width: 1200px) {
        .about-me-preview .container {
            grid-template-columns: 1fr;
            gap: 3rem;
        }

        .about-me-preview .image-container {
            position: static;
            max-width: 500px;
            margin: 0 auto;
        }
    }

    @media (max-width: 768px) {
        .about-me-preview {
            padding: 6rem 0;
        }

        .about-me-preview .container {
            padding: 1rem;
        }

        .pillars {
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .about-me-preview h2 {
            font-size: 2.2em;
        }

        .about-me-preview h3 {
            font-size: 1.8em;
        }

        .pillar {
            padding: 1.5rem;
        }

        .education-list li {
            font-size: 0.95em;
        }
    }
    .slider-certificaciones-container { 
      width: 100%;
      overflow: hidden;
      position: relative;
      max-width: 1200px;
      border: 2px solid #ddd;
      border-radius: 8px;
  }

  .slider-certificaciones-track {
      display: flex;
      transition: transform 0.3s ease-in-out;
      cursor: grab;
  }

  .slider-certificaciones-track:active {
      cursor: grabbing;
  }

  .slider-certificaciones-item {
      min-width: 33.33%;  /* 100% dividido por 3 para que se mueva de 3 en 3 */
      box-sizing: border-box;
      padding: 5px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .slider-certificaciones-item img {
      max-height: 100%;
      max-width: 100%;
      display: block;
      border-radius: 8px;
      object-fit: contain;
  }

  /* New styles for interviews section */
.interviews-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

.interviews-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem;
}
@media (max-width: 768px) {
  .interviews-section .container {
    max-width: 100%; /* ocupar todo el ancho disponible */
    margin: 5rem auto 0 auto; /* antes 0, ahora baja 2rem desde arriba */
    padding: 0 1rem; /* reducir padding lateral en móviles */
  }
}

.interviews-section h2 {
  text-align: center;
  font-family: var(--heading-font);
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 3rem;
}

.video-grid {
  display: grid;
  gap: 2rem;
  transition: grid-template-columns 0.3s ease;
}
@media (max-width: 768px) {
  .video-grid {
      display: block; /* Modo lista para dispositivos móviles */
  }

  .view-selector {
      display: none; /* Oculta los botones de selección de vista */
  }

  .grid-selector-container {
      display: none; /* Oculta el selector de cantidad de videos */
  }

  .video-card {
      margin-bottom: 1.5rem;
  }

  .video-card h3 {
      font-size: 1.1em;
      padding: 1rem;
  }

  .video-card p {
      font-size: 0.95em;
      padding: 0 1rem 1rem;
  }
}

.video-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-card h3 {
  font-family: var(--heading-font);
  font-size: 1.2em;
  color: var(--secondary-color);
  padding: 1rem;
  margin: 0;
}

.video-card p {
  color: var(--primary-color);
  padding: 0 1rem 1rem;
  margin: 0;
  font-size: 0.9em;
  font-weight: 600;
}

.view-selector {
  margin-bottom: 20px;
  text-align: center;
}

.view-selector button {
  padding: 10px;
  cursor: pointer;
  background-color: #20263b;
  color: white;
  border: none;
  border-radius: 4px;
  margin-right: 10px;
  transition: background-color 0.3s ease;
}

.view-selector button:hover {
  background-color: #20263b;
}

.grid-selector-container {
  display: none;
  margin-bottom: 20px;
  text-align: center;
}

.grid-selector-container select {
  padding: 10px;
  margin-left: 10px;
  font-size: 1rem;
}

.pagination {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 20px 0;
}

.pagination button {
  padding: 10px;
  background-color: #20263b;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:hover {
  background-color: #20263b;
}

.pagination span {
  margin: 0 10px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .interviews-section {
      padding: 3rem 0;
  }
  
  .interviews-section h2 {
      font-size: 2em;
  }

  .view-selector button {
      padding: 8px;
  }

  .pagination button {
      padding: 8px;
  }
}
/* Estilos generales para pantallas grandes */
.course-section {
  padding: 4rem 0;
  margin: 120px auto;
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
}

.course-container {
  max-width: 1400px;
  margin: 120px auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}

.course-sidebar {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 290px;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
}

.search-box {
    margin-bottom: 2rem;
}

.search-box input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e6f0ff;
    border-radius: 50px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-box input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.course-categories {
    list-style: none;
    padding: 0;
}

.course-category {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.course-category:hover {
    background: var(--accent-color);
}

.course-category > span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.course-category .toggle-icon {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.course-category.expanded .toggle-icon {
    transform: rotate(90deg);
}

.course-category .subcategories {
    margin-top: 1rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent-color);
    display: none;
}

.subcategory {
    padding: 0.6rem 1rem;
    margin: 0.3rem 0;
    border-radius: 6px;
    background: #e0e5f0;
    transition: all 0.3s ease;
    color: #20263b;
}

.subcategory:hover {
    background: var(--accent-color);
    transform: translateX(5px);
}

.subcategory.active {
    background: #4d5978;
    color: white !important;
}

.subcategory .count {
    background: rgba(0, 0, 0, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8em;
}

.course-content {
    background: white;
    border-radius: 15px;
    padding: 6rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.course-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.course-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.course-list {
    display: none;
    flex-direction: column;
    gap: 1.5rem;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.course-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.course-card .image {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.course-card .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.course-card:hover .image img {
    transform: scale(1.05);
}

.course-card .content-card {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.course-card h3 {
    font-size: 1.2em;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
}

.course-card .course-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9em;
    color: #666;
}

.course-card .course-meta i {
    color: var(--primary-color);
    margin-right: 0.4rem;
}

.course-card p {
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    margin: 0;
}

.course-card .price {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.course-card .original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 0.9em;
}

.course-card .current-price {
    color: var(--primary-color);
    font-size: 1.3em;
    font-weight: 600;
}

.course-card .cta-button {
    width: 100%;
    margin-top: 1rem;
    padding: 0.8rem !important;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    background: white;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
    background: var(--primary-color);
    color: white;
}

        .course-list-item:hover {
            transform: translateY(-5px);
        }

        .course-list-item .image {
            flex: 0 0 120px;
            height: 150px;
            border-radius: 8px;
            overflow: hidden;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
        }


        .course-list-item .image img {
            width: 100%;
            height: 100%;
            object-fit: contain;
        }

        .course-list-item .content-card {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .course-list-item h3 {
            font-size: 1.4em;
            color: var(--secondary-color);
            margin: 0;
        }

        .course-list-item .course-meta {
            display: flex;
            gap: 1.5rem;
            color: #666;
            font-size: 0.9em;
        }

        .course-list-item .course-meta i {
            color: var(--primary-color);
            margin-right: 0.5rem;
        }

        .course-list-item p {
            color: #666;
            line-height: 1.6;
            margin: 0;
        }

        .course-list-item .pricing {
            margin-top: auto;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .course-list-item .original-price {
            color: #999;
            text-decoration: line-through;
        }

        .course-list-item .price {
            color: var(--primary-color);
            font-size: 1.2em;
            font-weight: 600;
        }

        .view-toggle-course {
          display: flex;
          gap: 0.5rem;
          background: var(--accent-color);
          padding: 0.5rem;
          border-radius: 8px;
        }

        .-course button {
          background: none;
          border: none;
          padding: 0.5rem 1rem;
          border-radius: 4px;
          cursor: pointer;
          color: var(--secondary-color);
          transition: all 0.3s ease;
        }

        .-course button.active {
          background: white;
          color: var(--primary-color);
          box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .count {
          background: var(--accent-color);
          color: var(--primary-color);
          padding: 0.2rem 0.6rem;
          border-radius: 20px;
          font-size: 0.8rem;
          font-weight: 600;
        }

        .course-category.active .count {
          background: white;
        }
        .course-category:hover {
          background: var(--accent-color);
        }

        .course-category.active {
          background: var(--primary-color);
          color: white;
        }

        /* Add to existing course view styles */
        .course-view {
          display: none;
          background: white;
          padding: 2rem;
          border-radius: 15px;
          box-shadow: 0 4px 15px rgba(0,0,0,0.05);
        }

        .course-view.active {
          display: block;
        }

        .course-view .back-btn {
          display: inline-flex;
          align-items: center;
          gap: 0.5rem;
          padding: 0.5rem 1rem;
          margin-bottom: 2rem;
          background: var(--primary-color);
          color: white;
          border: none;
          border-radius: 4px;
          cursor: pointer;
          transition: all 0.3s ease;
        }

        .course-view .back-btn:hover {
          background: var(--secondary-color);
        }

        .course-view .cover-image {
          width: 100%;
          max-height: 400px;
          object-fit: cover;
          border-radius: 8px;
          margin-bottom: 2rem;
        }

        .course-view .course-header {
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          margin-bottom: 2rem;
          gap: 2rem;
        }

        .course-view .course-info {
          flex: 2;
        }

        .course-view .course-pricing {
          flex: 1;
          background: var(--accent-color);
          padding: 2rem;
          border-radius: 8px;
          text-align: center;
        }

        .course-view h1 {
          font-size: 2.5em;
          color: var(--secondary-color);
          margin-bottom: 1rem;
        }

        .course-view .instructor {
          display: flex;
          align-items: center;
          gap: 1rem;
          margin-bottom: 1rem;
        }

        .course-view .instructor img {
          width: 50px;
          height: 50px;
          border-radius: 50%;
          object-fit: cover;
        }

        .course-view .course-meta {
          display: flex;
          flex-wrap: wrap;
          gap: 2rem;
          margin-bottom: 2rem;
        }

        .course-view .course-meta span {
          display: flex;
          align-items: center;
          gap: 0.5rem;
          color: #666;
        }

        .course-view .course-meta i {
          color: var(--primary-color);
        }

        .course-view .description {
          line-height: 1.8;
          color: #333;
          margin-bottom: 2rem;
        }

        .course-view .course-pricing .original-price {
          color: #999;
          text-decoration: line-through;
          font-size: 1.2em;
        }

        .course-view .course-pricing .current-price {
          font-size: 2.5em;
          color: var(--primary-color);
          font-weight: 600;
          margin: 1rem 0;
        }

        .course-view .buy-button {
          width: 100%;
          padding: 1rem;
          background: var(--primary-color);
          color: white;
          border: none;
          border-radius: 8px;
          font-size: 1.1em;
          font-weight: 600;
          cursor: pointer;
          transition: all 0.3s ease;
        }

        .course-view .buy-button:hover {
          background: var(--secondary-color);
          transform: translateY(-2px);
        }
        
        /* Course View */
        .course-view .course-tabs {
          display: flex;
          gap: 1rem;
          margin: 2rem 0;
          border-bottom: 2px solid #e6f0ff;
          padding-bottom: 1rem;
        }

        .course-view .tab {
          padding: 0.8rem 1.5rem;
          border: none;
          background: none;
          font-weight: 600;
          color: #666;
          cursor: pointer;
          position: relative;
          transition: all 0.3s ease;
        }

        .course-view .tab.active {
          color: var(--primary-color);
        }

        .course-view .tab.active:after {
          content: '';
          position: absolute;
          bottom: -1rem;
          left: 0;
          width: 100%;
          height: 2px;
          background: var(--primary-color);
        }

        .course-view .tab-content {
          display: none;
          padding: 2rem 0;
        }

        .course-view .tab-content.active {
          display: block;
        }

        .course-view .lessons-list {
          list-style: none;
          padding: 0;
          display: flex;
          flex-direction: column;
          gap: 1rem;
          margin: 2rem 0;
        }

        .course-view .lesson-item {
          display: flex;
          align-items: center;
          gap: 1rem;
          padding: 1rem;
          background: #f8f9fa;
          border-bottom: 1px solid #e6f0ff;
          background: white;
          transition: background-color 0.3s ease;
          display: flex;
          align-items: center;
          gap: 1rem;
        }

        .course-view .lesson-item:last-child {
          border-bottom: none;
        }

        .course-view .lesson-item:hover {
          background: var(--accent-color);
        }

        .course-view .lesson-icon {
          color: var(--primary-color);
          font-size: 1.2em;
          width: 24px;
          text-align: center;
        }

        .course-view .lesson-details {
          flex: 1;
        }

        .course-view .lesson-title {
          font-weight: 500;
          color: #333;
          margin-bottom: 0.3rem;
        }

        .course-view .lesson-duration {
          font-size: 0.9em;
          color: #666;
        }

        .course-view .instructor-profile {
          display: grid;
          grid-template-columns: auto 1fr;
          gap: 2rem;
          align-items: start;
        }

        .course-view .instructor-image {
          width: 200px;
          height: 200px;
          border-radius: 10px;
          overflow: hidden;
        }

        .course-view .instructor-image img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }

        .course-view .instructor-info h3 {
          margin-top: 0;
          color: var(--secondary-color);
          font-size: 1.8em;
        }

        .course-view .instructor-title {
          color: var(--primary-color);
          font-size: 1.1em;
          margin-bottom: 1rem;
        }

        .course-view .instructor-bio {
          line-height: 1.8;
          color: #444;
          margin-bottom: 1.5rem;
        }

        .course-view .instructor-stats {
          display: flex;
          gap: 2rem;
          margin-top: 1rem;
        }

        .course-view .stat {
          text-align: center;
        }

        .course-view .stat-number {
          font-size: 1.5em;
          font-weight: 600;
          color: var(--primary-color);
        }

        .course-view .stat-label {
          color: #666;
          font-size: 0.9em;
        }


        /* Responsiveness */
@media (max-width: 768px) {
  .course-container {
    grid-template-columns: 1fr; /* Full width for small screens */
    display: block;
    padding: 0 1rem; /* Reduced padding */
  }

  .course-sidebar {
    position: relative;
    max-height: none;
    overflow-y: visible;
    top: 20px; /* Ajusta este valor para mover el sidebar más arriba */
}


    .course-grid {
        grid-template-columns: 1fr; /* 1 column for smaller screens */
        gap: 1rem; /* Reduce gap */
    }

    .course-card {
        flex-direction: column;
        padding: 1rem; /* Adjust card padding */
    }

    .course-list-item {
        flex-direction: column; /* Stack items */
    }

    .course-list-item .image {
        flex: 0 0 auto;
        height: 200px;
    }

    .course-list-item .course-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .course-view .instructor-profile {
        grid-template-columns: 1fr; /* Stack instructor info */
    }

    .course-view .instructor-image {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .course-view .instructor-info {
        text-align: center;
    }

    .course-view .instructor-stats {
        justify-content: center;
    }

    .course-list-item h3 {
        font-size: 1.2em; /* Adjust header size */
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination button {
        min-width: 100%; /* Full width for buttons */
    }

    .course-view .cover-image {
        width: 100%;
        max-height: 300px;
        object-fit: cover;
    }

    .course-view .buy-button {
        font-size: 1.1em; /* Adjust button text size */
        padding: 1rem;
    }
}
@media (max-width: 768px) {
  
    .course-sidebar {
      top: 100px;
        position: relative;
        max-height: none;  /* No height limitation on mobile */
        overflow-y: visible;  /* Allow overflow on small screens */
    }
}

/* New styles added from plan */
.course-view .tab-content#overview {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.overview-box {
  background: #f8f9fa;
  border-radius: 10px;
  padding: 2rem;
  border: 1px solid #e6e6e6;
}

.overview-box h4 {
  font-size: 1.2em;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-weight: 600;
}

.overview-box ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.overview-box li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #666;
}

.overview-box li i {
  color: var(--primary-color);
}

.overview-box.requirements li {
  padding: 0.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.overview-description {
  line-height: 1.8;
  color: #444;
}

.overview-section {
  margin-bottom: 2rem;
}

.overview-section h3 {
  color: var(--secondary-color);
  margin-bottom: 1rem;
  font-size: 1.4em;
}

.overview-section p {
  color: #666;
  line-height: 1.8;
  margin-bottom: 1rem;
}

.faq-item {
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  padding: 1rem;
  background: #f8f9fa;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 500;
}

.faq-answer {
  padding: 1rem;
  display: none;
  color: #666;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .toggle-icon {
  transform: rotate(90deg);
}

.toggle-icon {
  transition: transform 0.3s ease;
}

/* Tab Content Styles */
.tab-content {
  display: none;         /* Ocultar por defecto */
  position: absolute;    /* Posicionamiento absoluto para no afectar el flujo */
  width: 100%;           /* Asegura que ocupe todo el ancho disponible */
  left: 0;
  top: 0;
  opacity: 0;            /* Invisible al inicio */
  transition: opacity 0.4s ease-in-out; /* Transición de opacidad */
  padding: 2rem 0;
}

.tab-content.active {
  display: block;        /* Mostrar solo cuando está activo */
  opacity: 1;            /* Hacerlo visible */
  position: relative;    /* Vuelve a la posición normal en el flujo del documento */
}

.login-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, var(--accent-color) 0%, #ffffff 100%);
  padding: 2rem;
  gap: 2rem;
}

.login-info {
  text-align: center;
  padding: 0 1rem;
}

.info-text {
  font-size: 1rem;
  color: #333;
}

.info-text a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  margin-right: 0.5rem;
}

.login-container {
  background: white;
  border-radius: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  width: 100%;
  padding: 1.5rem;
}

.login-logo {
  width: 150px;
  margin: 0 auto 2rem auto; /* Centrar horizontalmente y ajustar margen inferior */
  display: block;
}


.login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
/* Botón de Cerrar Sesión */
.logout-btn {
  background-color: #e74c3c;
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.logout-btn:hover {
  background-color: #c0392b;
}

/* Botón de Vista Previa */
.preview-button {
  background-color: #3498db;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.preview-button:hover {
  background-color: #2980b9;
}

/* Botón de Acceder */
.login-button {
  background-color: #27ae60;
  color: white;
  border: none;
  padding: 8px 14px;
  font-size: 14px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease-in-out;
}

.login-button:hover {
  background-color: #219150;
}


        .form-group {
  position: relative;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  padding: 0;
}

.toggle-password:focus {
  outline: none;
}


.form-group input {
  width: 100%;
  padding: 0.8rem;
  border: 2px solid #e6f0ff;
  border-radius: 50px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary-color);
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  color: #666;
  padding: 0;
}

.login-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 1rem;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.3);
}

.forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.forgot-password:hover {
  text-decoration: underline;
}

@media (min-width: 768px) {
  .login-section {
    flex-direction: row;
    padding: 3rem;
  }

  .login-info {
    text-align: left;
    flex: 1;
    padding-right: 2rem;
  }

  .login-container {
    max-width: 400px;
    padding: 2rem;
  }

  .login-logo {
    width: 150px;
    margin-bottom: 2rem;
  }
}

        @media (max-width: 480px) {
          .login-container {
            padding: 1.5rem;
          }
          
          .login-logo {
            width: 120px;
          }
          
          .form-group input {
            padding: 0.8rem;
          }
          
          .login-btn {
            padding: 0.8rem 1.5rem;
            font-size: 1rem;
          }
        }
/* Estilos generales del modal */
.unique-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Fondo semi-transparente */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.unique-modal-content {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  position: relative;
  width: 95vw;  /* Más grande */
  height: 85vh; /* Más alto */
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
}

.unique-close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px; /* Más grande */
  font-weight: bold;
  cursor: pointer;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 5px 10px;
  border-radius: 50%;
  z-index: 1001; /* Asegura que esté por encima del video */
}

.unique-close-btn:hover {
  background: rgba(255, 0, 0, 0.7);
}

/* Estilo del iframe para asegurar buen tamaño */
.unique-modal-content iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
}
.purchase-container {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 20px;
}
.payment-info {
  max-width: 300px;
  text-align: center;
}
.qr-image {
  width: 100%;
  margin: 120px auto 0; /* 80px de margen superior para compensar la barra de navegación */
  border-radius: 8px;
  margin-bottom: 15px;
}

.bank-details {
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}
.purchase-form {
  max-width: 500px;
  margin: 180px auto 0; /* 80px de margen superior para compensar la barra de navegación */
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.purchase-form h3 {
  margin-bottom: 20px;
  text-align: center;
}
.purchase-form input,
.purchase-form select {
  width: 100%;
  padding: 10px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.form-row {
  display: flex;
  gap: 10px;
}
.file-upload {
  border: 2px dashed #ddd;
  padding: 15px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.file-upload.dragging {
  background-color: #f0f0f0;
  border-color: #007bff;
}
.file-upload p {
  margin: 0;
}
.file-preview {
  margin-top: 10px;
}
.file-preview img {
  max-width: 100%;
  max-height: 200px;
  margin-top: 10px;
}
.file-preview .remove-file {
  color: red;
  cursor: pointer;
  display: block;
  margin-top: 5px;
}

.submit-button {
  width: 100%;
  padding: 12px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.submit-button:hover {
  background-color: #0056b3;
}

/* Add new blog section styles */
.blog-section {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  
  /* Escritorio */
  padding: 0rem 0 2.5rem;
}

@media (max-width: 992px) {
  .blog-section {
    padding: 2rem 0 2rem;
  }
}

@media (max-width: 600px) {
  .blog-section {
    padding: 0 0 1rem; 
    min-height: auto;
  }
}

.blog-container {
  width: 100%;
  margin-top: 180px;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}



.blog-sidebar {
  background: white;
  border-radius: 15px;
   padding: 1.5rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  height: fit-content;
  position: sticky;
  top: 220px;
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.search-box {
  margin-bottom: 2rem;
}

.search-box input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #e6f0ff;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.search-box input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0,102,204,0.1);
}

.blog-categories {
  list-style: none;
  padding: 0;
}

.blog-category {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--secondary-color);
}

.blog-category:hover {
  background: var(--accent-color);
}

.blog-category.active {
  background: var(--primary-color);
  color: white;
}

.category-count {
  background: var(--accent-color);
  color: var(--primary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}

.blog-category.active .category-count {
  background: white;
}

.blog-content {
  background: white;
  border-radius: 15px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-5px);
}

.blog-card .image {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.blog-card .image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-info {
  padding: 1.5rem;
}

.blog-info .category {
  color: var(--primary-color);
  font-size: 0.9em;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.blog-info h3 {
  color: var(--secondary-color);
  font-size: 1.3em;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.blog-info p {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  margin-bottom: 1rem;
}
@media (max-width: 480px) {
  .blog-info h3 {
    font-size: 0.95rem;
  }
}
.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #888;
  font-size: 0.85em;
}

.blog-list-item {
  display: flex;
  gap: 0.8rem;
  background: white;
  padding: 0.8rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  align-items: flex-start;
  width: 100%;
  box-sizing: border-box;
}

/* Imagen miniatura (base: escritorio se redefine abajo) */
.blog-list-item .image {
  flex: 0 0 70px;
  max-width: 70px;
  height: 60px;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}

.blog-list-item .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Texto */
.blog-list-item .blog-info {
  flex: 1;
  min-width: 0;
}

.blog-list-item .blog-info h3 {
  font-size: 0.95rem;
  margin: 0 0 0.3rem;
  line-height: 1.2;
  word-break: break-word;
}

.blog-list-item .blog-meta {
  font-size: 0.75rem;
  color: #666;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

/* Contenedor lista */
.blog-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

/* --- Ajustes móviles --- */
@media (max-width: 768px) {
  /* Siempre lista */
  .blog-grid {
    display: none !important;
  }
  .grid-view,
  .list-view {
    display: none !important;
  }

  .blog-list-item {
    gap: 0.6rem;
    padding: 0.7rem;
  }

  .blog-list-item .image {
    flex: 0 0 60px;
    max-width: 60px;
    height: 50px;
  }

  .blog-list-item .blog-info h3 {
    font-size: 0.9rem;
  }

  .blog-list-item .blog-meta {
    font-size: 0.7rem;
  }
}

/* --- Ajustes escritorio --- */
@media (min-width: 769px) {
  .blog-list-item {
    gap: 1rem;         
    padding: 1rem;     
    align-items: center; /* centra mejor la imagen con el texto */
  }

  .blog-list-item .image {
    flex: 0 0 120px;   
    max-width: 120px;
    height: 90px;      
  }

  .blog-list-item .blog-info h3 {
    font-size: 1.1rem; 
    line-height: 1.3;
  }

  .blog-list-item .blog-meta {
    font-size: 0.8rem;
  }
}



@media (max-width: 992px) {
  .blog-container {
    display: block; /* evitar grid que limita el ancho */
    width: 100vw; /* ocupar todo el ancho del viewport */
    padding: 0; /* quitar padding lateral para que no sobrepase */
    margin-top: 3rem; /* más espacio desde arriba */
  }

  .blog-sidebar,
  .blog-main {
    width: 100%; /* forzar 100% del ancho del contenedor */
    box-sizing: border-box;
    padding: 0.5rem 1rem; /* padding interno opcional */
  }

  .blog-sidebar {
    position: relative;
    top: 0;
    max-height: none;
    overflow: visible;
  }
}



@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
  
}
/* === Versión escritorio === */
.post-header h1 {
  font-size: 2.2rem; /* tamaño original de escritorio */
}

/* === Versión móvil === */
@media (max-width: 768px) {
  /* Forzar título móvil ignorando cualquier estilo de escritorio */
  .mobile-post .post-header h1 {
    font-size: 1.2rem !important; /* más pequeño y fuerza sobre cualquier herencia */
    line-height: 1.3;
    word-break: break-word; /* para que títulos largos no salgan de la pantalla */
  }

  .mobile-post .post-meta {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
  }

  .mobile-post .post-content img.post-image {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
  }

  .mobile-post .back-btn {
    width: 100%;
    text-align: center;
    padding: 0.7rem 0;
  }
}


.pagination-blog {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}


.pagination-blog button {
  background: white;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pagination-blog button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-blog button:hover:not(:disabled),
.pagination-blog button.active {
  background: var(--primary-color);
  color: white;
}
.view-toggle-blog {
  display: flex;
  gap: 0.5rem;
  background: var(--accent-color);
  padding: 0.5rem;
  border-radius: 8px;
}

.-blog button {
  background: none;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  color: var(--secondary-color);
  transition: all 0.3s ease;
}

.-blog button.active {
  background: white;
  color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
/* Add new blog post view styles */
.blog-post-view {
  display: none;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.blog-post-view.active {
  display: block;
}

.blog-post-view .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  margin-bottom: 2rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-post-view .back-btn:hover {
  background: var(--secondary-color);
}

.blog-post-view .post-header {
  margin-bottom: 2rem;
}

.blog-post-view .post-header h1 {
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.blog-post-view .post-meta {
  display: flex;
  gap: 2rem;
  color: #666;
  font-size: 0.9em;
}

.blog-post-view .post-content {
  line-height: 1.8;
  color: #333;
}

.blog-post-view .post-content img {
  max-width: 100%;
  border-radius: 8px;
  margin: 2rem 0;
}

.blog-post-view .post-content p {
  margin-bottom: 1.5rem;
}

/* Contact Section Styles */
.contact-section {
  padding: 6rem 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  min-height: calc(100vh - 180px);
}

.contact-container {
  max-width: 1400px;
  margin: 120px 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.map-container {
  height: 600px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.contact-form-container h2 {
  font-family: var(--heading-font);
  font-size: 2.5em;
  color: var(--secondary-color);
  margin-bottom: 1rem;
}

.contact-subtitle {
  color: #666;
  font-size: 1.1em;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

.form-group {
  position: relative;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e6f0ff;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-group select {
  cursor: pointer;
  color: #666;
}

.form-group textarea {
  height: 150px;
  resize: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1);
}

.form-group label {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  transition: all 0.3s ease;
  pointer-events: none;
  background: white;
  padding: 0 0.5rem;
}

.form-group textarea + label {
  top: 1.2rem;
  transform: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.8rem;
  color: var(--primary-color);
  transform: translateY(-50%);
}

.submit-btn {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,102,204,0.3);
}

.submit-btn i {
  transition: transform 0.3s ease;
}

.submit-btn:hover i {
  transform: translateX(5px);
}

@media (max-width: 992px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
  
  .map-container {
    height: 400px;
  }
}

@media (max-width: 576px) {
  .contact-form-container {
    padding: 2rem;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container h2 {
    font-size: 2em;
  }
}

/* Schedule Section Styles */
.schedule-section {
  padding: 4rem 2rem;
  margin: 120px auto 0;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 100%);
  min-height: calc(100vh - 180px);
}

#appointmentTime.hidden {
display: none;
}

.weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
font-weight: 600;
color: var(--secondary-color);
margin-bottom: 1rem;
}

.calendar .days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.5rem;
}

.day {
aspect-ratio: 1;
padding: 0.5rem;
cursor: pointer;
text-align: center;
border-radius: 50%;
transition: 0.3s;
border: 2px solid transparent;
}

.day.today {
background: rgba(0, 102, 204, 0.1);
border: 2px solid var(--primary-color);
}

.day.selected {
background: var(--primary-color);
color: white;
}

.day:not(.disabled):hover {
background: var(--accent-color);
}

.schedule-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.schedule-form-container {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.schedule-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.calendar-container {
background: white;
padding: 2rem;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
max-width: 100%;
overflow: hidden;
}

.date-picker {
position: relative;
}

.date-picker input {
width: 100%;
padding: 1rem;
border: 2px solid #e6f0ff;
border-radius: 8px;
cursor: pointer;
}

.file-upload {
border: 2px dashed #e6f0ff;
padding: 2rem;
border-radius: 8px;
text-align: center;
position: relative;
}

.file-upload input[type="file"] {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}

.file-preview {
margin-top: 1rem;
display: none;
}

.file-preview.active {
display: block;
}

.file-preview img,
.file-preview iframe {
max-width: 100%;
max-height: 200px;
border-radius: 8px;
}

.calendar {
display: grid;
grid-template-rows: auto 1fr;
}

.calendar-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 2rem;
padding: 0 1rem;
}

.calendar-header h3 {
font-family: var(--heading-font);
font-size: 1.8em;
color: var(--secondary-color);
margin: 0;
text-transform: capitalize;
}

.calendar-nav {
display: flex;
align-items: center;
gap: 2rem;
}

.calendar-nav button {
background: none;
border: none;
color: var(--primary-color);
font-size: 1.8em;
cursor: pointer;
padding: 0.5rem;
transition: all 0.3s ease;
}

.calendar-nav button:hover {
color: var(--secondary-color);
transform: scale(1.1);
}

.weekdays {
display: grid;
grid-template-columns: repeat(7, 1fr);
text-align: center;
font-weight: 600;
color: var(--secondary-color);
margin-bottom: 1rem;
}

.days {
display: grid;
grid-template-columns: repeat(7, 1fr);
gap: 0.5rem;
}

.day {
aspect-ratio: 1;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.1em;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
background: white;
border: 2px solid transparent;
padding: 1rem;
}

.day:not(.disabled):hover {
background: var(--accent-color);
transform: scale(1.1);
border-color: var(--primary-color);
}

.day.available {
background: var(--accent-color);
color: var(--primary-color);
font-weight: 600;
border: 2px solid var(--primary-color);
}

.day.selected {
background: var(--primary-color);
color: white;
font-weight: 600;
transform: scale(1.1);
box-shadow: 0 4px 10px rgba(0, 102, 204, 0.3);
}

.day.disabled {
color: #ccc;
cursor: not-allowed;
background: #f5f5f5;
}

.day.today {
border: 2px solid var(--primary-color);
}
@media (max-width: 768px) {
.days {
  gap: 0.2rem; /* Reduce el espacio entre días para móviles */
}
.day {
  font-size: 0.9em; /* Tamaño de fuente menor */
  padding: 0.4rem; /* Reducir padding para evitar desbordamiento */
}
}

@media (max-width: 576px) {
.days {
  gap: 0.1rem; /* Espacio aún menor para pantallas más pequeñas */
}
.day {
  font-size: 0.8em; /* Tamaño de fuente reducido para mejor ajuste */
  padding: 0.3rem; /* Reducir aún más el padding */
}
}

@media (max-width: 992px) {
.schedule-container {
  grid-template-columns: 1fr;
}
}

@media (max-width: 576px) {
.schedule-form-container,
.calendar-container {
  padding: 2rem;
}
}
input, select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

.file-upload {
  border: 2px dashed #ccc;
  padding: 1.5rem;
  border-radius: 5px;
  text-align: center;
}

.submit-btn {
  padding: 0.75rem 1.5rem;
  background: var(--primary-color);
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.submit-btn:hover {
  background: var(--accent-color);
}

@media (min-width: 768px) {
  .schedule-container {
    flex-direction: row;
    margin: 120px 0 auto;
    gap: 3rem;
  }

  .calendar-container, .schedule-form-container {
    flex: 1;
  }
}

@media (max-width: 576px) {
  .schedule-form-container, .calendar-container {
    padding: 1rem;
  }

  label, input, select, .submit-btn {
    font-size: 0.9rem;
  }
}
.qr-image-agendar {
  width: 100%;
  margin: 10px auto 0; /* 80px de margen superior para compensar la barra de navegación */
  border-radius: 8px;
  margin-bottom: 15px;
}
.content {
  padding-top: 120px; /* escritorio */
  margin: 0 auto;
  max-width: 1200px;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Tablets */
@media (max-width: 992px) {
  .content {
    padding-top: 40px;
  }
}

/* Móviles */
@media (max-width: 600px) {
  .content {
    padding-top: 60px; /* 👈 mucho más arriba en móvil */
  }
}

footer {
  background: var(--secondary-color);
  color: white;
  padding: 2rem 5%;
  font-family: var(--body-font);
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
}

.footer-left, .footer-middle, .footer-right {
  flex: 1;
  min-width: 280px;
  margin-right: 2rem;
}

.footer-left img {
  width: 200px;
  margin-bottom: 1rem;
}

.footer-left .footer-description {
  font-size: 1.1em;
  color: #ddd;
  line-height: 1.5;
  max-width: 90%;
}

.footer-middle h3, .footer-right h3 {
  font-family: var(--heading-font);
  color: var(--accent-color);
  font-size: 1.3em;
  margin-bottom: 1rem;
}

.footer-middle ul {
  list-style: none;
  padding: 0;
}

.footer-middle ul li {
  margin-bottom: 0.5rem;
}

.footer-middle ul li a {
  color: white;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.footer-middle ul li a:hover {
  color: var(--accent-color);
}

.footer-right .contact-info span {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 1em;
}

.footer-right .social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-right .social-links a {
  color: white;
  font-size: 1.5em;
  transition: color 0.3s ease;
}

.footer-right .social-links a:hover {
  color: var(--accent-color);
}

.footer-bottom {
  text-align: center;
  margin-top: 2rem;
  font-size: 0.9em;
}

.footer-bottom p {
  color: #ccc;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-left img {
    max-width: 150px; /* Reduce el tamaño del logo en móviles */
    margin: 0 auto 1rem; /* Centra el logo horizontalmente */
    display: block;
  }

  .footer-middle h3, .footer-right h3 {
    font-size: 1.1em;
  }

  .footer-right .contact-info span {
    font-size: 0.9em;
  }

  footer i {
    font-size: 1.2rem;
  }
}

footer h3 {
  transition: color 0.3s ease;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

/* Estilo de los íconos de redes sociales */
footer i {
  font-size: 1.5rem;
  color: var(--primary-color);
  transition: color 0.3s ease, transform 0.3s ease;
}

footer i:hover {
  color: var(--secondary-color);
  transform: scale(1.1);
}


/* Tooltip del icono de WhatsApp */
#tooltip {
  position: fixed;
  bottom: 96px;
  right: 16px;
  width: 320px;
  max-width: calc(100% - 48px);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 10px;
  transform: translateY(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, transform 220ms ease;
  z-index: 1001;
  font-size: 0.95rem;
}
#tooltip.wa-tooltip--visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
/* Estructura interna */
.wa-tooltip-inner { display:flex; gap:10px; width:100%; align-items:center; justify-content:space-between; }
.wa-preview { display:flex; flex-direction:column; gap:2px; }
.wa-preview strong { color: var(--secondary-color); font-weight:700; }
.wa-preview small { color: #666; font-size:0.85rem; }

/* Quick actions */
.wa-quick-actions { display:flex; gap:8px; }
.wa-action {
  background: linear-gradient(135deg,#25D366,#128C7E);
  color: white;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
  cursor: pointer;
  font-weight:600;
  font-size: 0.85rem;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.wa-action:active { transform: translateY(1px); }
.wa-action:hover { box-shadow: 0 6px 16px rgba(18,140,126,0.18); }

/* Estilos del botón de WhatsApp */
#whatsappButton {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(18,140,126,0.18);
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  z-index: 1002; /* Above backToTop (1000) */
  border: none;
}
#whatsappButton svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
  display: block;

}
#whatsappButton .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
#whatsappButton::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 0 0 rgba(37,211,102,0.4);
  animation: wa-pulse 2.8s infinite;
  opacity: 0.35;
  z-index: -1;
}
@keyframes wa-pulse {
  0% { transform: scale(0.9); opacity: 0.45; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}
#whatsappButton:hover {
  background-color: var(--secondary-color);
  transform: scale(1.1);
}
#whatsappButton:active { transform: scale(0.97); box-shadow: 0 6px 18px rgba(18,140,126,0.22); }

/* estado activo (cuando el chat está abierto) */
#whatsappButton.wa-active {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 18px 36px rgba(18,140,126,0.25);
}
/* Estilos del chat emergente */
#chatPopup {
  position: fixed;
  bottom: 96px;
  right: 20px;
  width: 360px;
  max-width: calc(100% - 40px);
  height: 420px;
  background: white;
  border-radius: 14px;
  box-shadow: 0 30px 60px rgba(2,12,27,0.24);
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  pointer-events: none;
  transition: transform 260ms cubic-bezier(.2,.9,.2,1), opacity 220ms ease;
  z-index: 1003;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
#chatPopup.wa-chat--open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

#chatPopup .header {
  background: linear-gradient(90deg,var(--secondary-color), var(--primary-color));
  color: white;
  padding: 12px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
#chatPopup .header span { font-weight:700; }
#chatPopup .header button { background: transparent; color: white; border:none; cursor:pointer; font-size:1.1rem; }

/* contenido y form */
#chatPopup .chat-content { flex:1; padding: 12px; overflow-y:auto; background: linear-gradient(180deg, #fbfdff, #ffffff); }
#chatPopup .form { display:flex; padding: 10px; gap:8px; border-top:1px solid #eee; background:white; }
#chatPopup input { flex:1; padding:10px; border-radius:8px; border:1px solid #e6f0ff; }
#chatPopup button[type="submit"] { background: linear-gradient(135deg,#25D366,#128C7E); color:white; border:none; padding:10px 12px; border-radius:8px; cursor:pointer; }

/* Mobile: bottom-sheet full width */
@media (max-width: 768px) {
  #tooltip { display:none; }
  #whatsappButton {
    right: 12px;
    bottom: 12px;
    width: 62px;
    height: 62px;
  }
  #chatPopup {
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: auto;
    max-height: 70vh;
    border-radius: 14px 14px 0 0;
    transform: translateY(100%);
    transition: transform 300ms cubic-bezier(.2,.9,.2,1);
  }
  #chatPopup.wa-chat--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  /* body lock when chat open */
  .wa-no-scroll { overflow: hidden !important; height: 100%; touch-action: none; }
}

/* Pequeños ajustes de accesibilidad */
#whatsappButton:focus { outline: 3px solid rgba(37,211,102,0.22); outline-offset: 4px; }

/* Reduce z-index collisions con backToTop (backToTop = 1000) */
#backToTop { z-index: 1000; }
.file-preview-curso {
  display: flex;
  flex-direction: column;
  align-items: center;  /* Centra los elementos en el eje vertical */
  justify-content: center; /* Centra los elementos en el eje horizontal */
  border: 1px solid #ccc;
  padding: 15px;
  margin: 15px auto; /* Centra horizontalmente */
  min-height: 120px;
  max-width: 320px;
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.file-preview-curso img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  display: block;
  margin: 0 auto;
}

.file-preview-curso iframe {
  width: 100%;
  height: 300px;
  display: block;
  margin: 0 auto;
}

.remove-file-curso {
  margin-top: 10px;
  color: red;
  cursor: pointer;
  font-weight: bold;
  text-align: center;
}

/* --- Mejoras específicas para móvil: solo afectan ≤900px, no tocan escritorio --- */
@media (max-width: 900px) {
  /* Mantener altura razonable y evitar solapamientos con navbar */
  .slider-container {
    position: relative;
    margin-top: 90px; /* ajusta si tu navbar es más alto */
    height: auto;
    min-height: 320px;
    display: block;
    overflow: visible;
  }

  .slide {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 0.6rem;
    box-sizing: border-box;
    height: auto;
    opacity: 1;
  }

  .slide-content {
    width: 100%;
    max-width: 1000px;
    display: flex;
    gap: 1.2rem;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    box-sizing: border-box;
    flex-direction: column; /* columna en móvil */
  }

  .slide-text {
    width: 100%;
    text-align: center;
    order: 1;
    padding: 0;
  }

  .slide-text h1 {
    font-size: 1.6rem;
    line-height: 1.15;
    margin: 0.2rem 0;
  }
  .slide-text h2 {
    font-size: 1rem;
    margin: 0.2rem 0 0.6rem;
    color: #375a9b;
  }
  .slide-text p {
    font-size: 0.95rem;
    margin: 0 0 0.8rem;
    color: #333;
  }

  .slide-image {
    width: 70%;
    max-width: 260px;
    margin: 0.6rem auto 0;
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slide-image img.doctor-vector {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    transform: translateY(0);
  }

  /* Dots más táctiles y menos intrusivos */
  .slider-nav {
    bottom: 8px;
    gap: 10px;
  }
  .slide-dot {
    width: 36px;
    height: 36px;
    border-width: 2px;
  }
  .slide-dot .dot-image {
    width: 22px;
    height: 22px;
  }

  /* Flechas móviles */
  .slider-arrow {
    display: flex;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,119,182,0.9);
    color: #fff;
    border: none;
    font-size: 1.6rem;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    z-index: 20;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  }
  .slider-arrow.prev { left: 12px; }
  .slider-arrow.next { right: 12px; }
  .slider-arrow:active { transform: translateY(-50%) scale(0.98); }

  /* Botón CTA adaptado */
  .slider-btn {
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
    border-radius: 999px;
    display: inline-block;
  }

  /* Evitar que el slide sobresalga del viewport en móviles muy pequeños */
  @media (max-width: 420px) {
    .slide-text h1 { font-size: 1.25rem; }
    .slide-image { max-width: 200px; width: 60%; }
    .slide-dot { width: 30px; height: 30px; }
    .slide-dot .dot-image { width: 16px; height: 16px; }
  }
}

.nav-links.open { display: flex !important; }
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.share-buttons {
  margin-top: 10px;
  display: flex;
  gap: 12px;
}

.share-buttons a,
.share-buttons button {
  font-size: 1.5rem; /* tamaño más grande */
  padding: 10px;
  border-radius: 50%;
  background: #f1f1f1;
  color: #333;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.share-buttons a:hover,
.share-buttons button:hover {
  background: #ddd;
  transform: scale(1.2);
}

.big-buttons {
  justify-content: center;
}