@import url('https://fonts.googleapis.com/css2?family=Aguafina+Script&family=Alex+Brush&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Parisienne&family=Pinyon+Script&display=swap');

:root {
    /* Tema claro (predeterminado) */
    --background-color: #ffffff;
    --text-color: #333;
    --header-bg: #ffffff;
    --header-shadow: rgba(0, 0, 0, 0.1);
    --section-alt-bg: #f5f5f5;
    --section-title-color: #e2c15c;
    --grid-item-bg: #ffffff;
    --divider-color: #d1d1d1;
    --quote-color: #666;
    --evento-bg: #F9FAF5;
    --hero-bg: #f5f5f5;
    --link-hover: #000000;
    --logo-color: #666;
}


body.dark-theme {
    --background-color: #121212;
    --text-color: #ffffff;
    --header-bg: #121212;
    --header-shadow: rgba(0, 0, 0, 0.3);
    --section-alt-bg: #000000;
    --section-title-color: #b38c52;
    --grid-item-bg: #1e1e1e;
    --divider-color: #444444;
    --quote-color: #a0a0a0;
    --evento-bg: #1a1a1a;
    --hero-bg: #1e1e1e;
    --link-hover: #ffffff;
    --logo-color: #b0b0b0;
}

/* Reglas específicas para la sección #info */
section#info.alt h3,
section#info.alt p {
    color: var(--text-color) !important;
    /* El !important asegura que anula cualquier otro estilo */
    transition: color 0.3s ease;
}

/* Para asegurar que el color se actualiza tanto en tema claro como oscuro */
body:not(.dark-theme) section#info.alt h3,
body:not(.dark-theme) section#info.alt p {
    color: var(--text-color) !important;
}

body.dark-theme section#info.alt h3,
body.dark-theme section#info.alt p {
    color: var(--text-color) !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease;
    /* Transición suave */
}

body {
    font-family: "Montserrat", sans-serif;
    color: #000000;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
    background-color: var(--background-color);
}

h1,
h2,
h3,
.serif {
    font-family: "Parisienne", cursive;
}

