/* ============================================================
   FUENTES
   ============================================================ */
@font-face { font-family: "Titles";            src: url(amoresa.ttf); }
@font-face { font-family: "inter-regular";     src: url(inter-regular.ttf); }
@font-face { font-family: "tan-pearl";         src: url(tan-pearl.ttf); }
@font-face { font-family: "InriaSerif-Regular";src: url(InriaSerif-Regular.ttf); }


/* ============================================================
   VARIABLES
   ============================================================ */
:root {
  --color-primary: #738259;
  --color-gold:    #c9a84c;
  --color-white:   #ffffff;
  --color-black:   #000000;

  --font-title: "Titles", serif;
  --font-body:  "InriaSerif-Regular", serif;
  --font-inter: "inter-regular", sans-serif;
  --font-pearl: "tan-pearl", serif;

  --radius-sm: 5px;
  --radius-md: 20px;
  --radius-lg: 150px;
}


/* ============================================================
   RESET Y BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

html, body { -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  background: #fff;
  overflow-x: hidden;
  animation: Gradient 15s ease infinite;
  background-size: 400% 400%;
}

a         { color: var(--color-black) !important; }
a:hover   { text-decoration: none; }

::selection { color: #fff; background: #000; text-shadow: none; }
:active, :focus { outline: none; }


/* ============================================================
   FONDO
   ============================================================ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  transition-duration: .5s;
}

@media (min-width: 992px) {
  body::after { background-image: url(bg-esc.png); }
}

@media (max-width: 991px) {
  body::after { background-image: url(bg-mob.png); }
}

.bg {
  background-image: url('fondo-2.png');
  background-size: cover;
  background-position: center;
  filter: brightness(0.45) saturate(0.6);
  height: 100vh;
  width: 100%;
}


/* ============================================================
   LUCIÉRNAGAS
   ============================================================ */
#ff {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.f {
  position: absolute;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #fff9c4 0%, #ffe566 50%, transparent 80%);
  animation: fb linear infinite, fm linear infinite;
}

@keyframes fb { 0%, 100% { opacity: 0; } 40%, 60% { opacity: .85; } }
@keyframes fm {
  0%   { transform: translate(0, 0) scale(.7); }
  25%  { transform: translate(var(--x1), var(--y1)) scale(1); }
  50%  { transform: translate(var(--x2), var(--y2)) scale(.8); }
  75%  { transform: translate(var(--x3), var(--y3)) scale(1.1); }
  100% { transform: translate(0, 0) scale(.7); }
}


/* ============================================================
   AUDIO
   ============================================================ */
.audio, .pausa01 {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  cursor: pointer;
  opacity: 0;
}

.aparecer-audio,
.aparecer-pausa {
  position: fixed;
  z-index: 99999;
  right: 20px;
  bottom: 20px;
  cursor: pointer;
  opacity: 1;
}

.desaparecer-audio {
  visibility: hidden;
  opacity: 0;
  transition: all 3s;
  position: fixed;
  right: 20px;
  bottom: 20px;
}

.pausa01           { display: none; }
.desaparecer-audio { display: none !important; }
.aparecer-audio    { display: block !important; }
.aparecer-pausa    { display: block !important; }


/* ============================================================
   STAGE INICIO
   ============================================================ */
.stage {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  transition: opacity .7s ease, transform .7s ease;
}

.stage.ocultar {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.intro-text {
  font-size: 17px;
  font-style: italic;
  color: rgba(255, 255, 255, .9);
  text-align: center;
  line-height: 1.75;
  max-width: 270px;
  margin-bottom: 38px;
  letter-spacing: .03em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .7);
}


/* ============================================================
   LIBRO CERRADO
   ============================================================ */
.book-perspective { position: relative; }

.book-closed {
  position: relative;
  width: 300px;
  height: 470px;
  cursor: pointer;
  transition: transform .4s ease;
}

.book-closed:hover { transform: rotateY(-22deg) rotateX(4deg) scale(1.03); }

.face-front {
  position: absolute;
  inset: 0;
  border-radius: 3px 10px 10px 3px;
  overflow: hidden;
  box-shadow: 6px 8px 30px rgba(0, 0, 0, .8), inset 0 0 0 2.5px rgba(188, 155, 80, .5);
}

