﻿* {
    box-sizing: border-box;
}

.sc-cards-container {
    display: flex;
    gap: 10px;
    width: 100%;
}

.sc-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: scale(1);
}

    /* Efecto expandir/contraer */
    .sc-card:hover {
        flex: 2.5;
        transform: scale(1.02);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

    .sc-card:not(:hover) {
        flex: 0.8;
    }

    /* Overlay */
    .sc-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient( to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.8) 100% );
        transition: opacity 0.3s ease;
    }

    .sc-card:hover::before {
        opacity: 0.6;
    }

/* Contenido */
.sc-card-content {
    position: absolute;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 30px 25px;
    color: #fff;
    z-index: 2;
    transition: all 0.4s ease;
}

.sc-card-date {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.4s ease;
}

.sc-card-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}

/* Tamaños cuando NO hay hover */
.sc-card:not(:hover) .sc-card-content {
    padding: 20px 15px;
}

.sc-card:not(:hover) .sc-card-date {
    font-size: 10px;
    padding: 4px 8px;
    margin-bottom: 10px;
}

.sc-card:not(:hover) .sc-card-title {
    font-size: 14px;
    line-height: 1.2;
}

/* Tamaños cuando SÍ hay hover */
.sc-card:hover .sc-card-content {
    padding: 35px 30px;
}

.sc-card:hover .sc-card-date {
    font-size: 13px;
    padding: 8px 14px;
    margin-bottom: 18px;
}

.sc-card:hover .sc-card-title {
    font-size: 20px;
    line-height: 1.4;
}

/* Responsive */
@media (max-width: 768px) {
    .sc-cards-container {
        padding-left: 1rem;
        flex-direction: column;
        height: 40rem !important;
        gap: 15px;
        padding-right: 1rem !important;
    }

    .sc-card {
        height: 200px;
        flex: none !important;
    }

        .sc-card:hover {
            flex: none !important;
            transform: scale(1.05);
        }

    .sc-card-content {
        padding: 20px;
    }

    .sc-card-title {
        font-size: 16px;
    }
}
/* ======= Notificaciones PWA (Android/PC + iOS) ======= */
.android-notification {
    background: linear-gradient(135deg, #2d2d2d, #3a3a3a);
    border-radius: 16px;
    padding: 16px 20px;
    max-width: 360px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 12px;
    /* Fijo y centrado sobre todo */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0); /* centrado horizontal */
    z-index: 9999;
    margin: 0;
    overflow: hidden;
    animation: sky-slideIn .5s ease-out;
}

    .android-notification::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: linear-gradient(45deg, #d1f053, #d1f053);
    }

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #d1f053, #d1f053);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
}

.notification-message {
    color: #b0b0b0;
    font-size: 13px;
    line-height: 1.3;
}

.install-button {
    background: linear-gradient(45deg, #d1f053, #d1f053);
    width: 6rem;
    color: black;
    border: none;
    padding: 8px 16px;
    border-radius: 0px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: .5px;
    transition: transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
}

    .install-button:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(102,126,234,.3);
    }

/* iOS */
.ios-notification {
    background: rgba(28,28,30,.95);
    border-radius: 12px;
    padding: 16px;
    max-width: 360px;
    box-shadow: 0 10px 40px rgba(0,0,0,.5);
    border: .5px solid rgba(255,255,255,.1);
    backdrop-filter: blur(20px);
    /* Fijo y centrado sobre todo */
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translate(-50%, 0); /* centrado horizontal */
    z-index: 9999;
    margin: 0;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
    animation: sky-slideIn .5s ease-out;
}

    .ios-notification:hover {
        background: rgba(35,35,37,.95);
        transform: translate(-50%, 0) scale(1.02);
    }

    .ios-notification::before {
        content: '';
        position: absolute;
        top: 6px;
        left: 50%;
        transform: translateX(-50%);
        width: 36px;
        height: 4px;
        background: rgba(255,255,255,.3);
        border-radius: 2px;
    }

.ios-app-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 12px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    background: linear-gradient(45deg, #007AFF, #5AC8FA);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-notification-text {
    color: #fff;
    font-size: 15px;
    text-align: center;
    line-height: 1.4;
    font-weight: 400;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000; /* por encima de la notificación */
    background: rgba(0,0,0,.8);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: sky-fadeIn .25s ease;
}

.modal-content {
    background: rgba(28,28,30,.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 24px;
    margin: 20px;
    max-width: 340px;
    width: 100%;
    border: .5px solid rgba(255,255,255,.1);
    text-align: center;
    animation: sky-modalIn .3s ease;
}

.modal-title {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
}

.modal-text {
    color: #b0b0b0;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 20px;
}

.modal-steps {
    text-align: left;
    margin-bottom: 20px;
}

.modal-step {
    color: #fff;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    gap: 8px;
}

.step-number {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(45deg, #007AFF, #5AC8FA);
}

.close-modal {
    background: linear-gradient(45deg, #007AFF, #5AC8FA);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 22px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .close-modal:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0,122,255,.3);
    }


.toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.35);
    background: rgba(255,255,255,.10);
    color: #fff; /* blanco puro */
    font-size: 20px; /* más grande */
    line-height: 34px; /* centrado vertical */
    text-align: center;
    cursor: pointer;
    transition: background .2s, border-color .2s, transform .1s, opacity .2s;
}

    .toast-close:hover {
        background: rgba(255,255,255,.18);
        border-color: rgba(255,255,255,.45);
    }

    .toast-close:active {
        transform: scale(.96);
    }
/* Animaciones — mantenemos el translateX para no perder el centrado */
@keyframes sky-slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -12px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@keyframes sky-fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes sky-modalIn {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Responsivo */
@media (max-width: 768px) {
    .android-notification,
    .ios-notification {
        top: 60px;
        max-width: 90%;
        width: 100%;
    }
}

@media (max-width: 400px) {
    .modal-content {
        margin: 12px;
    }
}

@media (max-width: 420px) {
    .toast-close {
        width: 40px;
        height: 40px;
        font-size: 22px;
        line-height: 38px;
    }
}

