/* ===== IMPORTS Y CONFIGURACIÓN DE FUENTES ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400&family=Great+Vibes&family=Dancing+Script:wght@400;700&family=Montserrat:wght@300;400;500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@300;400;500;600&display=swap');

/* Configuración de la fuente Redemption 2 */
@font-face {
    font-family: 'Redemption 2';
    src: url('fonts/Redemption-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Fuente Astrid: asegúrate de tener la fuente disponible o importada */
@font-face {
    font-family: 'Astrid';
    src: url('fonts/Astrid.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.astrid-font {
    font-family: 'Astrid', serif;
}

/* Landing Page Styles */
#landing-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('images/background-landing.webp') no-repeat center center/cover;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 1s ease-in-out;
    overflow: hidden;
}

#landing-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.90)), 
                url('images/texture-background.svg') repeat;
    z-index: -1;
}

/* Elementos decorativos */
.decorative-top {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    height: 250px;
    opacity: 0.65;
    z-index: 0;
    background: url('images/flor-izquierda.png') no-repeat center center/contain;
}

.decorative-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 250px;
    opacity: 0.7;
    z-index: 0;
    background: url('images/flor-derecha.png') no-repeat center center/contain;
}

/* Animaciones para los elementos decorativos */
@keyframes floatTop {
    0%, 100% {
        transform: rotate(15deg) translate(0, 0);
    }
    50% {
        transform: rotate(12deg) translate(-10px, 10px);
    }
}

@keyframes floatBottom {
    0%, 100% {
        transform: rotate(-15deg) scaleX(-1) translate(0, 0);
    }
    50% {
        transform: rotate(-18deg) scaleX(-1) translate(10px, -10px);
    }
}

.landing-content {
    text-align: center;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.landing-names {
    font-family: 'Redemption 2', cursive;
    font-size: 6.5em;
    color: var(--accent-color);
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
    letter-spacing: 0.01em;
    font-weight: 300;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.landing-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    font-weight: 300;
    letter-spacing: 0.01em;
}

/* Estilos móviles para los nombres */
@media (max-width: 480px) {
    .landing-content {
        padding: 1.5rem;
    }

    .landing-names {
        font-size: 4.5em;
        line-height: 1.1;
        margin-bottom: 1.5rem;
    }
    
    .landing-names span {
        display: block;
        margin-bottom: -0.2em;
    }

    .landing-names span:nth-child(2) {
        font-size: 0.8em;
        margin: 0.1em 0;
    }

    .landing-subtitle {
        padding: 0 1.5rem;
        font-size: 1.1em;
        line-height: 1.4;
    }

    .click-invitation {
        margin: 4rem auto 2rem;
    }

    .decorative-top {
        width: 200px;
        height: 200px;
        top: 0;
        left: 0;
    }

    .decorative-bottom {
        width: 280px;
        height: 280px;
        bottom: 0;
        right: 0;
    }

    .click-invitation-text {
        padding: 0 2rem;
    }
}

/* Botón de invitación */
.click-invitation {
    width: 80px;
    height: 80px;
    background: transparent;
    border: 2px solid var(--accent-color2);
    border-radius: 50%;
    position: relative;
    cursor: pointer;
    margin: 3rem auto 0.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards, pressEffect 2s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes pressEffect {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(175, 211, 236, 0.7);
    }
    70% {
        transform: scale(0.95);
        box-shadow: 0 0 0 15px rgba(175, 211, 236, 0);
    }
}

.click-invitation:before {
    content: '♥';
    font-size: 2.5em;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--accent-color2);
    animation: heartbeat 2s infinite;
    -webkit-text-fill-color: var(--accent-color2) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
}

@keyframes heartbeat {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    25% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
    50% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    75% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

/* Ajustes específicos para Safari en iOS */
@supports (-webkit-touch-callout: none) {
    .click-invitation:before {
        background: var(--accent-color2) !important;
        -webkit-text-fill-color: var(--accent-color2) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
    }
}

/* Prevenir cualquier estilo por defecto del navegador */
.click-invitation:before {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

.click-invitation:hover {
    transform: scale(1.1);
    background-color: var(--accent-color2);
    animation: fadeInUp 1s ease-out forwards;
}

.click-invitation:hover:before {
    color: white;
    animation: heartbeat 1.5s infinite;
}

/* Estilos para dispositivos táctiles */
@media (hover: none) {
    .click-invitation:active {
        transform: scale(1.1);
        background-color: var(--accent-color2);
        animation: fadeInUp 1s ease-out forwards;
    }

    .click-invitation:active:before {
        color: white;
        animation: heartbeat 1.5s infinite;
    }
}

.click-invitation-text {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1em;
    color: var(--text-color2);
    opacity: 1;
    margin-top: 0.5rem;
    font-weight: normal;
    letter-spacing: normal;
    display: inline-block;
    white-space: nowrap;
    overflow: hidden;
    border-right: 2px solid var(--text-color2);
    width: 19ch;
    max-width: 100%;
    animation: typewriter 3.5s steps(28, end) 0.5s infinite alternate, blinkCaret 0.7s step-end infinite;
}

@keyframes typewriter {
    0% { width: 0; }
    80% { width: 100%; }
    100% { width: 100%; }
}

@keyframes blinkCaret {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-color2); }
}

@media (max-width: 480px) {
    .click-invitation-text {
        font-size: 0.9em;
        margin-top: 0.5rem;
        width: 19ch;
    }
}

/* Contenido principal inicialmente oculto */
#main-content {
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Footer inicialmente oculto */
footer {
    display: none;
}

#music-control {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--white);
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

#music-control:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
    color: white;
}

.fade-out {
    opacity: 0 !important;
}

.fade-in {
    animation: fadeIn 1s ease-out forwards !important;
}

#main-content.fade-in {
    opacity: 1;
}

/* Definición de variables CSS para la paleta de colores */
:root {
    --primary-color: #8EAAC7; /* Un tono topo cálido y elegante */
    --secondary-color: #AFD3EC; /* Un beige muy suave, casi blanco */
    --accent-color: #8EAAC7; /* Un marrón rosado oscuro para contraste y calidez */
    --accent-color2: #AFD3EC; /* Un marrón rosado oscuro para contraste y calidez */
    --text-color: #333; /* Gris oscuro para el texto principal */
    --text-color2: #696969; /* Gris oscuro para el texto principal */
    --text-color3: #4b4b4b;
    --footer-color: #07133a;
    --title-color: rgb(81, 120, 162);
    --timeline-color: #2980d9;
    --background-color: #F8F5F2; /* Blanco roto / crema para el fondo general */
    --light-grey: #EEE; /* Gris muy claro para bordes o fondos sutiles */
    --white: #FFF; /* Blanco puro */
}

/* Box-sizing global */
html {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased; /* Mover suavizado de fuente aquí para mejor organización */
    -moz-osx-font-smoothing: grayscale;
}

*,
*::before,
*::after {
    box-sizing: inherit; /* Heredar box-sizing de html */
}

/* Estilos básicos para todo el cuerpo de la página */
body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden; /* Prevenir scroll horizontal a nivel de body */
}

/* Estilo para todos los encabezados (h1, h2, h3, etc.) */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif; /* Fuente elegante para títulos de sección */
    margin-top: 0; /* Elimina el margen superior predeterminado */
    margin-bottom: 20px; /* Margen inferior para separar del contenido */
    color: var(--accent-color); /* Color para los títulos */
}

/* Estilo para todos los enlaces */
a {
    color: var(--accent-color); /* Color de los enlaces */
    text-decoration: none; /* Quita el subrayado predeterminado */
    transition: color 0.3s ease; /* Transición suave al pasar el ratón */
}

a:hover {
    color: var(--primary-color); /* Cambia el color al pasar el ratón */
}

/* Estilo para contenedores generales para centrar contenido */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0.5rem;
}

/* Estilo para el texto de introducción o notas especiales */
section p {
    text-align: center; /* Centra el texto */
    margin-bottom: 20px; /* Margen inferior */
    font-size: 1em; /* Un poco más grande para mejor lectura */
    overflow-wrap: break-word; /* Asegurar que el texto largo se rompa */
    word-wrap: break-word; /* Alias para compatibilidad */
}

/* Estilos específicos para elementos que puedan tener texto largo */
#regalos ul li,
#contacto p {
    overflow-wrap: break-word;
    word-wrap: break-word; /* Para los números de cuenta y email */
    -webkit-hyphens: auto; /* Opcional: para mejor ruptura de palabras largas */
    -ms-hyphens: auto;
    hyphens: auto;
}

/* Galería Responsiva */
#galeria {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    padding: 0 4rem;
    margin-top: 2rem;
}

.gallery-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    gap: 1.5rem;
    padding: 1rem 0;
}

.gallery-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.gallery-item {
    flex: 0 0 auto;
    width: 400px;
    height: 450px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 2;
}

.prev-btn {
    left: 1rem;
}

.next-btn {
    right: 1rem;
}

.gallery-nav:hover {
    background: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: block;
    opacity: 1;
}

.lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img {
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    width: auto;
    height: auto;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 1002;
}

.lightbox-nav.prev {
    left: 20px;
}

.lightbox-nav.next {
    right: 20px;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

/* Estilos para móviles */
@media (max-width: 768px) {
    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        background: rgba(255, 255, 255, 0.3);
    }

    .lightbox-nav.prev {
        left: 10px;
    }

    .lightbox-nav.next {
        right: 10px;
    }
    
    /* Indicador visual de swipe */
    .lightbox::after {
        content: '';
        position: absolute;
        bottom: 20px;
        left: 50%;
        transform: translateX(-50%);
        width: 100px;
        height: 4px;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 2px;
        animation: swipeIndicator 2s infinite;
    }
}

