body {
  margin: 0;
  min-height: 100vh;

  background-image: url("./assets/harry-potter-home16.1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.titulo-ravenclaw {
    color: white;
    font-family: "Cinzel Decorative", serif;
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px black, 0 0 10px rgba(255, 255, 255, 0.3);
}

.subtitulo-ravenclaw {
    color: white;
    font-family: "Cinzel Decorative", serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px black, 0 0 8px rgba(255, 255, 255, 0.25);
}

.carousel-item {
  height: 500px;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Tablet */
@media (max-width: 768px) {
  .carousel-img {
    height: 350px;
  }
}

/* Celular */
@media (max-width: 576px) {
  .carousel-img {
    height: 250px;
  }
}

/* =========================
   SECCIÓN DESCRIPCIÓN
========================= */

.descripcion-ravenclaw {
    max-width: 900px;
    margin: 50px auto;
    padding: 40px;
    /* Fondo oscuro transparente */
    background-color: rgba(0, 0, 0, 0.65);

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    /* Sombra */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
    font-family: 'Cinzel Decorative', sans-serif;
}


/* =========================
   TÍTULO
========================= */

.subtitulo-ravenclaw {
    color: white;
    font-family: "Cinzel Decorative", serif;
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow:
        2px 2px 4px black,
        0 0 8px rgba(255, 255, 255, 0.3);
    margin-bottom: 20px;
}


/* =========================
   TEXTO
========================= */

.texto-descripcion {
    color: white;

    font-size: 1.1rem;
    line-height: 1.8;

    margin-bottom: 25px;
}


/* =========================
   BOTÓN RAVENCLAW
========================= */

.btn-ravenclaw {
    background-color: #0b3d66;
    color: white;

    border: 1px solid white;

    padding: 10px 25px;

    font-family: "Cinzel Decorative", serif;

    transition: 0.3s;
}


/* EFECTO AL PASAR EL MOUSE */
.btn-ravenclaw:hover {
    background-color: white;
    color: #0b3d66;
    border-color: #0b3d66;

    transform: scale(1.05);
}


/*Cards de los personajes*/

.flip-card {
  background-color: transparent;
  width: 100%;
  max-width: 300px;
  height: 420px; /* Aumentado para que quepan tus textos */
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  box-sizing: border-box;
}

/* CARA FRONTAL CON IMAGEN */
.flip-card-front {
  background-color: #0e1a40; 
  border: 2px solid #946b2d;
  overflow: hidden; /* Evita que la imagen se salga de los bordes redondeados */
}

/* Asegura que tus imágenes cubran toda la tarjeta frontal y se vean bien */
.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CARA TRASERA CON TUS TEXTOS */
.flip-card-back {
  background-color: #946b2d;
  color: #0e1a40;
  transform: rotateY(180deg);
  border: 2px solid #0e1a40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.flip-card-back h3 {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.4rem;
  margin-bottom: 15px;
  font-weight: bold;
  text-transform: uppercase;
}

.flip-card-back p {
  font-family: "Cinzel Decorative", serif;
  font-size: 0.95rem; /* Tamaño de letra ajustado */
  line-height: 1.4;
  margin: 0;
  text-align: justify; /* Hace que el texto se vea más ordenado */
}

/* =========================
   BOTÓN RAVENCLAW
========================= */

.ravenclaw-footer {
     background-color: #0E1A40;
     /* Azul oscuro oficial */
     color: #946B2D;
     /* Bronce oficial */
     font-family: 'Georgia', serif;
     padding: 30px 20px;
     text-align: center;
     border-top: 4px solid #946B2D;
     box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.3);
 }

.footer-content {
     max-width: 1200px;
     margin: 0 auto;
     display: flex;
     flex-direction: column;
     align-items: center;
     gap: 15px;
 }

 /* Lema o frase de la casa */
 .footer-quote {
     font-style: italic;
     font-size: 1.1rem;
     color: #DAA520;
     /* Dorado/bronce claro para resaltar */
     margin: 0;
 }

 /* Enlaces de navegación */
 .footer-links {
     list-style: none;
     padding: 0;
     margin: 10px 0;
     display: flex;
     gap: 20px;
 }