@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');


/* =========================
   CONFIGURACIÓN GENERAL
========================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Quicksand", sans-serif;
    background-color: #fff9fc;
    background-image:
        radial-gradient(circle at 16% 18%, rgba(242, 139, 181, 0.16), transparent 25rem),
        radial-gradient(circle at 84% 78%, rgba(255, 211, 229, 0.85), transparent 28rem);
    background-attachment: fixed;
    color: #3d2633;
    overflow-x: hidden;
}

img,
iframe {
    max-width: 100%;
}


/* =========================
   ELEMENTOS GENERALES
========================= */

button {
    border: none;
    cursor: pointer;
    padding: 14px 28px;
    border-radius: 999px;
    background: #f28bb5;
    color: white;
    font-size: 16px;
    transition: 0.3s;
}

button:hover {
    transform: translateY(-3px);
    background: #e96da2;
}


/* =========================
   PANTALLA DE BLOQUEO
========================= */

#lock-screen {
    position: fixed;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: transparent;

    z-index: 1000;
}

.lock-content {
    position: absolute;

    top: 47%;
    left: 50%;

    transform: translate(-50%, -50%);

    text-align: center;
}

.lock-icon {
    font-size: 45px;
    margin-bottom: 20px;
}

.lock-content h1 {
    font-size: 52px;
    font-weight: 700;
    margin-bottom: 15px;
}

.lock-content p {
    color: #8b6678;
    margin-bottom: 30px;
}


/* =========================
   DECORACIÓN DE LA PANTALLA
========================= */

.foto-1 {
    position: absolute;

    top: 4%;
    left: 5%;

    width: 320px;

    transform: rotate(-10deg) scale(1.4);
}

.foto-2 {
    position: absolute;

    top: 6%;
    right: 8%;

    width: 280px;

    transform: rotate(10deg) scaleX(-1);
}


/* =========================
   HISTORIA
========================= */

#historia {
    position: relative;
}
#personal {
    position: relative;
}

#personal .deco1-img {
    position: absolute;

    top: 2%;
    left: -20%;

    width: 200px;

    transform: rotate(-10deg);
}
 .deco2-img {
    position: absolute;

    top: 44%;
    left: 28%;

    width: 400px;
    transform: scale(1.4);
}
.deco1-img {
    position: absolute;

    top: 15%;
    left: -20%;

    width: 200px;

    transform: rotate(-10deg);
}

.primerapartida {
    position: absolute;

    top: 60%;
    left: 15%;

    width: 700px;
}
.surprise-img {
    width: 600px;
    max-width: 100%;

    display: block;
    margin: 30px auto;
}
.final-deco-img {
    
    width: 250px;
    max-width: 80%;

    display: block;
    margin: 30px auto 0;
    }
.ariana-img {
    display: block;

    width: 700px;
    max-width: 100%;
    height: auto;

    margin: 40px auto;

    border: 3px solid #f28bb5;
    border-radius: 18px;
}
/* =========================
   FOTOS CON DESCRIPCIÓN
========================= */

.foto-con-descripcion {
    text-align: center;
}

.foto-con-descripcion img {
    width: 700px;
    max-width: 100%;
    height: auto;
}

.foto-con-descripcion p {
    margin-top: 12px;

    font-size: 14px;

    color: #9b7487;

    line-height: 1.5;
}


/* =========================
   SEPARADORES
========================= */

.separador {
    display: flex;
    justify-content: center;
    align-items: center;

    padding: 40px 0;
}

.separador img {
    width: min(500px, 80%);
}


/* =========================
   CUENTA ATRÁS
========================= */

#countdown {
    display: flex;
    justify-content: center;

    gap: 15px;
}

#countdown div {
    display: flex;
    flex-direction: column;

    min-width: 75px;
    padding: 15px;

    border-radius: 15px;

    background: white;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

#countdown span {
    font-size: 28px;
    font-weight: 400;
}

#countdown small {
    font-size: 12px;
    font-weight: 400;

    color: #9b7487;

    margin-top: 3px;
}


/* =========================
   OCULTAR ELEMENTOS
========================= */

.hidden {
    display: none !important;
}


/* =========================
   PORTADA
========================= */

.date-intro {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 30px;
    text-align: center;
    align-content: center;
    gap: 28px;
}