@keyframes swipeIndicator {
    0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 0.3; }
    50% { transform: translateX(-50%) scaleX(1.5); opacity: 0.5; }
}

@media (max-width: 768px) {
    .gallery-container {
        padding: 0 2rem;
    }

    .gallery-item {
        width: 300px;
        height: 350px;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        padding: 0 1rem;
    }

    .gallery-item {
        width: 280px;
        height: 320px;
    }

    .lightbox-nav {
        padding: 0.5rem;
        font-size: 1.5rem;
    }
    
    .lightbox-content img {
        max-width: 98%;
        max-height: 98vh;
    }
}

.gallery-note {
    text-align: center;
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.8;
}

@media (max-width: 768px) {
    #galeria .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    #galeria .gallery-grid img {
        height: 250px;
    }
}

@media (max-width: 480px) {
    #galeria {
        padding: 3rem 1rem;
    }

    #galeria .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #galeria .gallery-grid img {
        height: 280px;
    }
}

/* Animación para las imágenes al cargar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#galeria .gallery-grid img {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

#galeria .gallery-grid img:nth-child(1) { animation-delay: 0.1s; }
#galeria .gallery-grid img:nth-child(2) { animation-delay: 0.2s; }
#galeria .gallery-grid img:nth-child(3) { animation-delay: 0.3s; }
#galeria .gallery-grid img:nth-child(4) { animation-delay: 0.4s; }
#galeria .gallery-grid img:nth-child(5) { animation-delay: 0.5s; }
#galeria .gallery-grid img:nth-child(6) { animation-delay: 0.6s; }
#galeria .gallery-grid img:nth-child(7) { animation-delay: 0.7s; }
#galeria .gallery-grid img:nth-child(8) { animation-delay: 0.8s; }
#galeria .gallery-grid img:nth-child(9) { animation-delay: 0.9s; }

/* --- Sección Principal (Hero) --- */
/* Estilo base para desktop */
header#hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.6)), url('images/novios-hero2.webp') no-repeat center center/cover;
    color: var(--white);
    text-align: center;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background-attachment: fixed;
    background-position: center;
}

/* Aseguramos que el body y html no tengan márgenes o padding que afecten */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden; /* Prevenir scroll horizontal */
}

/* Ajustamos el contenido del hero para mejor distribución vertical */
.hero-content {
    z-index: 10;
    position: relative;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
    width: 100%; /* Aseguramos que ocupe todo el ancho disponible */
    padding: 20px; /* Agregamos padding interno para que el contenido no toque los bordes */
    
    /* PROPIEDADES PARA LA ANIMACIÓN DE FADE-IN */
    /*opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 0.5s;*/
}

/* Definición de la animación de fade-in */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px); /* Opcional: para que se deslice un poco hacia arriba */
    }
    to {
        opacity: 1;
        transform: translateY(0); /* Ajustado para no desplazar verticalmente al final */
    }
}

/* Definición de las animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    20% {
        opacity: 0;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Aplicando las animaciones a los elementos */
header#hero h1 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    font-weight: 400;
    letter-spacing: 0px;
    text-transform: none;
    margin-bottom: 10px;
    color: var(--white);
    opacity: 0;
    animation: fadeInDown 1.2s ease-out 0.5s forwards;
}

header#hero p:not(.date) {
    font-family: 'Redemption 2', cursive;
    font-size: 7em;
    margin-top: 0;
    margin-bottom: 30px;
    color: var(--white);
    opacity: 0;
    animation: fadeInUp 1.2s ease-out 1.2s forwards;
}

header#hero p.date {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7em;
    font-weight: 300;
    letter-spacing: 0.5px;
    color: var(--white);
    margin: 0.5rem 0;
    opacity: 0;
    animation: fadeInDown 1s ease-out 1s forwards;
}

/* Estilos base para la fecha */
header#hero p.date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    margin-top: 40px;
    letter-spacing: 0.5px;
    text-transform: none;
    margin-bottom: 70px;
    opacity: 0;
    animation: fadeIn 1s ease-out 1.3s forwards;
}

/* Estilos específicos para desktop */
@media (min-width: 481px) {
    header#hero p.date {
        font-size: 2em;
        margin-top: 30px;
        opacity: 0;
        visibility: visible;
        animation: fadeIn 1s ease-out 1.3s forwards;
    }
}

/* Ajustes para móvil */
@media (max-width: 480px) {
    header#hero {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('images/novios-hero-movil.webp') no-repeat center center/cover;
        background-attachment: scroll;
        height: 100vh;
        padding: 0;
        position: relative;
    }

    /* Contenedor principal */
    .hero-content {
        padding: 15px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        gap: 12px;
        height: 100%;
        position: relative;
        padding-top: 27vh;
    }

    /* Título "¡Nos Casamos!" */
    header#hero h1 {
        font-size: 2.2em;
        margin: 0 0 1rem 0 !important;
        padding: 0;
    }

    /* Nombres */
    header#hero p:not(.date) {
        font-size: 4.8em;
        margin: 0 !important;
        padding: 0;
        line-height: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15em;
        opacity: 0;
        min-height: 2.4em;
        position: relative;
        animation: namesWrite 2s ease-out 1s forwards, softGlow 6s ease-in-out infinite 3s;
    }

    header#hero p:not(.date) span {
        display: block;
        text-align: center;
        line-height: 0.9;
    }

    header#hero p:not(.date) span:nth-child(2) {
        font-size: 0.9em;
        line-height: 1;
        margin: 0;
    }

    header#hero p:not(.date)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        z-index: -1;
    }

    header#hero p:not(.date)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightSlide 8s cubic-bezier(0.4, 0, 0.2, 1) infinite 3s;
        pointer-events: none;
    }

    @keyframes namesWrite {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes softGlow {
        0%, 100% {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }
        50% {
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        }
    }

    @keyframes lightSlide {
        0% {
            transform: translateX(-200%);
        }
        100% {
            transform: translateX(200%);
        }
    }

    /* Fecha */
    header#hero p.date {
        font-size: 1.1em !important;
        letter-spacing: 0.5px;
        margin: 1rem 0 !important;
        padding: 0;
    }

    /* Clase para mostrar la fecha */
    header#hero p.date.show {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .animated-scroll-arrows {
        position: absolute;
        bottom: 15%;
        left: 50%;
        transform: translateX(-50%);
        padding-bottom: 0;
        z-index: 20;
    }

    .animated-scroll-arrows .arrow-down {
        width: 15px;
        height: 15px;
        border-width: 0 3px 3px 0;
        margin-top: -8px;
    }

    .animated-scroll-arrows .arrow-down:nth-child(2) {
        margin-top: -4px;
    }

    @keyframes bounceArrows {
        0% {
            opacity: 0;
            transform: translateY(-15px) rotate(45deg);
        }
        50% {
            opacity: 1;
            transform: translateY(0px) rotate(45deg);
        }
        100% {
            opacity: 0;
            transform: translateY(15px) rotate(45deg);
        }
    }

    .container {
        margin: 20px auto;
        padding: 15px;
        width: 95%; /* Un poco más de ancho en móviles muy pequeños */
    }

    /* Estilos para formularios en móviles */
    #rsvp-form .form-group input[type="text"],
    #rsvp-form .form-group select,
    #rsvp-form .form-group textarea {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }

    #rsvp-form button[type="submit"] {
        padding: 10px 15px; /* Más pequeño */
        font-size: 0.95em;
    }

    
}

/* Ajustes específicos para pantallas muy pequeñas */
@media (max-width: 360px) {
    header#hero p:not(.date) {
        font-size: 2.8em;
    }
}

/* Animaciones */
@keyframes showFirst {
    0% {
        visibility: visible;
        opacity: 0;
        transform: translateY(-20px);
        clip-path: inset(0 0 100% 0);
    }
    30% {
        opacity: 0.5;
        transform: translateY(-10px);
        clip-path: inset(0 0 50% 0);
    }
    100% {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0 0);
    }
}

@keyframes showSecond {
    0% {
        visibility: visible;
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: scale(0.98);
    }
    2% {
        opacity: 1;
    }
    100% {
        visibility: visible;
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: scale(1);
    }
}

