/*
 * procedimientos-cards.css
 * Cards de procedimientos estilo Redox — plasticalomas.com
 * Dr. Ilich Ríos · Cirugía Plástica Lomas
 */

/* ─── SECCIÓN CONTENEDOR ───────────────────────────────── */
.plx-procs {
    padding: var(--space-20) var(--space-12);
    background: var(--color-cream);
}

.plx-procs__header {
    margin-bottom: var(--space-10);
}

.plx-procs__label {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-gold);
    display: block;
    margin-bottom: 14px;
}

.plx-procs__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 38px;
    line-height: 1.1;
    color: var(--color-heading);
}

.plx-procs__title em {
    font-style: italic;
}

/* ─── GRID ─────────────────────────────────────────────── */
.plx-procs__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

/* ─── CARD BASE ────────────────────────────────────────── */
.plx-proc-card {
    position: relative;
    overflow: hidden;
    background: var(--color-heading);
    display: block;
    text-decoration: none;
}

/* Proporciones */
.plx-proc-card--tall { aspect-ratio: 3 / 4; }
.plx-proc-card--wide { aspect-ratio: 3 / 4; }

/* ─── IMAGEN ───────────────────────────────────────────── */
.plx-proc-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%) brightness(0.75);
    transform: scale(1.04);
    transition:
        transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
        filter    0.75s ease;
}

.plx-proc-card__img-placeholder {
    position: absolute;
    inset: 0;
    background: #1a2a36;
}

.plx-proc-card:hover .plx-proc-card__img {
    transform: scale(1.1);
    filter: grayscale(80%) brightness(0.62);
}

/* ─── OVERLAY GRADIENTE ────────────────────────────────── */
.plx-proc-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(14, 30, 42, 0.92) 0%,
        rgba(14, 30, 42, 0.40) 45%,
        rgba(14, 30, 42, 0.10) 100%
    );
    transition: opacity 0.4s ease;
    z-index: 1;
}

.plx-proc-card:hover .plx-proc-card__overlay {
    opacity: 0.85;
}

/* ─── LÍNEA DORADA LATERAL ─────────────────────────────── */
.plx-proc-card__line {
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--color-gold);
    z-index: 3;
    transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.plx-proc-card:hover .plx-proc-card__line {
    height: 100%;
}

/* ─── FLECHA DIAGONAL ──────────────────────────────────── */
.plx-proc-card__arrow {
    position: absolute;
    top: 22px;
    right: 22px;
    width: 38px;
    height: 38px;
    border: 0.5px solid rgba(250, 248, 244, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: var(--color-cream);
    opacity: 0;
    transform: translateY(-8px) rotate(-45deg);
    transition:
        opacity   0.35s ease,
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.plx-proc-card__arrow svg {
    width: 14px;
    height: 14px;
}

.plx-proc-card:hover .plx-proc-card__arrow {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
}

/* ─── CONTENIDO ────────────────────────────────────────── */
.plx-proc-card__body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 26px 28px 30px;
    z-index: 2;
}



/* NÚMERO */
.plx-proc-card__num {
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(250, 248, 244, 0.32);
    display: block;
    margin-bottom: 10px;
}

/* TÍTULO */
.plx-proc-card__title {
    font-family: var(--font-serif);
    font-weight: 300;
    font-size: 26px;
    line-height: 1.1;
    color: var(--color-cream);
    margin: 0;
}



/* ─── LISTA DE PROCEDIMIENTOS ──────────────────────────── */
/* Cards verticales — oculta hasta hover */
.plx-proc-card__procs {
    list-style: none;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 0;
    transition:
        max-height 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        opacity    0.35s ease,
        margin-top 0.35s ease;
}

.plx-proc-card:hover .plx-proc-card__procs {
    max-height: 180px;
    opacity: 1;
    margin-top: 14px;
}

/* Cards wide — siempre visible, layout horizontal */
.plx-proc-card__procs--wide {
    display: flex;
    flex-direction: row;
    gap: 24px;
    max-height: none;
    opacity: 1;
    margin: 0;
    overflow: visible;
}

.plx-proc-card:hover .plx-proc-card__procs--wide {
    max-height: none;
    margin: 0;
}

/* Item de procedimiento */
.plx-proc-card__proc {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    letter-spacing: 0.04em;
    color: rgba(250, 248, 244, 0.55);
    padding: 5px 0;
    border-top: 0.5px solid rgba(214, 211, 203, 0.15);
}

.plx-proc-card__proc:first-child {
    border-top: none;
    padding-top: 0;
}

/* Items wide — sin borde */
.plx-proc-card__procs--wide .plx-proc-card__proc {
    border-top: none;
    padding: 0;
}

.plx-proc-card__proc-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--color-gold);
    flex-shrink: 0;
}

/* ─── FOOTER / VER TODOS ───────────────────────────────── */
.plx-procs__footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 3px;
    padding-top: 20px;
    border-top: 0.5px solid var(--color-border);
}

.plx-procs__ver-todos {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-gold);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.2s ease;
}

.plx-procs__ver-todos:hover {
    gap: 14px;
}

/* ─── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 768px) {
    .plx-procs {
        padding: var(--space-12) var(--space-6);
    }

    .plx-procs__title {
        font-size: 30px;
    }

    .plx-procs__grid {
        grid-template-columns: 1fr;
    }

    .plx-proc-card--tall {
        aspect-ratio: 4 / 3;
    }

    .plx-proc-card--wide {
        aspect-ratio: 4 / 3;
    }

    /* En mobile siempre mostrar procedimientos */
    .plx-proc-card__procs {
        max-height: 180px;
        opacity: 1;
        margin-top: 12px;
    }


}

@media (max-width: 480px) {
    .plx-proc-card--tall,
    .plx-proc-card--wide { aspect-ratio: 1 / 1; }
}
