/* ===== Fondo con estrellas y brillos ===== */
.sky-bg {
    min-height: 100svh;
    margin: 0;
    color: #eaf2ff;
    background:
        radial-gradient(1200px 800px at 80% -10%, #1a2233 10%, transparent 60%),
        radial-gradient(900px 600px at -10% 120%, #101826 10%, transparent 60%),
        #0b0f14;
    overflow-x: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
}

.wrap {
    min-height: 100svh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.stars,
.twinkles {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.stars {
    background:
        radial-gradient(1px 1px at 12% 22%, #fff8 40%, transparent 41%),
        radial-gradient(1px 1px at 26% 78%, #fff6 40%, transparent 41%),
        radial-gradient(1px 1px at 47% 35%, #fff8 40%, transparent 41%),
        radial-gradient(1px 1px at 73% 63%, #fff5 40%, transparent 41%),
        radial-gradient(1px 1px at 88% 18%, #fff7 40%, transparent 41%);
    opacity: .45;
    animation: twinkle 7s linear infinite;
}

.twinkles {
    background:
        radial-gradient(2px 2px at 20% 40%, #fffa 45%, transparent 46%),
        radial-gradient(2px 2px at 60% 70%, #fff7 45%, transparent 46%),
        radial-gradient(2px 2px at 85% 25%, #fff6 45%, transparent 46%);
    mix-blend-mode: screen;
    opacity: .25;
    animation: drift 12s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: .35
    }

    50% {
        opacity: .7
    }
}

@keyframes drift {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

/* ===== Tarjeta “glass” ===== */
.card {
    width: min(760px, 92vw);
    border-radius: 22px;
    background: rgba(18, 24, 35, .72);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .06);
    padding: 22px 22px 18px;
}

.card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.card-head h1 {
    margin: 0;
    font-weight: 800;
    letter-spacing: .2px;
    font-size: clamp(18px, 3.6vw, 24px);
}

.favicon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    object-fit: cover
}

.accent {
    background: linear-gradient(90deg, #ffd84d, #ffef9c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ===== Saludo animado (tu texto original, pero con estilo) ===== */
.greetings {
    margin: .35rem 0 1rem;
    /* quita flex */
    text-align: center;
    letter-spacing: .6px;
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.12;
    /* separación vertical agradable */
}

.greetings br {
    display: block;
    margin-bottom: .18em;
    /* aire entre “Holiss” y “estrellitaa!” */
}

.greetings>span {
    display: inline-block;
    transform: translateY(14px) scale(.96);
    opacity: 0;
    padding: 0 .02em;
    background: linear-gradient(180deg, #ffef9c, #ffd84d 70%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 8px 28px rgba(255, 216, 77, .18);
    animation: rise .8s cubic-bezier(.16, .84, .44, 1) forwards;
    /* sombras suaves al final */
}

@keyframes rise {
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* Delays para cada letra (18 spans) */
.greetings>span:nth-of-type(1) {
    animation-delay: .00s
}

.greetings>span:nth-of-type(2) {
    animation-delay: .06s
}

.greetings>span:nth-of-type(3) {
    animation-delay: .12s
}

.greetings>span:nth-of-type(4) {
    animation-delay: .18s
}

.greetings>span:nth-of-type(5) {
    animation-delay: .24s
}

.greetings>span:nth-of-type(6) {
    animation-delay: .30s
}

.greetings>span:nth-of-type(7) {
    animation-delay: .36s
}

.greetings>span:nth-of-type(8) {
    animation-delay: .42s
}

.greetings>span:nth-of-type(9) {
    animation-delay: .48s
}

.greetings>span:nth-of-type(10) {
    animation-delay: .54s
}

.greetings>span:nth-of-type(11) {
    animation-delay: .60s
}

.greetings>span:nth-of-type(12) {
    animation-delay: .66s
}



/* ===== Descripción y firma ===== */
.description {
    text-align: center;
    line-height: 1.6;
    color: #f3f6ff;
    opacity: .95;
    font-size: clamp(14px, 2.6vw, 16px);
}

.firma {
    opacity: .8;
    margin: .35rem 0 0;
    font-style: italic;
}

/* ===== Botón y micro-interacciones ===== */
.button {
    display: grid;
    place-items: center;
    margin-top: 10px;
}

.botones {
    appearance: none;
    border: 0;
    cursor: pointer;
    background: linear-gradient(180deg, #ffd84d, #ffca2b);
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: .3px;
    padding: 12px 20px;
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(255, 204, 37, .35), 0 2px 0 rgba(0, 0, 0, .14) inset;
    transform: translateY(0);
    transition: transform .12s ease, box-shadow .2s ease, filter .2s ease;
}

.botones:hover {
    transform: translateY(-2px);
    filter: saturate(1.05)
}

.botones:active {
    transform: translateY(0)
}

.button .hint {
    margin-top: 8px;
    font-size: 12px;
    opacity: .65;
}

/* ===== Responsive ===== */
@media (max-width: 520px) {
    .card {
        padding: 18px 16px 16px
    }

    .greetings {
        font-size: 3.8rem;
        line-height: 1.16
    }

}

/* ==== Fix de layout / responsivo ==== */

/* Evita cortes en pantallas con barra dinámica */
.sky-bg {
    min-height: 100dvh;
}

/* Asegura scroll si el contenido excede el alto */
.wrap {
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 32px);
}

.card {
    box-sizing: border-box;
    width: min(760px, 92vw);
    padding: clamp(16px, 3.5vw, 24px);
}

/* El título escalará fluidamente entre móvil y desktop */
.greetings {
    font-size: clamp(2.4rem, 8vw, 6rem);
    line-height: 1.12;
}

/* Si la pantalla es más angosta, baja un poco más el tamaño */
@media (max-width: 768px) {
    .greetings {
        font-size: clamp(2.2rem, 10vw, 4.4rem);
    }
}

/* Pantallas muy angostas */
@media (max-width: 380px) {
    .greetings {
        font-size: clamp(2rem, 11vw, 3.6rem);
    }

    .description {
        font-size: clamp(13px, 3.4vw, 15px);
    }
}

/* Alturas pequeñas (paisaje o teclado abierto) */
@media (max-height: 700px) {
    .greetings {
        font-size: clamp(1.8rem, 7.5vw, 3.2rem);
    }

    .card {
        padding: 14px;
    }
}

/* Quita el padding interno extra del enlace y hazlo accesible
   (si decides dejar <a> dentro del botón): */
.botones a {
    display: inline-block;
    text-decoration: none;
    color: #1a1a1a;
    /* texto oscuro sobre fondo amarillo */
    font-weight: 800;
}

a.botones {
    display: inline-block;
    text-decoration: none;
    color: #1a1a1a;
}