/* Animación de la fecha */
@keyframes showDate {
    0% {
        opacity: 0;
        transform: translateY(-15px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de escritura a mano con brillo */
@keyframes handwriting {
    0% {
        clip-path: inset(0 100% 0 0);
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    95% {
        clip-path: inset(0 5% 0 0);
        opacity: 1;
    }
    100% {
        clip-path: inset(0 0 0 0);
        opacity: 1;
    }
}

/* Animación de brillo automática */
@keyframes glowEffect {
    0% {
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
    50% {
        text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.6);
    }
    100% {
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
}

/* Ajustamos el efecto hover en desktop para que coincida */
@media (min-width: 481px) {
    header#hero p:not(.date) {
        transition: all 0.3s ease;
        position: relative;
    }

    header#hero p:not(.date):hover {
        transform: scale(1.02);
        text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.6);
    }
}

/* Nueva animación para los nombres en móvil */
@keyframes fadeInUpWithEffect {
    0% {
        opacity: 0;
        transform: translateY(30px);
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
    20% {
        opacity: 0;
        transform: translateY(30px);
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
    70% {
        opacity: 0.7;
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(255,255,255,0.4), 0 0 30px rgba(255,255,255,0.3);
    }
    85% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.6);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        text-shadow: 0 0 0px rgba(255,255,255,0);
    }
}

/* Animated Scroll Arrows */
.animated-scroll-arrows {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 10px;
    z-index: 20;
}

.animated-scroll-arrows .arrow-down {
    display: block;
    width: 12px;
    height: 12px;
    border: solid var(--accent-color);
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    margin-top: -6px;
    opacity: 0;
    animation: bounceArrows 2.5s infinite;
}

.animated-scroll-arrows .arrow-down:first-child {
    animation-delay: 0s;
}

.animated-scroll-arrows .arrow-down:nth-child(2) {
    animation-delay: 0.3s;
    margin-top: -2px;
}

@keyframes bounceArrows {
    0% {
        opacity: 0;
        transform: translateY(-10px) rotate(45deg);
    }
    50% {
        opacity: 1;
        transform: translateY(0px) rotate(45deg);
    }
    100% {
        opacity: 0;
        transform: translateY(10px) rotate(45deg);
    }
}

/* Ajustes específicos para móvil */
@media (max-width: 480px) {
    .animated-scroll-arrows {
        bottom: 15%;
        padding-bottom: 0;
    }

    .animated-scroll-arrows .arrow-down {
        width: 15px;
        height: 15px;
        border-width: 0 3px 3px 0;
        margin-top: -8px;
    }

    .animated-scroll-arrows .arrow-down:nth-child(2) {
        margin-top: -4px;
    }

    @keyframes bounceArrows {
        0% {
            opacity: 0;
            transform: translateY(-15px) rotate(45deg);
        }
        50% {
            opacity: 1;
            transform: translateY(0px) rotate(45deg);
        }
        100% {
            opacity: 0;
            transform: translateY(15px) rotate(45deg);
        }
    }
}

/* Mejora de las flechas de scroll con hover */
.animated-scroll-arrows {
    cursor: pointer;
    transition: all 0.3s ease;
}

.animated-scroll-arrows:hover {
    transform: translateX(-50%) translateY(5px);
}

.animated-scroll-arrows .arrow-down {
    border-color: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
}

.animated-scroll-arrows:hover .arrow-down {
    border-color: rgba(255,255,255,1);
}

/* Animación para la fecha */
@keyframes fadeInExpand {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    70% {
        opacity: 0.7;
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animación para la fecha */
@keyframes fadeInDate {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación básica de aparición */
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de escritura */
@keyframes writeIn {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
    }
    10% {
        opacity: 1;
        clip-path: inset(0 90% 0 0);
    }
    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
    }
}

/* Animación de aparición simple */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Animación del título */
@keyframes titleAppear {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de los nombres */
@keyframes namesWrite {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes softGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    }
}

@keyframes lightSlide {
    0% {
        transform: translateX(-200%);
    }
    100% {
        transform: translateX(200%);
    }
}

/* Estilos para Nuestra Historia */
#nuestra-historia {
    position: relative;
    min-height: 100vh;
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(195, 227, 250, 0.25) 0%, #afd3ec 100% 100%);
    
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

#nuestra-historia::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('images/texture-background.svg') repeat;
    opacity: 0.1;
    z-index: 1;
}

.historia-title {
    font-family: 'Dancing Script', cursive;
    font-size: 4em;
    text-align: center;
    color: white;
    margin-top: 0.5rem;
    margin-bottom: 0.2rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    z-index: 2;
}

.historia-title::after {
    display: none !important;
}

@keyframes expandWidth {
    from {
        transform: scaleX(0);
        opacity: 0;
    }
    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

.story-content {
    position: relative;
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-color);
    z-index: 2;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.story-content::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 35px;
    z-index: -1;
}

.story-content p {
    margin-bottom: 1.5rem;
    position: relative;
    padding: 0 1rem;
    text-align: center;
}

.story-content p:first-of-type::before,
.story-content p:last-of-type::after {
    content: none !important;
    display: none !important;
}

.story-quote {
    text-align: center;
    padding: 0.5rem 1rem 0;
    position: relative;
    margin-top: 0.5rem;
}

.story-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent-color2), transparent);
}

.story-quote blockquote {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--accent-color);
    margin: 1rem 0;
    line-height: 1.6;
}

.story-quote blockquote::before,
.story-quote blockquote::after {
    content: '' !important;
}

.quote-source {
    font-family: 'Montserrat', sans-serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--text-color);
    opacity: 0.8;
}

/* Elementos decorativos flotantes */
.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-heart {
    position: absolute;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
    clip-path: path('M15,0 C15,0 17,10 25,15 C17,20 15,30 15,30 C15,30 13,20 5,15 C13,10 15,0 15,0');
    animation: float 20s infinite linear;
}

.floating-heart:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.floating-heart:nth-child(2) { top: 20%; right: 20%; animation-delay: 5s; }
.floating-heart:nth-child(3) { bottom: 30%; left: 15%; animation-delay: 10s; }
.floating-heart:nth-child(4) { bottom: 10%; right: 10%; animation-delay: 15s; }

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0;
    }
    50% {
        transform: translate(100px, -100px) rotate(180deg);
        opacity: 0.8;
    }
    100% {
        transform: translate(200px, 0) rotate(360deg);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 768px) {
    #nuestra-historia {
        padding: 4rem 1rem;
    }

    .historia-title {
        font-size: 3em;
    }

    .story-content {
        padding: 2rem;
        font-size: 1rem;
    }

    .story-quote blockquote {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    #nuestra-historia {
        padding: 3rem 1rem;
    }

    .historia-title {
        font-size: 2.5em;
    }

    .story-content {
        padding: 1.5rem;
        border-radius: 20px;
    }

    .story-content::before {
        border-radius: 25px;
    }

    .story-quote blockquote {
        font-size: 1rem;
    }

    .floating-heart {
        width: 20px;
        height: 20px;
    }
}

/* Estilos generales para todas las secciones */
section.container {
    position: relative;
    min-height: 100vh;
    padding: 4rem 0;
    background-color: var(--background-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
}

section.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l7.9-7.9h-.828zm5.656 0L19.515 8.485 17.343 10.657 28 0h-2.83zM32.656 0L41.142 8.485 39.728 9.9l-7.9-7.9h.828zm5.656 0L47.8 9.485 41.343 15.94 30.686 5.283 38.313 0zm5.656 0l6.485 6.485L36.97 19.97 26.313 9.313 34.142 1.485 35.557 0h2.83zM0 0l.828.828-2.243 2.243L1.172 5.657 0 6.485V0h.828L0 0zm0 17.657l2.243 2.243L4.486 17.657 0 13.172v4.485zm0 5.657l3.657 3.657 1.414-1.414L0 20.142v3.172zm0 5.657l5.071 5.071 1.414-1.414L0 25.799v3.172zm0 5.657l6.485 6.485 1.414-1.414L0 31.456v3.172zm0 5.657l7.899 7.899 1.414-1.414L0 37.113v3.172zm0 5.657l9.313 9.313 1.414-1.414L0 42.77v3.172zm0 5.657l10.728 10.728 1.414-1.414L0 48.427v3.172zm0 5.657l12.142 12.142 1.414-1.414L0 54.084v3.172zM0 60h3.172L60 3.172V0h-3.172L0 56.828V60z' fill='%23ffb2b2' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

.corner-decoration {
    position: absolute;
    width: 120px;
    height: 120px;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
}

.corner-decoration.top-left {
    top: 0;
    left: 0;
    transform: rotate(-45deg) translate(-30%, -30%);
    background: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,0 C35,15 35,35 25,50 M0,25 C15,35 35,35 50,25' stroke='%23ffb2b2' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center/contain;
}

.corner-decoration.bottom-right {
    bottom: 0;
    right: 0;
    transform: rotate(135deg) translate(30%, 30%);
    background: url("data:image/svg+xml,%3Csvg width='50' height='50' viewBox='0 0 50 50' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M25,0 C35,15 35,35 25,50 M0,25 C15,35 35,35 50,25' stroke='%23ffb2b2' stroke-width='1' fill='none' opacity='0.3'/%3E%3C/svg%3E") no-repeat center/contain;
}

section.container h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    text-align: center;
    color: var(--title-color);
    margin-bottom: 1rem;
    position: relative;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

section.container h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color2), transparent);
    margin: 0.5rem auto 1rem;
}

.section-content {
    position: relative;
    max-width: 900px;
    width: 95%;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-color);
    z-index: 1;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Estilos específicos para cada sección */
#nuestra-historia .story-content {
    composes: section-content;
}

#informacion-evento .event-details {
    composes: section-content;
}

#galeria .gallery-grid {
    composes: section-content;
}

