/* Estilos de cuidados.php (antes estaban dentro de la página). */
.portada-cuidados {
  background: linear-gradient(145deg, #f8f0f5 0%, #ffffff 100%);
  padding: 3rem 2rem;
  margin: 2rem auto;
  max-width: 1400px;
  border-radius: 40px;
  box-shadow: 0 20px 30px rgba(106, 27, 154, 0.08);
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.portada-contenido {
  flex: 1 1 400px;
}
.universidad {
  font-size: 1.4rem;
  color: #b3709f;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.portada-cuidados h1 {
  font-size: 4.5rem;
  color: #5e2a7c;
  margin: 0.5rem 0 0.8rem;
  line-height: 1.2;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(94, 42, 124, 0.1);
}
.subtitulo {
  font-size: 2.4rem;
  color: #a076a0;
  font-weight: 300;
  border-top: 2px solid #d9b0c9;
  display: inline-block;
  padding-top: 1rem;
}
.portada-imagen {
  flex: 1 1 300px;
  text-align: center;
}
.portada-imagen img {
  max-width: 100%;
  border-radius: 30px;
  box-shadow: 0 25px 40px -10px rgba(94, 42, 124, 0.3);
  transform: rotate(1deg);
  transition: transform 0.3s ease;
}
.portada-imagen img:hover {
  transform: rotate(0deg) scale(1.02);
}

.aviso-publico {
  padding: 2.5rem 2rem;
  background: #fff;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-caja);
  margin: 2rem auto;
  max-width: 1400px;
  border: 1px solid var(--color-borde);
}
.aviso-publico h2 {
  font-size: 2.4rem;
  color: var(--color-primario);
  margin: 0 0 1rem 0;
  text-align: center;
}
.aviso-texto {
  font-size: 1.5rem;
  color: var(--color-secundario);
  max-width: 980px;
  margin: 0 auto 1.2rem auto;
  line-height: 1.6;
  text-align: center;
}
.aviso-lista {
  max-width: 980px;
  margin: 0 auto 1.6rem auto;
  color: var(--color-secundario);
  font-size: 1.4rem;
  line-height: 1.6;
}
.aviso-botones {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.btn-aviso {
  display: inline-block;
  padding: 0.9rem 1.6rem;
  background: var(--color-primario);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.4rem;
  border: 1px solid rgba(0,0,0,0.05);
}
.btn-aviso:hover {
  transform: translateY(-1px);
}
.btn-sec {
  background: transparent;
  color: var(--color-primario);
  border: 1px solid var(--color-primario);
}

.video-publico-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 2rem auto;
  padding-bottom: 56.25%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}
.video-publico-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.contenido-restringido {
  margin-top: 2rem;
}

.videos {
  padding: 4rem 2rem;
  background: #fff;
  border-radius: var(--radio-borde);
  box-shadow: var(--sombra-caja);
  margin: 2rem auto;
  max-width: 1400px;
}
.videos h2 {
  font-size: 3rem;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 1rem;
}
.intro-videos {
  font-size: 1.6rem;
  text-align: center;
  color: var(--color-secundario);
  max-width: 800px;
  margin: 0 auto 3rem auto;
  line-height: 1.6;
}
.fila-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.fila-videos:last-child {
  margin-bottom: 0;
}
.video-card {
  background: #fafafa;
  border: 1px solid var(--color-borde);
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: var(--sombra-caja);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 1rem 2rem rgba(0,0,0,0.15);
}
.video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #000;
  overflow: hidden;
}
.video-frame iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video-info {
  padding: 1.5rem;
  flex-grow: 1;
}
.video-info h3 {
  font-size: 1.7rem;
  color: var(--color-primario);
  margin: 0 0 0.8rem 0;
  line-height: 1.3;
}
.video-info p {
  font-size: 1.4rem;
  color: var(--color-secundario);
  margin: 0;
  line-height: 1.5;
}

.galeria {
  max-width: 1400px;
  margin: 4rem auto;
  padding: 2rem;
}
.galeria h2 {
  font-size: 3rem;
  color: var(--color-primario);
  text-align: center;
  margin-bottom: 1rem;
}
.galeria .intro {
  font-size: 1.6rem;
  text-align: center;
  color: var(--color-secundario);
  margin-bottom: 3rem;
}
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}
.foto {
  background: white;
  border-radius: var(--radio-borde);
  overflow: hidden;
  box-shadow: var(--sombra-caja);
  transition: transform 0.3s ease;
  margin: 0;
}
.foto:hover {
  transform: translateY(-5px);
}
.foto img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}
.foto figcaption {
  padding: 2rem;
  text-align: center;
  font-size: 1.6rem;
  color: var(--color-primario);
}
.btn-principal {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: var(--color-primario);
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.4rem;
  transition: background 0.3s;
}
.btn-principal:hover {
  background: #4a0e6e;
}
.btn-principal i {
  margin-right: 0.5rem;
}

@media screen and (max-width: 767px) {
  .portada-cuidados {
    padding: 2rem 1.5rem;
    gap: 2rem;
  }
  .portada-cuidados h1 {
    font-size: 3rem;
  }
  .subtitulo {
    font-size: 1.8rem;
  }
  .universidad {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  .fila-videos {
    grid-template-columns: 1fr;
  }
  .galeria-grid {
    gap: 1.5rem;
  }
  .foto figcaption {
    padding: 1.2rem;
    font-size: 1.4rem;
  }
  .foto img {
    height: 180px;
  }
  .aviso-publico {
    padding: 2rem 1rem;
  }
  .aviso-publico h2 {
    font-size: 2rem;
  }
  .aviso-texto,
  .aviso-lista {
    font-size: 1.3rem;
  }
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
  .fila-videos {
    grid-template-columns: repeat(2, 1fr);
  }
}
