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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: transparent;
    font-size: 1.1rem;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../img/fondo.jpeg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.4;
    z-index: -1;
    pointer-events: none;
}

/* Ajustes para móviles y iPhone */
@media (max-width: 768px) {
    body::before {
        background-attachment: scroll;
        background-size: cover;
        background-position: center center;
        /* Asegurar que cubra toda la pantalla en móviles */
        min-height: 100vh;
        height: auto;
    }
}

@media (max-width: 480px) {
    body::before {
        /* En iPhone, usar contain para ver toda la imagen sin recortes */
        background-size: contain;
        background-position: center center;
        /* Si contain deja espacios, probar con cover pero ajustado */
        /* background-size: cover; */
        /* background-position: center 30%; */
    }
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Tipografía */
h2, h3, h4 {
    font-family: 'Great Vibes', 'Dancing Script', cursive;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
    font-size: 1.15rem;
    font-family: 'Cormorant Garamond', serif;
}

/* Header */
header {
    min-height: 60px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 80px 20px;
    background-color: transparent;
}

.hero-content h2 {
    font-size: 5.5rem;
    margin-bottom: 30px;
    color: #2c2c2c;
    font-family: 'Great Vibes', cursive;
}

.personalized-greeting h2 {
    font-size: 5.5rem;
    margin-bottom: 30px;
    color: #2c2c2c;
    font-family: 'Great Vibes', cursive;
}

.hero-content p {
    font-size: 1.7rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
}

/* Counter Section */
.counter-section {
    padding: 60px 20px;
    background-color: transparent;
}

.counter-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.counter-image-placeholder {
    width: 300px;
    height: 450px;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.counter-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.counter-text {
    text-align: center;
}

.counter-text h3 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

.countdown-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 30px 0;
}

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

.countdown-number {
    font-size: 3.5rem;
    font-weight: 500;
    color: #2c2c2c;
    font-family: 'Playfair Display', serif;
    line-height: 1;
    margin-bottom: 8px;
}

.countdown-label {
    font-size: 1rem;
    color: #666;
    text-transform: lowercase;
    font-weight: normal;
}

@media (max-width: 768px) {
    .countdown-display {
        gap: 15px;
    }
    
    .countdown-number {
        font-size: 2.5rem;
    }
    
    .countdown-label {
        font-size: 0.9rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .countdown-display {
        gap: 10px;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.8rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
}

.counter-message {
    font-size: 1.5rem;
    color: #666;
    margin-top: 20px;
}

/* Gallery Section */
.gallery-section {
    padding: 60px 20px;
    background-color: transparent;
}

.gallery-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-container.single-gallery {
    grid-template-columns: 1fr;
    max-width: 600px;
}

.gallery-placeholder {
    width: 100%;
    height: 400px;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Accompaniment Section */
.accompaniment-section {
    padding: 80px 20px;
    text-align: center;
    background-color: transparent;
}

.accompaniment-image-placeholder {
    width: 100%;
    max-width: 800px;
    height: 500px;
    margin: 0 auto 40px;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.accompaniment-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.accompaniment-section h3 {
    font-size: 3rem;
    color: #2c2c2c;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Great Vibes', cursive;
}

/* Events Section */
.events-section {
    padding: 80px 20px;
    background-color: transparent;
}

.events-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.events-container.single-event {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.event-card {
    background-color: rgba(255, 255, 255, 0.7);
    text-align: center;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.event-image-placeholder {
    width: 100%;
    height: 250px;
    background-color: #f0f0f0;
    border: none;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.event-card h4 {
    color: #2c2c2c;
    margin-bottom: 15px;
    font-family: 'Dancing Script', cursive;
    font-size: 1.8rem;
}

.event-card p {
    color: #666;
    line-height: 1.8;
    font-size: 1.1rem;
    font-family: 'Cormorant Garamond', serif;
}

.event-card em {
    font-style: italic;
    color: #555;
}

/* Map Section */
.map-section {
    padding: 60px 20px;
    background-color: transparent;
}

.map-container {
    max-width: 1200px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    display: block;
}

/* Dress Code Section */
.dress-code-section {
    padding: 80px 20px;
    text-align: center;
    background-color: transparent;
}

.dress-code-content {
    max-width: 1000px;
    margin: 0 auto;
}

.dress-code-image-placeholder {
    width: 100%;
    max-width: 700px;
    height: 500px;
    margin: 0 auto 40px;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.dress-code-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.dress-code-section h3 {
    font-size: 3rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

.dress-code-section p {
    font-size: 1.3rem;
    color: #666;
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.8;
}

/* Gift Section */
.gift-section {
    padding: 80px 20px;
    text-align: center;
    background-color: transparent;
}

.gift-content {
    max-width: 1000px;
    margin: 0 auto;
}

.gift-image-placeholder {
    width: 100%;
    max-width: 600px;
    height: 400px;
    margin: 0 auto 40px;
    background-color: #f0f0f0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.gift-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.gift-section h3 {
    font-size: 2.8rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-family: 'Great Vibes', cursive;
}

.gift-section p {
    font-size: 1.3rem;
    color: #666;
    font-family: 'Cormorant Garamond', serif;
}

/* Bank Info Section */
.bank-info-section {
    padding: 60px 20px;
    text-align: center;
    background-color: transparent;
}

.bank-info-content {
    max-width: 800px;
    margin: 0 auto;
}

.bank-info-section h3 {
    font-size: 2.5rem;
    color: #2c2c2c;
    margin-bottom: 20px;
    font-family: 'Dancing Script', cursive;
}

.bank-info-section p {
    font-size: 1.3rem;
    color: #555;
    font-family: monospace;
}

/* Confirmation Section */
.confirmation-section {
    padding: 80px 20px;
    text-align: center;
    background-color: transparent;
}

.confirmation-section h2 {
    font-size: 3rem;
    color: #2c2c2c;
    max-width: 900px;
    margin: 0 auto;
    font-family: 'Great Vibes', cursive;
}

/* Footer */
footer {
    padding: 40px 20px;
    text-align: center;
    background-color: transparent;
    color: #fff;
}

.footer-content p {
    font-size: 1rem;
    color: #fff;
    margin: 0;
}

.footer-content strong {
    font-weight: bold;
}

/* Botones de confirmación flotantes */
.confirmation-buttons {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 1000;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.confirmation-buttons.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.btn-confirmation {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-yes {
    background-color: #4caf50;
    color: white;
}

.btn-yes:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.btn-no {
    background-color: #f44336;
    color: white;
}

.btn-no:hover {
    background-color: #da190b;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
}

/* Modal */
.modal {
    display: flex;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.modal-content {
    background-color: rgba(255, 255, 255, 0.95);
    margin: auto;
    padding: 40px;
    backdrop-filter: blur(10px);
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transform: scale(1);
    transition: transform 0.3s ease;
}

.modal.hidden .modal-content {
    transform: scale(0.9);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #000;
}

.modal-content h3 {
    margin-bottom: 25px;
    color: #2c2c2c;
    font-size: 1.8rem;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4caf50;
}

.attendants-list {
    margin-top: 10px;
}

.attendant-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.attendant-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    cursor: pointer;
    transform: scale(1.2);
}

.attendant-item label {
    cursor: pointer;
    margin: 0;
    font-weight: normal;
    flex: 1;
}

.form-hint {
    font-size: 0.9rem;
    color: #666;
    margin-top: 10px;
    font-style: italic;
}

.menu-note {
    font-size: 0.85rem;
    color: #888;
    margin: 0;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    border-left: 3px solid #4caf50;
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    flex-direction: column;
}

.btn-submit {
    padding: 15px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #45a049;
}

.btn-cancel {
    padding: 15px;
    background-color: #f5f5f5;
    color: #333;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-cancel:hover {
    background-color: #e0e0e0;
}

/* Botón de sugerir música */
.btn-music {
    position: fixed;
    bottom: 140px;
    right: 30px;
    padding: 15px 25px;
    font-size: 1rem;
    font-weight: bold;
    border: none;
    border-radius: 50px;
    background-color: #ff6b6b;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
    z-index: 999;
}

.btn-music:hover {
    background-color: #ee5a52;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.4);
}

.music-modal-content {
    max-width: 600px;
}

.search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-container input {
    flex: 1;
}

.btn-search {
    padding: 12px 20px;
    background-color: #4caf50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.btn-search:hover {
    background-color: #45a049;
}

.music-results {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

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

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

.music-result-item:hover {
    background-color: #f0f0f0;
}

.music-result-item.selected {
    background-color: #e8f5e9;
    border-left: 3px solid #4caf50;
}

.music-result-title {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.music-result-artist {
    font-size: 0.9rem;
    color: #666;
}

.music-loading {
    padding: 20px;
    text-align: center;
    color: #666;
}

.music-no-results {
    padding: 20px;
    text-align: center;
    color: #999;
}

@media (max-width: 768px) {
    .btn-music {
        bottom: 130px;
        right: 20px;
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    .search-container {
        flex-direction: column;
    }

    .btn-search {
        width: 100%;
    }

    .music-modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .btn-music {
        bottom: 120px;
        right: 15px;
        padding: 10px 18px;
        font-size: 0.85rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h2 {
        font-size: 3rem;
    }

    .personalized-greeting h2 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    .counter-container {
        flex-direction: column;
        gap: 30px;
    }

    .counter-image-placeholder {
        width: 100%;
        max-width: 300px;
        height: 400px;
    }

    .counter-message {
        font-size: 1.2rem;
    }

    .gallery-container {
        grid-template-columns: 1fr;
    }

    .gallery-placeholder {
        height: 300px;
    }

    .accompaniment-image-placeholder {
        height: 350px;
    }

    .events-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .dress-code-image-placeholder {
        height: 350px;
    }

    .gift-image-placeholder {
        height: 300px;
    }

    .accompaniment-section h3 {
        font-size: 1.8rem;
    }

    .confirmation-section h2 {
        font-size: 2rem;
    }

    .confirmation-buttons {
        bottom: 20px;
        flex-direction: column;
        width: 90%;
        max-width: 300px;
    }

    .btn-confirmation {
        width: 100%;
        padding: 12px 20px;
        font-size: 1rem;
    }

    .modal-content {
        padding: 30px 20px;
        width: 95%;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 60px 15px;
    }

    .hero-content h2 {
        font-size: 2.5rem;
    }

    .personalized-greeting h2 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .accompaniment-section h3,
    .dress-code-section h3,
    .gift-section h3 {
        font-size: 1.5rem;
    }

    .confirmation-section h2 {
        font-size: 1.75rem;
    }

    .counter-image-placeholder,
    .accompaniment-image-placeholder,
    .dress-code-image-placeholder,
    .gift-image-placeholder {
        height: 250px;
    }

    .confirmation-buttons {
        bottom: 15px;
        gap: 10px;
    }

    .btn-confirmation {
        padding: 12px 18px;
        font-size: 0.95rem;
    }

    .modal-content {
        padding: 25px 15px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

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

    .btn-submit,
    .btn-cancel {
        padding: 12px;
        font-size: 1rem;
    }
}

