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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

/* Fondo Navideño Animado */
.christmas-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(180deg, #0a1628 0%, #1a2f4a 30%, #0f1929 60%, #1a2f4a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    overflow: hidden;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border-radius: 20px;
    margin-top: 40px;
    margin-bottom: 40px;
}

/* Copos de Nieve Mejorados */
.snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
}

.snowflake {
    position: absolute;
    color: #fff;
    font-size: 1.5em;
    animation: fall linear infinite;
    opacity: 0.8;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; font-size: 1.2em; }
.snowflake:nth-child(2) { left: 15%; animation-duration: 12s; animation-delay: 1s; font-size: 1.5em; }
.snowflake:nth-child(3) { left: 25%; animation-duration: 15s; animation-delay: 0.5s; font-size: 1.8em; }
.snowflake:nth-child(4) { left: 35%; animation-duration: 11s; animation-delay: 2s; font-size: 1.3em; }
.snowflake:nth-child(5) { left: 45%; animation-duration: 13s; animation-delay: 1.5s; font-size: 1.6em; }
.snowflake:nth-child(6) { left: 55%; animation-duration: 14s; animation-delay: 0.8s; font-size: 1.4em; }
.snowflake:nth-child(7) { left: 65%; animation-duration: 12s; animation-delay: 2.5s; font-size: 1.7em; }
.snowflake:nth-child(8) { left: 75%; animation-duration: 16s; animation-delay: 1.2s; font-size: 1.1em; }
.snowflake:nth-child(9) { left: 85%; animation-duration: 10s; animation-delay: 0.3s; font-size: 1.5em; }
.snowflake:nth-child(10) { left: 95%; animation-duration: 13s; animation-delay: 1.8s; font-size: 1.3em; }
.snowflake:nth-child(11) { left: 10%; animation-duration: 11s; animation-delay: 2.2s; font-size: 1.6em; }
.snowflake:nth-child(12) { left: 30%; animation-duration: 14s; animation-delay: 0.6s; font-size: 1.2em; }
.snowflake:nth-child(13) { left: 50%; animation-duration: 15s; animation-delay: 1.5s; font-size: 1.8em; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 12s; animation-delay: 0.9s; font-size: 1.4em; }
.snowflake:nth-child(15) { left: 90%; animation-duration: 13s; animation-delay: 2.8s; font-size: 1.5em; }

@keyframes fall {
    0% {
        transform: translateY(-100vh) rotate(0deg) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg) translateX(50px);
        opacity: 0;
    }
}

/* Luces Navideñas Parpadeantes */
.christmas-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
}

.light {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    animation: blink 1.5s infinite;
    box-shadow: 0 0 8px currentColor, 0 0 15px currentColor, 0 0 25px currentColor;
    filter: brightness(1.2);
}

.light::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 1px;
}

.light::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
}

/* Distribución de luces por toda la página */
.light:nth-child(1) { top: 5%; left: 5%; }
.light:nth-child(2) { top: 5%; left: 15%; }
.light:nth-child(3) { top: 5%; left: 25%; }
.light:nth-child(4) { top: 5%; left: 35%; }
.light:nth-child(5) { top: 5%; left: 45%; }
.light:nth-child(6) { top: 5%; left: 55%; }
.light:nth-child(7) { top: 5%; left: 65%; }
.light:nth-child(8) { top: 5%; left: 75%; }
.light:nth-child(9) { top: 5%; left: 85%; }
.light:nth-child(10) { top: 5%; left: 95%; }
.light:nth-child(11) { top: 15%; left: 10%; }
.light:nth-child(12) { top: 15%; left: 30%; }
.light:nth-child(13) { top: 15%; left: 50%; }
.light:nth-child(14) { top: 15%; left: 70%; }
.light:nth-child(15) { top: 15%; left: 90%; }
.light:nth-child(16) { top: 25%; left: 20%; }
.light:nth-child(17) { top: 25%; left: 40%; }
.light:nth-child(18) { top: 25%; left: 60%; }
.light:nth-child(19) { top: 25%; left: 80%; }
.light:nth-child(20) { top: 35%; left: 5%; }

