/* ==========================================================
PRODUCTOS.CSS — Estilos exclusivos para Nuestros Productos
Torrent Pharma México
Depende de: general.css + investigacion.css (hero reutilizado)
   ========================================================== */
/* ----------------------------------------------------------
HERO — Imagen de fondo fotográfica con título superpuesto
   ---------------------------------------------------------- */

.inv-hero {
    position: relative;
    width: 100%;
    min-height: 280px;
    background-image: url('../images/nuestros-productos.webp');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

/* Overlay oscuro semitransparente para legibilidad del texto */
.inv-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(41, 38, 98, 0.15) 0%,
            rgba(41, 38, 98, 0.55) 100%);
    pointer-events: none;
}

.inv-hero__container {
    position: relative;
    z-index: 1;
    padding-bottom: 32px;
}

.inv-hero__title {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--color-white);
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

/* ----------------------------------------------------------
   ARTICULO DE BRILLANTEMENTE
   ---------------------------------------------------------- */
.prod-brillantemente{
    margin: 30px auto 0;
    width: 90%;
    max-width: 800px;
    background: var(--color-blue-light);
    padding: 10px;
    border-radius: var(--radius-lg);
    font-size: .9rem;
}
.prod-brillantemente p {
    margin:10px 0;
}
.prod-brillantemente p a {
    color: var(--color-lila);
    text-decoration: underline;
}
.prod-brillantemente__boxBtnBrillante{
    width: fit-content;
    margin: 20px auto 0;
}

/* ----------------------------------------------------------
   SELECTOR DE CATEGORÍA (Psiquiatría / Neurología)
   ---------------------------------------------------------- */

.prod-selector {
    background-color: var(--color-white);
    padding: 36px 0 32px;
}

.prod-selector__grid {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.prod-selector__tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: var(--transition-smooth);
}

/* Contenedor cuadrado de la imagen con esquinas redondeadas */
.prod-selector__img-wrap {
    width: 130px;
    height: 130px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.prod-selector__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Label debajo de la imagen */
.prod-selector__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    transition: var(--transition-smooth);
    width: -webkit-fill-available;
    padding: 10px 6px;
    border: 1px solid var(--color-gray-light);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    position: relative;
}

/* Estado activo: borde morado en la imagen */
/* .prod-selector__tab--active .prod-selector__img-wrap {
    border-color: var(--color-lila);
    box-shadow: 0 0 0 2px var(--color-lila-light);
} */

.prod-selector__tab--active .prod-selector__label {
    color: var(--color-white);
    background: #111424;
    background: -webkit-linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    background: -moz-linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    background: linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#111424", endColorstr="#464CA0", GradientType=0);
}

.prod-selector__tab:hover .prod-selector__img-wrap {
    border-color: var(--color-lila-light);
}

.selector__pleca {
    position: absolute;
    top: -27px;
    left: 0;
    width: 100%;
    height: 35px;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

.selector__pleca svg {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
}

/* ----------------------------------------------------------
   CONTENEDOR GENERAL DE PRODUCTOS
   ---------------------------------------------------------- */

.prod-content {
    background-color: var(--color-blue-light);
}


/* ----------------------------------------------------------
   CATEGORÍA — Banner superior + cuerpo
   ---------------------------------------------------------- */

.prod-category {
    display: block;
}

.prod-category--hidden {
    display: none;
}

/* Banner de categoría: fondo oscuro con título y forma decorativa */
.prod-category__banner {
    position: relative;
    background-color: var(--color-primary);
    padding: 20px 0;
    overflow: hidden;
}

.prod-category__banner-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-white);
    position: relative;
    z-index: 1;
}

/* Forma decorativa redondeada a la derecha del banner */
.prod-category__banner-deco {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: 100px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* Cuerpo de la categoría */
.prod-category__body {
    padding: 40px 0 50px;
}


/* ----------------------------------------------------------
   GRUPO DE PRODUCTOS (sub-sección: Depresión, Insomnio…)
   ---------------------------------------------------------- */

.prod-group {
    margin-bottom: 36px;
}

.prod-group:last-child {
    margin-bottom: 0;
}

.prod-group__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 14px;
}


/* ----------------------------------------------------------
   TABLA DE PRODUCTOS
   ---------------------------------------------------------- */

.prod-table {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-subtle);
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

