* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start; /* 👈 aquí está el cambio */

    padding-top: 20px; /* pequeño espacio arriba */

    background:
        linear-gradient(
            to top,
            rgba(0,0,0,0.4) 0%,
            rgba(0,0,0,0.2) 30%,
            rgba(255,255,255,0.9) 65%,
            #f4f4f4 100%
        ),
        url("claro500.jpg");

    background-size: cover;
    background-position: bottom center;
    background-repeat: no-repeat;
}


.app {
    width: 100%;
    max-width: 380px;
    padding: 10px 25px 25px 25px; /* menos espacio arriba */
    text-align: center;
}


/* Logo arriba */
.card-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 0 25px 0; /* quitamos espacio arriba */
}

.card-logo img {
    max-width: 160px;
    height: auto;
}

/* Texto */
.text-content h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.red {
    color: red;
}

.text-content p {
    font-size: 16px;
    line-height: 1.4;
}

.highlight {
    background: #ffecec;
    padding: 3px 6px;
    border-radius: 6px;
    font-weight: bold;
}

/* Imagen tarjeta */
.card-container {
    margin: 35px 0;
    display: flex;
    justify-content: center;
}

.card-image {
    width: 280px;
    height: 170px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Dots */
.dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.dots span {
    width: 10px;
    height: 10px;
    background: #ccc;
    border-radius: 50%;
}

.dots .active {
    background: black;
}

/* Botón */
.start-btn {
    width: 100%;
    padding: 14px;
    border-radius: 30px;
    border: none;
    background: black;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.start-btn:hover {
    opacity: 0.85;
}

.skip {
    display: block;
    margin-top: 15px;
    font-size: 14px;
    color: rgb(255, 255, 255);
    text-decoration: underline;
}

.card-container {
    margin: 190px 0 40px 0;
    display: flex;
    justify-content: center;
}



.card-wrapper {
    width: 333px;
    height: 193px;

    border-radius: 33px;
    overflow: hidden;
    position: relative;

    background: linear-gradient(135deg, #c30707, #e22727); /* rojo degradado */

    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        0 5px 15px rgba(0,0,0,0.2);

    animation: floatCard 4s ease-in-out infinite;
}


.card-image {
    width: 116%;
    height: 99%;
    object-fit: cover;
    transform: scale(1.2);
}


@keyframes floatCard {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-5px);
    }
    100% {
        transform: translateY(0px);
    }
}

/* ===== MODAL ===== */
.loading-modal {
    position: fixed;
    inset: 0;
  background: rgba(0, 0, 0, 0.12);
backdrop-filter: blur(2px);


    display: flex;
    justify-content: center;
    align-items: center;

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
    z-index: 9999;
}

.loading-modal.active {
    opacity: 1;
    visibility: visible;
}

/* ===== SPINNER ROJO DEGRADADO ===== */
.spinner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    position: relative;

    background: conic-gradient(
        #ff0000,
        #ff4d4d,
        #990000,
        #ff0000
    );

    /* Hace que sea solo aro */
    -webkit-mask: radial-gradient(farthest-side, transparent 70%, black 71%);
    mask: radial-gradient(farthest-side, transparent 70%, black 71%);

    animation: spin 1s linear infinite;
}


@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ===== TRANSICIÓN APP ===== */
.app-transition {
    animation: appFadeOut 0.6s ease forwards;
}

@keyframes appFadeOut {
    to {
        opacity: 0;
        transform: scale(1.05);
    }
}

/* ===== SAN VALENTÍN MODE ===== */

/* Overlay romántico suave */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at top, rgba(255,0,80,0.25), transparent 60%);
    pointer-events: none;
}

/* Botón romántico */
.start-btn {
    background: linear-gradient(135deg, #9d2b47, #f33255);
    box-shadow: 0 8px 20px rgba(89, 67, 75, 0.4);
}

.start-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(255, 0, 90, 0.6);
}

/* Glow suave en tarjeta */
.card-wrapper {
    box-shadow:
        0 20px 40px rgba(0,0,0,0.35),
        0 0 25px rgba(255, 0, 80, 0.4);
}

/* Corazones flotando */
.valentine-heart {
    position: fixed;
    bottom: -20px;
    width: 18px;
    height: 18px;
    background: #e30a32;
    transform: rotate(45deg);
    animation: floatHearts 8s linear infinite;
    opacity: 0.7;
}

.valentine-heart::before,
.valentine-heart::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    background: #f10a34;
    border-radius: 50%;
}

.valentine-heart::before {
    top: -9px;
    left: 0;
}

.valentine-heart::after {
    left: -9px;
    top: 0;
}

@keyframes floatHearts {
    0% {
        transform: translateY(0) rotate(45deg);
        opacity: 0;
    }
    20% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-110vh) rotate(45deg);
        opacity: 0;
    }
}