.light-red { background: #ff4444; color: #ff4444; }
.light-green { background: #44ff44; color: #44ff44; }
.light-blue { background: #4444ff; color: #4444ff; }
.light-yellow { background: #ffff44; color: #ffff44; }

.light:nth-child(4n+1) { animation-delay: 0s; }
.light:nth-child(4n+2) { animation-delay: 0.4s; }
.light:nth-child(4n+3) { animation-delay: 0.8s; }
.light:nth-child(4n+4) { animation-delay: 1.2s; }

@keyframes blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        filter: brightness(1.2);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9);
        filter: brightness(0.8);
    }
}

/* Estrellas Brillantes */
.stars {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.star {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fff;
    border-radius: 50%;
    animation: twinkle 3s infinite;
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
}

.star:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.star:nth-child(2) { top: 20%; left: 25%; animation-delay: 0.5s; }
.star:nth-child(3) { top: 15%; left: 45%; animation-delay: 1s; }
.star:nth-child(4) { top: 25%; left: 60%; animation-delay: 1.5s; }
.star:nth-child(5) { top: 12%; left: 80%; animation-delay: 2s; }
.star:nth-child(6) { top: 35%; left: 15%; animation-delay: 0.3s; }
.star:nth-child(7) { top: 45%; left: 35%; animation-delay: 0.8s; }
.star:nth-child(8) { top: 40%; left: 55%; animation-delay: 1.3s; }
.star:nth-child(9) { top: 50%; left: 75%; animation-delay: 1.8s; }
.star:nth-child(10) { top: 60%; left: 20%; animation-delay: 0.2s; }
.star:nth-child(11) { top: 65%; left: 40%; animation-delay: 0.7s; }
.star:nth-child(12) { top: 70%; left: 65%; animation-delay: 1.2s; }
.star:nth-child(13) { top: 55%; left: 85%; animation-delay: 1.7s; }
.star:nth-child(14) { top: 80%; left: 30%; animation-delay: 0.4s; }
.star:nth-child(15) { top: 85%; left: 70%; animation-delay: 0.9s; }

@keyframes twinkle {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Partículas Flotantes Navideñas */
.floating-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 1.5em;
    animation: float 6s ease-in-out infinite;
    opacity: 0.7;
}

.particle-1 { left: 8%; animation-delay: 0s; animation-duration: 8s; }
.particle-2 { left: 18%; animation-delay: 1s; animation-duration: 7s; }
.particle-3 { left: 28%; animation-delay: 2s; animation-duration: 9s; }
.particle-4 { left: 38%; animation-delay: 0.5s; animation-duration: 8s; }
.particle-5 { left: 48%; animation-delay: 1.5s; animation-duration: 7s; }
.particle-6 { left: 58%; animation-delay: 2.5s; animation-duration: 9s; }
.particle-7 { left: 68%; animation-delay: 0.8s; animation-duration: 8s; }
.particle-8 { left: 78%; animation-delay: 1.8s; animation-duration: 7s; }

@keyframes float {
    0%, 100% {
        transform: translateY(100vh) translateX(0) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    90% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(50vh) translateX(30px) rotate(180deg);
    }
}

/* Christmas Gathering Image - Integrada con el fondo navideño */
.christmas-gathering-image-container {
    margin: 40px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 15;
    background: transparent;
    padding: 30px 0;
}

.christmas-gathering-image {
    max-width: 90%;
    max-height: 400px;
    width: auto;
    height: auto;
    filter: brightness(1.4) 
            contrast(1.5)
            saturate(1.4);
    animation: fadeInDown 1s ease-out;
    object-fit: contain;
    /* Usar screen para hacer que los blancos se vuelvan transparentes sobre fondo oscuro */
    mix-blend-mode: screen;
    background: transparent;
    /* Hacer que el fondo blanco sea menos visible */
    opacity: 1;
}

/* Crear un efecto de resplandor suave alrededor */
.christmas-gathering-image-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 85%;
    height: 90%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
    filter: blur(25px);
    opacity: 0.6;
}

/* Logo Container */
.logo-container {
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.company-logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
    animation: fadeInDown 1s ease-out 0.3s both;
}

/* Header */
.header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a1f3a 0%, #1a4a6b 50%, #2ecc71 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInDown 1s ease-out;
}

