/* --- Generales --- */
* {
    box-sizing: border-box;
}

body, html {
    height: 100%;
}

body {
    font-family: 'Roboto', sans-serif;
}

button {
    border: none;
    background: none;
    outline: none;
    cursor: pointer;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #707070;
    text-align: center;
}

h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

h3 {
    font-size: 22px;
    margin: 10px;
}

/* --- Estructura Contenido --- */
.invitacion-content {
    text-align: center;
    padding: 20px 15px;
}

/* --- Portada --- */
.portada-container {
    text-align: center;
}

.foto-invitacion { 
    margin-bottom: 1.5em;
    max-width: 100%;
    height: auto;
}

.nombre-quinceanera {
    font-family: "Imperial Script", cursive;
    font-size: 6em;
    color:  #ff64c4;
    margin-top: 0.25em;
    margin-bottom: 0.25em;
    font-weight: normal;
}

/* --- Sección de Música --- */
.musica-section {
    margin-bottom: 20px;
}

.texto-musica {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1em; 
    margin-bottom: 10px;
    color: #444;
}

.icono-flor-texto-inline {
    height: 2em; 
    vertical-align: middle;
    margin: 0 5px;
}

.controles-musica {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-size: 1.5em;
    margin-bottom: 15px;
}

.icono-control {
    cursor: pointer;
    color: #555;
}

.boton-flor {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flor-boton-imagen {
    width: 60px;
    height: auto;
    transition: transform 0.2s;
}

.flor-boton-imagen:active {
    transform: scale(0.9);
}

.separador {
    width: 50%;
    border: 0;
    height: 1px;
    background-color: #a7a7a7;
    margin: 20px auto;
}

/* --- Sección Quince & Textos --- */
.quince-container {
    text-align: center;
}

.imagen-quince { 
    width: 50%;
    margin-top: 1em;
    margin-bottom: 2em;
}

.mensaje-hadas { 
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1em; 
    font-size: 1.1em;
    line-height: 1.5;
}

.dedicatoria-padres {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 2.5em;
    color:  #ff64c4;
    margin-top: 1em;
    margin-bottom: 0.25em;    
    text-align: center;
}

/* --- Fecha --- */
.fecha-container {
    text-align: center;
    padding: 20px 0;
}

.imagen-fecha {
    max-width: 70%; 
    height: auto;
    display: block; 
    margin: 0 auto; 
}

/* --- Tarjetas (Misa, Recepción, Vestuario) --- */
.misa-section {
    text-align: center;
    padding: 60px 20px;    
    position: relative;
    z-index: 1; 
}

.time-card {    
    max-width: 380px;     
    background-color: #ffffffcc;    
    border-radius: 40px; 
    
}

.misa-card {
    position: relative;
    max-width: 380px; 
    margin: 0 auto;
    background-color: #ffffffcc;
    padding: 100px 20px 40px; 
    border-radius: 40px; 
    border-top-left-radius: 120px; 
    border-top-right-radius: 120px; 
}

.misa-flores {
    position: absolute;
    top: -55px; 
    left: 50%;
    transform: translateX(-50%);
    width: 160px; 
    height: auto;
    z-index: 10; 
}

.misa-title {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;
    font-size: 3.5em; 
    color:  #ff64c4; 
    margin-bottom: 0px;
}

.misa-detalle {
    font-family: "Playfair Display", serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1em; 
    color: #555;
    line-height: 1.6;
    margin: 5px 0;
}

/* Botones con Imagen (Ver Mapa, Confirmar) */
.misa-button-link-image {
    display: block;
    text-align: center;
    margin: 20px auto 0; 
    line-height: 0; 
    width: 100%; 
}

.ver-mapa-img {
    max-width: 200px; 
    width: 40%; 
    height: auto;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    display: block;
    margin: 0 auto;
}

.ver-mapa-img:hover {
    transform: scale(1.03); 
    opacity: 0.95;
}

/* --- Sección Contador --- */
.countdown-section {
    text-align: center;
    padding: 10px 20px;
    background-size: cover;
    background-position: center;
}

.contador-titulo-solo-faltan {
    font-family: "Tangerine", cursive;
    font-weight: 700;
    font-style: normal;    
    font-size: 3.5em; 
    color:  #ff64c4; 
    margin-bottom: 20px;
}

#countdown-timer {
    display: flex;
    justify-content: center;
    align-items: baseline; 
    gap: 0px; 
    margin-top: 20px;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
}

#countdown-timer .bloque-tiempo {
    text-align: center;
    flex-grow: 1; 
    min-width: 50px;
}

#countdown-timer .numero {
    font-size: 3.5em; 
    color:  #ff64c4; 
    font-weight: normal;
    line-height: 1;
    font-family: 'Cinzel', bold; 
    padding: 0 5px; 
}

#countdown-timer .etiqueta {
    font-size: 0.7em; 
    color:  #ff64c4;
    letter-spacing: 2px;
    margin-top: 8px;
    text-transform: uppercase;
    font-family: 'Raleway', sans-serif;
}

.separador-contador {
    font-size: 3.5em; 
    color:  #ff64c4; 
    padding-bottom: 0.3em; 
    font-weight: 300;
}

/* --- Imagen Final --- */
.final-image-container {
    width: 100%;
    padding: 0;
    margin: 0;
    line-height: 0; 
    overflow: hidden; 
}

.final-image {
    width: 100%; 
    height: auto; 
    display: block; 
}

.time-card {
    position: relative;
    max-width: 380px; 
    margin: 0 auto;
    background-color: #ffffffcc;
    padding: 5px 0px 30px; 
    border-radius: 40px; 
    
}

/* --- Responsive Media Queries --- */
@media (max-width: 640px) {
    .contador-titulo-solo-faltan {
        font-size: 3em;
    }
    #countdown-timer .numero {
        font-size: 2.5em;
    }
    .separador-contador {
        font-size: 2.5em;
    }
    #countdown-timer .etiqueta {
        font-size: 0.6em;
    }
    .imagen-fecha {
        max-width: 85%;
    }
}

@media (max-width: 450px) {
    .misa-card {
        padding: 70px 15px 30px;
    }

    .time-card {
        padding: 5px 0px 30px;
    }

    .misa-flores {
        width: 140px;
        top: -45px;
    }
    .misa-title {
        font-size: 3em;
    }
    .ver-mapa-img {
        max-width: 180px;
    }
    #countdown-timer .numero {
        font-size: 32px;
    }
}

