/* --- VARIABLES Y BASES --- */
:root {
    --púrpura: #7c3aed;
    --púrpura-claro: #a78bfa;
    --fondo: #f3e8ff;
    --texto: #2d1b4e;
    --blanco: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: var(--fondo);
    color: var(--texto);
    line-height: 1.6;
}

/* --- CONTENEDOR PRINCIPAL --- */
#invitation {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    opacity: 1;
    visibility: visible;
}

/* --- TARJETA PREMIUM --- */
.card-premium {
    background: var(--blanco);
    width: 100%;
    max-width: 850px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(124, 58, 237, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* --- IMAGEN DE PORTADA --- */
.main-hero-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

/* --- SECCIÓN CONTENIDO --- */
.content-split {
    display: flex;
    padding: 50px;
    gap: 40px;
    align-items: center;
}

.text-block {
    flex: 1;
}

.text-block h1 {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--púrpura);
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.text-block p {
    font-size: 16px;
    color: #555;
    margin-bottom: 30px;
}

/* --- IMAGEN LATERAL --- */
.side-photo img {
    width: 320px;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 10px 10px 0px var(--púrpura-claro);
}

/* --- BOTONES DE ACCIÓN --- */
.star-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.action-item {
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s ease;
}

.action-item:hover {
    transform: translateX(10px);
}

.action-item span {
    font-weight: 600;
    color: var(--texto);
    font-size: 15px;
}

.btn-star {
    width: 55px;
    height: 55px;
    background: var(--púrpura);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 1.3rem;
    transition: background 0.3s ease;
    /* Forma de estrella/polígono */
    clip-path: polygon(50% 0%, 63% 25%, 90% 25%, 75% 50%, 90% 75%, 63% 75%, 50% 100%, 37% 75%, 10% 75%, 25% 50%, 10% 25%, 37% 25%);
}

.btn-star:hover {
    background: var(--púrpura-claro);
}

/* --- DIVISOR --- */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ddd, transparent);
    margin: 0 50px;
}

/* --- FOOTER Y CUENTA ATRÁS --- */
.footer-details {
    padding: 50px;
    text-align: center;
}

.footer-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--púrpura);
    margin-bottom: 25px;
}

#countdown {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.box {
    background: var(--fondo);
    padding: 20px;
    border-radius: 15px;
    min-width: 90px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.box span {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--púrpura);
}

.box small {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-top: 5px;
}

/* --- RESPONSIVE (MÓVIL) --- */
@media (max-width: 768px) {
    #invitation {
        padding: 10px;
    }

    .main-hero-image img {
        height: 250px;
    }

    .content-split {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .text-block h1 {
        font-size: 30px;
    }

    .side-photo img {
        width: 100%;
        height: auto;
        box-shadow: 0px 10px 0px var(--púrpura-claro);
    }

    .action-item {
        justify-content: center;
        flex-direction: column;
        gap: 8px;
    }

    .footer-details {
        padding: 30px 20px;
    }

    .box {
        min-width: 70px;
        padding: 10px;
    }

    .box span {
        font-size: 24px;
    }
}