.date-intro time {
    padding: 13px 18px;
    border: 1px solid rgba(214, 93, 145, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
    color: #c94f82;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    letter-spacing: 0.16em;
}

.date-intro button {
    justify-self: center;
    padding: 15px 30px;
    box-shadow: 0 10px 24px rgba(214, 93, 145, 0.22);
}

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    text-align: center;
    padding: 80px 30px;

    background: transparent;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(242, 139, 181, 0.18);
    border-radius: 50%;
}

.hero::before {
    width: 20rem;
    height: 20rem;
    top: -10rem;
    right: -7rem;
}

.hero::after {
    width: 11rem;
    height: 11rem;
    bottom: -5rem;
    left: -4rem;
}

.hero > * {
    position: relative;
}

.hero h1 {
    max-width: 780px;
    margin: 22px 0 18px;
    color: #3d2633;
    font-size: clamp(42px, 6vw, 74px);
    line-height: 1.08;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.hero p {
    max-width: 570px;
    margin-bottom: 34px;
    color: #765566;
    font-size: 17px;
    line-height: 1.75;
    text-wrap: balance;
}

.hero button {
    padding: 15px 30px;
    box-shadow: 0 10px 24px rgba(214, 93, 145, 0.22);
}


/* =========================
   SECCIONES
========================= */

.section {
    max-width: 900px;

    margin: auto;

    min-height: 80vh;

    padding: 100px 30px;
}

.section-number {
    color: #e96da2;

    font-size: 14px;

    letter-spacing: 3px;
}

.section h2 {
    font-size: 40px;

    margin: 15px 0 30px;
}

.section p {
    line-height: 1.8;

    margin-bottom: 20px;
}


/* =========================
   GALERÍA
========================= */

.photo-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 20px;
}

.photo-card {
    position: relative;

    background: white;

    padding: 10px;

    border-radius: 15px;

    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);

    cursor: pointer;

    overflow: hidden;
}


/* =========================
   TARJETAS CERRADAS
========================= */

.photo-cover {
    min-height: 200px;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 10px;

    font-size: 35px;
}

.photo-cover span {
    font-size: 14px;

    color: #9b7487;
}


/* =========================
   TARJETAS ABIERTAS
========================= */

.photo-content {
    display: none;
}

.photo-content img {
    width: 100%;
    height: 200px;

    aspect-ratio: auto;

    object-fit: contain;

    display: block;

    margin: 0 auto;

    border-radius: 10px;
}

.photo-content p {
    padding: 10px;

    font-size: 14px;
}

.photo-card.abierta .photo-cover {
    display: none;
}

.photo-card.abierta .photo-content {
    display: block;
}
.photo-content iframe {
    width: 100%;
    height: 250px;

    border: none;
    border-radius: 10px;
}


/* =========================
   ÁLBUM DE FOTOS
========================= */

#photo-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.photo-upload {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 24px;
    border: 2px dashed #f28bb5;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    color: #c94f82;
    cursor: pointer;
    transition: transform 0.25s ease, background 0.25s ease;
}

.photo-upload:hover,
.photo-upload:focus-within {
    transform: translateY(-3px);
    background: #fff;
}

.photo-upload span {
    font-size: 42px;
    margin-bottom: 10px;
}

.photo-upload small,
.upload-message {
    color: #9b7487;
}

.photo-upload small {
    margin-top: 5px;
}

.upload-message {
    margin-top: 14px;
    font-size: 14px;
}

.uploaded-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.uploaded-photo {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.uploaded-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.uploaded-photo button {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 2px solid #fff;
    background: rgba(61, 38, 51, 0.7);
    font-size: 20px;
    line-height: 1;
}

.uploaded-photo button:hover {
    background: #e96da2;
    transform: none;
}


/* =========================
   SORPRESA
========================= */

.surprise {
    text-align: center;
}

#surprise-content {
    margin-top: 30px;

    padding: 30px;

    border-radius: 20px;

    background: white;
}


/* =========================
   FINAL
========================= */

.final-section {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    text-align: center;

    padding: 30px;
}

.final-section h2 {
    font-size: 45px;

    margin-bottom: 30px;
}

.final-section p {
    max-width: 650px;

    line-height: 1.8;
}

