/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Animaciones de scroll */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes heroTitleEntrance {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-30px) scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: translateX(-50%) translateY(10px) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

/* Clases de animación */
.animate-on-scroll {
    opacity: 0;
    transition: all 0.8s ease;
}

.animate-on-scroll.animate {
    opacity: 1;
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.scale-in {
    animation: scaleIn 0.8s ease forwards;
}

.slide-in-bottom {
    animation: slideInFromBottom 0.8s ease forwards;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-100px);
    transition: all 0.8s ease;
}

.slide-in-right {
    opacity: 0;
    transform: translateX(100px);
    transition: all 0.8s ease;
}

.slide-in-left.animate,
.slide-in-right.animate {
    opacity: 1;
    transform: translateX(0);
}


/* Animación para elementos de cuenta regresiva */
.countdown-item {
    animation: scaleIn 0.6s ease forwards;
    animation-delay: calc(var(--delay) * 0.1s);
}

/* Animación para botones */
.btn {
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

/* Animación para carrusel */
.carousel {
    animation: scaleIn 1s ease forwards;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fafafa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Sección Hero */
.hero {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)),
                url('img/PRINCIPAL_corta.jpg') center/cover;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-content {
    color: white;
    z-index: 2;
}

.hero-title {
    font-family: 'Gabriela', serif;
    font-size: 6rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 3px;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    animation: heroTitleEntrance 1.5s ease-out forwards;
}

.hero-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.7), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    height: 400px;
}

.hero-invitation {
    color: #333;
    animation: fadeInUp 1s ease-out .5s both;
    width: 100%;
}

.hero-invitation-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #333;
    letter-spacing: 1px;
    text-align: left;
    padding-left: 10%;
}

.hero-invitation-main-text {
    font-family: 'Luxurious Script', cursive;
    font-size: 4rem;
    font-weight: 400;
    color: #333;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
    line-height: 1.2;
    margin-top: -20px;
}

