﻿/* =========================
   CARD
========================= */

#cardSaludo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    transition: all .4s ease;
    min-height: 180px;
}

    /* =========================
   CONTENIDO ENCIMA
========================= */

    #cardSaludo .card-body {
        position: relative;
        z-index: 2;
    }

    /* =========================
   DECORACION
========================= */

    #cardSaludo::before,
    #cardSaludo::after {
        pointer-events: none;
    }

/* =========================
   MAÑANA
========================= */

.theme-day {
    background: linear-gradient( 135deg, #2563eb 0%, #60a5fa 45%, #93c5fd 100% );
}

    .theme-day::before {
        content: "";
        position: absolute;
        width: 180px;
        height: 180px;
        border-radius: 50%;
        top: -40px;
        right: -40px;
        background: radial-gradient( circle, rgba(255,255,255,.95) 0%, rgba(255,255,255,.45) 35%, rgba(255,255,255,0) 75% );
    }

/* =========================
   TARDE
========================= */

.theme-afternoon {
    background: linear-gradient( 135deg, #ea580c 0%, #fb923c 50%, #fdba74 100% );
}

    .theme-afternoon::before {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        border-radius: 50%;
        bottom: -120px;
        right: -40px;
        background: radial-gradient( circle, rgba(255,220,120,.9) 0%, rgba(255,180,80,.45) 40%, rgba(255,180,80,0) 75% );
    }

/* =========================
   NOCHE
========================= */

.theme-night {
    background: linear-gradient( 135deg, #0f172a 0%, #1e293b 45%, #334155 100% );
}

    .theme-night::before {
        content: "";
        position: absolute;
        width: 140px;
        height: 140px;
        border-radius: 50%;
        top: 20px;
        right: 40px;
        background: radial-gradient( circle, rgba(255,255,255,.95) 0%, rgba(226,232,240,.85) 40%, rgba(255,255,255,0) 70% );
        box-shadow: 0 0 40px rgba(255,255,255,.35);
    }

    .theme-night::after {
        content: "";
        position: absolute;
        inset: 0;
        background-image: radial-gradient(2px 2px at 20% 30%, rgba(255,255,255,.8), transparent), radial-gradient(2px 2px at 70% 20%, rgba(255,255,255,.6), transparent), radial-gradient(1.5px 1.5px at 85% 40%, rgba(255,255,255,.7), transparent), radial-gradient(2px 2px at 40% 70%, rgba(255,255,255,.5), transparent);
    }

/* =========================
   TEXOS EN FONDOS OSCUROS
========================= */

.theme-day h1,
.theme-day p,
.theme-day strong,
.theme-day .text-muted,
.theme-day .text-secondary {
    color: white !important;
}

.theme-afternoon h1,
.theme-afternoon p,
.theme-afternoon strong,
.theme-afternoon .text-muted,
.theme-afternoon .text-secondary {
    color: white !important;
}

.theme-night h1,
.theme-night p,
.theme-night strong,
.theme-night .text-muted,
.theme-night .text-secondary {
    color: white !important;
}

/* =========================
   LINEA HR
========================= */

.theme-day hr,
.theme-afternoon hr,
.theme-night hr {
    border-color: rgba(255,255,255,.25);
}
/* =========================
   TITULO SALUDO
========================= */

#saludo {
    font-weight: 800;
    letter-spacing: -.5px;
    color: white;
    /* gradiente texto */
    background: linear-gradient( 90deg, rgba(255,255,255,1), rgba(255,255,255,.82) );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* suavizado */
    text-shadow: 0 2px 12px rgba(0,0,0,.18);
    margin-bottom: 6px;
}

/* =========================
   DIA
========================= */

.theme-day #saludo {
    background: linear-gradient( 90deg, #ffffff, #e0f2fe );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   TARDE
========================= */

.theme-afternoon #saludo {
    background: linear-gradient( 90deg, #fff7ed, #ffedd5 );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* =========================
   NOCHE
========================= */

.theme-night #saludo {
    background: linear-gradient( 90deg, #ffffff, #cbd5e1 );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 18px rgba(255,255,255,.08), 0 2px 10px rgba(0,0,0,.45);
}