


/* ========================
    TEXTO A LA DERECHA
   ======================== */
.Centersb{
  font-family: "Segoe UI Black";
  text-align: left;
  padding-left: 8rem; /* Espacio desde el borde izquierdo */
  color: white;
   font-size: 40pt; 
}
.Centersb{
  margin: 0.5rem 0;
}


/* ========================
   Hero
   ======================== */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url('../assets/fondo.jpg') center/cover no-repeat;
  padding-top: 4rem; /* compensa navbar */
  overflow: hidden;
}

/* overlay */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* contenedor flex de imagen + texto */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  gap: 2rem;
}

/* imagen izquierda */
.hero-image {
  flex: none;
}
.hero-logo {
  width: 400px;       /* Tamaño fijo */
  height: auto;
  opacity: 0;
  transform: translateX(-50px);
  animation: imageSlideIn 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

/* texto derecha */
.hero-text {
  flex: 1;
  color: #fff;
  opacity: 0;
  transform: translateX(50px);
  animation: textSlideIn 0.8s ease-out forwards;
  animation-delay: 0.7s;
}
.hero-text h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero-text p {
  font-size: 1.1rem;
  line-height: 1.4;
}


/* ========================
   Footer
   ======================== */
.footer {
  background: rgba(0, 0, 0, 0.85);
  color: #ccc;
  padding: 2rem 1rem;
  margin-top: 2rem 0;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  justify-content: space-between;
  
}

.footer-column {
  flex: 1 1 200px;
}

.footer-column h4 {
  margin-bottom: 0.75rem;
  color: #fff;
}

.footer-column p,
.footer-column a {
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-column a {
  color: #ffd966;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-column a:hover {
  opacity: 0.8;
}

.social-links {
  list-style: none;
  padding: 0;
}

.social-links li {
  margin-bottom: 0.5rem;
}


 
/* Responsive: apilar hero en móvil */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
    padding-top: 5rem;
  }
  .hero-logo {
    width: 70%;
    margin-bottom: 1.5rem;
  }
  .hero-text {
    transform: translateX(0);
    animation-delay: 0.5s;
  }
}
.mi-contenedor {
  text-align: center;
}
.icon-container a {
  margin-right: 1rem;
}
.icon-container a:last-child {
  margin-right: 0;
}

/* wallpaper*/
.div{
  width: 100vw;
  height: 100vh;
  background-size: cover; 
  background-position: center;
  animation: slider 50s linear infinite;
}

@keyframes slider{
  0%{background-image: url(../assets/vacuna1.png);}
  25%{background-image: url(../assets/vacuna2.png);}
  50%{background-image: url(../assets/vacuna3.png);}
  75%{background-image: url(../assets/vacuna4.png);}
  100%{background-image: url(../assets/vacuna5.png);}
}

/* DESPLAZAMIENTO*/
.doctor-section {
  height: 100vh;
  position: relative;
  overflow: hidden;
  background-color: #f0f0f0;
}

.doctor-img {
  width: 300px;
  position: absolute;
  top: -100%; /* fuera de pantalla al principio */
  left: 50%;
  transform: translateX(-50%);
  transition: top 1.2s ease-out;
}

.doctor-img.show {
  top: 20%; /* baja al 20% de la pantalla cuando aparece */
}

@media (max-width: 768px) {
  .menu {
    flex-direction: column;
    align-items: center;
  }

  main {
    flex-direction: column;
  }

  .sidebar {
    order: -1; /* aparece antes del contenido */
  }
}