/* Cabecera de la tabla */
.prod-table__header {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    padding: 12px 20px;
    gap: 12px;
    background: #111424;
background: -webkit-linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
background: -moz-linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
background: linear-gradient(306deg, rgba(17, 20, 36, 1) 0%, rgba(70, 76, 160, 1) 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#111424", endColorstr="#464CA0", GradientType=0);
}

.prod-table__header span {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: none;
}

/* Filas de productos */
.prod-table__body {
    display: flex;
    flex-direction: column;
}

.prod-table__row {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--color-lila-light);
    transition: background-color 0.2s ease;
}

/* .prod-table__row:last-child {
    border-bottom: none;
} */

.prod-table__row:hover {
    background-color: var(--color-white-light);
}

/* Logo de la marca */
.prod-table__logo {
    max-height: 42px;
    max-width: 120px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Principio activo */
.prod-table__col-active {
    font-size: 0.88rem;
    color: var(--color-text-dark);
}

/* Columna de acción (alineada a la derecha) */
.prod-table__col-action {
    display: flex;
    justify-content: flex-end;
    min-width: 90px;
}

/* Botón Comprar */
.prod-btn {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 18px;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.prod-btn:hover {
    background-color: var(--color-lila);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(146, 131, 190, 0.4);
}


/* ----------------------------------------------------------
   RESPONSIVE — TABLET (768px)
   ---------------------------------------------------------- */

@media (min-width: 768px) {
    .inv-hero {
        min-height: 340px;
    }

    .inv-hero__title {
        font-size: 2rem;
    }

    .prod-selector__img-wrap {
        width: 160px;
        height: 160px;
    }

    .prod-selector__label {
        font-size: 1rem;
    }

    .prod-category__banner-title {
        font-size: 1.75rem;
    }

    .prod-group__title {
        font-size: 1.25rem;
    }

    .prod-table__header {
        padding: 14px 28px;
    }

    .prod-table__row {
        padding: 16px 28px;
    }

    .prod-table__logo {
        max-height: 48px;
        max-width: 140px;
    }

    .prod-table__col-active {
        font-size: 0.92rem;
    }

    .prod-btn {
        font-size: 0.82rem;
        padding: 9px 22px;
    }
    .prod-brillantemente{
    padding: 30px;
    font-size: 1rem;
}
}


/* ----------------------------------------------------------
   RESPONSIVE — DESKTOP (992px)
   ---------------------------------------------------------- */

@media (min-width: 992px) {
    .inv-hero {
        min-height: 400px;
    }

    .inv-hero__title {
        font-size: 2.4rem;
    }

    .inv-hero__container {
        padding-bottom: 44px;
    }

    .prod-selector {
        padding: 44px 0 40px;
    }

    .prod-selector__grid {
        gap: 24px;
    }

    .prod-selector__img-wrap {
        width: 180px;
        height: 180px;
    }

    .prod-category__banner {
        padding: 22px 0;
    }

    .prod-category__banner-title {
        font-size: 2rem;
    }

    .prod-category__banner-deco {
        width: 260px;
        height: 140px;
        right: -60px;
    }

    .prod-category__body {
        padding: 50px 0 60px;
    }

    .prod-group {
        margin-bottom: 44px;
    }

    .prod-group__title {
        font-size: 1.35rem;
        margin-bottom: 18px;
        width: 100%;
        max-width: 800px;
        margin: 0 auto 30px;
    }

    .prod-table__header {
        grid-template-columns: 180px 1fr 120px;
        padding: 14px 32px;
    }

    .prod-table__row {
        grid-template-columns: 180px 1fr 120px;
        padding: 18px 32px;
    }

    .prod-table__logo {
        max-height: 52px;
        max-width: 160px;
    }

    .prod-table__col-active {
        font-size: 0.95rem;
    }

    .prod-btn {
        font-size: 0.85rem;
        padding: 10px 26px;
    }
}


/* ----------------------------------------------------------
   RESPONSIVE — LARGE DESKTOP (1200px)
   ---------------------------------------------------------- */

@media (min-width: 1200px) {
    .inv-hero {
        min-height: 440px;
    }

    .inv-hero__title {
        font-size: 2.6rem;
    }

    .prod-table__header {
        grid-template-columns: 220px 1fr 140px;
        padding: 16px 36px;
    }

    .prod-table__row {
        grid-template-columns: 220px 1fr 140px;
        padding: 20px 36px;
    }
}