
 :root {
    --color-gold: #C0956A;
    --color-terracotta: #984416;
    --color-brown: #612C1C;
    --color-olive: #615934;
    --color-green: #263423;
    --color-cream: rgba(192, 149, 106, 0.14);
    --color-cream-strong: rgba(192, 149, 106, 0.28);
    --title-gradient: linear-gradient(to right, #8f6a45, #b8842f, #c89b3c, #b8842f, #8f6a45);
    --title-font-size: clamp(38px, 5vw, 64px);
    --body-font-size: clamp(18px, 2.2vw, 28px);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Cormorant Garamond', serif;
    font-style: oblique;
    background-color: transparent;
    overflow-x: hidden;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
    min-height: 100vh;
    color: var(--color-terracotta);
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Great Vibes', serif;
    text-transform: uppercase;
    font-weight: 600;
    font-style: normal;
}
.parents-title,
.historia-titulo,
.countdown-title,
.event-titulo,
.gifts h3,
.dress h3,
.media-share-title,
.rsvp h3,
.nochild-section h2,
.gallery-section h2 {
    font-family: 'Great Vibes', serif;
    font-size: var(--title-font-size);
    text-transform: none;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.historia-titulo,
.countdown-title,
.parents-title,
.event-titulo,
.gifts h3,
.dress h3,
.media-share-title,
.rsvp h3,
.nochild-section h2,
.gallery-section h2 {
    margin: 0 0 24px;
}
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw;
  }
* {
    box-sizing: border-box;
    max-width: 100vw;
  } 
  
  p,
  span,
  label,
  input,
  select,
  textarea,
  a {
    font-family: 'Cormorant Garamond', serif;
    color: var(--color-terracotta);
  }

  p,
  span,
  label {
    font-size: var(--body-font-size);
  }
.historia-texto,
.event-time,
.event-lugar,
.event-direccion,
.gifts-strong,
.dress-strong,
.dress-note,
.palette-title,
.palette-label,
.media-share-text,
.rsvp-strong,
.rsvp-label,
.rsvp-msg,
.parents-role {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--body-font-size);
    color: var(--color-terracotta);
    font-style: normal;
}
.parents-section {
    position: relative;
    padding: 10px 20px 70px;
    background: transparent;
    text-align: center;
}
.parents-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.parents-card {
    min-width: 280px;
}
.parents-names {
    margin: 0;
    font-family: 'Great Vibes', serif;
    font-size: var(--title-font-size);
    font-weight: 600;
    text-transform: none;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: normal;
}
.main-content {
    max-width: 1800px; /* Ancho máximo para pantallas grandes */
    margin: 0 auto; /* Centra el contenido horizontalmente */
    padding: 0; /* Espacio interior para evitar que el contenido toque los bordes */
    box-sizing: border-box; /* Incluye padding y borde en el tamaño total */
}
#invitation {
    background: linear-gradient(rgba(247, 244, 239, 0.4), rgba(247, 244, 239, 0.4)), url('/images/textura.png') center / cover no-repeat fixed;
}
#envelope {
    position: fixed;
    top: 0;
    left: 0;
    right: 0; /* agrega esto */
    width: auto; /* evita usar 100vw */
    height: 100vh;
    perspective: 1000px;
    z-index: 10;
    overflow-x: hidden;
  }  
  #envelope-top {
    top: 0;
    border-bottom: none;
    background-image: url('/images/sobre-arriba.png'); /* imagen para la parte superior */
    background-size: cover;
    background-position: unset;
    position: absolute;
    width: 100%;
    height: 50%;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    box-shadow: 0 4px 8px rgba(216, 198, 181, 0.5), 0 6px 20px rgba(216, 198, 181, 0.3);
}

#envelope-bottom {
    bottom: 0;
    border-top: none;
    background-image: url('/images/sobre-abajo.jpg'); /* imagen para la parte inferior */
    background-size: cover;
    background-position: unset;
    position: absolute;
    width: 100%;
    height: 50%;
    transition: transform 1s ease-in-out, opacity 1s ease-in-out;
    box-shadow: 0 4px 8px rgba(216, 198, 181, 0.5), 0 6px 20px rgba(216, 198, 181, 0.3);
}

#envelope-top {
    top: 0;
    border-bottom: none;
}
#envelope-bottom {
    bottom: 0;
    border-top: none;
}
#envelope.is-opening #envelope-top {
    animation: envelopeTopOpen 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#envelope.is-opening #envelope-bottom {
    animation: envelopeBottomOpen 1.05s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#envelope.is-opening #seal {
    animation: sealFadeLift 0.55s ease forwards;
}
#envelope.is-opening .guest-card {
    animation: cardFadeLift 0.6s ease forwards;
}
#seal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160px;
    height: 160px;
    background: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.216);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.2s ease-out;
    z-index: 11;
}
#seal.is-stamping {
    animation: stampPress 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
