/* Estilos generales */
:root {
    --primary-color: #e27396;
    --secondary-color: #6a2c70;
    --accent-color: #f08a5d;
    --text-color: #2b2024;
    --light-color: #fff;
    --background-color: #f9f7f5;
    --border-color: #e8e8e8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
    position: relative;
}

h1, h2, h3, h4 {
    font-family: 'Great Vibes', cursive;
    color: var(--secondary-color);
}

a {
    text-decoration: none;
    color: var(--accent-color);
}

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

.divider {
    height: 2px;
    width: 100px;
    background-color: var(--primary-color);
    margin: 20px auto 40px;
}

/* Animación de flores */
.flower-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: 1; /* Cambiado a valor positivo pero bajo para estar detrás del contenido directo */
    overflow: hidden;
}

/* Aseguramos que todas las secciones tengan un z-index mayor */
header, section, footer {
    position: relative;
    z-index: 2; /* Mayor que el de los pétalos */
    background-color: var(--background-color); /* Asegurarse de tener color de fondo */
}

/* Estilos para los pétalos */
.petal {
    position: absolute;
    transform-origin: center;
    will-change: transform, top, left;
    pointer-events: none;
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.1));
}

/* Animación de entrada para elementos */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

/* Header */
header {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.85)), url('images/background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Añadir decoración al fondo del header */
header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(226, 115, 150, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(240, 138, 93, 0.08) 0%, transparent 50%);
    z-index: 0;
}

.header-content {
    position: relative;
    max-width: 800px;
    padding: 50px;
    z-index: 1;
    animation: fadeIn 2s ease;
}

.header-content h1 {
    font-size: 5.5rem;
    margin: 20px 0;
    color: var(--primary-color);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.header-content h4 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 500;
    font-size: 1.4rem;
    color: var(--secondary-color);
}

.header-content .date {
    font-size: 1.7rem;
    margin-top: 20px;
    font-weight: 400;
    color: var(--accent-color);
}

/* Remover los adornos florales en el header */
.header-content::before,
.header-content::after {
    display: none;
}

/* Contador */
#countdown {
    background-color: var(--secondary-color);
    padding: 60px 20px;
    text-align: center;
    color: var(--light-color);
}

#countdown h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--light-color);
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.countdown-item {
    width: 150px; /* Aumentado de 100px a 120px para dar más espacio horizontal */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.15);
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.countdown-item span {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--accent-color);
    height: 60px;
    width: 100%;
}

.countdown-item p {
    font-size: 1rem;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    width: 100%;
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* Secciones */
section {
    padding: 50px 0; /* Reducido de 70px a 50px para disminuir el espacio entre secciones */
}

section h2 {
    font-size: 3.2rem;
    color: var(--primary-color);
    text-align: center; /* Asegura que todos los títulos estén centrados */
}

section p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.1rem;
    text-align: center; /* Asegura que todos los párrafos estén centrados */
}

/* Espacio específico entre detalles y código de vestimenta */
#event-details {
    padding-bottom: 30px; /* Reducir el padding de abajo */
}

#dress-code {
    padding-top: 30px; /* Reducir el padding de arriba */
}

/* Historia */
#story {
    background-color: var(--light-color);
}

/* Detalles del evento */
#event-details {
    background-color: var(--background-color);
}

.event-card {
    background-color: var(--light-color);
    padding: 35px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin: 30px auto;
    max-width: 500px;
    transition: transform 0.3s ease;
    border-left: 4px solid var(--primary-color);
}

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

.event-card .icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-weight: 600;
}

.event-card .address {
    font-style: italic;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--accent-color);
}

/* Dress Code y Reglas */
#dress-code {
    background-color: var(--light-color);
    background-image: linear-gradient(45deg, rgba(226, 115, 150, 0.05) 0%, rgba(106, 44, 112, 0.05) 100%);
}

.rules-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.rule-card {
    background-color: var(--light-color);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    transition: transform 0.3s ease;
    border-top: 3px solid var(--accent-color);
}

.rule-card:hover {
    transform: translateY(-5px);
}

.rule-card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.rule-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.rule-card ul {
    text-align: left;
    margin-top: 15px;
    padding-left: 20px;
}

.rule-card li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

/* Galería */
#gallery {
    background-color: var(--secondary-color);
    color: var(--light-color);
}

#gallery h2 {
    color: var(--light-color);
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    margin: 0 auto;
    text-align: center; /* Asegurar centrado */
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}

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

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.placeholder {
    width: 100%;
    height: 100%;
    background-color: #e9e3dd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 1.2rem;
    font-weight: 300;
}