/* Media Queries */
@media (max-width: 768px) {
    section.container {
        min-height: auto;
        padding: 2rem 0;
    }

    section.container h2 {
        font-size: 2.9em;
        margin-bottom: 1rem;
    }

    .section-content,
    .story-content,
    .event-details,
    .gallery-grid {
        width: 100%;
        font-size: 1.1rem;
        padding: 1.5rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 0;
        box-shadow: none;
    }

    .corner-decoration {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    section.container {
        padding: 1.5rem 0;
    }

    section.container h2 {
        font-size: 2.6em;
        margin-bottom: 0.5rem;
    }

    .section-content,
    .story-content,
    .event-details,
    .gallery-grid {
        font-size: 1rem;
        padding: 1rem;
    }

    .corner-decoration {
        width: 60px;
        height: 60px;
    }
}

/* Estilos para la sección El Gran Día */
#informacion-evento {
    background-color: var(--secondary-color);
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

/* Elementos decorativos flotantes */
.floating-flowers {
    position: absolute;
    width: 150px;
    height: 150px;
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.1;
    pointer-events: none;
}

.flower-1 {
    top: 5%;
    left: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%238C6A64' d='M50,0 C60,20 80,40 100,50 C80,60 60,80 50,100 C40,80 20,60 0,50 C20,40 40,20 50,0'/%3E%3C/svg%3E");
    animation: floatAnimation 8s ease-in-out infinite;
}

.flower-2 {
    top: 70%;
    right: 5%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%238C6A64' d='M50,0 C65,15 85,15 100,0 C85,35 85,65 100,100 C65,85 35,85 0,100 C15,65 15,35 0,0 C35,15 65,15 50,0'/%3E%3C/svg%3E");
    animation: floatAnimation 10s ease-in-out infinite reverse;
}

.flower-3 {
    top: 40%;
    left: 80%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%238C6A64' d='M50,0 C70,20 80,50 100,50 C80,50 70,80 50,100 C30,80 20,50 0,50 C20,50 30,20 50,0'/%3E%3C/svg%3E");
    animation: floatAnimation 12s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, -10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 15px) rotate(-5deg);
    }
    75% {
        transform: translate(-10px, -5px) rotate(3deg);
    }
}

.event-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0.2rem auto 2rem auto;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
}

.event-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--accent-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.event-card:hover::before {
    opacity: 1;
}

.card-icon {
    margin-bottom: 1.5rem;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon svg,
.card-icon .rings-icon {
    fill: var(--accent-color);
    stroke: none;
    opacity: 0.8;
    animation: pulseIcon 3s ease-in-out infinite;
}

@keyframes pulseIcon {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
}

.event-card h3 {
    font-family: 'Astrid', cursive;
    font-size: 2.2em;
    color: var(--title-color);
    margin-bottom: 1.5rem;
    font-weight: normal;
    line-height: 1.1em;
}

.event-card p {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0.1rem;
    font-size: 1em;
    line-height: 1.6em;
    color: var(--text-color);
}

.event-card strong {
    
    color: var(--accent-color);
    font-weight: 500;
}

.maps-button {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color2));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 2px 8px rgba(81,120,162,0.10);
}

.maps-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(175, 211, 236, 0.4);
}

.dress-code-text {
    font-size: 1.6em !important;
    font-style: italic;
    color: var(--accent-color);
    margin: 1rem 0;
    font-weight: 600;
}

.dress-code-detail {
    font-style: italic;
    line-height: 1.8;
    font-size: 1em !important;
    color: var(--text-color);
    opacity: 0.9;
}

/* Media Queries para El Gran Día */
@media (max-width: 992px) {
    .event-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        margin: 0.1rem auto 1.5rem auto;
    }
    
    .event-card.dress-code {
        grid-column: span 2;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .event-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin: 0.01rem auto 1rem auto;
    }
    
    .event-card.dress-code {
        grid-column: span 1;
    }
    
    .event-card {
        padding: 2rem 1.5rem;
    }

    .floating-flowers {
        width: 100px;
        height: 100px;
    }
}

/* Animaciones para la aparición de las cards */
.event-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.event-card.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Aplicar delays diferentes a cada card */
.event-card:nth-child(1).animate {
    transition-delay: 0.2s;
}

.event-card:nth-child(2).animate {
    transition-delay: 0.4s;
}

.event-card:nth-child(3).animate {
    transition-delay: 0.6s;
}

/* Elementos decorativos adicionales */
.floating-elements {
    position: fixed;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.floating-element {
    position: absolute;
    opacity: 0.15;
    pointer-events: none;
}

/* Anillos entrelazados */
.floating-element:nth-child(1) {
    top: 15%;
    left: 8%;
    width: 40px;
    height: 20px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    transform: rotate(-25deg);
    animation: floatRings 20s infinite ease-in-out;
}

.floating-element:nth-child(1):after {
    content: '';
    position: absolute;
    top: -5px;
    left: 15px;
    width: 40px;
    height: 20px;
    border: 2px solid var(--accent-color2);
    border-radius: 50%;
    transform: rotate(15deg);
}

/* Lazo de amor */
.floating-element:nth-child(2) {
    top: 12%;
    right: 10%;
    width: 30px;
    height: 30px;
    background: var(--accent-color2);
    clip-path: path('M15,0 C15,0 17,10 25,15 C17,20 15,30 15,30 C15,30 13,20 5,15 C13,10 15,0 15,0');
    animation: floatRibbon 22s infinite ease-in-out;
}

/* Palomas */
.floating-element:nth-child(3) {
    bottom: 20%;
    left: 12%;
    width: 35px;
    height: 25px;
    background: var(--primary-color);
    clip-path: path('M0,12 C0,5 5,0 12,0 C19,0 24,5 24,12 C24,19 19,24 12,24 L8,28 L12,24 C5,24 0,19 0,12');
    transform: rotate(25deg);
    animation: floatDove1 25s infinite ease-in-out;
}

/* Ramo de flores */
.floating-element:nth-child(4) {
    bottom: 18%;
    right: 8%;
    width: 35px;
    height: 45px;
    background: var(--secondary-color);
    clip-path: polygon(50% 0%, 80% 30%, 80% 70%, 50% 100%, 20% 70%, 20% 30%);
    animation: floatBouquet 23s infinite ease-in-out;
}

.floating-element:nth-child(4):after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    transform: translateX(-50%) rotate(5deg);
}

/* Elementos adicionales en espacios vacíos */
.floating-element:nth-child(5) {
    top: 40%;
    left: 3%;
    width: 15px;
    height: 15px;
    background: var(--accent-color);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: floatStar1 28s infinite ease-in-out;
}

.floating-element:nth-child(6) {
    top: 45%;
    right: 4%;
    width: 12px;
    height: 12px;
    background: var(--accent-color2);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: floatStar2 26s infinite ease-in-out;
}

@keyframes floatRings {
    0%, 100% { transform: rotate(-25deg) translate(0, 0); }
    50% { transform: rotate(-15deg) translate(10px, 5px); }
}

@keyframes floatRibbon {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(10deg) scale(1.1); }
}

@keyframes floatDove1 {
    0%, 100% { transform: rotate(25deg) translate(0, 0); }
    50% { transform: rotate(35deg) translate(15px, -10px); }
}

@keyframes floatBouquet {
    0%, 100% { transform: rotate(0deg) translate(0, 0); }
    50% { transform: rotate(-10deg) translate(-5px, 5px); }
}

@keyframes floatStar1 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}

@keyframes floatStar2 {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(-180deg) scale(1.2); }
}

/* Ajustes para dispositivos móviles */
@media (max-width: 480px) {
    .floating-element:nth-child(1) {
        width: 32px;
        height: 16px;
    }
    
    .floating-element:nth-child(1):after {
        width: 32px;
        height: 16px;
        left: 12px;
    }
    
    .floating-element:nth-child(2) {
        width: 25px;
        height: 25px;
    }
    
    .floating-element:nth-child(3) {
        width: 28px;
        height: 20px;
    }
    
    .floating-element:nth-child(4) {
        width: 28px;
        height: 36px;
    }
    
    .floating-element:nth-child(5),
    .floating-element:nth-child(6) {
        width: 10px;
        height: 10px;
    }
}

/* Contador */
.countdown-container {
    display: none;
}

/* Estilos para textos de contenido */
section p, 
#regalos ul li,
.faq-item p,
#contacto p {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Ajustes móviles */
@media (max-width: 480px) {
    header#hero h1 {
        font-size: 2.2em;
        margin: 0 0 1rem 0 !important;
        padding: 0;
    }

    header#hero p:not(.date) {
        font-size: 4.8em;
        margin: 0 !important;
        padding: 0;
        line-height: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.15em;
        opacity: 0;
        min-height: 2.4em;
        position: relative;
        animation: namesWrite 2s ease-out 1s forwards, softGlow 6s ease-in-out infinite 3s;
    }

    header#hero p:not(.date) span {
        display: block;
        text-align: center;
        line-height: 0.9;
    }

    header#hero p:not(.date) span:nth-child(2) {
        font-size: 0.9em;
        line-height: 1;
        margin: 0;
    }

    header#hero p:not(.date)::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: white;
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        z-index: -1;
    }

    header#hero p:not(.date)::after {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: lightSlide 8s cubic-bezier(0.4, 0, 0.2, 1) infinite 3s;
        pointer-events: none;
    }

    @keyframes namesWrite {
        0% {
            opacity: 0;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @keyframes softGlow {
        0%, 100% {
            text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
        }
        50% {
            text-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
        }
    }

    @keyframes lightSlide {
        0% {
            transform: translateX(-200%);
        }
        100% {
            transform: translateX(200%);
        }
    }

    header#hero p.date {
        font-size: 1.1em !important;
        letter-spacing: 0.5px;
        margin: 1rem 0 !important;
        padding: 0;
    }
}

/* Sección de Padres */
#padres {
    background-color: var(--background-color);
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#padres::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.90)), 
                url('images/texture-background.svg') repeat;
    z-index: 0;
}

#padres .decorative-top {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 250px;
    height: 250px;
    opacity: 0.65;
    z-index: 1;
    background: url('images/flor-izquierda.png') no-repeat center center/contain;
    animation: floatTop 15s ease-in-out infinite;
}

#padres .decorative-bottom {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 250px;
    height: 250px;
    opacity: 0.7;
    z-index: 1;
    background: url('images/flor-derecha.png') no-repeat center center/contain;
    animation: floatBottom 15s ease-in-out infinite;
}

.parents-content {
    position: relative;
    z-index: 3;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 1rem !important;
}