a {
    text-decoration: none;
    color: var(--logo-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    z-index: 1000;
    box-shadow: 0 2px 4px var(--header-shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 20px;
    letter-spacing: 2px;
    color: var(--logo-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-color);
}

.desktop-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}


.desktop-menu .switch {
    margin-left: 30px;
    display: flex;
    align-items: center;
}

.desktop-menu .switch {
    margin-left: 30px;
    display: flex;
    align-items: center;
}



.desktop-menu a {
    margin-left: 30px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.desktop-menu a:hover {
    color: var(--link-hover);
}

.mobile-menu {
    display: none;
    width: 100%;
    padding-bottom: 10px;
}

.mobile-menu .switch {}

.mobile-menu a {
    display: block;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background-color: var(--hero-bg);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 60px;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 300;
    letter-spacing: 4px;
    margin-bottom: 20px;
    color: var(--text-color);
}


.hero-content {
    text-align: center;
    z-index: 10;
    color: var(--text-color);
}

.quote {
    font-style: italic;
    font-size: 50px;
    margin: 30px 0;
    color: var(--quote-color);
}

.date {
    font-size: 1.5rem;
    letter-spacing: 2px;
    margin: 30px 0 10px;
}

.divider {
    width: 40px;
    height: 1px;
    background-color: var(--divider-color);
    margin: 30px auto;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    background-color: var(--background-color);
}

section.alt {
    background-color: var(--section-alt-bg);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 40px;
    color: var(--section-title-color);
}

.evento {
    background-color: var(--evento-bg);
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.grid-item {
    text-align: center;
    background-color: var(--grid-item-bg);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.grid-item h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
    font-weight: 500;
}

.grid-item p {
    margin-bottom: 10px;
}



/* Ajustes para la sección de regalos */
#regalos h3,
#regalos p {
    color: var(--text-color);
}

/* Para las imágenes dentro de grid-item */
.grid-item img {
    max-width: 100%;
    height: auto;
    transition: filter 0.3s ease;
}

/* Ajuste de filtro para imágenes en modo oscuro */
body.dark-theme .grid-item img {
    filter: brightness(0.9) contrast(1.1);
}

/* Para íconos específicos como location */
.grid-item img[src*="icons8"] {
    /* Mantiene buen contraste en ambos temas */
    filter: none;
}

body.dark-theme .grid-item img[src*="icons8"] {
    filter: invert(1);
}

/* Para nombres con strong */
.grid-item strong {
    color: var(--text-color);
}

/* Para sección de regalos centrada */
#regalos .grid-item {
    margin: 0 auto 30px;
    max-width: 500px;
}

/* Responsive */
@media (max-width: 768px) {
    .desktop-menu {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero h1 {
        font-size: 3rem;
    }


}

/* Para dispositivos móviles */
@media (max-width: 768px) {
    .mobile-menu {
        flex-direction: column;
        /* Cambia a columna en móvil si es un menú desplegable */
        /* O mantenlo en fila pero con ajustes para pantallas pequeñas */
    }

    /* Si es un menú tipo hamburguesa que se despliega verticalmente */
    .mobile-menu.open {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        /* Alinea a la izquierda en móvil */
    }

    .mobile-menu a,
    .mobile-menu .switch {
        margin: 10px 0;
        /* Espaciado vertical en lugar de horizontal */
        margin-left: 0;
        /* Quita el margen izquierdo */
    }

    /* Si es un menú horizontal en móvil pero con elementos más pequeños */
    .mobile-menu.horizontal {
        flex-wrap: wrap;
        justify-content: center;
    }

    .mobile-menu.horizontal a,
    .mobile-menu.horizontal .switch {
        margin: 5px 10px;
        /* Menos espacio en móvil */
        font-size: 12px;
        /* Texto más pequeño */
    }
}


/* Estilos para el botón de copiar */
.copy-button {
    background-color: var(--section-title-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.copy-button:hover {
    background-color: var(--link-hover);
    transform: translateY(-2px);
}

.copy-button:active {
    transform: translateY(0);
}

.copy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

.clabe-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: var(--text-color);
    margin-bottom: 10px;
    letter-spacing: 1px;
    font-weight: bold;
}

/* Mensaje de éxito */
.copy-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background-color: var(--section-title-color);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 9999;
}

.copy-message.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}


/* Estilos para el botón de ir a la mesa de regalos */
.gift-button {
    background-color: var(--section-title-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    display: inline-block;
    margin: 15px auto;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gift-button:hover {
    background-color: var(--link-hover);
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gift-button:active {
    transform: translateY(-1px);
}

.gift-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

/* Ajuste para modo oscuro */
body.dark-theme .gift-button {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

body.dark-theme .gift-button:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
}



/* boton para canbiar entre tema claro y oscuro */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    align-items: center;

}

.switch #input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #2196f3;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    z-index: 0;
    overflow: hidden;
}

.sun-moon {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: yellow;
    -webkit-transition: 0.4s;
    transition: 0.4s;
}

#input:checked+.slider {
    background-color: black;
}

#input:focus+.slider {
    box-shadow: 0 0 1px #2196f3;
}

#input:checked+.slider .sun-moon {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: white;
    -webkit-animation: rotate-center 0.6s ease-in-out both;
    animation: rotate-center 0.6s ease-in-out both;
}

.moon-dot {
    opacity: 0;
    transition: 0.4s;
    fill: gray;
}

#input:checked+.slider .sun-moon .moon-dot {
    opacity: 1;
}

.slider.round {
    border-radius: 34px;
}

.slider.round .sun-moon {
    border-radius: 50%;
}

#moon-dot-1 {
    left: 10px;
    top: 3px;
    position: absolute;
    width: 6px;
    height: 6px;
    z-index: 4;
}

#moon-dot-2 {
    left: 2px;
    top: 10px;
    position: absolute;
    width: 10px;
    height: 10px;
    z-index: 4;
}

#moon-dot-3 {
    left: 16px;
    top: 18px;
    position: absolute;
    width: 3px;
    height: 3px;
    z-index: 4;
}

#light-ray-1 {
    left: -8px;
    top: -8px;
    position: absolute;
    width: 43px;
    height: 43px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-2 {
    left: -50%;
    top: -50%;
    position: absolute;
    width: 55px;
    height: 55px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

#light-ray-3 {
    left: -18px;
    top: -18px;
    position: absolute;
    width: 60px;
    height: 60px;
    z-index: -1;
    fill: white;
    opacity: 10%;
}