.btn-invitation {
    color: #333;
    border: 1px solid #333;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-invitation:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Sección Separadora */
.separator {
    height: 60vh;
    background: linear-gradient(rgba(0, 0, 0, 0.055), rgba(0, 0, 0, 0.068)),
                url('img/monograma.png') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-top: 10px solid white;
    border-bottom: 10px solid white;
}

.separator-content {
    text-align: center;
    color: white;
    z-index: 2;
}

.separator-title {
    font-family: 'Luxurious Script', cursive;
    font-size: 4rem;
    font-weight: 400;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out 0.5s both;
}

/* Secciones generales */
section {
    padding: 80px 0;
}

section.hero {
    padding: 0;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: #2c3e50;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #A48374;
}

/* Sección de Invitación */
.invitation {
    background: url('img/fondo_1.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: overlay;
    color: #333;
    text-align: center;
    position: relative;
}

.invitation-text {
    font-family: 'Diphylleia', serif;
    font-size: 1.3rem;
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 800;
}

/* Sección de Padres */
.parents {
    background: url('img/fondo_2.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.6);
    background-blend-mode: overlay;
    text-align: center;
    position: relative;
    border-top: 10px solid white;
}

.parents-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.parents-list p {
    font-family: 'Diphylleia', serif;
    font-size: 1.5rem;
    margin: 20px 0;
    color: #2c3e50;
    font-weight: 800;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-bottom: 4px solid;
    border-image: linear-gradient(to right, #a48374, #D1C7BD) 1;
}

/* Divisores */
.divider {
    padding: 0;
    height: 300px;
    overflow: hidden;
}

.divider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: brightness(0.8);
}

/* Sección de Fecha */
.date {
    background: url('img/fondo_2.jpg') left/cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: overlay;
    color: #333;
    text-align: center;
}

.date-info {
    max-width: 600px;
    margin: 0 auto;
}

.date-main {
    font-family: 'Gabriela', serif;
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #cbad8d;
}

.date-full {
    font-size: 1.5rem;
    font-weight: 300;
}

/* Cuenta Regresiva */
.countdown {
    background: white;
    text-align: center;
}

.countdown-timer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
}

.countdown-item {
    background: linear-gradient(135deg, #CBAD8D 0%, #D1C7BD 100%);
    color: #333;
    padding: 30px 15px;
    border-radius: 15px;
    flex: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.countdown-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: white;
}

.countdown-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: white;
}

/* Sección de Ceremonia */
.ceremony {
    background: url('img/fondo_1_bottom.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: overlay;
    text-align: center;
}

.ceremony-info p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-maps {
    background: linear-gradient(135deg, #CBAD8D 0%, #D1C7BD 100%);
    color: white;
}

.btn-maps:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

.btn-whatsapp {
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: white;
    font-size: 1.1rem;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

.btn i {
    margin-right: 10px;
}

/* Sección de Código de Vestimenta */
.dress-code {
    background: url('img/fondo_3.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: overlay;    text-align: center;
}

.dress-code-info p {
    font-size: 1.3rem;
    margin: 15px 0;
    color: #2c3e50;
}

/* Sección de Regalo */
.gift {
    background: url('img/fondo_2.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.6);
    background-blend-mode: overlay;
    text-align: center;
}

.gift-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}

.gift-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 30px;
    color: #2c3e50;
}

.bank-info p {
    font-size: 1.1rem;
    margin: 15px 0;
    color: #555;
    text-align: left;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #CBAD8D
}

/* Galería */
.gallery {
    background: white;
    text-align: center;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.carousel-container {
    position: relative;
    height: 450px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
}

.carousel-slide:first-child {
    display: block;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-btn.prev {
    left: 2px;
}

.carousel-btn.next {
    right: 2px;
}

/* Audio Player Section */
.audio-player-section {
    background: url('img/fondo_1.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.9);
    background-blend-mode: overlay;
    text-align: center;
    padding: 40px 0;
    border-bottom: 10px solid white;
}

.audio-player-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-audio {
    background: linear-gradient(135deg, #CBAD8D 0%, #D1C7BD 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: fadeInUp 0.8s ease forwards;
    font-family: 'Playfair Display', serif;
}

.btn-audio:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(203, 173, 141, 0.4);
}

.btn-audio i {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.btn-audio.playing i {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Sección de Confirmación */
.confirmation {
    background: url('img/fondo_2.jpg') center/cover;
    background-color: rgba(255, 255, 255, 0.8);
    background-blend-mode: overlay;
    color: #333;
    text-align: center;
}

.confirmation-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 4rem;
    }
    
    .hero {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .hero-bottom {
        height: 400px;
        padding-bottom: 30px;
    }
    
    .hero-invitation-text {
        font-size: 2rem;
    }
    
    .hero-invitation-main-text {
        font-size: 4rem;
    }
    
    .btn-invitation {
        padding: 12px 25px;
        font-size: 1rem;
    }
    
    .separator {
        height: 50vh;
    }
    
    .separator-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown-timer {
        gap: 10px;
    }
    
    .countdown-item {
        padding: 20px 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .invitation-text {
        font-size: 1.1rem;
    }
    
    .date-main {
        font-size: 2rem;
    }
    
    .date-full {
        font-size: 1.2rem;
    }
    
    .gift-card, .parents-card {
        padding: 20px;
        margin: 0 20px;
    }
    
    .carousel {
        margin: 0 20px;
    }
    
    .carousel-container {
        height: 450px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .hero {
        width: 100vw;
        height: 100vh;
        min-height: 100vh;
        margin: 0;
        padding: 0;
    }
    
    .hero-bottom {
        height: 400px;
        padding-bottom: 20px;
    }
    
    .hero-invitation-text {
        font-size: 2rem;
    }
    
    .hero-invitation-main-text {
        font-size: 4rem;
    }
    
    .btn-invitation {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .separator {
        height: 40vh;
    }
    
    .separator-title {
        font-size: 2.5rem;
    }
    
    .countdown-timer {
        gap: 5px;
    }
    
    .countdown-item {
        padding: 15px 5px;
    }
    
    .btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
}