.signature {
    margin-top: 40px;

    color: #e96da2;
}


/* =========================
   REPRODUCTOR DE MÚSICA
========================= */

.music-player {
    position: fixed;

    bottom: 25px;
    right: 25px;

    z-index: 2000;
}

@media (max-width: 760px) {

    body {
        background-attachment: scroll;
    }

    .section {
        padding: 80px 24px;
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .uploaded-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ariana-img {
        margin: 28px auto;
    }
}

#music-button {
    width: 50px;
    height: 50px;

    padding: 0;

    border-radius: 50%;

    background: #f28bb5;
    color: white;

    font-size: 18px;

    display: flex;
    align-items: center;
    justify-content: center;
}


/* =========================
   MÓVIL
========================= */

/* =========================
   MÓVIL
========================= */

@media (max-width: 600px) {

    /* ===== PANTALLA DE BLOQUEO ===== */

    .lock-content {
        width: 90%;
    }

    .lock-content h1 {
        font-size: 38px;
    }

    .lock-content p {
        font-size: 14px;
    }

    #countdown {
        gap: 5px;
    }

    #countdown div {
        min-width: 65px;
        padding: 10px;
    }

    #countdown span {
        font-size: 20px;
    }


    /* ===== DECORACIONES DE LA PANTALLA INICIAL ===== */

    .foto-1 {
        width: 140px;
        top: 5%;
        left: 2%;
        transform: rotate(-10deg);
    }

    .foto-2 {
        width: 130px;
        top: 6%;
        right: 2%;
        transform: rotate(10deg) scaleX(-1);
    }


    /* ===== PORTADA ===== */

    .hero {
        padding: 72px 20px;
    }

    .hero h1 {
        font-size: clamp(38px, 11vw, 48px);
    }

    .hero p {
        font-size: 15px;
    }


    /* ===== SECCIONES ===== */

    .section {
        width: 100%;
        min-height: auto;
        padding: 70px 20px;
    }

    .section h2 {
        font-size: 32px;
    }

    .section p {
        font-size: 16px;
        line-height: 1.8;
    }


    /* ===== LAZO ===== */

    .deco1-img {
        position: relative;

        top: auto;
        left: auto;

        width: 100px;

        display: block;
        margin: 10px auto 20px;

        transform: rotate(-10deg);
    }
    
    #personal .deco1-img {
    position: relative;

    top: auto;
    left: auto;

    width: 120px;

    display: block;
    margin: 0 auto 20px;

    transform: rotate(-10deg);
}


    /* ===== PRIMERA PARTIDA ===== */

    .primerapartida {
        position: relative;

        top: auto;
        left: auto;

        width: 100%;
        max-width: 100%;

        height: auto;
    }


    /* ===== FOTO CON DESCRIPCIÓN ===== */

    .foto-con-descripcion {
        width: 100%;
    }

    .foto-con-descripcion img {
        width: 100%;
        height: auto;
    }


    /* ===== PHOTO CARDS ===== */

    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .uploaded-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .photo-card {
        width: 100%;
    }

    .photo-content img {
        width: 100%;
        height: 200px;

        object-fit: contain;
    }

    .photo-content iframe {
        width: 100%;
        height: 200px;
    }


    /* ===== SEPARADORES ===== */

    .separador {
        padding: 25px 0;
    }

    .separador img {
        width: 70%;
    }


    /* ===== SORPRESA ===== */

    #surprise-content {
        padding: 20px;
    }


    /* ===== FINAL ===== */

    .final-section {
        padding: 30px 20px;
        min-height: 80vh;
    }

    .final-section h2 {
        font-size: 36px;
    }


    /* ===== MÚSICA ===== */

    .music-player {
        bottom: calc(15px + env(safe-area-inset-bottom));
        right: 15px;
    }

    #music-button {
        width: 45px;
        height: 45px;
    }

    .final-deco-img {
    width: 200px;
    max-width: 80%;
    margin: 25px auto 0;
}
}

@media (max-width: 380px) {

    .lock-content h1 {
        font-size: 32px;
    }

    #countdown div {
        min-width: 56px;
        padding: 8px 6px;
    }

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

    .date-intro time {
        font-size: 20px;
        letter-spacing: 0.1em;
    }
}
