/* ========== SECCIÓN EL EVENTO ========== */
.event-section {
    min-height: 100vh;
    background: linear-gradient(160deg, #dcd4cc 0%, #e8e0d8 50%, #f5f0eb 100%);
    padding: 140px 20px 80px;
    position: relative;
    overflow: hidden;
}

.event-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(168,149,108,0.06) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(201,184,153,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.event-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ===== HEADER ===== */
.event-header {
    display: flex;
    flex-direction: column; 
    align-items: center;    
    justify-content: center;
    text-align: center;
    width: 100%;            
    margin-bottom: 50px;
}

.event-label {
    font-size: 0.8rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 15px;
}

.event-title {
    font-family: 'Pinyon Script', cursive;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    color: #8e9b6d; 
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.event-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.event-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255,255,255,0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(168,149,108,0.25);
    border-radius: 50px;
    padding: 12px 30px;
    margin-top: 30px;
}

.event-date-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--dark-text);
    text-transform: uppercase;
}

.event-date-badge .dot {
    width: 5px;
    height: 5px;
    background: var(--gold);
    border-radius: 50%;
}

/* ===== GRID PRINCIPAL ===== */
.event-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

/* Fila de location cards — centrada automáticamente */
.location-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== CARDS DE LOCACIÓN ===== */
.location-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 35px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.07),
        inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* === CAMBIOS DE CENTRADO Y ANCHO === */
    width: 100%;
    max-width: 100%;         /* Asegura que ocupe todo el ancho disponible */
    display: flex;           /* Activa Flexbox */
    flex-direction: column;  /* Apila los elementos verticalmente */
    align-items: center;     /* Centra los bloques (botón, caja de hora) */
    text-align: center;
}

.location-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 25px 60px rgba(0,0,0,0.12),
        inset 0 1px 0 rgba(255,255,255,0.9);
}

.location-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
}

/* Quitar el card-icon — no se usa */
.card-icon {
    display: none;
}

.card-type {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.card-name {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    color: #8e9b6d;
    font-weight: 600;
    margin-bottom: 15px;
    line-height: 1.3;
}

.card-address {
    font-size: 0.9rem;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 4px;
    letter-spacing: 0.3px;
}

.card-time {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0;
    padding: 12px 18px;
    background: rgba(168,149,108,0.08);
    border-radius: 10px;
    border-left: 3px solid var(--gold);
}

.card-time svg {
    width: 18px;
    height: 18px;
    stroke: var(--gold);
    fill: none;
    stroke-width: 2;
    flex-shrink: 0;
}

.card-time span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-text);
    letter-spacing: 1px;
}

.maps-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--gold) 0%, #c9b899 100%);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(168,149,108,0.3);
}

.maps-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(168,149,108,0.45);
}

.maps-btn svg {
    width: 16px;
    height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* ===== DRESS CODE CARD ===== */
.dresscode-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 
        0 15px 40px rgba(0,0,0,0.07),
        inset 0 1px 0 rgba(255,255,255,0.9);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 320px;
}

.dresscode-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.12);
}

.dresscode-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0.6;
    z-index: 1;
}

/* Texto lado izquierdo */
.dresscode-text {
    padding: 45px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dresscode-type {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 12px;
}

.dresscode-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    color: #8e9b6d;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 2px;
    line-height: 1;
}

.dresscode-desc {
    font-size: 0.95rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 8px;
}

.dresscode-desc strong {
    color: #8e9b6d;
    font-weight: 600;
}

/* Imagen lado derecho — imagen más pequeña + paleta de colores */
.dresscode-image {
    position: relative;
    overflow: visible;
    border-radius: 0 20px 20px 0;
    min-height: 320px;
    background: transparent;
    
    /* Layout vertical: imagen arriba, paleta abajo */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    gap: 20px;
}

.dresscode-image img {
    width: auto;
    height: auto;
    max-width: 70%;      /* Imagen más pequeña (70% del espacio) */
    max-height: 200px;   /* Altura máxima controlada */
    object-fit: contain;
    z-index: 10;
}

/* Paleta de colores sugeridos */
.color-palette {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.color-palette-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-color);
    font-weight: 600;
}

.color-swatches {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.color-swatch {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.9);
    box-shadow: 
        0 2px 8px rgba(0,0,0,0.15),
        inset 0 1px 2px rgba(255,255,255,0.5);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.color-swatch:hover {
    transform: scale(1.15);
    box-shadow: 
        0 4px 12px rgba(0,0,0,0.25),
        inset 0 1px 2px rgba(255,255,255,0.5);
}

/* Colores específicos basados en la paleta */
.color-swatch.blue { background: #a8c5d4; }
.color-swatch.pink { background: #e8b8c8; }
.color-swatch.mauve { background: #d4b8c8; }
.color-swatch.sage { background: #a8b89c; }
.color-swatch.gold { background: #d4c4a0; }
.color-swatch.coral { background: #e8b49c; }

/* Placeholder elegante mientras no hay imagen */
.dresscode-placeholder {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(168,149,108,0.06) 0%, rgba(220,212,204,0.2) 100%);
    text-align: center;
    padding: 20px;
}

.dresscode-icons-row {
    display: flex;
    gap: 25px;
    justify-content: center;
    align-items: flex-end;
    margin-bottom: 20px;
}

.dc-icon {
    stroke: var(--gold);
    fill: none;
    opacity: 0.6;
    transition: opacity 0.3s, transform 0.3s;
}

.dresscode-image:hover .dc-icon {
    opacity: 0.9;
    transform: translateY(-4px);
}

.dresscode-placeholder p {
    font-size: 0.8rem;
    letter-spacing: 1px;
    color: var(--text-color);
    margin-bottom: 6px;
}

.dc-hint {
    font-size: 0.7rem;
    color: var(--gold);
    opacity: 0.5;
    font-style: italic;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .event-section {
        padding: 120px 20px 60px;
    }

    .location-row {
        flex-direction: column;
        align-items: center;
    }

    .location-card {
        max-width: 100%;
    }

    .dresscode-card {
        grid-template-columns: 1fr;
    }

    .dresscode-text {
        padding: 35px 30px 25px;
    }

    .dresscode-image {
        border-radius: 0 0 20px 20px;
        min-height: 300px;
        padding: 25px 15px 15px;
    }
    
    .dresscode-image img {
        max-width: 60%;      /* Más pequeña en móvil */
        max-height: 180px;
    }
    
    .color-swatch {
        width: 32px;
        height: 32px;
    }

    .dresscode-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .event-date-badge {
        padding: 10px 20px;
        gap: 10px;
    }

    .event-date-badge span {
        font-size: 0.75rem;
        letter-spacing: 2px;
    }

    .card-name {
        font-size: 1.3rem;
    }

    .dresscode-title {
        font-size: 1.7rem;
    }

    .dresscode-text {
        padding: 30px 25px 20px;
    }
}