.cloud-light {
    position: absolute;
    fill: #eee;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
}

.cloud-dark {
    position: absolute;
    fill: #ccc;
    animation-name: cloud-move;
    animation-duration: 6s;
    animation-iteration-count: infinite;
    animation-delay: 1s;
}

#cloud-1 {
    left: 30px;
    top: 15px;
    width: 40px;
}

#cloud-2 {
    left: 44px;
    top: 10px;
    width: 20px;
}

#cloud-3 {
    left: 18px;
    top: 24px;
    width: 30px;
}

#cloud-4 {
    left: 36px;
    top: 18px;
    width: 40px;
}

#cloud-5 {
    left: 48px;
    top: 14px;
    width: 20px;
}

#cloud-6 {
    left: 22px;
    top: 26px;
    width: 30px;
}

@keyframes cloud-move {
    0% {
        transform: translateX(0px);
    }

    40% {
        transform: translateX(4px);
    }

    80% {
        transform: translateX(-4px);
    }

    100% {
        transform: translateX(0px);
    }
}

.stars {
    transform: translateY(-32px);
    opacity: 0;
    transition: 0.4s;
}

.star {
    fill: white;
    position: absolute;
    -webkit-transition: 0.4s;
    transition: 0.4s;
    animation-name: star-twinkle;
    animation-duration: 2s;
    animation-iteration-count: infinite;
}

#input:checked+.slider .stars {
    -webkit-transform: translateY(0);
    -ms-transform: translateY(0);
    transform: translateY(0);
    opacity: 1;
}

#star-1 {
    width: 20px;
    top: 2px;
    left: 3px;
    animation-delay: 0.3s;
}

#star-2 {
    width: 6px;
    top: 16px;
    left: 3px;
}

#star-3 {
    width: 12px;
    top: 20px;
    left: 10px;
    animation-delay: 0.6s;
}

#star-4 {
    width: 18px;
    top: 0px;
    left: 18px;
    animation-delay: 1.3s;
}

@keyframes star-twinkle {
    0% {
        transform: scale(1);
    }

    40% {
        transform: scale(1.2);
    }

    80% {
        transform: scale(0.8);
    }

    100% {
        transform: scale(1);
    }
}



.clock-countdown {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 40px auto;
    max-width: 600px;
}

.clock-container {
    width: 200px;
    height: 200px;
    position: relative;
    margin-bottom: 30px;
}

.clock-face {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #F9FAF5;
    border: 4px solid #D9A5C0;
    box-shadow: 0 0 30px rgba(115, 117, 102, 0.2), inset 0 0 10px rgba(115, 117, 102, 0.1);
    position: relative;
}

.clock-center {
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: #D9A5C0;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.clock-hand {
    position: absolute;
    background-color: #000000;
    transform-origin: bottom center;
    bottom: 50%;
    left: 50%;
    border-radius: 10px;
    transform: translateX(-50%);
}

.hour-hand {
    width: 4px;
    height: 50px;
    animation: rotateHourHand 86400s linear infinite;
}

.minute-hand {
    width: 3px;
    height: 70px;
    background-color: #000000;
    animation: rotateMinuteHand 3600s linear infinite;
}

.second-hand {
    width: 2px;
    height: 80px;
    background-color: #D9A5C0;
    animation: rotateSecondHand 60s linear infinite;
}

