/* === CSS CUSTOM PROPOSITO DIVINO === */

.prop-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

/* Título principal */
.prop-title-main {
  font-size: 2.5rem;
  font-weight: bold;
  text-align: center;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.prop-title-main::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #bc2b2b;
  margin: 0.5rem auto 0 auto;
  border-radius: 2px;
}

/* Tarjetas/secciones */
.prop-card {
    position: relative;
    background-color: #fff;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    /* Quita overflow para que la imagen pueda salir de la tarjeta */
    overflow: visible;
    cursor: pointer;

}

.prop-card:hover {
  transform: translateY(-4px);
}

/* Subtítulo con adorno rojo */
.prop-card-title {
  color: #222;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
  display: inline-block;
}
.prop-card--first {
    margin-bottom: 140px; /* o lo que necesites, p.ej. 100px + un poco más */
}


.prop-card--second {
    margin-bottom: 160px; /* o lo que necesites, p.ej. 100px + un poco más */
}
.prop-card-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #bc2b2b;
  border-radius: 2px;
}

/* Párrafos justificados */
.prop-card-text {
  font-size: 1.05rem;
  line-height: 1.6;
  color: #444;
  text-align: justify;
}

/* Imagen del personaje */
.prop-card-img-first {
    position: absolute;
    bottom: -120px;     /* desplaza un poco hacia afuera de la tarjeta */
    right: -20px;      /* idem hacia la derecha */
    width: 120px;
    height: auto;
    pointer-events: none;
    z-index: 0;        /* asegúrate que quede DETRÁS del texto */
}

.prop-card-img-second {
    position: absolute;
    bottom: -160px;     /* desplaza un poco hacia afuera de la tarjeta */
    left: -20px;      /* idem hacia la derecha */
    width: 120px;
    height: auto;
    pointer-events: none;
    z-index: 0;        /* asegúrate que quede DETRÁS del texto */
}


/* contenedor del fuego que envuelve la tarjeta */
.fire-border {
    position: absolute;
    top: -12px;
    left: -12px;
    right: -12px;
    bottom: -12px;
    pointer-events: none;
    border-radius: 16px;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* llama base que se repite en el borde */
.fire-flame {
    position: absolute;
    width: 16px;
    height: 40px;
    background: radial-gradient(circle at bottom, rgba(255,165,0,0.8), rgba(255,0,0,0.6) 60%, transparent 80%);
    border-radius: 50% 50% 20% 20%;
    animation: flame-move 2s infinite ease-in-out;
    transform-origin: bottom center;
    opacity: 0.8;
}

/* animación de ondulación/temblor de las llamas */
@keyframes flame-move {
    0%   { transform: scaleY(1) translateY(0) rotate(-2deg);}
    50%  { transform: scaleY(1.4) translateY(-10px) rotate(2deg);}
    100% { transform: scaleY(1) translateY(0) rotate(-2deg);}
}

/* animación de encendido gradual */
@keyframes flame-grow {
    from { transform: scaleY(0.2); opacity: 0; }
    to   { transform: scaleY(1);   opacity: 0.8; }
}

.fire-border.active {
    opacity: 1;
}
.fire-border.active .fire-flame {
    animation: flame-grow 1s ease-out forwards, flame-move 2s infinite ease-in-out 1s;

}
