
/* =====================================================
   PROYECTO: CEREMONIA IMAGINARIA
   DISEÑO ROMÁNTICO, ELEGANTE Y DIVERTIDO

   Para cambiar los colores principales, modifica
   las variables de :root.
===================================================== */

:root {
    --rosa: #e88ca8;
    --rosa-claro: #ffe4ec;
    --rosa-fuerte: #d94f7b;
    --vino: #762d4c;
    --dorado: #c49a52;
    --marfil: #fffaf5;
    --blanco: #ffffff;
    --texto: #593b49;
    --sombra: 0 12px 35px rgba(118, 45, 76, 0.13);
}

/* RESTABLECIMIENTO GENERAL */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Georgia, "Times New Roman", serif;
    color: var(--texto);
    background:
        radial-gradient(circle at 10% 15%, #ffe4ec 0, transparent 30%),
        radial-gradient(circle at 90% 85%, #f8e5d4 0, transparent 30%),
        linear-gradient(135deg, #fffaf5, #fff0f4, #fffaf5);
    overflow-x: hidden;
}

/* FONDO DECORATIVO */

.decoracion-fondo {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.decoracion-fondo span {
    position: absolute;
    color: rgba(217, 79, 123, 0.13);
    font-size: 35px;
    animation: flotar 9s ease-in-out infinite;
}

.decoracion-fondo span:nth-child(1) {
    top: 10%;
    left: 8%;
}

.decoracion-fondo span:nth-child(2) {
    top: 70%;
    left: 15%;
    animation-delay: 2s;
}

.decoracion-fondo span:nth-child(3) {
    top: 20%;
    right: 12%;
    animation-delay: 4s;
}

.decoracion-fondo span:nth-child(4) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

.decoracion-fondo span:nth-child(5) {
    top: 50%;
    right: 5%;
    animation-delay: 3s;
}

@keyframes flotar {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-25px) rotate(12deg);
    }
}

/* CONTENEDOR PRINCIPAL */

.contenedor-principal {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    padding: 35px 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* PANTALLAS */

.pantalla {
    display: none;
    width: 100%;
    max-width: 780px;
    animation: aparecer 0.7s ease;
}

.pantalla.activa {
    display: block;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TARJETAS */

.tarjeta {
    position: relative;
    width: 100%;
    padding: 45px 38px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(196, 154, 82, 0.45);
    border-radius: 25px;
    box-shadow: var(--sombra);
    text-align: center;
    overflow: hidden;
}

.tarjeta::before {
    content: "";
    position: absolute;
    inset: 9px;
    border: 1px solid rgba(232, 140, 168, 0.35);
    border-radius: 19px;
    pointer-events: none;
}

/* TEXTOS GENERALES */

.etiqueta {
    color: var(--dorado);
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

h1 {
    color: var(--vino);
    font-size: clamp(30px, 5vw, 46px);
    margin-bottom: 20px;
    line-height: 1.2;
}

h2 {
    color: var(--vino);
    font-size: clamp(23px, 4vw, 32px);
    margin-bottom: 20px;
}

p {
    line-height: 1.7;
}

.adorno-superior {
    font-size: 32px;
    margin-bottom: 20px;
}

.adorno-inferior {
    margin-top: 28px;
    color: var(--rosa-fuerte);
    font-style: italic;
}

/* BIENVENIDA */

.texto-bienvenida {
    max-width: 530px;
    margin: 0 auto 25px;
    font-size: 17px;
}

.aviso-ficcion {
    background: #fff4f6;
    border-left: 4px solid var(--rosa-fuerte);
    border-radius: 12px;
    padding: 18px;
    margin: 22px 0;
    text-align: left;
    font-size: 14px;
}

.aviso-ficcion strong {
    color: var(--vino);
    display: block;
    margin-bottom: 8px;
}

.aviso-ficcion p + p {
    margin-top: 8px;
}

.mensaje-especial {
    color: var(--vino);
    font-style: italic;
    margin: 20px auto;
    max-width: 550px;
}

/* BOTONES */

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

button:focus-visible {
    outline: 3px solid var(--dorado);
    outline-offset: 4px;
}

.btn-principal {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 22px auto 10px;
    padding: 17px 25px;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--rosa-fuerte), var(--vino));
    color: white;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 7px 18px rgba(217, 79, 123, 0.25);
}

.btn-principal:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 12px 22px rgba(217, 79, 123, 0.35);
}

.btn-principal:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-secundario {
    display: block;
    margin: 15px auto 0;
    padding: 10px 20px;
    background: transparent;
    color: #987b87;
    font-size: 14px;
    text-decoration: underline;
}

.btn-secundario:hover {
    color: var(--vino);
}

/* CUESTIONARIO */

.cuestionario {
    max-width: 650px;
    margin: auto;
}

.progreso-contenedor {
    margin: 10px 0 30px;
    text-align: left;
    color: var(--rosa-fuerte);
    font-size: 13px;
}

.barra-progreso {
    height: 9px;
    margin-top: 9px;
    background: #f8e4eb;
    border-radius: 20px;
    overflow: hidden;
}

#progresoPregunta {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--rosa), var(--vino));
    border-radius: 20px;
    transition: width 0.4s ease;
}