.subtitle {
    font-size: 1.3em;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.description {
    font-size: 1.1em;
    margin-bottom: 10px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.highlight {
    font-weight: bold;
    font-size: 1.2em;
    margin-top: 20px;
}

/* Event Details */
.event-details {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.section-title {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #1a4a6b, #2ecc71);
    border-radius: 2px;
}

.detail-card {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 30px;
}

/* Contenedor para la tarjeta de intercambio de regalos centrada */
.gift-card-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.gift-card-container .gift-item {
    max-width: 400px;
    width: 100%;
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: white;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.detail-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.icon {
    font-size: 2.5em;
    flex-shrink: 0;
}

.detail-content h3 {
    color: #2c3e50;
    margin-bottom: 8px;
    font-size: 1.2em;
}

.detail-content p {
    color: #555;
    margin-bottom: 5px;
}

.address {
    font-size: 0.9em;
    color: #777;
}

.gift-item {
    background: linear-gradient(135deg, #fff9e6 0%, #ffe6cc 100%);
    border: 2px solid #ff9800;
}

.gift-text {
    font-weight: bold;
    color: #e65100;
    font-size: 1.1em;
}

/* Mapa de Google Maps */
.map-container {
    margin: 40px 0;
    text-align: center;
}

.map-title {
    font-size: 1.8em;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: bold;
}

.map-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 2px solid #1a4a6b;
}

.map-wrapper iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: none;
}

.map-address {
    font-size: 1.1em;
    color: #2c3e50;
    margin: 15px 0;
    line-height: 1.6;
}

.map-link {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1a4a6b 0%, #2ecc71 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(26, 74, 107, 0.3);
}

.map-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 74, 107, 0.4);
    background: linear-gradient(135deg, #2ecc71 0%, #1a4a6b 100%);
}

.cta-button-container {
    text-align: center;
    margin-top: 30px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1a4a6b 0%, #2ecc71 100%);
    color: white;
    padding: 18px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(26, 74, 107, 0.4);
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(46, 204, 113, 0.6);
    background: linear-gradient(135deg, #2ecc71 0%, #1a4a6b 100%);
}

/* Testimonials */
.testimonials {
    padding: 40px;
    background: white;
    border-radius: 15px;
    margin-bottom: 40px;
}

.rating-badge {
    text-align: center;
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.3);
}

.rating-text {
    display: block;
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 10px;
}

.rating-stars {
    display: block;
    font-size: 1.8em;
    margin-bottom: 10px;
}

.rating-count {
    display: block;
    font-size: 1.1em;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #2ecc71;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-header {
    margin-bottom: 10px;
}

.verified-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: bold;
}

.testimonial-author {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.testimonial-text {
    color: #555;
    line-height: 1.6;
    font-style: italic;
}

.trustindex-note {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #e8f5e9;
    border-radius: 5px;
    color: #2e7d32;
}

/* Confirmation Form */
.confirmation-section {
    background: #e8e8e8;
    padding: 40px;
    border-radius: 15px;
    margin-bottom: 40px;
    border: 2px solid #1a4a6b;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.confirmation-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    border: 1px solid #ccc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: bold;
    font-size: 1.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #999;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

/* Campos de nombre lado a lado */
.name-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.name-field-group {
    position: relative;
    display: flex;
    flex-direction: column;
}

.name-field-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #999;
    border-radius: 8px;
    font-size: 1em;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #f9f9f9;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.name-field-group input:focus {
    outline: none;
    border-color: #2ecc71;
    box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2), inset 0 1px 3px rgba(0, 0, 0, 0.05);
    background: white;
}

.field-label {
    font-size: 0.85em;
    color: #777;
    margin-top: 5px;
    font-weight: normal;
}

/* Grupo de acompañante con fondo destacado */
.acompanante-group {
    background: rgba(26, 74, 107, 0.15);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(26, 74, 107, 0.4);
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.1);
}

.acompanante-info {
    margin-top: 15px;
    animation: fadeIn 0.3s ease-in;
}

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

.submit-button {
    width: 100%;
    margin-top: 10px;
    background: #000;
    color: white;
}

.submit-button:hover {
    background: #333;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 20px;
    background: #2c3e50;
    color: white;
    border-radius: 10px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    filter: brightness(1.1);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .christmas-gathering-image {
        max-width: 95%;
        max-height: 250px;
    }
    
    .christmas-gathering-image-container {
        margin: 20px 0 15px 0;
        padding: 15px 0;
    }
    
    .company-logo {
        max-width: 200px;
    }
    
    .title {
        font-size: 1.8em;
    }
    
    .subtitle {
        font-size: 1.1em;
    }
    
    .detail-card {
        grid-template-columns: 1fr;
    }
    
    .gift-card-container .gift-item {
        max-width: 100%;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .event-details,
    .testimonials,
    .confirmation-section {
        padding: 20px;
    }
    
    .footer-logo {
        max-width: 150px;
    }
    
    .footer {
        padding: 20px 15px;
    }
    
    .name-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .confirmation-section {
        padding: 20px;
    }
    
    .map-wrapper iframe {
        height: 300px;
    }
    
    .map-title {
        font-size: 1.5em;
    }
    
    .map-container {
        margin: 30px 0;
    }
}