/* RSVP */
#rsvp {
    background-color: var(--background-color);
}

#rsvp-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.form-group {
    margin-bottom: 20px;
}

input, select, textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(226, 115, 150, 0.2);
}

textarea {
    height: 120px;
    resize: vertical;
}

.btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 1rem;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(240, 138, 93, 0.3);
}

.btn:hover {
    background-color: #e37945;
    transform: translateY(-2px);
}

/* Regalos */
#gifts {
    background-color: var(--light-color);
}

.gift-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
}

.gift-card {
    background-color: var(--background-color);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
    transition: transform 0.3s ease;
    border-right: 4px solid var(--accent-color);
}

.gift-card:hover {
    transform: translateY(-5px);
}

.gift-card .icon {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

.gift-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.bank-details {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.03);
    padding: 10px;
    border-radius: 5px;
}

.btn-small {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 5px;
    margin-top: 15px;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 3px 10px rgba(226, 115, 150, 0.2);
}

.btn-small:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Ubicación */
#location {
    background-color: var(--background-color);
}

.map-placeholder {
    height: 400px;
    margin-top: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.map-placeholder iframe {
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.map-placeholder .placeholder {
    background-color: #e9e3dd;
}

.map-placeholder p {
    margin-top: 15px;
    font-style: italic;
    color: var(--accent-color);
}

.address-text {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--accent-color);
    font-weight: 500;
}

/* Redes sociales */
.social-links {
    display: flex;
    justify-content: center;
    margin: 30px 0;
    gap: 40px;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.social-link i {
    font-size: 2.2rem;
    margin-bottom: 8px;
}

.social-link span {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-color);
    padding: 0;
    position: relative;
}

.footer-content {
    padding: 50px 20px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "header"
        "divider"
        "designer";
    max-width: 1200px;
    margin: 0 auto;
}

.footer-header {
    grid-area: header;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-header-left {
    text-align: left;
    flex: 1;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.footer-header-right {
    text-align: right;
    flex: 1;
}

.footer-header h2 {
    font-size: 2.5rem;
    color: var(--light-color);
    margin: 0;
}

.footer-header p {
    margin: 5px 0;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--light-color);
    text-decoration: none;
    transition: transform 0.3s ease, color 0.3s ease;
    margin: 0 5px;
}

.social-link:hover {
    transform: translateY(-5px);
    color: var(--accent-color);
}

.social-link i {
    font-size: 2rem;
}

.footer-divider {
    grid-area: divider;
    height: 1px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.3);
    margin: 20px 0;
}

.designer-info {
    grid-area: designer;
    margin-top: 20px;
    font-size: 0.9rem;
    opacity: 0.7;
    text-align: center;
}

.designer-info p {
    margin: 5px 0;
}

.contact-info {
    font-size: 0.8rem;
}

.copyright {
    font-size: 0.8rem;
    margin-top: 10px;
}

/* Media queries para footer responsivo */
@media (max-width: 767px) {
    .footer-header {
        flex-direction: column;
        gap: 20px;
    }
    
    .footer-header-left, 
    .footer-social, 
    .footer-header-right {
        width: 100%;
        text-align: center;
    }
}

/* Corregir alineación de elementos de listas */
ul li {
    text-align: left; /* Asegurar que los items de lista estén alineados a la izquierda */
    margin-bottom: 8px; /* Espacio adecuado entre elementos de lista */
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 768px) {
    .header-content h1 {
        font-size: 3.5rem;
    }
    
    .countdown-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .countdown-item {
        min-width: 90px;
        width: calc(50% - 20px);
        margin-bottom: 10px;
    }
    
    .countdown-item p {
        width: 100%;
        text-align: center;
        margin: 0 auto;
    }
    
    .event-card, .gift-card, .rule-card {
        min-width: 100%;
    }
    
    .rules-container, .gift-options {
        flex-direction: column;
        align-items: center;
    }
    
    .rule-card, .gift-card {
        max-width: 100%;
        width: 100%;
    }
    
    .gallery-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    section {
        padding: 50px 0;
    }
    
    section h2 {
        font-size: 2.8rem;
    }
    
    .container {
        padding: 40px 15px;
    }
    
    .header-content {
        padding: 30px 20px;
        max-width: 90%;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2.8rem;
    }
    
    .header-content h4 {
        font-size: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        width: calc(50% - 10px);
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .countdown-item p {
        font-size: 0.9rem;
    }
    
    section h2 {
        font-size: 2.5rem;
    }
    
    .gallery-container {
        grid-template-columns: 1fr;
    }
}