.icono-pregunta {
    font-size: 48px;
    margin: 15px 0;
}

.opciones-pregunta {
    display: grid;
    gap: 12px;
    margin: 25px auto;
}

.opcion-respuesta {
    width: 100%;
    padding: 15px;
    border: 1px solid #f0c6d3;
    border-radius: 15px;
    background: #fff8fa;
    color: var(--texto);
    font-size: 15px;
    text-align: left;
}

.opcion-respuesta:hover {
    background: var(--rosa-claro);
    transform: translateX(4px);
}

.opcion-respuesta.seleccionada {
    background: #fce1e9;
    border: 2px solid var(--rosa-fuerte);
    color: var(--vino);
    font-weight: bold;
}

.mensaje-respuesta {
    min-height: 25px;
    color: var(--rosa-fuerte);
    font-weight: bold;
}

/* GRAN PREGUNTA */

.anillos-decorativos {
    font-size: 43px;
    margin-bottom: 20px;
}

.pregunta-romantica {
    max-width: 520px;
    margin: 0 auto 20px;
    font-size: 18px;
}

.aviso-pequeno {
    max-width: 480px;
    margin: 20px auto;
    padding: 12px;
    background: #fff4f6;
    border-radius: 12px;
    font-size: 13px;
}

.botones-decision {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px;
    min-height: 110px;
    margin: 25px auto;
}

.btn-si,
.btn-no {
    min-width: 190px;
    padding: 17px 22px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
}

.btn-si {
    background: linear-gradient(135deg, #e88ca8, #b73566);
    color: white;
    box-shadow: 0 7px 18px rgba(217, 79, 123, 0.25);
}

.btn-si:hover {
    transform: scale(1.06);
}

.btn-no {
    background: #f3e8ed;
    color: var(--vino);
    border: 1px solid #e9cbd6;
}

.mensaje-no {
    min-height: 35px;
    color: var(--rosa-fuerte);
    font-weight: bold;
    font-size: 17px;
}

/* CEREMONIA */

.celebracion-iconos {
    font-size: 48px;
    margin-bottom: 20px;
}

.texto-ceremonia {
    max-width: 530px;
    margin: 0 auto 25px;
    font-size: 17px;
}

.mensaje-pareja {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 30px 0;
    color: var(--vino);
    font-size: clamp(23px, 5vw, 36px);
    font-weight: bold;
}

.corazon {
    color: #e34c77;
    font-size: 35px;
    animation: latido 1.2s infinite;
}

@keyframes latido {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.25);
    }
}

.promesa-futura {
    margin: 25px auto;
    padding: 20px;
    background: #fff5f7;
    border-radius: 15px;
    font-style: italic;
}