/* Media queries para los elementos decorativos en móvil */
@media (max-width: 480px) {
    #padres {
        position: relative;
        overflow: hidden;
        padding-top: 120px;
        padding-bottom: 120px;
    }
    #padres .decorative-top {
        display: block !important;
        position: absolute;
        top: 10px;
        left: 10px;
        width: 120px;
        height: 120px;
        opacity: 0.7;
        z-index: 2;
        background-size: contain;
        pointer-events: none;
        transform: none;
    }
    #padres .decorative-bottom {
        display: block !important;
        position: absolute;
        bottom: 10px;
        right: 10px;
        width: 120px;
        height: 120px;
        opacity: 0.7;
        z-index: 2;
        background-size: contain;
        pointer-events: none;
        transform: none;
    }
    .parents-content {
        position: relative;
        z-index: 3;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 2rem !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }
    .main-quote {
        font-size: 2em;
        line-height: 1.1em;
    }
    .parent-name {
        font-size: 1em;
    }
    .parents-footer {
        font-size: 1em;
    }
    .couple-names {
        font-size: 2.2em;
    }
}

.quote-container {
    margin-bottom: 3rem;
}

.main-quote {
    font-family: 'Astrid', cursive;
    font-size: 2.1em;
    color: var(--accent-color);
    margin-bottom: 2rem;
    line-height: 1.4;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.parents-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    margin: 3rem 0;
    align-items: center;
}

.parents-column {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
}

.parent-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    margin-bottom: 0.3em;
}

.parents-divider {
    font-family: 'Redemption 2', cursive;
    font-size: 2.5em;
    color: var(--accent-color);
    opacity: 0;
    animation: fadeIn 1s ease-out 1s forwards;
}

.parents-footer {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: var(--text-color);
    margin: 2rem 0;
    font-style: italic;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.2s forwards;
}

.couple-names {
    font-family: 'Redemption 2', cursive;
    font-size: 3em;
    color: var(--accent-color);
    margin-top: 1.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 1.5s forwards;
}

/* Media Queries para la sección de padres */
@media (max-width: 768px) {
    #padres {
        padding: 4rem 1rem;
    }

    .parents-content {
        padding: 1.5rem;
    }

    .main-quote {
        font-size: 2em;
    }

    .parents-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .parents-divider {
        display: flex;
        justify-content: center;
        align-items: center;
        height: 50px;
    }

    .parent-name {
        font-size: 1.1em;
    }

    .couple-names {
        font-size: 2.5em;
    }
}

@media (max-width: 480px) {
    #padres {
        padding: 3rem 1rem;
    }

    .main-quote {
        font-size: 1.8em;
    }

    .parent-name {
        font-size: 1em;
    }

    .parents-footer {
        font-size: 1em;
    }

    .couple-names {
        font-size: 2.2em;
    }
}

@media (max-width: 480px) {
    .couple-names {
        font-size: 2.8em !important;
        white-space: nowrap;
        overflow: hidden;
        /* border-right: 2px solid var(--accent-color); */
        width: 18ch;
        max-width: 100%;
        animation: typewriter-couple 2.2s steps(18, end) 2s 1 normal both;
    }
}

@keyframes typewriter-couple {
    0% { width: 0; }
    100% { width: 18ch; }
}

@keyframes blinkCaretCouple {
    0%, 100% { border-color: transparent; }
    50% { border-color: var(--accent-color); }
}

#regalos {
    background: linear-gradient(rgb(31 153 238 / 79%), rgb(0 150 255)), url(images/texture-background.jpg) center / cover fixed;
    padding: 4rem 2rem;
    position: relative;
}

.gift-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(175, 211, 236, 0.2);
}

.gift-icon-wrapper {
    width: 54px;
    height: 54px;
    margin-bottom: 0.5rem;
}

.gift-icon {
    width: 100%;
    height: 100%;
    position: relative;
    animation: giftAnimation 3s infinite ease-in-out;
    color: var(--title-color);
}

@keyframes giftAnimation {
    0% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.1) rotate(-5deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.gift-icon svg {
    width: 100%;
    height: 100%;
    color: var(--title-color);
    filter: none;
}

.gift-intro {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-color);
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    max-width: 700px;
    margin-top: 0.2rem;
}

.bank-details {
    background: linear-gradient(145deg, rgba(175, 211, 236, 0.1), rgba(175, 211, 236, 0.05));
    padding: 1.5rem;
    border-radius: 12px;
    margin: 1.5rem auto;
    width: 100%;
    max-width: 500px;
    border: 1px solid rgba(175, 211, 236, 0.2);
    text-align: center;
}

.bank-details p {
    margin: 0.5rem 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    color: var(--text-color);
    text-align: center;
}

.bank-details p.titular {
    font-style: italic;
    color: var(--text-color2);
    margin-top: 1rem;
}

.gift-footer {
    margin-top: 2rem;
    font-style: italic;
    color: var(--text-color);
    opacity: 0.9;
    font-size: 1.1rem;
    text-align: center;
}

@media (max-width: 768px) {
    #regalos {
        padding: 3rem 1.5rem;
    }

    .gift-container {
        padding: 2rem 1.5rem;
    }

    .gift-icon-wrapper {
        width: 80px;
        height: 80px;
    }

    .gift-intro {
        font-size: 1.05rem;
        padding: 0 1rem;
    }

    .bank-details {
        padding: 1.25rem;
    }
}

@media (max-width: 480px) {
    #regalos {
        padding: 2.5rem 1rem;
    }

    .gift-container {
        padding: 1.5rem 1rem;
    }

    .gift-icon-wrapper {
        width: 70px;
        height: 70px;
    }

    .gift-intro {
        font-size: 1rem;
        padding: 0;
    }

    .bank-details p {
        font-size: 1rem;
    }

    .gift-footer {
        font-size: 0.95rem;
        margin-top: 1.5rem;
    }
}

#rsvp {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.85)), 
                url('images/texture-background.svg') repeat;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
}

#rsvp::before {
    display: none;
}

#rsvp h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    color: var(--title-color);
    margin-bottom: 1rem;
    position: relative;
}

.rsvp-description {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: var(--text-color);
    margin-top: 0 !important;
    margin-bottom: 0.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

#rsvp-form {
    max-width: 800px;
    margin: 1.5rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: left;
    position: relative;
    z-index: 2;
}

.form-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group.full-width {
    margin-bottom: 1rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(175, 211, 236, 0.5);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    color: var(--text-color);
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.form-group input::placeholder,
.form-group textarea::placeholder,
.form-group select {
    color: var(--text-color2);
    opacity: 0.8;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color2);
    box-shadow: 0 0 0 3px rgba(175, 211, 236, 0.2);
    background: white;
}

@media (max-width: 768px) {
    #rsvp {
        padding: 2rem 1rem;
    }

    #rsvp h2 {
        font-size: 2.8em;
    }

    .rsvp-description {
        font-size: 1em;
        padding: 0 1rem;
        margin-top: 0 !important;
        margin-bottom: 1rem;
    }

    #rsvp-form {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    .form-row {
        flex-direction: column;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .form-group {
        margin-bottom: 0;
    }
}

@media (max-width: 480px) {
    #rsvp {
        padding: 1.5rem 1rem;
    }

    #rsvp h2 {
        font-size: 2.5em;
    }

    #rsvp-form {
        padding: 1rem;
        margin: 0.8rem auto;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
        font-size: 0.95rem;
    }

    #rsvp-form button[type="submit"] {
        padding: 0.8rem;
        font-size: 1rem;
    }

    .rsvp-note {
        font-size: 0.8rem;
        margin-top: 0.8rem;
    }
}

.rsvp-note {
    margin-top: 1rem;
    font-style: italic;
    color: var(--text-color2);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

#rsvp-form button[type="submit"] {
    width: 100%;
    padding: 0.8rem;
    background: linear-gradient(45deg, var(--accent-color), var(--accent-color2));
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
    position: relative;
    z-index: 3;
}

#rsvp-form button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(175, 211, 236, 0.4);
}

/* Estilos para la sección de contacto */
#contacto {
    position: relative;
    padding: 0 2rem;
    text-align: center;
    background-color: var(--secondary-color);
    overflow: hidden;
    z-index: 1;
    min-height: 60vh !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

#contacto::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85)),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M54.627 0l.83.828-1.415 1.415L51.8 0h2.827zM5.373 0l-.83.828L5.96 2.243 8.2 0H5.374zM48.97 0l3.657 3.657-1.414 1.414L46.143 0h2.828zM11.03 0L7.372 3.657 8.787 5.07 13.857 0H11.03zm32.284 0L49.8 6.485 48.384 7.9l-7.9-7.9h2.83zM16.686 0L10.2 6.485 11.616 7.9l7.9-7.9h-2.83zM22.344 0L13.858 8.485 15.272 9.9l7.9-7.9h-.828zm5.656 0L19.515 8.485 17.343 10.657 28 0h-2.83zM32.656 0L41.142 8.485 39.728 9.9l-7.9-7.9h.828zm5.656 0L47.8 9.485 41.343 15.94 30.686 5.283 38.313 0zm5.656 0l6.485 6.485L36.97 19.97 26.313 9.313 34.142 1.485 35.557 0h2.83zM0 0l.828.828-2.243 2.243L1.172 5.657 0 6.485V0h.828L0 0zm0 17.657l2.243 2.243L4.486 17.657 0 13.172v4.485zm0 5.657l3.657 3.657 1.414-1.414L0 20.142v3.172zm0 5.657l5.071 5.071 1.414-1.414L0 25.799v3.172zm0 5.657l6.485 6.485 1.414-1.414L0 31.456v3.172zm0 5.657l7.899 7.899 1.414-1.414L0 37.113v3.172zm0 5.657l9.313 9.313 1.414-1.414L0 42.77v3.172zm0 5.657l10.728 10.728 1.414-1.414L0 48.427v3.172zm0 5.657l12.142 12.142 1.414-1.414L0 54.084v3.172zM0 60h3.172L60 3.172V0h-3.172L0 56.828V60z' fill='%23ffb2b2' fill-opacity='0.1' fill-rule='evenodd'/%3E%3C/svg%3E");
    z-index: 0;
}

