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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(circle at 20% 20%, rgba(255, 100, 150, 0.18), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(150, 80, 255, 0.18), transparent 30%),
        #fff5f8;

    color: #351923;

    min-height: 100vh;

    transition: 0.4s;

    overflow-x: hidden;
}


/* HEADER */

header {
    position: fixed;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 100;

    backdrop-filter: blur(12px);

    background: rgba(255, 255, 255, 0.65);

    border-bottom: 1px solid rgba(255, 100, 150, 0.15);
}

nav {
    max-width: 1100px;

    margin: auto;

    padding: 18px 25px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.logo {
    font-size: 18px;

    font-weight: bold;

    color: #d6336c;
}

#temaBtn {
    width: 42px;
    height: 42px;

    border: none;

    border-radius: 50%;

    cursor: pointer;

    font-size: 18px;

    background: #351923;

    color: white;

    transition: 0.3s;
}

#temaBtn:hover {
    transform: rotate(20deg) scale(1.1);
}


/* PRINCIPAL */

main {
    padding-top: 100px;
}


/* HERO */

.hero {
    min-height: 90vh;

    max-width: 1100px;

    margin: auto;

    padding: 60px 25px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 80px;
}


/* FOTO */

.foto {
    display: flex;

    justify-content: center;

    position: relative;
}

.circulo {
    width: 330px;
    height: 330px;

    border-radius: 50%;

    padding: 10px;

    background: linear-gradient(
        135deg,
        #ff4d8d,
        #a855f7,
        #ff4d8d
    );

    animation: flotar 4s ease-in-out infinite;

    box-shadow:
        0 20px 60px rgba(214, 51, 108, 0.3);
}

.circulo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    border-radius: 50%;

    border: 8px solid white;
}

@keyframes flotar {

    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}


/* TEXTO */

.texto {
    max-width: 560px;
}

.pequeno {
    letter-spacing: 4px;

    font-size: 12px;

    font-weight: bold;

    color: #d6336c;

    margin-bottom: 15px;
}

h1 {
    font-size: clamp(45px, 7vw, 75px);

    line-height: 1;

    margin-bottom: 25px;
}

h1 span {
    display: block;

    background: linear-gradient(
        90deg,
        #ff4d8d,
        #a855f7
    );

    -webkit-background-clip: text;

    color: transparent;
}

.descripcion {
    font-size: 19px;

    line-height: 1.8;

    color: #684752;

    margin-bottom: 30px;
}


/* BOTONES */

.boton {
    border: none;

    padding: 15px 25px;

    border-radius: 50px;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    background: linear-gradient(
        135deg,
        #ff4d8d,
        #a855f7
    );

    box-shadow:
        0 10px 25px rgba(214, 51, 108, 0.25);

    transition: 0.3s;
}

.boton:hover {
    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 15px 35px rgba(214, 51, 108, 0.35);
}


/* MENSAJE */

.mensaje-seccion {
    padding: 100px 20px;

    display: flex;

    justify-content: center;
}

.tarjeta {
    max-width: 750px;

    padding: 50px;

    text-align: center;

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.75);

    backdrop-filter: blur(15px);

    box-shadow:
        0 20px 60px rgba(100, 30, 60, 0.1);

    border: 1px solid rgba(255, 100, 150, 0.15);
}

.corazon-grande {
    display: block;

    font-size: 50px;

    color: #ff4d8d;

    animation: latido 1.3s infinite;
}

@keyframes latido {

    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

.tarjeta h2 {
    font-size: 34px;

    margin: 15px 0 25px;
}

.tarjeta p {
    font-size: 17px;

    line-height: 1.8;

    color: #684752;

    margin: 15px 0;
}

.firma {
    margin-top: 30px;

    font-size: 20px;

    font-weight: bold;

    color: #d6336c;
}


/* CONTADOR */

.tiempo {
    text-align: center;

    padding: 100px 20px;

    background: rgba(255, 220, 230, 0.4);
}

.tiempo h2 {
    font-size: 40px;

    margin-bottom: 40px;
}

.contador {
    max-width: 700px;

    margin: auto;

    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 15px;
}

.contador div {
    padding: 25px 10px;

    border-radius: 20px;

    background: white;

    box-shadow:
        0 10px 30px rgba(100, 30, 60, 0.08);
}

.contador span {
    display: block;

    font-size: 35px;

    font-weight: bold;

    color: #d6336c;
}

.contador small {
    color: #80616b;
}


/* FINAL */

.final {
    text-align: center;

    padding: 120px 20px;
}

.final h2 {
    font-size: 42px;

    margin-bottom: 15px;
}

.final p {
    font-size: 18px;

    color: #684752;

    margin-bottom: 30px;
}


/* FOOTER */

footer {
    text-align: center;

    padding: 30px;

    color: #80616b;

    font-size: 14px;
}


/* CORAZONES */

.corazon {
    position: fixed;

    pointer-events: none;

    font-size: 25px;

    animation: subir 4s linear forwards;

    z-index: 200;
}

@keyframes subir {

    0% {
        transform: translateY(0) scale(1);

        opacity: 1;
    }

    100% {
        transform: translateY(-100vh) rotate(360deg) scale(1.5);

        opacity: 0;
    }
}


/* MODO OSCURO */

body.oscuro {
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 70, 130, 0.12), transparent 30%),
        radial-gradient(circle at 80% 80%, rgba(150, 80, 255, 0.12), transparent 30%),
        #160e13;

    color: #fff;
}

body.oscuro header {
    background: rgba(25, 15, 20, 0.75);
}

body.oscuro .descripcion,
body.oscuro .tarjeta p,
body.oscuro .final p {
    color: #d8c5cc;
}

body.oscuro .tarjeta {
    background: rgba(35, 20, 28, 0.8);
}

body.oscuro .tiempo {
    background: rgba(50, 20, 35, 0.3);
}

body.oscuro .contador div {
    background: #26161e;
}

body.oscuro .contador small {
    color: #c8adb7;
}

body.oscuro #temaBtn {
    background: white;
    color: #351923;
}


/* CELULARES */

@media (max-width: 750px) {

    .hero {
        flex-direction: column;

        text-align: center;

        gap: 45px;

        padding-top: 50px;
    }

    .circulo {
        width: 250px;
        height: 250px;
    }

    h1 {
        font-size: 52px;
    }

    .descripcion {
        font-size: 17px;
    }

    .tarjeta {
        padding: 35px 25px;
    }

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

    .tiempo h2,
    .final h2 {
        font-size: 32px;
    }
}
