* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #0d0d0d;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    font-family: 'Poppins', Arial, sans-serif;
}

.tarjeta-contenedor {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 9 / 16;
    background-image:
        linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.1) 32%, rgba(0, 0, 0, 0) 55%),
        url('fondo.jpg');
    background-size: cover;
    background-position: center;
    overflow: hidden;
    animation: aparecer 1s ease-out;
}

/* Un solo destello, una vez al cargar, no en bucle */
.tarjeta-contenedor::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: destello 1.4s ease-out 0.6s 1 forwards;
    pointer-events: none;
    z-index: 1;
}

.contenedor-botones {
    position: absolute;
    bottom: 8%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 0 12%;
    z-index: 2;
}

.btn {
    width: 100%;
    height: 54px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: white;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 12px;
    background: rgba(20, 20, 20, 0.55);
    backdrop-filter: blur(6px);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45);
    cursor: pointer;
    opacity: 0;
    transform: translateY(14px);
    animation: subir 0.6s ease-out forwards;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    flex-shrink: 0;
}

.btn:nth-child(1) { animation-delay: 0.9s; }
.btn:nth-child(2) { animation-delay: 1.05s; }
.btn:nth-child(3) { animation-delay: 1.2s; }

.btn:hover {
    border-color: currentColor;
    background: rgba(20, 20, 20, 0.75);
    transform: translateY(-2px);
}

.btn:active {
    transform: scale(0.97);
}

.btn-whatsapp { color: #25d366; }
.btn-facebook { color: #4d9dff; }
.btn-portafolio { color: #e4c04a; }

@keyframes aparecer {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes subir {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes destello {
    from { left: -150%; }
    to { left: 150%; }
}
