/* ============================================
   PRICING HERO CARD - Con animación de persiana
   ============================================ */

.pricing-hero-card-section {
    background: linear-gradient(to bottom, #f5f7fa 0%, #e8f4f8 100%);
    padding: 0rem 2rem 2rem;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pricing-hero-card-wrapper {
    max-width: 480px;
    width: 100%;
    position: relative;
}

/* Animación de desenrollado con clip-path */
@keyframes unfoldCard {
    0% {
        clip-path: inset(0 0 100% 0);
    }
    99.9% {
        clip-path: inset(0 0 0 0);
    }
    100% {
        clip-path: none;
    }
}

/* Animación de sombra que aparece AL FINAL */
@keyframes fadeInShadow {
    0% {
        box-shadow: none;
    }
    100% {
        box-shadow:
            0 2px 8px rgba(74, 144, 164, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.06);
    }
}

/* Animación 3D de la imagen */
@keyframes imageRevealFloat {
    0% {
        opacity: 0;
        transform: translateX(5px) perspective(1000px) rotateY(-10deg) rotateX(3deg);
    }
    100% {
        opacity: 1;
        transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
    }
}

/* Animación simple para móvil */
@keyframes imageRevealSimple {
    0% {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.pricing-hero-card {
    background: white;
    border-radius: 0 0 16px 16px;
    border: 1px solid rgba(74, 144, 164, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 2.5rem;
    position: relative;
    clip-path: inset(0 0 100% 0);
    animation:
        unfoldCard 1.2s ease-out 0.3s forwards,
        fadeInShadow 0.1s ease-out 1.5s forwards;
}

/* Grid layout para tagline + imagen */
.hero-card-content {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    gap: 0rem;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.hero-card-tagline {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    line-height: 1.2;
    text-align: left;
    justify-self: left;

}

.tagline-light {
    display: block;
    font-size: 1.55rem;
    font-weight: 600;
    color: #2c3e50;
    text-align: center;
    white-space: nowrap;
}

.tagline-bold {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90a4;
    text-align: center;
    white-space: nowrap;
}
.lg-es .tagline-light {
    font-size: 1.75rem
}
.lg-es .tagline-bold {
    font-size: 1.3rem
}

/* Container de la imagen con animación 3D */
.hero-card-image-container {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    /*box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);*/
    height: 80px;
    width: 100%;

    /* Animación inicial */
    opacity: 0;
    animation: imageRevealFloat 1.4s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    animation-delay: 0.2s;
}

/* Placeholder con fondo gradiente */
.hero-card-image-placeholder {
    background: linear-gradient(135deg, #f0f4f7 0%, #d6e7f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    overflow: hidden;
}

/* Imagen */
.hero-card-image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* CLAVE: hace zoom/crop para llenar */
    object-position: center; /* Centrar la imagen al hacer crop */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    mask-image: radial-gradient(
                ellipse 90% 90% at center,
                black 50%,
                transparent 100%
            );
}

.hero-card-subtitle {
    grid-column: 1 / 3;
    grid-row: 2;
    font-size: 0.95rem;
    color: #64748b;
    margin: 0.75rem 0 0 0;
    font-weight: 400;
    text-align: center;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .pricing-hero-card-section {
        padding: 0rem 1.5rem 1.5rem;
        min-height: 180px;
    }

    .pricing-hero-card {
        padding: 1.75rem 1.5rem;
    }
    .lg-es .hero-card-subtitle {
        font-size: 0.89rem;
    }
}/*
    .hero-card-content {
        gap: 0 1rem;
    }

    .hero-card-image-container {
        height: 70px;
        width: 100%;
        /*box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);*/
/*    }

    .hero-card-image-placeholder img {
        width: 100%;
    }

    .tagline-light,
    .tagline-bold {
        font-size: 1.3rem;
    }

}
*/

@media (max-width: 480px) {
    .pricing-hero-card-section {
        padding: 0 1rem 1.5rem;
    }

    /* Layout móvil: todo en columna */
    .hero-card-content {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 1rem 0;
        text-align: center;
    }

    .hero-card-tagline {
        grid-column: 1;
        grid-row: 1;
        text-align: center;
        justify-self: center;
    }

    .hero-card-image-container {
        grid-column: 1;
        grid-row: 2;
        margin: 0 auto;
        height: 75px;
        width: 100%;
        max-width: 185px;

        /* Animación más simple en móvil */
        animation: imageRevealSimple 0.5s ease-out forwards;
        animation-delay: 0.1s;
    }

    .hero-card-image-placeholder img {
        width: 100%;
    }

    .hero-card-subtitle {
        grid-column: 1;
        grid-row: 3;
        max-width: 265px;
        margin-top: 0px;
    }
    .lg-es .hero-card-subtitle{
        max-width: 230px;
        font-size: 0.9rem;
    }
}

/* ============================================
   FALLBACK para usuarios que prefieren
   reducir movimiento (accesibilidad)
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    .pricing-hero-card {
        animation: none;
        clip-path: none;
        box-shadow:
            0 2px 8px rgba(74, 144, 164, 0.08),
            0 1px 3px rgba(0, 0, 0, 0.06);
    }

    .hero-card-image-container {
        animation: imageRevealSimple 0.6s ease-out forwards;
        animation-delay: 0.3s;
    }
}