/* En desktop, mantener contacto separado del footer */
@media (min-width: 769px) {
    #contacto {
        background-color: var(--secondary-color);
        padding: 0 2rem 2rem 2rem;
        margin-bottom: 0;
        min-height: 60vh !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    #contacto h2 {
        color: var(--title-color);
    }
    
    #contacto p {
        color: var(--text-color);
    }
    
    .contact-buttons {
        margin-bottom: 0.2rem;
    }
    
    footer {
        background-color: var(--footer-color);
        padding: 2rem 0;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 2rem;
        padding: 0 2rem;
    }
    
    .footer-info {
        order: 2;
        flex: 1;
        text-align: center;
    }
    
    .footer-decoration.left {
        order: 1;
    }
    
    .footer-decoration.right {
        order: 3;
    }
}

#contacto h2 {
    font-family: 'Dancing Script', cursive;
    font-size: 3.5em;
    color: var(--title-color);
    margin-bottom: 0.2rem;
    position: relative;
}

#contacto h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--accent-color2), transparent);
    margin: 0.2rem auto 0.3rem;
}

#contacto p {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    color: var(--text-color);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 0.5rem;
    position: relative;
    z-index: 2;
}

.contact-button {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-color2) 100%);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    position: relative;
    z-index: 3;
}

.contact-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.8rem;
    color: white;
    opacity: 1;
    flex-shrink: 0;
}

footer {
    background-color: var(--footer-color);
    padding: 4rem 0 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Elementos decorativos flotantes en el footer */
.footer-content::before {
    content: '♥';
    position: absolute;
    top: -20px;
    left: 10%;
    font-size: 2em;
    color: rgba(255, 255, 255, 0.3);
    animation: floatHeart 6s ease-in-out infinite;
}

.footer-content::after {
    content: '♥';
    position: absolute;
    top: -30px;
    right: 15%;
    font-size: 1.5em;
    color: rgba(255, 255, 255, 0.2);
    animation: floatHeart 8s ease-in-out infinite reverse;
}

/* Corazones adicionales en el footer */
.footer-heart-1 {
    content: '♥';
    position: absolute;
    bottom: -15px;
    left: 15%;
    font-size: 1.8em;
    color: rgba(255, 255, 255, 0.25);
    animation: floatHeart 7s ease-in-out infinite 1s;
}

.footer-heart-2 {
    content: '♥';
    position: absolute;
    bottom: -25px;
    left: 30%;
    font-size: 1.3em;
    color: rgba(255, 255, 255, 0.2);
    animation: floatHeart 9s ease-in-out infinite 2s;
}

.footer-heart-3 {
    content: '♥';
    position: absolute;
    bottom: -18px;
    left: 45%;
    font-size: 1.6em;
    color: rgba(255, 255, 255, 0.28);
    animation: floatHeart 6.5s ease-in-out infinite 0.5s;
}

.footer-heart-4 {
    content: '♥';
    position: absolute;
    bottom: -22px;
    left: 60%;
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.22);
    animation: floatHeart 7.5s ease-in-out infinite 1.5s;
}

.footer-heart-5 {
    content: '♥';
    position: absolute;
    bottom: -12px;
    left: 75%;
    font-size: 1.1em;
    color: rgba(255, 255, 255, 0.18);
    animation: floatHeart 8.5s ease-in-out infinite 3s;
}

@keyframes floatHeart {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    50% {
        transform: translateY(-10px) rotate(10deg);
        opacity: 0.6;
    }
}

.footer-decoration {
    width: 120px;
    height: 120px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.4;
    margin: 0 auto;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-decoration:hover {
    opacity: 0.6;
    transform: scale(1.05);
}

.footer-decoration.left {
    background-image: url('images/flower-decoration.svg');
    transform: rotate(-30deg);
}

.footer-decoration.right {
    background-image: url('images/flower-decoration.svg');
    transform: rotate(30deg);
}

.footer-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.footer-names {
    font-family: 'Redemption 2', cursive;
    font-size: 3.5em;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    animation: footerGlow 4s ease-in-out infinite alternate;
    letter-spacing: 0.02em;
}

@keyframes footerGlow {
    0% {
        text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    }
    100% {
        text-shadow: 2px 2px 12px rgba(255, 255, 255, 0.2);
    }
}

.footer-names::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
}

.footer-date {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4em;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 4px;
    font-weight: 300;
    margin-bottom: 0.5rem;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    width: 100%;
    max-width: 300px;
}

@media (max-width: 768px) {
    #contacto {
        padding: 1.5rem 1.5rem;
    }

    #contacto h2 {
        font-size: 2.9em;
    }

    #contacto p {
        font-size: 1.1em;
        padding: 0 1rem;
    }

    .contact-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .contact-button {
        width: auto;
        min-width: 250px;
    }

    .footer-decoration {
        width: 100px;
        height: 100px;
    }

    .footer-names {
        font-size: 2.5em;
    }

    .footer-date {
        font-size: 1.2em;
    }

    .footer-copyright {
        font-size: 0.85em;
    }
    
    /* Ocultar elementos decorativos en móvil */
    .footer-content::before,
    .footer-content::after,
    .footer-heart-1,
    .footer-heart-2,
    .footer-heart-3,
    .footer-heart-4,
    .footer-heart-5 {
        display: none;
    }
}

@media (max-width: 480px) {
    #contacto {
        padding: 1rem 1rem;
    }

    #contacto h2 {
        font-size: 2.6em;
    }

    .contact-button {
        padding: 0.7rem 1.5rem;
        font-size: 1em;
    }

    .footer-decoration {
        width: 80px;
        height: 80px;
    }

    .footer-names {
        font-size: 2.2em;
    }

    .footer-date {
        font-size: 1.1em;
    }

    .footer-copyright {
        font-size: 0.8em;
    }
}

/* ===== NOTIFICACIONES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.notification.success {
    background-color: #4CAF50;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #2196F3;
}

/* ===== MEJORAS DE ACCESIBILIDAD ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== FOCUS VISIBLE PARA MEJOR ACCESIBILIDAD ===== */
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* ===== MEJORAS DE RENDIMIENTO ===== */
.gallery-item img,
.lightbox-content img {
    will-change: transform;
}

/* ===== ESTILOS PARA ESTADOS DE CARGA ===== */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ===== MEJORAS PARA IMPRESIÓN ===== */
@media print {
    #landing-page,
    #music-control,
    .gallery-nav,
    .lightbox,
    .click-invitation {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .container {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
}

/* ===================== CONTADOR DE BODA ===================== */
.countdown-section {
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    padding: 5rem 0 5rem 0;
    background: #fff !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    position: relative;
    text-align: center;
    overflow: visible;
    z-index: 2;
}

.countdown-section > *:not(.decorative-top):not(.decorative-bottom) {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border: none !important;
}

.countdown-section::before {
    content: none !important;
    background: none !important;
}

.countdown-title {
    font-family: 'Redemption 2', 'Great Vibes', cursive;
    font-size: 4em;
    color: #3d5c7c;
    margin-bottom: 0.2em;
    font-weight: 400;
    letter-spacing: 0.03em;
    z-index: 2;
    position: relative;
    white-space: nowrap;
}

.mobile-only {
    display: none;
}

.countdown-subtitle {
    font-family: 'Montserrat', 'Roboto', sans-serif;
    font-size: 1.25em;
    color: #4a7c8c;
    margin-bottom: 2.2em;
    font-weight: 300;
    font-style: italic;
    z-index: 2;
    position: relative;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.countdown-number {
    font-family: 'Playfair Display', serif;
    font-size: 2.8em;
    color: #3d5c7c;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 0.1em;
    line-height: 1.1;
}

.countdown-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #3d5c7c;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Eliminar decoraciones previas */
.countdown-section::before,
.countdown-section::after {
    display: none !important;
}

@media (max-width: 700px) {
    .countdown-section {
        padding: 4rem 0 4rem 0;
    }
    .countdown-title {
        font-size: 2.2em;
    }
    .countdown-container {
        gap: 1.2rem;
    }
    .countdown-number {
        font-size: 1.7em;
    }
    .countdown-section .decorative-top,
    .countdown-section .decorative-bottom {
        width: 110px;
        height: 110px;
    }
}

@media (max-width: 480px) {
    .countdown-section {
        padding: 5rem 0 5rem 0;
    }
    .countdown-title {
        font-size: 4em;
        margin-bottom: 0.5em;
        line-height: 1.1;
        white-space: normal;
    }
    .mobile-only {
        display: inline;
    }
    .countdown-subtitle {
        font-size: 1.1em;
        margin-bottom: 1.5em;
    }
    .countdown-container {
        gap: 1rem;
    }
    .countdown-item {
        min-width: 65px;
    }
    .countdown-number {
        font-size: 1.8em;
    }
    .countdown-label {
        font-size: 1.1em;
    }
    .countdown-section .decorative-top {
        width: 120px;
        height: 120px;
    }
    .countdown-section .decorative-bottom {
        display: none;
    }
}

@media (max-width: 768px) {
    #informacion-evento {
        padding-top: 0.5rem !important;
    }
    .event-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
        margin: 0.01rem auto 1rem auto;
    }
}

#itinerario {
    background-color: var(--secondary-color);
    padding: 4rem 0 3rem 0;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.itinerario-content {
    background: rgba(255,255,255,0.0);
    max-width: 700px;
    margin: 0 auto;
    padding: 2rem 1rem 1.5rem 1rem;
    border-radius: 18px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.itinerario-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.7em;
    color: #3d5c7c;
    margin-bottom: 2.2rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(61,92,124,0.07);
}

.timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    margin: 0 auto;
    width: 100%;
    max-width: 700px;
    padding: 3rem 0 1.5rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 8%;
    right: 8%;
    height: 4px;
    background: var(--timeline-color);
    opacity: 0.22;
    border-radius: 2px;
    z-index: 0;
    transform: translateY(-50%);
}

