/* ================================================================
   BLITZ HOVER CARDS v1.2 — CSS
   Estado normal : imagen limpia + título pegado abajo
   Hover         : zoom suave + gradiente se expande +
                   título sube + subtítulo + líneas acento + shine
   ================================================================ */

/* ---- Variables globales (sobreescribibles por color picker del plugin) ---- */
:root {
    --bhc-accent:      #f4e225;
    --bhc-accent-rgb:  244, 226, 37;
    --bhc-ease:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --bhc-font:        'Manrope', sans-serif;
}

/* ================================================================
   CARD WRAPPER
   ================================================================ */
.bhc-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: var(--bhc-aspect, 1 / 1);
    cursor: pointer;
    text-decoration: none !important;
    transition:
        box-shadow 0.55s var(--bhc-ease),
        transform  0.55s var(--bhc-ease);
    will-change: transform;
    -webkit-font-smoothing: antialiased;
}

.bhc-card:hover {
    box-shadow:
        0 2px  4px  rgba(0,0,0,0.04),
        0 8px  24px rgba(0,0,0,0.12),
        0 24px 56px rgba(0,0,0,0.20);
    transform: translateY(-5px);
}

/* ================================================================
   IMAGEN
   ================================================================ */
.bhc-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.bhc-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.0);
    filter: brightness(1.0);
    transition:
        transform 0.70s var(--bhc-ease),
        filter    0.70s ease;
    will-change: transform, filter;
}

.bhc-card:hover .bhc-image-wrap img {
    transform: scale(1.06);
    filter: brightness(0.80);
}

/* ================================================================
   GRADIENTE BASE — siempre visible, da contexto al título
   ================================================================ */
.bhc-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.72)  0%,
        rgba(0, 0, 0, 0.28) 38%,
        transparent         65%
    );
    transition: opacity 0.55s ease;
    z-index: 1;
    pointer-events: none;
}

.bhc-card:hover .bhc-gradient {
    opacity: 0;
}

/* Gradiente hover — cubre más zona */
.bhc-gradient-hover {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.88)  0%,
        rgba(0, 0, 0, 0.50) 50%,
        rgba(0, 0, 0, 0.10) 100%
    );
    opacity: 0;
    transition: opacity 0.55s ease;
    z-index: 1;
    pointer-events: none;
}

.bhc-card:hover .bhc-gradient-hover {
    opacity: 1;
}

/* ================================================================
   SHINE — destello diagonal con tono acento al pasar
   ================================================================ */
.bhc-shine {
    position: absolute;
    top: -10%;
    left: -100%;
    width: 55%;
    height: 120%;
    background: linear-gradient(
        108deg,
        transparent                        20%,
        rgba(var(--bhc-accent-rgb), 0.12)  50%,
        transparent                        80%
    );
    transform: skewX(-12deg);
    transition: left 0.75s var(--bhc-ease);
    pointer-events: none;
    z-index: 3;
}

.bhc-card:hover .bhc-shine {
    left: 150%;
}

/* ================================================================
   CONTENIDO — footer siempre visible
   ================================================================ */
.bhc-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: 20px 18px 18px;
    display: flex;
    flex-direction: column;
    gap: 0;
    pointer-events: none;
}

/* ================================================================
   LÍNEA ACENTO — oculta, crece antes del título en hover
   ================================================================ */
.bhc-accent-line {
    display: block;
    height: 2px;
    width: 0;
    background: var(--bhc-accent);
    margin-bottom: 0;
    transition:
        width         0.45s var(--bhc-ease) 0.05s,
        margin-bottom 0.45s var(--bhc-ease) 0.05s;
}

.bhc-card:hover .bhc-accent-line {
    width: 32px;
    margin-bottom: 10px;
}

/* ================================================================
   TÍTULO — siempre visible, sube ligeramente en hover
   ================================================================ */
.bhc-title {
    font-family: var(--bhc-font);
    font-size: 15px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    line-height: 1.25;
    display: block;
    transform: translateY(0px);
    transition:
        transform      0.50s var(--bhc-ease),
        letter-spacing 0.50s ease;
    margin-bottom: 0;
    text-shadow: 0 1px 8px rgba(0,0,0,0.5);
}

.bhc-card:hover .bhc-title {
    transform: translateY(-4px);
    letter-spacing: 0.13em;
}

/* ================================================================
   SUBTÍTULO — oculto, aparece deslizándose desde abajo
   ================================================================ */
.bhc-subtitle {
    font-family: var(--bhc-font);
    font-size: 10px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.0);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: block;
    height: 0;
    overflow: hidden;
    transform: translateY(6px);
    transition:
        color      0.40s ease            0.18s,
        height     0.40s var(--bhc-ease) 0.10s,
        transform  0.40s var(--bhc-ease) 0.10s,
        margin-top 0.40s var(--bhc-ease) 0.10s;
    margin-top: 0;
}

.bhc-card:hover .bhc-subtitle {
    color: rgba(255, 255, 255, 0.55);
    height: 16px;
    transform: translateY(0);
    margin-top: 5px;
}

/* ================================================================
   LÍNEA INFERIOR ACENTO — crece desde la izquierda
   ================================================================ */
.bhc-bottom-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--bhc-accent);
    transition: width 0.60s var(--bhc-ease) 0.08s;
    z-index: 4;
}

.bhc-card:hover .bhc-bottom-line {
    width: 100%;
}

/* ================================================================
   BORDES LATERALES — trazo perimetral que enmarca la card
   ================================================================ */
.bhc-border-left,
.bhc-border-right {
    position: absolute;
    width: 1px;
    background: rgba(var(--bhc-accent-rgb), 0.40);
    z-index: 4;
    transition: height 0.45s var(--bhc-ease);
}

.bhc-border-left {
    left: 0;
    bottom: 3px;
    height: 0;
    transition-delay: 0.22s;
}

.bhc-border-right {
    right: 0;
    top: 0;
    height: 0;
    transition-delay: 0.32s;
}

.bhc-card:hover .bhc-border-left  { height: calc(100% - 3px); }
.bhc-card:hover .bhc-border-right { height: 100%; }

.bhc-border-top {
    position: absolute;
    top: 0;
    right: 0;
    height: 1px;
    width: 0;
    background: rgba(var(--bhc-accent-rgb), 0.40);
    z-index: 4;
    transition: width 0.45s var(--bhc-ease) 0.44s;
}

.bhc-card:hover .bhc-border-top { width: 100%; }

/* ================================================================
   TOUCH / MÓVIL
   ================================================================ */
@media (hover: none) {
    .bhc-card .bhc-gradient-hover   { opacity: 0.75; }
    .bhc-card .bhc-gradient         { opacity: 0; }
    .bhc-card .bhc-title            { transform: translateY(-4px); letter-spacing: 0.13em; }
    .bhc-card .bhc-accent-line      { width: 32px; margin-bottom: 10px; }
    .bhc-card .bhc-subtitle         { color: rgba(255,255,255,0.55); height: 16px; transform: translateY(0); margin-top: 5px; }
    .bhc-card .bhc-bottom-line      { width: 100%; }
    .bhc-card .bhc-border-left      { height: calc(100% - 3px); }
    .bhc-card .bhc-border-right     { height: 100%; }
    .bhc-card .bhc-border-top       { width: 100%; }
    .bhc-card:hover                 { transform: none; box-shadow: none; }
}

@media (max-width: 768px) {
    .bhc-title    { font-size: 13px; }
    .bhc-subtitle { font-size: 9px; }
    .bhc-content  { padding: 16px 14px 14px; }
}