#seal h2 {
    margin: 0;
    font-size: 48px;
    font-family: Garamond, serif;
    background: linear-gradient(to right, #8f6a45, #b8842f, #c89b3c, #b8842f, #8f6a45);
    -webkit-background-clip: text;
    color: transparent;
    animation: shine 1.5s infinite linear;
}
@keyframes stampPress {
    0% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.216);
    }
    35% {
        transform: translate(-50%, -46%) scale(0.88) rotate(-6deg);
        box-shadow: 0 20px 28px rgba(97, 44, 28, 0.18);
    }
    65% {
        transform: translate(-50%, -54%) scale(1.06) rotate(4deg);
        box-shadow: 0 10px 20px rgba(97, 44, 28, 0.12);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.216);
    }
}
@keyframes envelopeTopOpen {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
    35% {
        transform: translateY(-12vh) scale(1.01);
        opacity: 1;
    }
    100% {
        transform: translateY(-108vh) scale(1.03);
        opacity: 0;
        filter: blur(4px);
    }
}
@keyframes envelopeBottomOpen {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: blur(0);
    }
    35% {
        transform: translateY(10vh) scale(1.01);
        opacity: 1;
    }
    100% {
        transform: translateY(108vh) scale(1.03);
        opacity: 0;
        filter: blur(4px);
    }
}
@keyframes sealFadeLift {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -62%) scale(0.92);
        opacity: 0;
    }
}
@keyframes cardFadeLift {
    0% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(24px) scale(0.96);
        opacity: 0;
    }
}
.guest-card {
    position: absolute;
    top: calc(50% + 130px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    width: min(88vw, 620px);
    padding: 30px 26px;
    border-radius: 20px;
    background-color: rgba(255, 250, 244, 0.96);
    background-image: url('/images/textura.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #8f6a45;
    box-shadow: 0 12px 28px rgba(97, 44, 28, 0.22);
    text-align: center;
    backdrop-filter: blur(4px);
    transition: opacity 0.2s ease-out;
}
.guest-line,
.guest-sub,
.guest-seats {
    font-style: normal;
}
.guest-line {
    font-size: 44px;
    font-weight: 600;
    line-height: 1.1;
    font-family: 'Great Vibes', serif;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    background: linear-gradient(to right, #8f6a45, #b8842f, #c89b3c, #b8842f, #8f6a45);
    -webkit-background-clip: text;
    color: transparent;
}
.guest-sub {
    margin-top: 10px;
    font-size: 24px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #612C1C;
}
.guest-seats {
    margin-top: 8px;
    font-size: 34px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
    background: linear-gradient(to right, #8f6a45, #b8842f, #c89b3c, #b8842f, #8f6a45);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
#guestCardSeats,
#guestCardSeatsTxt {
    font-size: 1em;
    font-weight: inherit;
}
.guest-seats span {
    background: inherit;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hidden {
    display: none !important;
  }
  
/* Contenedor principal */
.photo-section {
    position: relative; /* Permite que .photo-text se posicione sobre la imagen */
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
    text-align: center;
    box-sizing: border-box;
    overflow: hidden; /* Evita que el contenido se desborde */
}
/* Contenedor de la imagen */
.photo-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}
.photo-container img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen cubra completamente el contenedor */
    transform: scale(1.01);
    transition: transform 1.2s ease;
}
/* Contenedor del texto, posicionado sobre la imagen */
.photo-text {
    position: absolute; /* Posiciona el texto sobre la imagen */
    max-width: 100%;
    z-index: 10; /* Asegura que el texto esté por encima de otros elementos */
    margin-top:140px;
}
/* Estilo para los encabezados y párrafos */
.photo-text h1 {
    font-size: clamp(56px, 10vw, 150px);
    text-transform: capitalize;
    margin-top: -800px;
    padding: 10px;
    letter-spacing: 1px;
}
.photo-text h2 {
    font-size: clamp(34px, 6vw, 100px);
    margin-top: -130px;
}
.photo-text h1, .photo-text h2, .photo-text h3 {
    color: white;
}
.photo-text p {
    font-size: 100px;
    margin: -100px 0 0 0;
    font-style: italic;
    color: white;
    text-shadow: 0 0 10px rgba(32, 32, 32, 0.857);
    
}
.photo-section:hover .photo-container img {
    transform: scale(1.04);
}
/* Estilo para la cuenta regresiva */
.title h1{
    font-size: 150px;
    text-transform: capitalize;
    margin-top: -800px;
}
.countdown {
    display: flex;
    justify-content: center;
    margin: 20px 0 0 0;
}
.countdown-section {
    position: relative;
    padding: 80px 20px 0;
    text-align: center;
    background: transparent;
}
.countdown-overlay {
    position: absolute;
    inset: 0;
    background: rgba(152, 68, 22, 0.14);
}
.countdown-inner {
    position: relative;
    z-index: 1;
    max-width: 1040px;
    margin: 0 auto;
}
.countdown-title {
    margin: -50px 0 24px;
}
.countdown-title,
.countdown-title span {
    font-family: 'Great Vibes', serif;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.count-row {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}
.count-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: var(--flip-width);
    transition: transform 0.25s ease;
}
.count-item .label {
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 17px;
    color: var(--color-terracotta);
    letter-spacing: 1.6px;
    font-style: normal;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(152, 68, 22, 0.14);
}
.flip {
    --flip-width: 168px;
    --flip-height: 188px;
    --flip-font-size: 84px;
    position: relative;
    width: var(--flip-width);
    height: var(--flip-height);
    overflow: hidden;
    perspective: 1000px;
    transition: transform 0.25s ease, filter 0.25s ease;
}
.flip::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 50%;
    height: 1px;
    background: rgba(152, 68, 22, 0.12);
    z-index: 5;
}
.top,
.bottom,
.top-flip,
.bottom-flip {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(249, 241, 235, 0.98));
    border: 1px solid rgba(152, 68, 22, 0.14);
    box-shadow: 0 12px 28px rgba(97, 44, 28, 0.08);
}
.top,
.top-flip {
    top: 0;
    align-items: flex-end;
    border-radius: 18px 18px 0 0;
    transform-origin: bottom;
}
.bottom,
.bottom-flip {
    bottom: 0;
    align-items: flex-start;
    border-radius: 0 0 18px 18px;
    transform-origin: top;
}
.top .digit,
.top-flip .digit,
.bottom .digit,
.bottom-flip .digit {
    position: absolute;
    left: 0;
    width: 100%;
    height: var(--flip-height);
    display: flex;
    align-items: center;
    justify-content: center;
}
.digit {
    font-family: 'Cormorant Garamond', serif;
    font-size: var(--flip-font-size);
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    color: var(--color-brown);
}
.count-item:hover {
    transform: translateY(-4px);
}
.count-item:hover .flip {
    transform: translateY(-2px);
    filter: drop-shadow(0 12px 22px rgba(97, 44, 28, 0.12));
}
.top .digit,
.top-flip .digit {
    top: 0;
}
.bottom .digit,
.bottom-flip .digit {
    top: calc(var(--flip-height) / -2);
}
.top {
    z-index: 3;
}
.bottom {
    z-index: 1;
}
.top-flip {
    z-index: 4;
    opacity: 0;
}
.bottom-flip {
    z-index: 2;
    opacity: 0;
    transform: rotateX(90deg);
}
.flip.is-dropping .top-flip {
    opacity: 1;
    animation: flipTop 0.42s ease-in forwards;
}
.flip.is-dropping .bottom-flip {
    opacity: 1;
    animation: flipBottom 0.42s ease-out forwards;
}
@keyframes flipTop {
    0% {
        transform: rotateX(0deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(-90deg);
        opacity: 1;
    }
}
@keyframes flipBottom {
    0% {
        transform: rotateX(90deg);
        opacity: 1;
    }
    100% {
        transform: rotateX(0deg);
        opacity: 0;
    }
}
.half-photo {
    margin-top: 55px;
}
.half-photo img {
    display: block;
    width: min(100%, 900px);
    margin: 0 auto;
    object-fit: cover;
    box-shadow: 0 14px 30px rgba(97, 44, 28, 0.16);
}
.content {
    padding: 0 0 0 0;
    background: transparent;
    margin: 0 0 0 0;
}
.unit {
    display: inline-block;
    text-align: center;
}
.label {
    font-size: 18px;
    display: block;
}
.fade-in-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
    will-change: opacity, transform;
}

.fade-in-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.title {
    opacity: 1 !important; /* Asegura que siempre sea visible */
    transform: none !important;
}
.lord-icon-style {
    width: 350px;
    height: 350px;
}
@keyframes fadeIn {
    to {
        opacity: 1;
    }
}
.event-section {
    padding: 55px 20px 30px;
    background: transparent;
}
.event-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 40px 30px;
    border-radius: 28px;
    background: rgb(252 247 240 / 96%);
    box-shadow: 0 18px 50px rgba(95, 109, 75, 0.12);
    text-align: center;
    border: 1px solid rgba(152, 68, 22, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.event-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}
.event-icon lord-icon {
    width: 110px;
    height: 110px;
}
.event-titulo {
    margin: 0 0 18px;
}
.event-inicial {
    font-size: inherit;
    font-family: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    color: inherit;
}
.event-resto {
    font-family: inherit;
    font-size: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    color: inherit;
}
.event-time,
.event-lugar,
.event-direccion {
    margin: 10px 0;
    color: var(--color-brown);
    font-style: normal;
    line-height: 1.5;
}
.event-time {
    font-weight: 400;
}
.event-lugar {
    margin-top: 0;
    font-weight: 600;
    color: var(--color-terracotta);
}
.event-direccion {
    line-height: 1.4;
}
.btn-location {
    display: inline-block;
    margin-top: 18px;
    padding: 14px 24px;
    border-radius: 999px;
    background: var(--color-terracotta);
    color: white;
    font-size: 24px;
    text-decoration: none;
    font-style: normal;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(95, 109, 75, 0.18);
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}
.btn-location:hover {
    background: var(--color-olive);
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(95, 109, 75, 0.22);
}
.btn-location::after,
.rsvp-btn::after,
#btnConfirmarRsvp::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transition: left 0.55s ease;
}
.btn-location:hover::after,
.rsvp-btn:hover::after,
#btnConfirmarRsvp:hover::after {
    left: 130%;
}
.gifts {
    padding: 55px 20px 40px;
    background: transparent;
    text-align: center;
}
.gifts h3 {
    margin: 12px 0 18px;
}
.gifts-strong {
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.5;
    color: var(--color-brown);
}
.dress {
    padding: 55px 20px 40px;
    background: transparent;
    text-align: center;
}
.dress h3 {
    margin: 12px 0 18px;
}
.dress-strong {
    margin: 0 0 10px;
    font-weight: 500;
    color: var(--color-terracotta);
}
.dress-note {
    margin: 0 auto;
    max-width: 820px;
    line-height: 1.5;
    color: var(--color-brown);
}
.palette-block {
    max-width: 700px;
    margin: 28px auto 0;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.38);
    border: 1px solid rgba(152, 68, 22, 0.08);
    box-shadow: 0 16px 35px rgba(97, 44, 28, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.palette-title {
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.palette-swatches {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}
.palette-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.palette-circle {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    border: 1px solid rgba(95, 109, 75, 0.15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65);
}
.palette-circle-white {
    background: #f8f7f2;
}
.palette-circle-terracotta {
    background: #c97b63;
}
.palette-circle-blue {
    background: #6d87a8;
}
.palette-label {
}
.nochild-section {
    position: relative;
    padding: 60px 20px 50px;
    background: transparent;
    text-align: center;
    overflow: hidden;
}
.nochild-overlay {
    position: absolute;
    inset: 0;
    background: rgba(152, 68, 22, 0.14);
}
.nochild-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.nochild-section h2 {
    margin: 0 0 18px;
}
.nochild-text {
    margin: 0 auto;
    max-width: 760px;
    line-height: 1.5;
    color: var(--color-brown);
}
.media-share-section {
    padding: 60px 20px 50px;
    background: transparent;
}
.media-share-inner {
    text-align: center;
}
.media-share-title {
    margin: 0 0 20px;
}
.media-share-inicial {
    font-size: inherit;
    font-family: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    color: inherit;
}
.media-share-resto {
    font-family: inherit;
    font-size: inherit;
    background: inherit;
    -webkit-background-clip: inherit;
    background-clip: inherit;
    color: inherit;
}
.media-share-space {
    display: inline-block;
    width: 14px;
}
.media-share-text {
    max-width: 820px;
    margin: 0 auto 28px;
    line-height: 1.5;
    color: var(--color-brown);
}
.media-share-qr-wrap {
    margin-bottom: 24px;
}
.media-share-qr {
    width: min(100%, 320px);
    height: auto;
}
.btn-media-share {
    margin-top: 0;
}
.rsvp {
    position: relative;
    padding: 60px 20px 50px;
    background: transparent;
    text-align: center;
    overflow: hidden;
}
.rsvp-overlay {
    position: absolute;
    inset: 0;
    background: rgba(152, 68, 22, 0.14);
}
.rsvp-inner {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}
.rsvp h3 {
    margin: 12px 0 18px;
}
.rsvp-strong {
    max-width: 850px;
    margin: 0 auto 28px;
    line-height: 1.5;
    color: var(--color-brown);
}
.rsvp-inline {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.42);
    border: 1px solid rgba(152, 68, 22, 0.08);
    box-shadow: 0 18px 40px rgba(97, 44, 28, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.rsvp-label {
    display: block;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.rsvp input,
.rsvp select {
    width: 100%;
    padding: 16px 18px;
    border: 1px solid rgba(95, 109, 75, 0.18);
    border-radius: 16px;
    font-size: var(--body-font-size);
    color: var(--color-terracotta);
    background: white;
    font-family: 'Cormorant Garamond', serif;
    font-style: normal;
}
.rsvp-choice-label {
    margin-top: 24px;
}
.rsvp-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.rsvp-btn,
#btnConfirmarRsvp {
    border: none;
    border-radius: 999px;
    padding: 14px 22px;
    font-size: 22px;
    cursor: pointer;
    font-style: normal;
    font-family: 'Cormorant Garamond', serif;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.rsvp-btn {
    background: white;
    color: var(--color-terracotta);
    border: 1px solid rgba(95, 109, 75, 0.18);
}
.rsvp-btn.is-active {
    background: var(--color-olive);
    color: white;
}
.rsvp-btn:hover,
#btnConfirmarRsvp:hover,
.event-card:hover,
.rsvp-inline:hover,
.palette-block:hover {
    transform: translateY(-4px);
}
.event-card:hover,
.rsvp-inline:hover,
.palette-block:hover {
    box-shadow: 0 24px 48px rgba(97, 44, 28, 0.1);
}
.rsvp-guests-wrap {
    margin-top: 24px;
}
#btnConfirmarRsvp {
    margin-top: 24px;
    background: var(--color-terracotta);
    color: white;
    box-shadow: 0 8px 20px rgba(95, 109, 75, 0.18);
}
#btnConfirmarRsvp:hover {
    background: var(--color-olive);
}
.rsvp-msg {
    margin-top: 16px;
    color: var(--color-terracotta);
}
.contenedor-play {
    position: fixed;
    right: 24px;
    bottom: 28px;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 2px solid rgba(152, 68, 22, 0.9);
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 12px 30px rgba(97, 44, 28, 0.18);
    transform: translate3d(0, var(--sound-bubble-offset, 0px), 0);
    transition: transform 0.2s ease-out, opacity 0.3s ease, background 0.3s ease;
    animation: bubblePulse 3.2s ease-in-out infinite;
}
.contenedor-play::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08));
    pointer-events: none;
}
.historia-section {
    position: relative;
    overflow: hidden;
    padding: 120px 40px;
    background: transparent;
}
.historia-fondo {
    position: absolute;
    inset: 0;
    background: transparent;
}
.historia-overlay {
    position: absolute;
    inset: 0;
    background: transparent;
}
.section-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}
.historia-titulo {
    margin: 0 0 30px;
}
.historia-titulo,
.historia-titulo span {
    font-family: 'Great Vibes', serif;
    background: var(--title-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.historia-palabra {
    display: inline-flex;
    align-items: baseline;
}
.historia-inicial {
    font-size: 1.2em;
}
.historia-resto {
    font-size: 1em;
    margin-left: 4px;
}
.historia-espacio {
    display: inline-block;
    width: 18px;
}
.historia-texto {
    max-width: 980px;
    margin: 0 auto 50px;
    line-height: 1.5;
}
.historia-fotos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}
.historia-foto {
    position: relative;
    width: 420px;
    padding-top: 26px;
}
.historia-pin {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #b9805d;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 1;
}
.historia-foto img {
    display: block;
    width: 100%;
    height: 520px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(95, 109, 75, 0.18);
    border: 10px solid #fff;
}
.contenedor-play .fa-play, .contenedor-play .fa-pause {
    font-size: 24px;
    color: var(--color-terracotta);
}
#playPauseButton {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 999px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    touch-action: manipulation;
    will-change: transform, opacity;
    transition: transform 0.2s ease, background 0.2s ease;
}
#playPauseButton:hover {
    background: rgba(152, 68, 22, 0.08);
}
#playPauseButton:active {
    transform: scale(0.96);
}
#playPauseButton:focus-visible {
    outline: 2px solid rgba(152, 68, 22, 0.5);
    outline-offset: 4px;
}
.gallery-section {
    text-align: center;
}
.gallery-main {
    margin-bottom: 10px;
    text-align: center;
}
.gallery-main img {
    width: 850px;
    height: 850px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.gallery-main img:hover {
    transform: scale(1.05);
    box-shadow: 0 22px 44px rgba(97, 44, 28, 0.16);
}
.gallery-thumbs {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-direction: row;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;
}
.gallery-thumbs img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.gallery-thumbs img:hover {
    transform: scale(1.05);
    box-shadow: 0 16px 34px rgba(97, 44, 28, 0.16);
    opacity: 0.95;
}
.photo-full img {
    width: 100%;
    height: auto;
    margin-bottom: -10px;
    padding: 0;
}
/* Por defecto, el modal está oculto */
.modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 950px; 
    height: 990px; 
    background-color: #ffffffa1; 
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    align-content: center;
    justify-items: center;
    opacity: 0;
    transition: opacity 0.28s ease, transform 0.28s ease;
}
.modal.is-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.modal.is-opening,
.modal.is-closing {
    display: grid;
    transform: translate(-50%, -48%) scale(0.96);
}
/* Estilos del botón de cierre */
.close {
    position: absolute;
    top: 50px;
    right: 20px;
    color: white;
    font-size: 85px;
    cursor: pointer;
    border: none;
    background: transparent;
}
/* Estilo para la imagen dentro del modal */
.modal-content {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
    display: block;
}
.banner-section {
    background-color: var(--color-cream);
    text-align: center;
    padding: 18px 20px;
    font-size: clamp(26px, 4vw, 46px);
    color: var(--color-terracotta);
    margin-top: 5px;
    line-height: 1.35;
}
footer {
    background: linear-gradient(180deg, rgba(38, 52, 35, 0.96), rgba(24, 33, 22, 0.98));
    color: white;
    text-align: center;
    padding: 28px 20px 22px;
    border-top: 1px solid rgba(192, 149, 106, 0.2);
    box-shadow: 0 -16px 40px rgba(24, 33, 22, 0.18);
}
footer .social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-bottom: 18px;
}
footer .social-icons a {
    color: white;
    font-size: 38px;
    transition: color 0.3s, transform 0.3s ease;
}
footer .social-icons a:hover {
    color: var(--color-gold);
    transform: translateY(-3px);
}
footer .logo img {
    width: 108px;
    height: auto;
    opacity: 0.92;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.18));
}
.icono-contenedor {
    position: relative;
    z-index: 2;
}
.icono-contenedor .fas {
    display: block;
}
/*svg*/
.icon-image {
    width: 150px;          /* Ajusta el tamaño */
    height: 150px;
    animation: rotate 4s linear infinite; /* Animación rotación */
    display: block;        /* Opcional, para que no haya espacio abajo */
    margin: 0 auto;        /* Centrar si quieres */
  }
