/* Importación de fuentes locales */
@font-face {
    font-family: 'TextoBase';
    src: url('Text.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PapasFont';
    src: url('Papas.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'ElEllaFont';
    src: url('ElElla.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

/* Variables de color para mantener consistencia */
:root {
    --pink-color: #f0a3b8;
    --blue-color: #8cb8e0;
    --dark-text: #1a1a1a;
}

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

body {
    background-image: url('bgreveal.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    justify-content: center;
    padding: 20px 15px; 
    font-family: 'TextoBase', sans-serif; 
}

.invitation-card {
    max-width: 500px; 
    width: 100%;
    text-align: center;
    padding-bottom: 40px;
    margin: 0 auto;
}

/* --- SECCIÓN LOGO --- */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto 30px auto;
}

.logo-img {
    width: 100%;
    height: auto;
    display: block;
    mix-blend-mode: multiply; 
}

.el-ella-text {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'ElEllaFont', cursive;
    font-size: 5rem;
    white-space: nowrap;
}

.blue-script { color: var(--blue-color); }
.black-script { color: var(--dark-text); font-size: 3.5rem; margin: 0 10px;}
.pink-script { color: var(--pink-color); }

/* --- SECCIÓN NOMBRES --- */
.parents-names {
    font-family: 'PapasFont', serif;
    font-size: 2rem;
    color: var(--dark-text);
    letter-spacing: 5px;
    margin-bottom: 40px;
    font-weight: normal;
}

/* --- CLASES DE TEXTO REUSABLES --- */
.pink-text {
    color: var(--pink-color);
    letter-spacing: 3px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.blue-text {
    color: var(--blue-color);
    letter-spacing: 3px;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* --- SECCIÓN FECHA --- */
.date-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
}

.date-day, .date-month {
    font-size: 0.9rem;
    letter-spacing: 4px;
}

.date-number {
    font-size: 4.5rem;
    line-height: 1;
    font-weight: lighter;
}

/* --- DETALLES E INSTRUCCIONES --- */
.time {
    font-size: 1.1rem;
    letter-spacing: 4px;
}

.location {
    margin-bottom: 10px;
}

.address {
    margin-bottom: 40px;
}

.dress-code {
    font-size: 1rem;
    margin-bottom: 15px;
}

.team {
    margin-bottom: 10px;
}

/* --- BOTONES --- */
.cta-section {
    margin-top: 50px;
}

.rsvp-btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: transparent;
    color: var(--blue-color);
    text-decoration: none;
    font-family: 'TextoBase', sans-serif;
    letter-spacing: 3px;
    font-size: 0.9rem;
    border: 1px solid var(--blue-color);
    border-radius: 25px;
    transition: all 0.3s ease;
}

.rsvp-btn:hover {
    background-color: var(--blue-color);
    color: white;
    box-shadow: 0 4px 10px rgba(140, 184, 224, 0.4);
    transform: translateY(-2px);
}

.location-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: transparent;
    color: var(--pink-color);
    text-decoration: none;
    font-family: 'TextoBase', sans-serif;
    letter-spacing: 3px;
    font-size: 0.8rem;
    border: 1px solid var(--pink-color);
    border-radius: 20px;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.location-btn:hover {
    background-color: var(--pink-color);
    color: white;
    box-shadow: 0 4px 10px rgba(240, 163, 184, 0.4);
    transform: translateY(-2px);
}

/* --- CUENTA REGRESIVA --- */
.countdown-section {
    margin-top: 60px;
    padding-top: 30px;
}

.countdown-title {
    font-family: 'TextoBase', sans-serif;
    font-size: 1.1rem;
    letter-spacing: 5px;
    color: var(--dark-text);
    margin-bottom: 25px;
    font-weight: normal;
}

.countdown-container {
    display: flex;
    justify-content: center;
    gap: 15px;
}

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

.countdown-number {
    font-family: 'PapasFont', serif;
    font-size: 3rem; 
    color: var(--blue-color);
    line-height: 1;
    margin-bottom: 5px;
}

.countdown-box:nth-child(even) .countdown-number {
    color: var(--pink-color);
}

.countdown-label {
    font-family: 'TextoBase', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    color: var(--dark-text);
}

/* --- FOOTER FIRMA --- */
.footer-signature {
    margin-top: 60px;
}

.footer-signature a {
    font-family: 'TextoBase', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: #a0a0a0; /* Un tono gris para que sea sutil */
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.footer-signature a:hover {
    color: var(--blue-color); /* Cambia de color al pasar el mouse */
}

/* --- RESPONSIVE PARA DESKTOP --- */
@media (min-width: 768px) {
    body {
        padding: 60px 40px;
    }
    .invitation-card {
        max-width: 800px; 
    }
    .hero-section {
        max-width: 400px; 
    }
    .el-ella-text {
        font-size: 6rem; 
    }
    .parents-names {
        font-size: 2.8rem; 
    }
    .pink-text, .blue-text {
        font-size: 1.1rem; 
    }
    .date-number {
        font-size: 5.5rem;
    }
}

/* Ajustes para móviles más pequeños */
@media (max-width: 380px) {
    .el-ella-text { font-size: 2.8rem; }
    .parents-names { font-size: 1.5rem; }
    .date-number { font-size: 3.5rem; }
    .pink-text, .blue-text { font-size: 0.75rem; }
    .countdown-number { font-size: 2.2rem; }
    .countdown-container { gap: 10px; }
    .countdown-box { min-width: 50px; }
}