/* HOJA DE ESTILOS GENERAL - TORRENT PHARMA */

/* VARIABLES DE DISEÑO (Colores, Bordes, Sombras) */
:root {
    --color-primary: #292662;
    --color-white: #FFFFFF;
    --color-white-light: #F8F8F8;
    --color-white-transparency: #FFFFFFCC;
    --color-lila: #9283BE;
    --color-lila-light: #C7B2D6;
    --color-green-light: #B3D4A1;
    --color-blue-light: #E1E8F6;
    --color-linen: #ECE8DC;
    --color-black: #000000;
    --color-gray-light: #CDCDCD;
    --color-gray-medium: #949494;
    --color-text-dark: #333333;

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --transition-smooth: all 0.3s ease-in-out;
    --shadow-subtle: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* RESET GENERAL & TIPOGRAFÍA */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--color-white);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

p{
    margin:10px 0;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.container {
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding-top: 50px;
    padding-bottom: 50px;
}

/* LAYOUT MOBILE FIRST */

/* --- HEADER --- */

.header {
    position: sticky;
    top: 0;
    background-color: var(--color-white);
    z-index: 1000;
    box-shadow: var(--shadow-subtle);
    padding-bottom: 10px;
}

.header__logo {
    width: 160px;
}

.header__pleca {
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 24px;
    /* Unificamos la altura estándar */
    display: block;
    pointer-events: none;
    overflow: hidden;
}

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

.pleca-mobile {
    display: block;
}

.pleca-desktop {
    display: none;
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

/* Menú colapsado para móvil */
.header__nav {
    position: fixed;
    top: 65px;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--color-white-transparency);
    transition: var(--transition-smooth);
    padding: 40px 20px;
    backdrop-filter: blur(6px);
}

.header__nav--open {
    left: 0;
}

.header__menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

.header__link {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* Botón de Hamburguesa Animado */
.header__burger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    z-index: 1001;
}

.header__burger-line {
    width: 100%;
    height: 3px;
    background-color: var(--color-primary);
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* Animación a 'X' */
.header__burger--open .header__burger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.header__burger--open .header__burger-line:nth-child(2) {
    opacity: 0;
}

.header__burger--open .header__burger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* --- HEROS ---*/
/* -----------------------------------------------
   HERO AZUL
   ----------------------------------------------- */
.qs-hero {
    position: relative;
    background-color: var(--color-primary);
    background: url("../images/back-hero.webp") no-repeat bottom;
    overflow: hidden;
    padding: 60px 0 90px;
    max-height: 220px;
    display: flex;
    align-items: center;
    background-size: cover;
}

.qs-hero__container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.qs-hero__title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
    max-width: 600px;
}
/* ----------------------------------------------------------
   HERO — Imagen de fondo fotográfica con título superpuesto
   ---------------------------------------------------------- */

.inv-hero {
    position: relative;
    width: 100%;
    min-height: 280px;
    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);
}


/* --- COMPLEMENTOS Y AJUSTES AL FOOTER --- */

.footer {
    background-color: #16153b;
    background: url('../images/back-torrent.webp') no-repeat bottom center;
    background-size: cover;
    color: var(--color-white);
    padding-top: 60px;
    font-size: 0.9rem;
}

.footer__main-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 60px;
}


.footer__card {
    position: relative;
    margin-top: 20px;
    width: 100%;
    max-width: 515px;
    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);
    padding: 10px;
    margin: 0 auto;
}

.footer__nav {
    padding: 0 10px;
    text-align: center;
}

.footer__company-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    border-left: none;
    padding-left: 0;
}

.footer__pleca {
    position: absolute;
    top: -38px;
    left: 0;
    width: 100%;
    height: 50px;
    display: block;
    pointer-events: none;
    overflow: hidden;
}

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

.footer__rfc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-bottom: 20px;
}

.footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.footer__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer__icon {
    font-size: 1.1rem;
    opacity: 0.9;
}

.footer__alert {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    border-left: none;
    background: none;
    padding: 0;
    margin-top: 20px;
}

.footer__alert a {
    color: var(--color-white);
    text-decoration: underline;
}

.footer__socials {
    display: flex;
    gap: 25px;
    margin-top: 30px;
    justify-content: center;
}

.footer__social-link {
    color: var(--color-white);
    opacity: 0.8;
    transition: var(--transition-smooth);
}

.footer__social-link:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer__divider {
    display: none;
    width: 1px;
    background: rgba(255, 255, 255, 0.3);
    height: 80%;
    justify-self: center;
}


.footer__links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-white);
}

.footer__link:hover {
    color: var(--color-lila-light);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.6);
    padding: 10px;
    background: var(--color-primary);
    align-items: center;
}

.footer__copyright {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer__logo-icon {
    font-size: 1rem;
}

.footer__legal-links {
    display: flex;
    gap: 20px;
}

.footer__legal-links a {
    color: rgba(255, 255, 255, 0.6);
    transition: var(--transition-smooth);
}

.footer__legal-links a:hover {
    color: var(--color-white);
}
.footer__avisoCofepris{
    text-align: center;
    width: 100%;
}


/* --- MEDIA QUERIES (RESPONSIVE TABLET / DESKTOP) --- */

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
    .footer__card {
        padding: 20px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .container {
        max-width: 720px;
        padding-left: 0;
        padding-right: 0;
    }

    .qs-hero {
        padding: 80px 0 110px;
        min-height: 260px;
    }

    .qs-hero__title {
        font-size: 2.8rem;
    }
     .inv-hero {
        min-height: 340px;
    }

    .footer__container {
        max-width: 720px;
        padding-left: 0;
        padding-right: 0;
        margin: 0 auto;
    }

    .footer__main-grid {
        grid-template-columns: 1fr 50px 1fr;
    }

    .footer__divider {
        display: block;
    }

    .footer__nav {
        padding-left: 40px;
        text-align: left;
    }

    .footer__card {
        padding: 30px;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
    }


    .pleca-mobile {
        display: none;
    }

    .pleca-desktop {
        display: block;
    }
}

/* // Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .container {
        max-width: 960px;
    }

    .header__burger {
        display: none;
    }

    .header__nav {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        background: none;
    }

    .header__menu {
        flex-direction: row;
        gap: 30px;
    }

    .header__link {
        font-size: 0.75rem;
        font-weight: 500;
    }

    .header__link:hover {
        color: var(--color-lila);
    }

    .qs-hero {
        padding: 90px 0 120px;
        min-height: 300px;
    }

    .qs-hero__title {
        font-size: 3rem;
    }
     .inv-hero {
        min-height: 400px;
    }

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

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

    .footer__container {
        max-width: 960px;
    }

    .footer__card {
        padding: 30px;
    }

    .footer__bottom {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer__bottom {
        font-size: 0.8rem;
    }
}

/* // X-Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
     .inv-hero {
        min-height: 440px;
    }

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

}

/* // XX-Large devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {}