/* Estilos para la sección Introducción */

#introduccion {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 1rem;
    font-family: 'Arial', sans-serif;
    color: #222;
}

h1 {
  font-size: 3rem;
  color: #003b6f;
  text-align: center;
  margin: 0px 0 50px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 1.5px;
  position: relative;
}

h1::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background-color: #0077b6;
  margin: 10px auto 0;
  border-radius: 2px;
}

.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 2rem;
    aspect-ratio: 16 / 9;
    background: black; /* para el espacio vacío */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: contain; /* evita recorte */
}

.texto-introduccion p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.contenedor{
      background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  width: 100%;
}

/* ===== Signos relacionados ===== */

.signos-relacionados {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 59, 111, 0.15);
    font-size: 1.05rem;
}

.signos-relacionados p {
    margin-bottom: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Título de línea */
.signos-titulo {
    font-weight: 700;
    color: #003b6f;
    font-family: 'Montserrat', sans-serif;
    margin-right: 6px;
    white-space: nowrap;
}

/* Botones de signos */
.signo-btn {
    background: linear-gradient(135deg, #1E3A5F, #2a4160);
    border: 1px solid rgba(0, 119, 182, 0.4);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.25s ease;
    box-shadow: 0 2px 6px rgba(0, 59, 111, 0.08);
}

/* Hover elegante */
.signo-btn:hover {
    background: #2C7DA0;
    color: white;
    border-color: #0077b6;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.25);
    transform: translateY(-1px);
}

/* ===== Modal vídeo ===== */

.video-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 20, 40, 0.85);
    z-index: 3000;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 92%;
    max-width: 900px;
    background: #000;
    border-radius: 14px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
}

.video-modal-content video {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.close-modal {
    position: absolute;
    top: -42px;
    right: 0;
    font-size: 2.2rem;
    color: #ffffff;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.close-modal:hover {
    opacity: 0.7;
}

/* ===== Responsive ===== */

@media (max-width: 600px) {
    #introduccion h1 {
        font-size: 1.8rem;
    }

    .video-container {
        height: 40vh;
    }

    .texto-introduccion p {
        font-size: 1rem;
    }

    .signo-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}