.timeline-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 0;
    position: relative;
    z-index: 1;
    min-width: 120px;
}

.timeline-icon {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 12px rgba(61,92,124,0.08);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    z-index: 2;
    border: 3px solid #AFD3EC;
    transition: box-shadow 0.3s;
}

.timeline-icon svg {
    width: 38px;
    height: 38px;
    display: block;
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3d5c7c 60%, #AFD3EC 100%);
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 0.5rem;
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(61,92,124,0.12);
    z-index: 2;
    animation: pulseDot 2.5s infinite;
}

@keyframes pulseDot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(61,92,124,0.15); }
    50% { box-shadow: 0 0 0 8px rgba(175,211,236,0.18); }
}

.timeline-label {
    margin-top: 0.7rem;
    text-align: center;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18em;
    color: #3d5c7c;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0;
}

.timeline-desc {
    font-family: 'Playfair Display', serif;
    font-size: 1.13em;
    color: #3d5c7c;
    font-style: italic;
    font-weight: 400;
    opacity: 0.95;
}

@media (max-width: 700px) {
    #itinerario {
        padding: 2.5rem 0 2rem 0;
    }
    .itinerario-title {
        font-size: 2em;
    }
    .timeline {
        max-width: 98vw;
        padding: 1.5rem 0 0.5rem 0;
    }
    .timeline-label {
        font-size: 0.98em;
    }
    .timeline-icon {
        width: 48px;
        height: 48px;
    }
    .timeline-icon svg {
        width: 28px;
        height: 28px;
    }
    .timeline-dot {
        width: 13px;
        height: 13px;
        border-width: 3px;
        margin-top: -8px;
    }
}

@media (max-width: 480px) {
    #itinerario {
        padding: 1.5rem 0 1.2rem 0;
    }
    .itinerario-title {
        font-size: 1.3em;
    }
    .timeline {
        flex-direction: column;
        align-items: center;
        padding: 0.5rem 0 0 0;
        min-height: 320px;
    }
    .timeline::before {
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        min-height: 220px;
        background: linear-gradient(180deg, #3d5c7c 0%, #AFD3EC 100%);
        opacity: 0.22;
        z-index: 0;
        right: auto;
        transform: translateX(-50%);
        border-radius: 2px;
    }
    .timeline-item {
        flex-direction: row;
        align-items: flex-start;
        margin-bottom: 2.5rem;
        width: 100%;
        justify-content: flex-start;
        min-width: 0;
    }
    .timeline-icon {
        margin-bottom: 0;
        margin-right: 1.2rem;
        width: 38px;
        height: 38px;
        border-width: 2px;
    }
    .timeline-icon svg {
        width: 20px;
        height: 20px;
    }
    .timeline-dot {
        margin: 0 1.2rem 0 0;
        margin-top: 0.5rem;
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
    .timeline-label {
        margin-top: 0;
        text-align: left;
        font-size: 0.98em;
    }
    .timeline-time {
        font-size: 1.08em;
    }
    .timeline-desc {
        font-size: 1em;
    }
}

.timeline-emoji {
    font-size: 2.7em;
    background: linear-gradient(135deg, #fff 70%, #AFD3EC 100%);
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(61,92,124,0.10);
    margin-bottom: 0.5rem;
    border: 3px solid #AFD3EC;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
    position: relative;
    z-index: 2;
}
.timeline-emoji:hover {
    transform: scale(1.08) rotate(-6deg);
    box-shadow: 0 6px 24px rgba(61,92,124,0.18);
}

.timeline-dot {
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #3d5c7c 60%, #AFD3EC 100%);
    border-radius: 50%;
    border: 4px solid #fff;
    margin-bottom: 0.5rem;
    margin-top: -12px;
    box-shadow: 0 2px 8px rgba(61,92,124,0.12);
    z-index: 2;
    animation: pulseDot 2.5s infinite;
}

.timeline-label {
    margin-top: 0.7rem;
    text-align: center;
}

.timeline-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.18em;
    color: #3d5c7c;
    font-weight: 700;
    letter-spacing: 0.01em;
    display: block;
    margin-bottom: 0;
}

.timeline-desc {
    font-family: 'Playfair Display', serif;
    font-size: 1.13em;
    color: #3d5c7c;
    font-style: italic;
    font-weight: 400;
    opacity: 0.95;
}

@media (max-width: 700px) {
    .timeline-emoji {
        width: 48px;
        height: 48px;
        font-size: 2em;
    }
    .timeline-dot {
        width: 13px;
        height: 13px;
        border-width: 3px;
        margin-top: -8px;
    }
}
@media (max-width: 480px) {
    .timeline-emoji {
        width: 38px;
        height: 38px;
        font-size: 1.3em;
        border-width: 2px;
    }
    .timeline-dot {
        width: 10px;
        height: 10px;
        border-width: 2px;
    }
}

@media (min-width: 992px) {
  .parents-content .quote-container {
    max-width: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .main-quote.astrid-font {
    font-size: 2.2rem !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100vw;
  }
  .main-quote {
    font-size: 2.7em;
  }
}

.quote-mark {
    font-family: 'Georgia', serif;
    font-size: 1.2em;
    vertical-align: middle;
}

.parents-column .parent-name {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 1.1 !important;
}

.main-quote {
    font-size: 2em;
    line-height: 1.1em;
}

@media (max-width: 480px) {
    .parents-content {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 2rem !important;
        margin-top: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width: 481px) {
    .parents-content {
        max-width: 900px;
        margin: 0 auto;
        padding: 2rem;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        position: relative;
        z-index: 2;
    }
}

@media (min-width: 992px) {
  .main-quote.astrid-font {
    font-size: 3em;
  }
}

#nuestra-historia h2,
#galeria h2,
#regalos h2,
#rsvp h2,
#contacto h2 {
    font-family: 'Astrid', serif;
    letter-spacing: 0.02em;
    font-weight: normal;
}

.event-date-block {
    margin: 1.2em 0 1.1em 0;
    text-align: center;
}
.event-date-label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #6b7fa6;
    letter-spacing: 0.15em;
    font-weight: 400;
    margin-bottom: 0.2em;
}
.event-date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7em;
    margin-bottom: 0.2em;
}
.event-date-day-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #444e5e;
    font-weight: 400;
    letter-spacing: 0.05em;
    border-right: 1.5px solid #bfcbe2;
    padding-right: 0.7em;
    margin-right: 0.7em;
}
.event-date-day {
    font-family: 'Playfair Display', serif;
    font-size: 2.7em;
    color: #222;
    font-weight: 400;
    margin: 0 0.1em;
}
.event-date-year {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.1em;
    color: #444e5e;
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-left: 0.7em;
}
.event-time {
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #444e5e;
    font-weight: 400;
    margin-top: 0.2em;
    margin-bottom: 0.2em;
    letter-spacing: 0.01em;
}
.event-location {
    margin: 1.1em 0 1.2em 0;
    text-align: center;
}
.event-location-church {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 1em;
    color: #4a6fa1;
    font-weight: 500;
    letter-spacing: 0.03em;
    margin-bottom: 0.1em;
    text-transform: uppercase;
}
.event-location-address {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.98em;
    color: #6b7fa6;
    font-weight: 400;
    letter-spacing: 0.01em;
    margin-bottom: 0.1em;
}
.event-card.ceremony {
    /* Eliminar max-width, padding y border para que herede de .event-card */
    background: #fff;
    /* border-radius: 16px; */
    /* box-shadow: 0 2px 16px 0 rgba(107,127,166,0.08); */
    /* border: 1.5px solid #f2f4fa; */
    /* padding: 2.5rem 2rem 2.2rem 2rem; */
    /* max-width: 340px; */
    /* margin: 0 auto; */
}
.event-card.ceremony .card-icon img {
    width: 60px;
    height: 60px;
    margin-bottom: 0.7em;
    opacity: 0.5;
}
.event-card.ceremony h3 {
    color: #4a6fa1;
    font-family: 'Astrid', serif;
    font-size: 2.2em;
   
    margin-bottom: 0.7em;
    line-height: 1.1em;
    letter-spacing: 0.01em;
}


.event-date-day-recepcion {
    font-size: 3.5em;
    font-family: 'Astrid', serif;
    color: #222;
    margin: 0 0.1em;
    vertical-align: middle;
}

.event-date-bar {
    font-size: 3em;
    font-family: 'Montserrat', serif;
    font-weight: lighter;
    color: #313131;
    vertical-align: middle;
    margin: 0 0.08em;
}

.event-italic {
    font-style: italic;
}

