﻿/* =========================================================
   CUMPLEAÑOS - VERSIÓN MÁS CHICA Y UNIFORME
   ========================================================= */

.birthday-showcase-wrapper {
    display: flex;
    justify-content: center;
    margin: 20px auto 14px;
    padding: 0 8px;
}

.birthday-showcase {
    position: relative;
    width: 100%;
    max-width: 1180px;
    border-radius: 24px;
    overflow: hidden;
    border: 3px solid #caa548;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.10);
    display: grid;
    grid-template-columns: 105px 1fr;
    background: repeating-linear-gradient( 135deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 10px, rgba(0,0,0,0) 10px, rgba(0,0,0,0) 22px ), linear-gradient( 180deg, #f7f1df 0%, #f1e5c8 72%, #d8b157 100% );
}

/* =========================================
   LADO IZQUIERDO DECORATIVO
   ========================================= */

.birthday-showcase__art {
    position: relative;
    min-height: 100%;
    padding: 10px 8px;
}

/* Globo más uniforme */

/*.birthday-balloon {
    position: absolute;
    top: 14px;
    left: 18px;
    width: 34px;
    height: 46px;
    background: #0b1380;
    border-radius: 50% 50% 45% 45%;
    box-shadow: inset -4px -6px 0 rgba(0,0,0,0.15);
}


    .birthday-balloon::before {
        content: "";
        position: absolute;
        bottom: -6px;
        left: 11px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 6px solid #0b1380;
    }


    .birthday-balloon::after {
        content: "";
        position: absolute;
        left: 16px;
        bottom: -24px;
        width: 2px;
        height: 20px;
        background: linear-gradient(#d0aa4b,#caa548);
    }

.birthday-showcase__art::before {
    content: "";
    position: absolute;
    width: 6px;
    height: 6px;
    left: 56px;
    top: 18px;
    border-radius: 50%;
    background: #0b1380;
}
*/
.birthday-showcase__art::after {
    content: "";
    position: absolute;
    width: 5px;
    height: 5px;
    left: 10px;
    bottom: 34px;
    border-radius: 50%;
    background: #0b1380;
}

/* Pastel */
.birthday-cake {
    position: absolute;
    left: 22px;
    bottom: 28px;
    width: 44px;
    height: 34px;
    background: #0b1380;
    border-radius: 0 0 6px 6px;
    box-shadow: inset 0 6px 0 #caa548;
}

    .birthday-cake::before {
        content: "";
        position: absolute;
        top: -6px;
        left: 0;
        width: 100%;
        height: 8px;
        background: radial-gradient(circle at 5px 8px, #caa548 4px, transparent 5px) repeat-x;
        background-size: 10px 8px;
    }

    .birthday-cake::after {
        content: "";
        position: absolute;
        left: 12px;
        bottom: -6px;
        width: 20px;
        height: 5px;
        border-radius: 0 0 5px 5px;
        background: #caa548;
    }

    .birthday-cake .candle {
        position: absolute;
        top: -14px;
        width: 2px;
        height: 12px;
        background: #0b1380;
    }

        .birthday-cake .candle::before {
            content: "";
            position: absolute;
            top: -4px;
            left: -1px;
            width: 4px;
            height: 5px;
            background: #caa548;
            border-radius: 50%;
        }

        .birthday-cake .candle:nth-child(1) {
            left: 4px;
        }

        .birthday-cake .candle:nth-child(2) {
            left: 12px;
        }

        .birthday-cake .candle:nth-child(3) {
            left: 20px;
        }

        .birthday-cake .candle:nth-child(4) {
            left: 28px;
        }

        .birthday-cake .candle:nth-child(5) {
            left: 36px;
        }

/* Regalo */
.birthday-gift {
    position: absolute;
    left: 70px;
    bottom: 28px;
    width: 18px;
    height: 18px;
    background: #0b1380;
    border: 2px solid #caa548;
    box-sizing: border-box;
}

    .birthday-gift::before,
    .birthday-gift::after {
        content: "";
        position: absolute;
        background: #caa548;
    }

    .birthday-gift::before {
        width: 2px;
        height: 100%;
        left: 50%;
        top: 0;
        transform: translateX(-50%);
    }

    .birthday-gift::after {
        height: 2px;
        width: 100%;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
    }

/* =========================================
   CONTENIDO
   ========================================= */

.birthday-showcase__content {
    padding: 10px 14px 12px 4px;
    display: flex;
    flex-direction: column;
}

.birthday-showcase__top {
    text-align: center;
    margin-bottom: 8px;
}

.birthday-showcase__title {
    margin: 0;
    color: #0b1380;
    font-family: Georgia, serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.05;
}

.birthday-showcase__month {
    margin-top: 1px;
    color: #0b1380;
    font-size: .78rem;
    font-weight: 700;
    text-transform: capitalize;
}

/* 4 POR FILA */
.birthday-showcase__grid--four {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

/* TARJETA MÁS CHICA */
.birthday-person-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(244, 247, 252, 0.88);
    border: 1px solid rgba(11, 19, 128, 0.14);
    border-radius: 12px;
    padding: 7px 8px;
    min-height: 64px;
    transition: transform .14s ease, box-shadow .14s ease;
}

    .birthday-person-card:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 10px rgba(11, 19, 128, 0.08);
    }

.birthday-person-card__day {
    min-width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #caa548;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Georgia, serif;
    font-size: .82rem;
    font-weight: 700;
    margin-top: 2px;
}

.birthday-person-card__info {
    flex: 1;
    min-width: 0;
}

.birthday-person-card__date {
    color: #0b1380;
    font-size: .58rem;
    font-weight: 700;
    margin-bottom: 2px;
    text-transform: capitalize;
    line-height: 1.05;
}

.birthday-person-card__name {
    color: #13204f;
    font-size: .74rem;
    font-weight: 700;
    line-height: 1.08;
    word-break: break-word;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.birthday-person-card__role {
    color: #6a5a33;
    font-size: .58rem;
    font-weight: 600;
    margin-top: 2px;
    line-height: 1.05;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.birthday-person-card__badge {
    margin-left: auto;
    align-self: flex-start;
}

    .birthday-person-card__badge span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: .12rem .35rem;
        border-radius: 999px;
        font-size: .50rem;
        font-weight: 700;
        white-space: nowrap;
    }

/* ESTADOS */
.birthday-person--today {
    background: rgba(255, 244, 204, 0.92);
    border-color: #d0aa4b;
}

    .birthday-person--today .birthday-person-card__day {
        background: #d0aa4b;
        color: #1c2347;
    }

    .birthday-person--today .birthday-person-card__badge span {
        background: #d0aa4b;
        color: #1c2347;
    }

.birthday-person--past {
    background: rgba(239, 242, 247, 0.92);
    border-color: rgba(120, 130, 150, 0.20);
}

    .birthday-person--past .birthday-person-card__day {
        background: #aab4c2;
        color: #fff;
    }

    .birthday-person--past .birthday-person-card__badge span {
        background: #dde3ea;
        color: #5a6574;
    }

.birthday-person--upcoming {
    background: rgba(232, 242, 255, 0.92);
    border-color: rgba(55, 110, 185, 0.16);
}

    .birthday-person--upcoming .birthday-person-card__day {
        background: #0b1380;
        color: #fff;
    }

    .birthday-person--upcoming .birthday-person-card__badge span {
        background: #d8e8fb;
        color: #0b4a8b;
    }

/* MENSAJE FINAL */
.birthday-showcase__footer {
    text-align: center;
    color: #0b1380;
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: 700;
    margin-top: 2px;
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 1199.98px) {
    .birthday-showcase__grid--four {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .birthday-showcase {
        grid-template-columns: 1fr;
    }

    .birthday-showcase__art {
        min-height: 90px;
    }

    .birthday-showcase__content {
        padding: 10px 12px 12px;
    }

    .birthday-showcase__grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .birthday-showcase__grid--four {
        grid-template-columns: 1fr;
    }

    .birthday-showcase__title {
        font-size: .98rem;
    }

    .birthday-showcase__footer {
        font-size: .9rem;
    }
}

.birthday-person-card {
    position: relative;
    overflow: visible;
}

.birthday-person-card--celebrating {
    animation: birthdayPulse 1.6s ease-in-out infinite;
    border-color: #d4ad45 !important;
    box-shadow: 0 0 0 4px rgba(212, 173, 69, 0.18), 0 12px 26px rgba(33, 22, 111, 0.14);
}

@keyframes birthdayPulse {
    0% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-4px) scale(1.02);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

.birthday-popup {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 14px);
    transform: translateX(-50%) translateY(8px);
    width: 280px;
    background: #ffffff;
    border: 1px solid rgba(33, 22, 111, 0.16);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 16px 34px rgba(33, 22, 111, 0.18);
    color: #21166f;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 50;
    transition: all 0.2s ease;
}

    .birthday-popup::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -8px;
        transform: translateX(-50%) rotate(45deg);
        width: 16px;
        height: 16px;
        background: #ffffff;
        border-right: 1px solid rgba(33, 22, 111, 0.16);
        border-bottom: 1px solid rgba(33, 22, 111, 0.16);
    }

    .birthday-popup strong {
        display: block;
        font-size: 0.9rem;
        font-weight: 800;
        margin-bottom: 6px;
        color: #21166f;
    }

    .birthday-popup span {
        display: block;
        font-size: 0.78rem;
        line-height: 1.35;
        color: #4b5563;
    }

.birthday-person-card--celebrating:hover .birthday-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}