@keyframes bubblePulse {
    0%, 100% {
        box-shadow: 0 12px 30px rgba(97, 44, 28, 0.18);
    }
    50% {
        box-shadow: 0 16px 36px rgba(152, 68, 22, 0.24);
    }
}
  @keyframes fade {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
  }
  
  .icon-image {
    animation: fade 3s ease-in-out infinite;
  }
  
@media (max-width: 768px) {
    :root {
        --title-font-size: 34px;
        --body-font-size: 18px;
    }
    .main-content {
        padding: 0;
        max-width: 100%; /* Asegura que ocupe todo el ancho disponible en móviles */
    }
    #seal {
        width: 100px;
        height: 100px;
    }
    #seal h2 {
        font-size: 32px;
    }
    .guest-card {
        top: calc(50% + 95px);
        width: min(90vw, 320px);
        padding: 18px 16px;
        border-radius: 16px;
    }
    .guest-line {
        font-size: 35px;
    }
    .guest-sub {
        margin-top: 6px;
        font-size: 12px;
        letter-spacing: 0.8px;
    }
    .guest-seats {
        margin-top: 6px;
        font-size: 25px;
    }
    .photo.section{
        position: relative; /* Permite que .photo-text se posicione sobre la imagen */
        display: flex;
        justify-content: center;
        align-items: center;
        height: 100vh; /* Asegura que la sección ocupe toda la altura de la pantalla */
        text-align: center;
        box-sizing: border-box;
        overflow: hidden; /* Evita que el contenido se desborde */
    }
    .photo-text h1 {
        margin-top: -435px;
        font-size: 42px;
        line-height: 1.05;
    }
    .photo-text h2 {
        margin-top: -34px;
        font-size: 24px;
    }
    .photo-text h3{
        margin-top: -50px;
        font-size: 45px;
        text-transform: none;
    }
    .photo-text p {
        font-size: 25px;
        padding: 10px;
        margin-top: -30px;
    }
    .countdown-section {
        padding: 44px 16px 0;
    }
    .countdown-title {
        margin: 0 0 20px;
    }
    .count-row {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        align-items: flex-start;
        gap: 6px;
        max-width: 100%;
        margin: 0 auto;
    }
    .count-item {
        flex: 1 1 0;
        min-width: 0;
        gap: 8px;
    }
    .count-item .label {
        width: 100%;
        padding: 4px 6px;
        font-size: 11px;
        letter-spacing: 1px;
    }
    .flip {
        --flip-width: 100%;
        --flip-height: 78px;
        --flip-font-size: 30px;
    }
    .half-photo {
        margin-top: 24px;
    }
    .half-photo img {
        box-shadow: 0 12px 24px rgba(97, 44, 28, 0.16);
    }
    .historia-section {
        padding: 48px 18px;
    }
    .historia-titulo {
        font-size: 30px;
        margin-bottom: 18px;
    }
    .historia-espacio {
        width: 8px;
    }
    .historia-texto {
        font-size: 17px;
        margin-bottom: 28px;
        padding: 0 8px;
        color: #612C1C;
    }
    .historia-fotos {
        gap: 20px;
        flex-wrap: nowrap;
        justify-content: center;
    }
    .historia-foto {
        width: 120px;
        padding-top: 20px;
    }
    .historia-foto img {
        width: 120px;
        height: 200px;
        border-width: 8px;
        border-radius: 14px;
        margin-top: -10px;
    }
    .historia-pin {
        width: 14px;
        height: 14px;
    }
    .parents-section {
        padding: 10px 14px 42px;
    }
    .parents-title {
        font-size: 30px;
        margin-bottom: 18px;
    }
    .parents-grid {
        gap: 18px;
    }
    .parents-role {
        font-size: 18px;
    }
    .parents-names {
        font-size: 36px;
    }
    .event-section {
        padding: 34px 16px 20px;
    }
    .event-card {
        padding: 24px 18px;
        border-radius: 20px;
    }
    .event-titulo {
        font-size: 34px;
    }
    .event-time {
        font-size: 18px;
    }
    .event-lugar {
        font-size: 24px;
        font-style: italic;
        font-weight: 500;
    }
    .event-direccion {
        font-size: 17px;
    }
    .btn-location {
        font-size: 13px;
        padding: 12px 16px;
    }
    .gifts {
        padding: 34px 16px 28px;
    }
    .gifts h3 {
        font-size: 34px;
    }
    .gifts-strong {
        font-size: 18px;
    }
    .dress {
        padding: 34px 16px 28px;
    }
    .dress h3 {
        font-size: 34px;
    }
    .dress-strong {
        font-size: 22px;
    }
    .dress-note {
        font-size: 18px;
    }
    .nochild-section {
        padding: 40px 16px 30px;
    }
    .nochild-overlay {
        background: rgba(152, 68, 22, 0.14);
    }
    .nochild-section h2 {
        font-size: 34px;
    }
    .nochild-inner {
        max-width: 100%;
    }
    .nochild-text {
        font-size: 18px;
    }
    .palette-block {
        margin-top: 20px;
        padding: 18px 14px;
        border-radius: 18px;
    }
    .palette-title {
        font-size: 16px;
    }
    .palette-swatches {
        gap: 18px;
    }
    .palette-circle {
        width: 44px;
        height: 44px;
    }
    .palette-label {
        font-size: 16px;
    }
    .media-share-section {
        padding: 40px 16px 30px;
    }
    .media-share-title {
        font-size: 34px;
    }
    .media-share-space {
        width: 8px;
    }
    .media-share-text {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .media-share-qr {
        width: min(100%, 220px);
    }
    .rsvp {
        padding: 40px 16px 30px;
    }
    .rsvp h3 {
        font-size: 34px;
    }
    .rsvp-strong {
        font-size: 18px;
        margin-bottom: 20px;
    }
    .rsvp-inline {
        padding: 20px 16px;
        border-radius: 18px;
    }
    .rsvp-label {
        font-size: 13px;
    }
    .rsvp input,
    .rsvp select {
        padding: 12px 14px;
        font-size: 17px;
    }
    .rsvp-btn,
    #btnConfirmarRsvp {
        width: 100%;
        font-size: 16px;
        padding: 12px 16px;
    }
    .rsvp-msg {
        font-size: 15px;
    }
    .lord-icon-style{
        width: 200px;
        height: 200px;
    }
    .directions-button{
        font-size: 16px;
    }
    .contenedor-play {
        right: 16px;
        bottom: 18px;
        width: 56px;
        height: 56px;
    }
    .gallery-section {
        padding: 40px 16px 30px;
    }
    .gallery-section h2 {
        font-size: 34px;
        margin-bottom: 18px;
    }
    .modal{
        width: min(92vw, 400px);
        height: auto;
        max-height: 82vh;
        padding: 16px;
        border-radius: 20px;
    }
    .close{
        top: 16px;
        right: 16px;
        font-size: 56px;
        line-height: 1;
    }
    .carousel-content {
        width: 90%;
    }
    .gallery-main img {
        width: min(100%, 320px);
        height: 420px;
        border-radius: 18px;
    }
    .gallery-thumbs {
        gap: 10px;
        justify-content: center;
    }
    .gallery-thumbs img {
        width: 88px;
        height: 104px;
        border-radius: 12px;
    }
    .modal-content {
        max-width: 100%;
        max-height: calc(82vh - 32px);
        border-radius: 14px;
    }
    .contenedor-play .fa-play, .contenedor-play .fa-pause {
        font-size: 21px;
    }
    .banner-section{
        font-size: 22px;
        padding: 16px;
    }
    footer {
        padding: 24px 16px 20px;
    }
    footer .social-icons a {
        font-size: 30px;
    }
    footer .logo img {
        width: 92px;
    }
}
@media (min-width: 768px) and (max-width: 1900px) {
    .photo-section{
        height: 2000px;
    }
    .main-content {
        padding: 0;
        max-width: 100%; /* Ajusta el ancho para tablets */
    }
    .photo-text h1 {
        margin-top: -800px;
        font-size: 135px;
    }

    .photo-text h2 {
        margin-top: -100px;
        font-size: 80px;
    }

    .photo-text p {
        font-size: 60px;
        padding: 10px;
    }
    .contenedor-play {
        right: 20px;
        bottom: 22px;
    }
    .historia-section {
        padding: 70px 24px;
    }
    .historia-titulo {
        font-size: 66px;
    }
    .historia-texto {
        font-size: 22px;
        max-width: 720px;
    }
    .historia-foto {
        width: 128px;
    }
    .historia-foto img {
        height: 145px;
        border-bottom-width: 24px;
    }
    .parents-section {
        padding: 10px 24px 54px;
    }
    .parents-title {
        font-size: 56px;
    }
    .parents-role {
        font-size: 24px;
    }
    .parents-names {
        font-size: 56px;
    }
    .gallery-main img {
        width: 700px; /* Ajusta el tamaño de las imágenes principales en la galería */
        height: 750px;
    }

    .gallery-thumbs img {
        width: 160px;
        height: 200px;
    }
    .modal{
        width: 700px;
        height: 750px;
    }
    .countdown-section {
        padding: 70px 24px 0;
    }
    .countdown-section h3 {
        font-size: 56px;
    }
    .count-row {
        gap: 18px;
    }
    .flip {
        --flip-width: 140px;
        --flip-height: 160px;
        --flip-font-size: 72px;
    }
    .count-item .label {
        font-size: 22px;
    }

    .lord-icon-style {
        width: 300px;
        height: 300px;
    }
    .event-card {
        max-width: 680px;
        padding: 34px 24px;
    }
    .event-titulo {
        font-size: 56px;
    }
    .event-time {
        font-size: 36px;
    }
    .event-lugar {
        font-size: 38px;
    }
    .event-direccion {
        font-size: 28px;
    }
    .btn-location {
        font-size: 20px;
    }
    .gifts h3 {
        font-size: 52px;
    }
    .gifts-strong {
        font-size: 32px;
    }
    .dress h3 {
        font-size: 52px;
    }
    .dress-strong {
        font-size: 34px;
    }
    .dress-note {
        font-size: 28px;
    }
    .palette-title {
        font-size: 22px;
    }
    .palette-circle {
        width: 56px;
        height: 56px;
    }
    .palette-label {
        font-size: 20px;
    }
    .media-share-title {
        font-size: 56px;
    }
    .media-share-text {
        font-size: 28px;
    }
    .media-share-qr {
        width: min(100%, 280px);
    }
    .btn-media-share {
        font-size: 20px;
    }
    .rsvp h3 {
        font-size: 52px;
    }
    .rsvp-strong {
        font-size: 28px;
    }
    .rsvp-label {
        font-size: 20px;
    }
    .rsvp input,
    .rsvp select {
        font-size: 22px;
    }
    .rsvp-btn,
    #btnConfirmarRsvp {
        font-size: 20px;
    }
    .banner-section {
        font-size: 55px;
    }
    footer .social-icons a {
        font-size: 40px;
    }
    footer .logo img{
        width: 120px;
        height: auto;
    }
}