.event-location-recepcion {
    font-size: 0.7em !important;
    color: var(--title-color) !important;
    margin-bottom: 0.2em;
    margin-top: 1.5em;
    font-style: italic;
    text-align: center;
}
.event-address-recepcion {
    font-size: 0.9em !important;
    color: var(--title-color) !important;
    margin-top: 0.1em;
    margin-bottom: 0.1em;
    font-style: italic;
    text-align: center;
}

.dress-formal-badge {
    display: inline-block;
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    background: transparent;
    border-radius: 25px;
    padding: 0.5em 1.5em;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.2em;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin: 1rem 0;
    text-align: center;
    transition: border-color 0.3s, color 0.3s;
}
.dress-formal-badge span {
    font-style: normal;
}

.event-card .card-icon img[src$="ring.svg"],
.event-card .card-icon img[src$="dance.svg"],
.event-card .card-icon img[src$="dress.svg"] {
    filter: none;
    /* Elimina cualquier filtro previo */
    fill: var(--accent-color) !important;
    /* Para navegadores que soportan SVG inline */
    color: var(--accent-color) !important;
    /* Para SVGs que usan currentColor */
    opacity: 1;
}

.decorative-top.left {
    top: 0;
    left: 0;
    right: auto;
    width: 180px;
    height: 180px;
    background: url('images/flor-izquierda.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 2;
}
.decorative-top.right {
    top: 0;
    right: 0;
    left: auto;
    width: 180px;
    height: 180px;
    background: url('images/flor-derecha.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 2;
    transform: none;
}

.decorative-top.left,
.decorative-top.right {
    width: 200px;
    height: 200px;
}

@media (max-width: 700px) {
    .decorative-top.left {
        top: -27px; /* 30% fuera de 90px de alto */
        left: -10px;
        right: auto;
        width: 90px;
        height: 90px;
    }
    .decorative-top.right {
        top: -27px;
        right: -10px;
        left: auto;
        width: 90px;
        height: 90px;
    }
}

.gift-container h2::after {
    display: none !important;
}

.gift-container h2 {
    margin-bottom: 0.3rem;
    margin-top: 0.2rem;
}

.gift-content {
    margin-top: 0.2rem;
}

.decorative-gift-left {
    position: absolute;
    top: 30px;
    left: 0;
    width: 120px;
    height: 120px;
    background: url('images/flor-izquierda2.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}
.decorative-gift-right {
    position: absolute;
    bottom: 30px;
    right: 0;
    width: 120px;
    height: 120px;
    background: url('images/flor-derecha2.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}
#regalos {
    position: relative;
}

@media (min-width: 701px) {
    .decorative-gift-left {
        width: 340px;
        height: 340px;
        top: 20%;
        left: -70px;
    }
    .decorative-gift-right {
        width: 260px;
        height: 260px;
        bottom: 20%;
        right: 0;
    }
}
@media (max-width: 700px) {
    .decorative-gift-left,
    .decorative-gift-right {
        width: 90px;
        height: 90px;
        top: 30px;
        bottom: 30px;
    }
    .decorative-gift-left {
        top: 30px;
    }
    .decorative-gift-right {
        bottom: 30px;
    }
}

.rsvp-deco-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 240px;
    height: 240px;
    background: url('images/flor-izquierda.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}
.rsvp-deco-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 240px;
    height: 240px;
    background: url('images/flor-derecha.png') no-repeat center center/contain;
    opacity: 0.7;
    z-index: 1;
    pointer-events: none;
}
#rsvp {
    position: relative;
}

@media (max-width: 768px) {
    .event-card.animate {
        border: 2px solid var(--accent-color2) !important;
        box-shadow: 0 4px 20px 0 rgba(81,120,162,0.13) !important;
        background: rgba(255,255,255,0.98) !important;
        transition: border 0.3s, box-shadow 0.3s, background 0.3s;
    }
}

@media (max-width: 768px) {
    #informacion-evento .event-card.animate {
        border: 2.5px solid var(--accent-color2) !important;
        box-shadow: 0 6px 24px 0 rgba(81,120,162,0.18) !important;
        background: #fff !important;
        z-index: 2 !important;
        position: relative !important;
        transition: border 0.3s, box-shadow 0.3s, background 0.3s;
    }
}

@media (max-width: 480px) {
    .event-location-recepcion {
        font-size: 0.95em !important;
        font-weight: 600;
        letter-spacing: 0.01em;
    }
}

@media (max-width: 480px) {
    #galeria .decorative-top.right {
        display: none !important;
    }
}

@media (max-width: 480px) {
    #galeria .decorative-top.left {
        width: 95px !important;
        height: 95px !important;
        top: 70px !important;
        left: -10px !important;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    .rsvp-deco-left {
        width: 115px !important;
        height: 115px !important;
        top: 0 !important;
        left: 0 !important;
        z-index: 1;
    }
}

@media (max-width: 480px) {
    #rsvp h2 {
        line-height: 1.05 !important;
        padding-top: 1.2em !important;
    }
}

@media (max-width: 480px) {
    #contacto h2 {
        padding-top: 0 !important;
        margin-top: 0.1em !important;
    }
}

/* ===== ESTILOS PARA BÚSQUEDA DE INVITADOS ===== */
.resultados-busqueda {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.resultado-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.resultado-item:hover {
    background-color: #f8f9fa;
}

.resultado-item:last-child {
    border-bottom: none;
}

.form-group {
    position: relative;
}

#pases, #mesa, #nombre {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
    font-weight: 500;
}

/* Estilos para campos deshabilitados después de confirmación */
#rsvp-form input:disabled,
#rsvp-form select:disabled,
#rsvp-form textarea:disabled {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

#rsvp-form button[type="submit"]:disabled {
    background: #28a745 !important;
    color: white !important;
    cursor: not-allowed !important;
    opacity: 1;
}

/* Animación para el indicador de confirmación */
.confirmacion-exitosa {
    animation: slideInDown 0.5s ease-out;
    position: relative;
    z-index: 10;
}

/* Asegurar que los mensajes de confirmación estén por encima de elementos decorativos */
#rsvp .confirmacion-exitosa,
#rsvp .confirmacion-exitosa + div {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

/* Ajustar posición para evitar elementos decorativos */
#rsvp .rsvp-deco-left {
    z-index: 1;
}

#rsvp .rsvp-deco-right {
    z-index: 1;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sección Propuesta de Matrimonio - pantalla completa en desktop */
#propuesta-matrimonio, .seccion-pantalla-completa {
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    background-color: var(--background-color);
    position: relative;
}
#propuesta-matrimonio::before, .seccion-pantalla-completa::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(rgba(255,255,255,0.95), rgba(255,255,255,0.90)), url('images/texture-background.svg') repeat;
    z-index: 0;
}
#propuesta-matrimonio .section-content, .seccion-pantalla-completa .section-content {
    background: rgba(255,255,255,0.93);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 1.2rem 2.5rem 2.2rem 2.5rem;
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}
#propuesta-matrimonio p, .seccion-pantalla-completa p {
    font-size: 1.15em;
    color: #444;
    margin-bottom: 2.2rem;
    margin-top: 0.5rem;
    text-align: center;
    max-width: 900px;
}
#propuesta-matrimonio h2, .seccion-pantalla-completa h2, .astrid-font {
    font-family: 'Astrid', serif !important;
    font-size: 3.5em;
    text-align: center;
    color: var(--title-color, #3a4a5a);
    margin-bottom: 0.7rem;
    letter-spacing: 0.01em;
    font-weight: normal;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.08);
}
#propuesta-matrimonio .decorative-bottom.right, .seccion-pantalla-completa .decorative-bottom.right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    z-index: 1;
}
@media (max-width: 1100px) {
    #propuesta-matrimonio .section-content, .seccion-pantalla-completa .section-content {
        max-width: 98vw;
        padding: 1.2rem 1.2rem 2rem 1.2rem;
    }
    #propuesta-matrimonio p, .seccion-pantalla-completa p {
        font-size: 1.05em;
        max-width: 98vw;
    }
}
@media (max-width: 700px) {
    #propuesta-matrimonio, .seccion-pantalla-completa {
        min-height: 70vh;
        height: auto;
        padding: 1.5rem 0;
    }
    #propuesta-matrimonio .section-content, .seccion-pantalla-completa .section-content {
        padding: 1.2rem 0.7rem 1.5rem 0.7rem;
        max-width: 99vw;
    }
    #propuesta-matrimonio h2, .seccion-pantalla-completa h2 {
        font-size: 2.2em;
    }
    #propuesta-matrimonio p, .seccion-pantalla-completa p {
        font-size: 1.1em;
        max-width: 99vw;
    }
}
@media (max-width: 480px) {
    #propuesta-matrimonio, .seccion-pantalla-completa {
        min-height: 60vh;
        height: auto;
        padding: 1.2rem 0;
    }
    #propuesta-matrimonio .section-content, .seccion-pantalla-completa .section-content {
        padding: 1.1rem 0.7rem 1.2rem 0.7rem;
        max-width: 100vw;
    }
    #propuesta-matrimonio h2, .seccion-pantalla-completa h2 {
        font-size: 2.1em;
    }
    #propuesta-matrimonio p, .seccion-pantalla-completa p {
        font-size: 1em;
        max-width: 98vw;
        margin-bottom: 1.2rem;
    }
    #propuesta-matrimonio .decorative-bottom.right, .seccion-pantalla-completa .decorative-bottom.right {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    #propuesta-matrimonio h2, .seccion-pantalla-completa h2, .gift-container h2 {
        font-size: 2.5em !important;
        line-height: 1.15 !important;
    }
}