@font-face {
  font-family: vikingFont;
  src: url(EagleLake-Regular.ttf);
  font-weight: 200px;
}

/* ===== RESET ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ===== BODY CON IMAGEN DE FONDO ===== */
body {
  font-family: 'EagleLake', serif;
  font-style: italic;
  font-weight: 200;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: url("imagenes/wedding_httyd3.png");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center center;
  background-size: cover;
}

/* Capa opcional para mejorar legibilidad */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: -1;
}

.pagina-fondo {
  display: flex;
  justify-content: center;
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

/* ===== CONTENEDOR PERGAMINO ===== */
.pergamino {
  width: 80%;
  max-width: 1000px; /* Evita que se estire demasiado en monitores ultra-wide */
}

/* ===== PARTE SUPERIOR ===== */
.pergamino-top {
  background-image: url("imagenes/pergamino_end.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding: 20% 15% 6% 15%; /* Aumentado padding inferior */
  text-align: center;
  position: relative;
  z-index: 3; /* Mayor prioridad para estar siempre arriba */
}

.titulo-pergamino {
  font-size: 2.5rem;
  font-family: vikingFont;
  color: #000000;
}

/* ===== PARTE CENTRAL (REPETICIÓN VERTICAL) ===== */
.pergamino-middle {
  background-image: url("imagenes/pergamino_tiled.png");
  background-repeat: repeat-y;
  background-size: 100% auto;
  padding: 80px 15% 40px 15%; /* Aumentado padding-top significativamente */
  position: relative;
  z-index: 1;
  margin-top: -10%; /* Ajuste de solapamiento */
}

/* ===== TEXTO INTERIOR ===== */
.pergamino-texto {
  color: #271209;
  font-size: 1.1rem;
  font-weight: bold;
  line-height: 2;
  text-align: center;
}

.pergamino-texto > p {
  margin-bottom: 1.5rem;
}

.texto-final {
  margin-top: 3rem;
  text-align: center;
  font-size: 1.2rem;
  line-height: 2.2;
}

/* ===== ICONOS DETRÁS DEL TEXTO ===== */
.icono-fila {
  position: relative;
  margin: 3rem 0;
  padding: 15px 0;
}

.icono-fila i {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10rem; /* Más grandes */
  color: #7a4f1e;
  opacity: 0.3; /* Transparencia sutil */
  z-index: 0;
  pointer-events: none;
}

.icono-fila p {
  position: relative;
  font-weight: bold;
  z-index: 2;
  margin: 0;
}

.icono-fila.izquierda i {
  left: -5rem; /* Sobresale por fuera */
}

.icono-fila.derecha i {
  right: -5rem; /* Sobresale por fuera */
}

/* ===== PARTE INFERIOR ===== */
.pergamino-bottom {
  background-image: url("imagenes/pergamino_end.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  padding-bottom: 22%;
  transform: scaleY(-1);
  position: relative;
  z-index: 3;
  margin-top: -10%;
}

.button {
  position: relative;
  width: 100%;
  z-index: 4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .pergamino {
    width: 95%;
  }

  .pergamino-top {
    padding: 20% 10% 8% 10%;
  }

  .pergamino-middle {
    padding: 60px 10% 30px 10%;
    margin-top: -12%;
  }

  .pergamino-bottom {
    padding-bottom: 28%;
    margin-top: -12%;
  }

  .titulo-pergamino {
    font-size: 2rem;
  }

  .icono-fila i {
    font-size: 6rem;
    left: -1rem !important;
    right: auto !important;
  }
}