/* CERTIFICADO */

.certificado-contenedor {
    max-width: 850px;
}

.certificado {
    width: 100%;
    padding: 12px;
    background: #fffaf0;
    border: 3px double var(--dorado);
    color: #684253;
}

.marco-certificado {
    padding: 30px 20px;
    border: 1px solid #d9b77b;
    outline: 1px solid rgba(217, 183, 123, 0.45);
    outline-offset: -7px;
    background:
        radial-gradient(circle at top left, #fff0f4, transparent 35%),
        radial-gradient(circle at bottom right, #fce9e0, transparent 35%),
        #fffdf8;
}

.decoracion-certificado {
    font-size: 30px;
    margin: 10px 0 18px;
}

.subtitulo-certificado {
    color: var(--dorado);
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 3px;
}

.certificado h1 {
    margin: 15px 0 5px;
    font-size: clamp(30px, 5vw, 43px);
    letter-spacing: 3px;
}

.certificado h2 {
    font-size: clamp(18px, 3vw, 24px);
    margin-bottom: 25px;
}

.certificado-intro {
    margin: 20px 0;
    font-style: italic;
}

.nombres-certificado {
    margin: 20px 0;
    color: var(--vino);
    font-size: clamp(20px, 4vw, 30px);
    font-weight: bold;
}

.nombres-certificado span {
    display: inline-block;
    color: #e34c77;
    padding: 0 5px;
}

.texto-certificado {
    max-width: 570px;
    margin: 20px auto;
    font-size: 14px;
}

.frase-certificado {
    margin: 25px 0;
    color: var(--rosa-fuerte);
    font-weight: bold;
    font-size: clamp(15px, 3vw, 20px);
}

.advertencia-certificado {
    margin: 25px auto;
    max-width: 600px;
    padding: 15px;
    background: #fff0f1;
    border: 1px solid #e9a6b8;
    border-radius: 10px;
    color: #8b294b;
    font-size: 12px;
    font-weight: bold;
}

.advertencia-certificado p {
    margin-top: 9px;
    font-weight: normal;
}

.firmas-certificado {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
    margin: 35px 0 20px;
}

.firmas-certificado div {
    min-width: 130px;
    padding-top: 12px;
    border-top: 1px solid var(--dorado);
}

.firmas-certificado span,
.firmas-certificado small {
    display: block;
}

.firmas-certificado span {
    color: var(--vino);
    font-weight: bold;
    font-style: italic;
}

.firmas-certificado small {
    margin-top: 5px;
    font-size: 10px;
    color: #987b87;
}

.decoracion-certificado.inferior {
    font-size: 13px;
    color: var(--rosa-fuerte);
    font-style: italic;
}

.mensaje-descarga {
    margin: 18px 0;
    color: var(--vino);
    font-size: 14px;
}

/* MENSAJE FINAL */

.mensaje-final {
    margin-top: 25px;
    color: var(--rosa-fuerte);
    font-style: italic;
}

/* RESPONSIVE: TABLETS Y CELULARES */

@media (max-width: 600px) {

    .contenedor-principal {
        padding: 18px 12px;
    }

    .tarjeta {
        padding: 35px 20px;
        border-radius: 20px;
    }

    .tarjeta::before {
        inset: 6px;
    }

    .etiqueta {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .texto-bienvenida,
    .texto-ceremonia,
    .pregunta-romantica {
        font-size: 15px;
    }

    .btn-principal {
        padding: 16px 15px;
        font-size: 14px;
    }

    .botones-decision {
        flex-direction: column;
        gap: 14px;
    }

    .btn-si,
    .btn-no {
        width: 100%;
        max-width: 280px;
        min-width: 0;
    }

    .firmas-certificado {
        gap: 22px;
    }

    .marco-certificado {
        padding: 25px 12px;
    }

    .certificado {
        padding: 7px;
    }

    .advertencia-certificado {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}