body {
    font-family: 'Cormorant Garamond', serif;
    background: linear-gradient(to right, #fbecec, #f4e1ff);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    text-align: center;
    width: 80%;
    max-width: 850px;
}

h1 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    letter-spacing: 2px;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: #8a2be2;
}

.subtitle {
    font-style: italic;
    margin-bottom: 10px;
}

.fecha {
    font-weight: bold;
    margin-bottom: 20px;
}

.mensaje {
    margin-bottom: 30px;
}

input, select, textarea {
    width: 100%;
    padding: 12px;
    margin: 10px 0;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-family: inherit;
}

button,
.btn {
    display: block; /* 👈 importante */
    width: 100%;    /* 👈 importante */
    max-width: 400px;
    margin: 20px auto 0 auto;

    padding: 16px;
    border-radius: 14px;
    border: none;

    background: #b76ef1;
    color: white;
    font-size: 1.05rem;
    text-align: center;

    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover,
.btn:hover {
    background: #9d4edd;
    transform: translateY(-2px);
}

table {
    width: 100%;
    margin-top: 20px;
    border-collapse: collapse;
}

th, td {
    border: 1px solid #eee;
    padding: 8px;
    font-size: 14px;
}

th {
    background: #f4e1ff;
}

/* CANVAS FONDO */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
}

/* CONTADOR */
#countdown {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

#countdown div {
    background: #f4e1ff;
    padding: 15px;
    border-radius: 15px;
    min-width: 70px;
}

#countdown span {
    font-size: 28px;
    font-weight: bold;
    display: block;
    color: #8a2be2;
}

#countdown small {
    font-size: 12px;
}

/* FOTO PRINCIPAL */
.foto-principal {
    width: 50%;
    max-width: 200px;
    height: auto;
    border-radius: 20px;
    margin: 20px 0;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    object-fit: cover;
}

/* ========================= */
/* MEJORA REAL PARA MÓVILES */
/* ========================= */

@media (max-width: 768px) {

    body {
        padding: 10px;
        align-items: flex-start;
    }

    .container {
        padding: 35px 20px;
        border-radius: 15px;
    }

    h1 {
        font-size: 38px;
        line-height: 1.2;
    }

    .subtitle {
        font-size: 18px;
    }

    .fecha {
        font-size: 18px;
    }

    .mensaje {
        font-size: 17px;
    }

    .foto-principal {
        max-width: 100%;
        border-radius: 15px;
    }

    /* Contador en vertical en vez de comprimido */
    #countdown {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    #countdown div {
        width: 80%;
        max-width: 250px;
        padding: 18px;
    }

    #countdown span {
        font-size: 32px;
    }

    button, .btn {
        width: 100%;
        font-size: 18px;
        padding: 16px;
    }

}

.amp {
    font-style: italic;
    font-weight: 400;
    opacity: 0.8;
}

* {
    box-sizing: border-box;
}

form {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border-radius: 12px;
    border: 1px solid #ddd;
    margin-bottom: 15px;
}