.clock-numbers {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.clock-number {
    position: absolute;
    font-family: "Alex Brush", cursive;
    font-size: 18px;
    color: #000000;
    font-weight: 500;
}

.n12 {
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.n3 {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
}

.n6 {
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
}

.n9 {
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
}

.clock-marks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.clock-mark {
    position: absolute;
    width: 3px;
    height: 10px;
    background-color: #000000;
    left: 50%;
    top: 5px;
    transform: translateX(-50%);
    transform-origin: center 90px;
}

.clock-mark:nth-child(1) {
    transform: rotate(30deg) translateY(-90px);
}

.clock-mark:nth-child(2) {
    transform: rotate(60deg) translateY(-90px);
}

.clock-mark:nth-child(3) {
    transform: rotate(120deg) translateY(-90px);
}

.clock-mark:nth-child(4) {
    transform: rotate(150deg) translateY(-90px);
}

.clock-mark:nth-child(5) {
    transform: rotate(210deg) translateY(-90px);
}

.clock-mark:nth-child(6) {
    transform: rotate(240deg) translateY(-90px);
}

.clock-mark:nth-child(7) {
    transform: rotate(300deg) translateY(-90px);
}

.clock-mark:nth-child(8) {
    transform: rotate(330deg) translateY(-90px);
}

.countdown-time {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 100px;
}

.time-number {
    font-size: 42px;
    font-weight: 400;
    color: #D9A5C0;
    font-family: "Alex Brush", cursive;
    margin-bottom: 5px;
}

.time-label {
    font-size: 14px;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
}

/* Animaciones */
@keyframes rotateHourHand {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes rotateMinuteHand {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

@keyframes rotateSecondHand {
    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }
}

/* Modo oscuro */
.dark-theme .clock-face {
    background-color: #ffffff;
    border-color: #D9A5C0;
}

.dark-theme .clock-center {
    background-color: #D9A5C0;
}

.dark-theme .hour-hand,
.dark-theme .minute-hand {
    background-color: #000000;
}

.dark-theme .second-hand {
    background-color: #D9A5C0;
}

.dark-theme .clock-number {
    color: #000000;
}

.dark-theme .clock-mark {
    background-color: #ffffff;
}

.dark-theme .time-number {
    color: #D9A5C0;
}

.dark-theme .time-label {
    color: #000000;
}

/* Responsive */
@media (max-width: 576px) {
    .countdown-time {
        flex-direction: column;
        gap: 15px;
    }

    .clock-container {
        width: 180px;
        height: 180px;
    }

    .time-number {
        font-size: 36px;
    }
}

footer {
    background-color: #ffffff;
    color: #000000;
    padding: 80px 0 30px;
    margin-top: 60px;
    font-family: "Alex Brush", cursive;
    font-size: 100px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Información de la boda */
.footer-info {
    text-align: center;
    padding: 20px;
}

.initials {
    font-family: 'Cormorant Garamond', serif;
    font-size: 48px;
    font-weight: 300;
    margin-bottom: 10px;
    letter-spacing: 5px;
    opacity: 0.8;
}

.footer-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.footer-info .date,
.footer-info .location {
    margin-bottom: 8px;
    font-size: 15px;
    letter-spacing: 1px;
}

.divider-animated {
    width: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
    margin: 20px auto;
    animation: expand 2s ease forwards;
}



/* RSVP */
.footer-rsvp {
    text-align: center;
    padding: 20px;
}

.footer-rsvp h4 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 400;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-rsvp p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.6;
}

.contact-label {
    margin-top: 15px;
    font-weight: 500;
}

.contact {
    margin-top: 5px;
    font-weight: 300;
    opacity: 0.9;
    transition: all 0.3s ease;
}

.contact:hover {
    color: #b38c52;
    transform: scale(1.05);
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

.time-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-container span {
    font-size: 24px;
    font-weight: 500;
    color: #b38c52;
}

.time-label {
    font-size: 12px !important;
    color: #d1d1d1 !important;
    margin-top: 5px;
}

/* Footer bottom */
.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    font-size: 13px;
    color: #aaa;
}

/* Animaciones */
@keyframes float {
    0% {
        transform: translatey(0px);
    }

    50% {
        transform: translatey(-15px);
    }

    100% {
        transform: translatey(0px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

@keyframes expand {
    0% {
        width: 0;
    }

    100% {
        width: 80px;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatHeart {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }

    50% {
        transform: translate(0px, -20px) rotate(0deg);
    }

    75% {
        transform: translate(-10px, -10px) rotate(-5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.pulse-animation {
    animation: pulse 3s infinite ease-in-out;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.footer-info {
    animation-delay: 0.2s;
}

.footer-quote {
    animation-delay: 0.5s;
}

.footer-rsvp {
    animation-delay: 0.8s;
}

/* Corazones flotantes */
.hearts-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.heart {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0.5;
    background-color: #D9A5C0;
    transform: rotate(45deg);
}

.heart:before,
.heart:after {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #D9A5C0;
    border-radius: 50%;
}

.heart:before {
    top: -5px;
    left: 0;
}

.heart:after {
    top: 0;
    left: -5px;
}

.heart:nth-child(1) {
    top: 10%;
    left: 10%;
    animation: floatHeart 6s infinite ease-in-out;
    animation-delay: 0.5s;
}

.heart:nth-child(2) {
    top: 20%;
    left: 20%;
    animation: floatHeart 8s infinite ease-in-out;
    animation-delay: 1s;
}

.heart:nth-child(3) {
    top: 15%;
    left: 40%;
    animation: floatHeart 7s infinite ease-in-out;
    animation-delay: 0.7s;
}

.heart:nth-child(4) {
    top: 25%;
    left: 60%;
    animation: floatHeart 9s infinite ease-in-out;
    animation-delay: 1.5s;
}

.heart:nth-child(5) {
    top: 10%;
    left: 80%;
    animation: floatHeart 6s infinite ease-in-out;
    animation-delay: 1.2s;
}

.heart:nth-child(6) {
    top: 40%;
    left: 15%;
    animation: floatHeart 7s infinite ease-in-out;
    animation-delay: 2s;
}

.heart:nth-child(7) {
    top: 45%;
    left: 35%;
    animation: floatHeart 8s infinite ease-in-out;
    animation-delay: 1.7s;
}

.heart:nth-child(8) {
    top: 50%;
    left: 50%;
    animation: floatHeart 6s infinite ease-in-out;
    animation-delay: 0.3s;
}

.heart:nth-child(9) {
    top: 70%;
    left: 65%;
    animation: floatHeart 7s infinite ease-in-out;
    animation-delay: 1.1s;
}

.heart:nth-child(10) {
    top: 80%;
    left: 80%;
    animation: floatHeart 8s infinite ease-in-out;
    animation-delay: 0.9s;
}

.heart:nth-child(11) {
    top: 65%;
    left: 25%;
    animation: floatHeart 7s infinite ease-in-out;
    animation-delay: 1.3s;
}

.heart:nth-child(12) {
    top: 90%;
    left: 90%;
    animation: floatHeart 6s infinite ease-in-out;
    animation-delay: 1.8s;
}

/* Wave effect */
.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

/* Tema oscuro/claro adaptativo con el switch */
.dark-theme footer {
    background-color: #ffffff;
}

.light-theme footer {
    background-color: #f5f5f5;
    color: #333;
}

.light-theme .footer-quote p {
    color: #666;
}

.light-theme .heart,
.light-theme .heart:before,
.light-theme .heart:after {
    background-color: #D9A5C0;
}

.light-theme .time-container span {
    color: #8a6d40;
}

.light-theme .footer-bottom {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #777;
}

.light-theme .quote-icon {
    color: #8a6d40;
}

.light-theme .footer-wave path {
    fill: rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .footer-info,
    .footer-rsvp {
        padding: 0 20px;
    }

    .countdown {
        gap: 15px;
    }

    .time-container span {
        font-size: 20px;
    }
}

/* From Uiverse.io by Praashoo7 */

.grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.flip-card {
    background-color: transparent;
    width: 240px;
    height: 154px;
    perspective: 1000px;
    color: white;

}

.heading_8264 {
    position: absolute;
    letter-spacing: .2em;
    font-size: 7px;
    top: 2em;
    left: 18.6em;
}

.logo_tarjeta {
    position: absolute;
    top: 6.8em;
    left: 11.7em;
}

.chip {
    position: absolute;
    top: 2.3em;
    left: 1.5em;
}

.contactless {
    position: absolute;
    top: 3.5em;
    left: 12.4em;
}

.number {
    position: absolute;
    font-weight: bold;
    font-size: 11px;
    top: 80px;
    left: 1.6em;
}

.valid_thru {
    position: absolute;
    font-weight: bold;
    top: 635.8em;
    font-size: .01em;
    left: 140.3em;
}

.date_8264 {
    position: absolute;
    font-weight: bold;
    font-size: 0.7em;
    top: 13.6em;
    left: 3.2em;
}

.name_tarjeta {
    position: absolute;
    font-weight: bold;
    font-size: 9px;
    top: 120px;
    left: 2em;
}

.strip {
    position: absolute;
    background-color: black;
    width: 15em;
    height: 1.5em;
    top: 2.4em;
    background: repeating-linear-gradient(45deg,
            #303030,
            #303030 10px,
            #202020 10px,
            #202020 20px);
}

.mstrip {
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 8em;
    height: 0.8em;
    top: 5em;
    left: .8em;
    border-radius: 2.5px;
}

.sstrip {
    position: absolute;
    background-color: rgb(255, 255, 255);
    width: 4.1em;
    height: 0.8em;
    top: 5em;
    left: 10em;
    border-radius: 2.5px;
}

.code {
    font-weight: bold;
    text-align: center;
    margin: .2em;
    color: black;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}



.flip-card-front,
.flip-card-back {
    box-shadow: 0 8px 14px 0 rgba(0, 0, 0, 0.2);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.flip-card-front {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 2px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -1px 0px inset;
    background-color: #000000;
    border: 1px solid #ffffff;
}

.flip-card-back {
    box-shadow: rgba(0, 0, 0, 0.4) 0px 2px 2px, rgba(0, 0, 0, 0.3) 0px 7px 13px -3px, rgba(0, 0, 0, 0.2) 0px -1px 0px inset;
    background-color: #171717;
    transform: rotateY(180deg);
}

.hero {
    position: relative;
    background-image: url('../images/portada_celular.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    /* Altura completa de la pantalla */
    color: white;
    display: flex;
    align-items: center;
}

.hero_footer {
    position: relative;
    background-image: url('img/imagen7.jpeg');
    background-size: cover;
    background-position: center;
    height: 50vh;
    /* Altura completa de la pantalla */
    color: white;
    display: flex;
    align-items: center;
}

.hero_footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

/* Overlay oscuro para mejorar la legibilidad del texto */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%);
}

.container {
    position: relative;
    /* Para que esté por encima del overlay */
    z-index: 1;
}


/* Estilos para la galería */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 15px;
    margin-top: 30px;
}

.gallery-item {
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery-item:hover {
    transform: scale(1.03);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Estilos para el lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80vh;
}

.lightbox-caption {
    margin: auto;
    width: 80%;
    text-align: center;
    color: white;
    padding: 10px 0;
    height: 50px;
}

.close-lightbox,
.lightbox-prev,
.lightbox-next {
    color: white;
    position: absolute;
    font-weight: bold;
    cursor: pointer;
    font-size: 30px;
    transition: 0.3s;
}

.close-lightbox {
    top: 15px;
    right: 35px;
    font-size: 40px;
}

.lightbox-prev {
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
}

.close-lightbox:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #bbb;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 10px;
    }

    .lightbox-content {
        max-width: 95%;
    }

    .close-lightbox {
        top: 10px;
        right: 25px;
    }
}


/* From Uiverse.io by JaydipPrajapati1910 */
/* From Uiverse.io by vinodjangid07 */
.tooltip-container {
    position: relative;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 17px;
    border-radius: 10px;
}

.tooltip {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-radius: 15px;
    box-shadow: inset 5px 5px 5px rgba(0, 0, 0, 0.2),
        inset -5px -5px 15px rgba(255, 255, 255, 0.1),
        5px 5px 15px rgba(0, 0, 0, 0.3), -5px -5px 15px rgba(255, 255, 255, 0.1);
}

.profile {
    background: #2a2b2f;
    border-radius: 10px 15px;
    padding: 10px;
    border: 1px solid #52382f;
}

.tooltip-container:hover .tooltip {
    top: -150px;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.icon {
    text-decoration: none;
    color: #ffffff;
    display: block;
    position: relative;
}

.layer {
    width: 55px;
    height: 55px;
    transition: transform 0.3s;
}

.icon:hover .layer {
    transform: rotate(-35deg) skew(20deg);
}

.layer span {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border: 1px solid #fff;
    border-radius: 15px;
    transition: all 0.3s;
}

.layer span,
.text {
    color: #e6683c;
    border-color: #e6683c;
}

.icon:hover.layer span {
    box-shadow: -1px 1px 3px #e6683c;
}

.icon .text {
    position: absolute;
    left: 50%;
    bottom: -5px;
    opacity: 0;
    font-weight: 500;
    transform: translateX(-50%);
    transition: bottom 0.3s ease, opacity 0.3s ease;
}

.icon:hover .text {
    bottom: -35px;
    opacity: 1;
}

.icon:hover .layer span:nth-child(1) {
    opacity: 0.2;
}

.icon:hover .layer span:nth-child(2) {
    opacity: 0.4;
    transform: translate(5px, -5px);
}

.icon:hover .layer span:nth-child(3) {
    opacity: 0.6;
    transform: translate(10px, -10px);
}

.icon:hover .layer span:nth-child(4) {
    opacity: 0.8;
    transform: translate(15px, -15px);
}

.icon:hover .layer span:nth-child(5) {
    opacity: 1;
    transform: translate(20px, -20px);
}

.instagramSVG {
    font-size: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: -webkit-linear-gradient(45deg,
            #f09433 0%,
            #e6683c 25%,
            #dc2743 50%,
            #cc2366 75%,
            #bc1888 100%);
    background: linear-gradient(45deg,
            #f09433 0%,
            #e6683c 25%,
            #dc2743 50%,
            #cc2366 75%,
            #bc1888 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#f09433', endColorstr='#bc1888', GradientType=1);
}

.user {
    display: flex;
    gap: 10px;
}

.img {
    width: 50px;
    height: 50px;
    font-size: 25px;
    font-weight: 700;
    border: 1px solid #e6683c;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.name {
    font-size: 17px;
    font-weight: 700;
    color: #e6683c;
}

.details {
    display: flex;
    flex-direction: column;
    gap: 0;
    color: #fff;
}

.about {
    color: #ccc;
    padding-top: 5px;
}


/* From Uiverse.io by JaydipPrajapati1910 */
.btn {
    width: 180px;
    height: 50px;
    border-radius: 5px;
    border: none;
    transition: all 0.5s ease-in-out;
    font-size: 20px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-weight: 600;
    display: flex;
    align-items: center;
    background: #000000;
    color: #000000;
}

.btn:hover {
    box-shadow: 0 0 20px 0px #ffffff3a;
}

.btn .icon {
    position: absolute;
    height: 40px;
    width: 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.5s;
}

.btn .text {
    transform: translateX(55px);
}

.btn:hover .icon {
    width: 175px;
}

.btn:hover .text {
    transition: all 0.5s;
    opacity: 0;
}

.btn:focus {
    outline: none;
}

.btn:active .icon {
    transform: scale(0.85);
}


/* estilo para el mapa */
.map-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* Relación de aspecto 16:9 */
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Estilos adicionales para hacer la página más atractiva */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

h1 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f5f5f5;
    border-radius: 5px;
}

/* Media queries para diferentes tamaños de pantalla */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 20px;
    }

    .map-container {
        padding-bottom: 75%;
        /* Relación de aspecto más alta para móviles */
    }


    /* Estilos para hacer el contenedor responsive */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: Arial, sans-serif;
    }

    .map-container {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        /* Relación de aspecto 16:9 */
        overflow: hidden;
    }






}

.liverpool-gift-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E91E63 0%, #FF69B4 100%);
    color: white;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 250px;
    text-transform: none;
    letter-spacing: 0.5px;
}

.liverpool-gift-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.liverpool-gift-button:hover:before {
    left: 100%;
}

.liverpool-gift-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
    background: linear-gradient(135deg, #C2185B 0%, #E91E63 100%);
}

.liverpool-gift-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(233, 30, 99, 0.3);
}

.gift-icon {
    margin-right: 10px;
    font-size: 20px;
}

.button-text {
    z-index: 1;
    position: relative;
}

/* Animación del icono */
.liverpool-gift-button:hover .gift-icon {
    animation: bounce 0.6s ease infinite alternate;
}

@keyframes bounce {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .liverpool-gift-button {
        font-size: 14px;
        padding: 12px 25px;
        min-width: 200px;
    }
}

.flores-decoracion {
    position: relative;
    width: 100%;
    height: 80px;
    margin-top: 30px;
}

.flor-izquierda,
.flor-derecha {
    position: absolute;
    width: 120px;
    height: auto;
    bottom: 0;
}

.flor-izquierda {
    left: 0;
}

.flor-derecha {
    right: 0;
}

@media (max-width: 768px) {

    .flor-izquierda,
    .flor-derecha {
        width: 80px;
    }

    .flores-decoracion {
        height: 60px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {

    .flor-izquierda,
    .flor-derecha {
        width: 100px;
    }

    .flores-decoracion {
        height: 100px;
    }
}


/* estilo para las flores arriba del footer */

.flores {
    background-image: url('/img/flores.png');
    background-repeat: repeat-x;
    /* Repite solo hacia la derecha (eje X) */
    background-size: 200px auto;
    /* Cambia 50px al ancho que quieras */
    height: 100px;
}

/* --- Estilos de la Línea del Tiempo --- */
.timeline-wrapper {
    padding: 50px 0;
    position: relative;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto;
}

/* La línea dorada central */
.timeline::after {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #D9A5C0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
}

/* Contenedor de cada item */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

/* Los círculos indicadores en la línea */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: white;
    border: 3px solid #D9A5C0;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

/* Posicionamiento izquierda/derecha */
.left {
    left: 0;
    text-align: right;
}

.right {
    left: 50%;
    text-align: left;
}

.right::after {
    left: -10px;
}

/* Contenido de la tarjeta de texto */
.timeline-content {
    padding: 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-bottom: 3px solid #D9A5C0;
}

.timeline-content h3 {
    color: #D9A5C0;
    margin: 5px 0;
}

.time {
    display: block;
    font-weight: bold;
    color: #D9A5C0;
    font-size: 1.2rem;
}

/* --- Fotos Flotantes --- */
.timeline-img {
    width: 150px;
    height: 150px;
    position: absolute;
    top: 0;
    z-index: 2;
}

.left .timeline-img {
    right: -180px;
    /* Ajusta según el tamaño de pantalla */
}

.right .timeline-img {
    left: -180px;
}

.timeline-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 10px solid transparent;
    border-image: url('/img/baile.png') 30 round;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}



/* --- Adaptación para Móvil --- */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
        text-align: left;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .timeline-img {
        width: 150px;
        height: 150px;
        position: relative;
        margin-bottom: 10px;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Contenedor principal para aislar estilos */
#seccion-ceremonia {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 40px 0;
    font-family: 'Montserrat', sans-serif;
    /* O la que prefieras */
}

#seccion-ceremonia .cerem-wrapper {
    max-width: 350px;
    width: 90%;
    text-align: center;
}

/* Decoración superior */
#seccion-ceremonia .cerem-header-decor {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
}

#seccion-ceremonia .cerem-line {
    height: 1px;
    width: 60px;
    background-color: #333;
}

#seccion-ceremonia .cerem-icon-top {
    margin: 0 10px;
    font-size: 18px;
}

#seccion-ceremonia .cerem-main-title {
    font-family: 'Montserrat', cursive, serif;
    /* Asegúrate de importar la fuente o usar una similar */
    font-size: 48px;
    font-weight: 400;
    margin: 10px 0 25px 0;
    color: #000;
}

/* Tarjeta Blanca */
#seccion-ceremonia .cerem-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 1px solid #eaeaea;
}

#seccion-ceremonia .cerem-img-box img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: block;
}

/* Pin de ubicación */
#seccion-ceremonia .cerem-location-pin {
    width: 55px;
    height: 55px;
    border: 1px solid #d4b374;
    border-radius: 12px;
    margin: 25px auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

#seccion-ceremonia .cerem-location-pin svg {
    width: 30px;
    height: 30px;
}

/* Textos informativos */
#seccion-ceremonia .cerem-venue-title {
    font-size: 16px;
    letter-spacing: 1.5px;
    line-height: 1.4;
    margin: 15px 0;
    color: #222;
    font-weight: normal;
}

#seccion-ceremonia .cerem-time-text {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
    color: #000;
}

#seccion-ceremonia .cerem-address-text {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
    margin-bottom: 10px;
}

.dark-theme .fondo {
    background-color: #000000;
    color: #ffffff;

}

.dark-theme .texto_dark {
    color: #ffffff;
    /* Cambia el color de texto a blanco */
}