.face-front img { width: 100%; height: 100%; object-fit: cover; display: block; }

.over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-bottom: 28px;
  gap: 6px;
  pointer-events: none;
}

.over .n {
  font-family: "Titles", "Cormorant Garamond", serif;
  font-size: 26px;
  color: var(--color-gold);
  text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.over .xv {
  font-family: "tan-pearl", "Cormorant Garamond", serif;
  font-size: 12px;
  color: var(--color-gold);
  letter-spacing: .25em;
}

.btn-open {
  position: absolute;
  bottom: 150px;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid var(--color-gold);
  border-radius: 18px;
  padding: 5px 20px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  color: var(--color-gold);
  background: transparent;
  cursor: pointer;
  letter-spacing: .05em;
  white-space: nowrap;
  transition: background .2s;
  z-index: 2;
}

.btn-open:hover { background: rgba(201, 168, 76, .18); }

.face-spine {
  position: absolute;
  top: 0;
  left: -14px;
  width: 14px;
  height: 100%;
  background: linear-gradient(to right, #1e1508, #4a3010, #2a1c06);
  border-radius: 3px 0 0 3px;
}

.face-pages {
  position: absolute;
  top: 2px;
  right: -10px;
  bottom: 2px;
  width: 10px;
  background: repeating-linear-gradient(to bottom, #f0e4cc, #e8d5b0, #f0e4cc);
  background-size: 100% 5px;
  border-radius: 0 3px 3px 0;
  box-shadow: inset -2px 0 4px rgba(0, 0, 0, .2);
}

.tag-wrap{
    position:absolute;
    left:100px; /* donde necesites */
    top:50px;
}

.llave{
    position:absolute;
    width:200px;
    transform:rotate(351deg);
    left: -180px;
}

/* texto */
.tag{
    position:absolute;

    /* centro aproximado de la parte rosa */
    left:100px;
    top:280px;

    width:130px;

    transform:
        translateX(-50%)
        rotate(350deg);

    text-align:center;
}

.tn{
    font-family:"Titles";
    font-size:16px;
    color:#000;
    font-style:italic;
    line-height:1.2;

    overflow-wrap:break-word;
    word-break:break-word;
}

.tp{
    margin-top:4px;
    font-size:12px;
    color:#000;
}

.tag{
     position: absolute;
    left: -65px;
    top: 300px;
    max-width: 140px;
    transform: translateX(-50%)
        rotate(350deg);
    text-align: center;
}

.tn{
    max-width:100%;
    white-space:normal;
    overflow-wrap:anywhere;
}


/* ============================================================
   ANIMACIÓN LIBRO
   ============================================================ */
#libroAnim {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .5s;
}

#libroAnim.visible  { opacity: 1; pointer-events: auto; }
#libroAnim.fade-out { opacity: 0; }

.book-anim {
  position: relative;
  width: 300px;
  height: 470px;
  perspective: 70rem;
}

.anim-cover,
.anim-page {
  position: absolute;
  padding: 1rem;
  transform-origin: 0% 50%;
  border-radius: 0 5px 5px 0;
  box-shadow: inset -3px 0 20px rgba(0, 0, 0, .2), 0 0 15px rgba(0, 0, 0, .1);
  box-sizing: border-box;
}

.anim-cover {
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 100;
  transform: rotateY(0deg);
}

.anim-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.anim-cover .over { pointer-events: none; }

.anim-cover.abrir { animation: bookCover 3s forwards; }

@keyframes bookCover {
  30%  { z-index: 999; }
  100% { transform: rotateY(-180deg); z-index: 1; }
}

.anim-page {
  top: 5px; left: 5px;
  width: calc(100% - 10px);
  height: calc(100% - 10px);
  background-color: #e9e6c4;
  transform: rotateY(0deg);
  z-index: calc(60 - var(--idx, 0));
}

.anim-page::before,
.anim-page::after {
  display: block;
  border-top: 1px dashed rgba(0, 0, 0, .2);
  content: "";
  padding-bottom: 1.4rem;
}

.anim-page:nth-of-type(2) { animation-delay: 0.05s; }
.anim-page:nth-of-type(3) { animation-delay: 0.5s; }
.anim-page:nth-of-type(4) { animation-delay: 1.0s; }

.anim-page.turn {
  animation: bookOpen 3s forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes bookOpen {
  30%  { z-index: 999; }
  100% { transform: rotateY(-180deg); z-index: 999; }
}

.anim-back {
  position: absolute;
  inset: 0;
  background: var(--color-primary);
  border-radius: 0 10px 10px 0;
  box-shadow: 6px 8px 30px rgba(0, 0, 0, .8);
  z-index: 0;
}


/* ============================================================
   CONTENIDO PRINCIPAL
   ============================================================ */
#contenidoPrincipal { display: none; position: relative; z-index: 20; }

#contenidoPrincipal.visible {
  display: block;
  animation: fadeInUp .8s ease both;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* ============================================================
   ANIMACIONES GLOBALES
   ============================================================ */
@keyframes Gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}


/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
.nombres      { font-size: 60px !important; }
.text-black   { color: var(--color-black) !important; }
.uppercase    { text-transform: uppercase; }
.sombra-texto { text-shadow: #000 0.1em 0.1em 0.2em; }
.font-18      { font-size: 16px; }
.font-20      { font-size: 20px; }

.title        { color: var(--color-white); font-family: var(--font-title); font-size: 24px; }
.inter-regular{ font-family: var(--font-inter); font-size: 24px; }
.tan-pearl    { font-family: var(--font-pearl); font-size: 42px; }


/* ============================================================
   ESPACIADO
   ============================================================ */
.m-0  { margin-bottom: 0; }
.m-10 { margin-bottom: 10px; }
.m-20 { margin-bottom: 20px; }
.m-40 { margin-bottom: 40px; }
.m-60 { margin-bottom: 60px; }


/* ============================================================
   UTILIDADES
   ============================================================ */
.col-center { float: none; margin: 0 auto; }
.sinpadding [class*="col-"] { padding: 0; }

.opciones { color: #fff; display: inline; margin: 0 20px; }
option    { color: #000 !important; }

.hover-up               { transition: transform 0.3s ease; }
.hover-up:hover         { transform: translateY(-6px); }

@media (max-width: 991px) { .ocultar_mob { display: none; } }
@media (min-width: 992px) { .ocultar_esc { display: none; } }

/* Transiciones de visibilidad */
.arriba    { transform: translate(0, -1500px); transition: all 3s; }
.abajo     { transform: translate(0,  1000px); transition: all 3s; }
.desaparecer { visibility: hidden; opacity: 0; transition: all 3s; }

body.scrolled { scrollbar-width: none; }
body.scrolled::-webkit-scrollbar { display: none; }
.con-scroll { overflow-y: auto; }


/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar            { width: 10px; background-color: #000; }
::-webkit-scrollbar-track      { border-radius: 10px; background-color: #000; box-shadow: inset 0 0 6px rgba(0,0,0,.9); }
::-webkit-scrollbar-thumb      { border-radius: 10px; background-color: var(--color-primary); background-image: linear-gradient(90deg, transparent, rgba(0,0,0,.4) 50%, transparent); }


/* ============================================================
   MARIPOSAS
   ============================================================ */
.mariposa  { filter: hue-rotate(283deg) saturate(.44); position: absolute; top: 0; right: 0; }
.mariposa2 { filter: hue-rotate(283deg) saturate(.44); position: absolute; bottom: 0; left: -50px; z-index: -1; }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .mariposa img { width: 100px; }
.hero img           { width: 110%; height: 100%; object-fit: cover; display: block; }

.contenido {
  position: absolute;
  z-index: 1;
  color: #000;
  max-width: 65%;
}

.banner-principal {
  width: 100%;
  height: 100vh;
  background-size: cover;
  background-position: center;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}


/* ============================================================
   CUADROS CON IMAGEN
   ============================================================ */
.cuadro-1, .cuadro-2, .cuadro-3, .arco {
  width: 100%;
  border: 2px solid var(--color-gold);
  position: relative;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cuadro-1 { border-radius: var(--radius-lg) 0 0 0; }
.cuadro-2 { border-radius: var(--radius-md); }
.cuadro-3 { border-radius: 0 0 var(--radius-lg) 0; }

.arco {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 3px;
  background: white;
}

.arco::before {
  content: '';
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-gold);
  border-radius: 146px 146px 0 0;
  z-index: 1;
  pointer-events: none;
}

.cuadro-1 img, .cuadro-2 img, .cuadro-3 img, .arco img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
}

.cuadro-1 img { border-radius: 144px 0 0 0; }
.cuadro-2 img { border-radius: 15px; }
.cuadro-3 img { border-radius: 0 0 144px 0; }
.arco     img { border-radius: 144px 144px 0 0; }

.cuadro-1 .info, .cuadro-2 .info, .cuadro-3 .info {
  position: absolute;
  max-width: 70%;
  text-align: center;
  z-index: 2;
  color: white;
}

.arco .info { position: absolute; text-align: center; z-index: 2; color: white; }

.cuadro-1 .mariposa img,  .cuadro-2 .mariposa img,
.cuadro-3 .mariposa img,  .arco .mariposa img  { width: 100px; z-index: 99; }

.cuadro-1 .mariposa2 img, .cuadro-2 .mariposa2 img,
.cuadro-3 .mariposa2 img, .arco .mariposa2 img { width: 100px; }

@media (min-width: 992px) {
  .arco img      { max-height: 400px; }
  .content-height{ max-height: 500px; overflow: hidden; }
}


/* ============================================================
   ASISTENCIA
   ============================================================ */
.asistencia {
  width: 100%;
  position: relative;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.asistencia img  { object-fit: cover; }
.asistencia .info{ position: absolute; text-align: center; z-index: 2; }


/* ============================================================
   CUADROS GENERALES
   ============================================================ */
.cuadro-top    { margin-top: 70px; padding: 40px 0; overflow: hidden; border-radius: var(--radius-md); }
.cuadro-body   { padding: 40px 20px; margin-top: 20px; overflow: hidden; }
.cuadro-form   { background: var(--color-primary); padding: 40px 20px; margin-top: 20px; overflow: hidden; border-radius: var(--radius-md); }
.cuadro-footer { background-color: rgba(0,0,0,.40); padding: 20px; margin: 20px 0; overflow: hidden; border-radius: var(--radius-md); }

.color { height: 35px; width: 35px; border-radius: 50%; }


/* ============================================================
   BOTONES
   ============================================================ */
.btn-form {
  background: #bcc398;
  padding: 10px 60px 7px;
  border: 1px solid transparent;
  color: #fff !important;
  transition-duration: .2s;
  border-radius: var(--radius-md);
}

.btn-form:hover {
  background: #fff;
  border-color: rgba(255,255,255,.5);
  color: #000 !important;
}

.btn-celebracion {
  background-color: var(--color-primary);
  width: 100%;
  display: block;
  text-align: center;
  padding: 10px 0;
  border-radius: var(--radius-sm);
  color: #fff !important;
}


/* ============================================================
   FORMULARIO
   ============================================================ */
.form-campo {
  background: rgba(0,0,0,.1);
  width: 100%;
  border: 1px solid transparent;
  padding: 10px;
  color: #fff;
  border-radius: var(--radius-md);
}

.form-campo::placeholder,
.form-campo:focus::placeholder { color: #fff; }
.form-campo:focus              { font-weight: 400; color: #fff; }


/* ============================================================
   TEMPORIZADOR
   ============================================================ */
ul.tiempo { margin: 0; padding: 0; text-align: center; }

.tiempo li {
  display: inline-block;
  list-style-type: none;
  margin: 0;
  color: #fff;
  padding: 0 10px;
  font-size: 18px;
}

.tiempo li span { display: block; }


/* ============================================================
   CAROUSEL
   ============================================================ */
.owl-theme .owl-dots .owl-dot span { background: var(--color-primary); }


/* ============================================================
   VIDEO
   ============================================================ */
.hytPlayerWrap { position: relative; }

.hytPlayerWrap.ended::after,
.hytPlayerWrap.paused::after {
  content: "";
  position: absolute;
  background-color: black;
  background-repeat: no-repeat;
  background-position: center;
}

.hytPlayerWrap.ended::after {
  inset: 0;
  background-size: 64px;
  background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxMjgiIGhlaWdodD0iMTI4IiB2aWV3Qm94PSIwIDAgNTEwIDUxMCI+PHBhdGggZD0iTTI1NSAxMDJWMEwxMjcuNSAxMjcuNSAyNTUgMjU1VjE1M2M4NC4xNSAwIDE1MyA2OC44NSAxNTMgMTUzcy02OC44NSAxNTMtMTUzIDE1My0xNTMtNjguODUtMTUzLTE1M0g1MWMwIDExMi4yIDkxLjggMjA0IDIwNCAyMDRzMjA0LTkxLjggMjA0LTIwNC05MS44LTIwNC0yMDQtMjA0eiIgZmlsbD0iI0ZGRiIvPjwvc3ZnPg==);
}

.hytPlayerWrap.paused::after {
  top: 70px; left: 0; bottom: 50px; right: 0;
  cursor: pointer;
  background-size: 40px;
  background-image: url(data:image/svg+xml;utf8;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZlcnNpb249IjEiIHdpZHRoPSIxNzA2LjY2NyIgaGVpZ2h0PSIxNzA2LjY2NyIgdmlld0JveD0iMCAwIDEyODAgMTI4MCI+PHBhdGggZD0iTTE1Ny42MzUgMi45ODRMMTI2MC45NzkgNjQwIDE1Ny42MzUgMTI3Ny4wMTZ6IiBmaWxsPSIjZmZmIi8+PC9zdmc+);
}


/* ============================================================
   POPUP / SOBRE
   ============================================================ */
#popup1, #popup2 { position: fixed; visibility: hidden; opacity: 0; }

#popup1:target, #popup2:target {
  visibility: visible;
  opacity: 1;
  position: fixed;
  inset: 0;
  margin: 0;
  z-index: 99999999999;
  transition: all 1s;
}

#popup1:target { background-color: #AA0E3D; }
#popup2:target { background-color: #FAFAFA; }

.popup, .popup-2 {
  position: relative;
  margin: auto;
  width: 100%;
  z-index: 99999;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

.popup-cerrar { position: absolute; top: 20px; right: 20px; z-index: 999999; }
.popup-icon   { margin: 20px 0; }


/* ============================================================
   SOBRE / CARTA
   ============================================================ */
#carta {
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle, rgba(245,227,223,1) 0%, rgba(211,66,140,1) 72%);
  z-index: 9999;
  position: absolute;
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

.sobre-superior { position: absolute; z-index: 10; right: 0; left: 0; margin: 0 auto; }

.titulo-sobre, .titulo-sobre-02 {
  font-family: var(--font-title);
  margin: 0;
  color: #fff;
  position: absolute;
  z-index: 11;
  right: 0;
  left: 0;
  margin: 0 auto;
}

.titulo-sobre    { top: 20px; }
.titulo-sobre-02 { bottom: 20px; width: 80%; }

@media (max-width: 991px) {
  .titulo-sobre    { font-size: 28px; }
  .titulo-sobre-02 { font-size: 24px; }
}

@media (min-width: 992px) {
  .titulo-sobre    { font-size: 40px; }
  .titulo-sobre-02 { font-size: 34px; }
}

.boton-sobre {
  font-family: var(--font-title);
  color: #fff;
  position: absolute;
  z-index: 12;
  right: 0;
  left: 0;
  margin: 0 auto;
  top: 48%;
  background-color: rgba(255, 255, 255, .5);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: center;
  align-content: center;
  flex-direction: column;
}

@media (max-width: 991px) {
  .boton-sobre { font-size: 25px; width: 150px; height: 35px; }
  #sobre img   { width: 94.6%; }
}

@media (min-width: 992px) {
  .boton-sobre { font-size: 40px; width: 200px; height: 60px; }
  #sobre img   { width: 97.5%; }
}