/* =========================================================
   BIO FARMA | ESTILO PRINCIPAL
   Diseño premium, moderno, responsive y animado
========================================================= */

:root {
    --primary: #087f5b;
    --primary-dark: #056344;
    --primary-light: #13b981;
    --primary-soft: #e8f8ef;

    --text: #17382b;
    --text-soft: #62766c;

    --white: #ffffff;
    --background: #f7fbf8;
    --border: #e3eee7;

    --shadow-sm: 0 8px 24px rgba(18, 70, 48, 0.06);
    --shadow-md: 0 18px 45px rgba(18, 70, 48, 0.10);
    --shadow-lg: 0 30px 70px rgba(8, 127, 91, 0.16);

    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;

    --font-main: "DM Sans", sans-serif;
    --font-heading: "Plus Jakarta Sans", sans-serif;

    --container: 1200px;
}

/* Reset */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-main);
    color: var(--text);
    background: var(--background);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    color: #fff;
    background: var(--primary);
}

.container {
    width: min(var(--container), calc(100% - 48px));
    margin-inline: auto;
}

section {
    position: relative;
}

/* Fondo decorativo */

.page-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.background-orb {
    position: absolute;
    display: block;
    width: 450px;
    height: 450px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.13;
}

.orb-one {
    top: -180px;
    right: -120px;
    background: #5fe0a6;
}

.orb-two {
    bottom: -220px;
    left: -150px;
    background: #a8e8c5;
}

/* =========================================================
   BOTONES
========================================================= */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;

    min-height: 46px;
    padding: 12px 20px;

    border: 1px solid transparent;
    border-radius: 13px;

    font-size: 0.88rem;
    font-weight: 700;
    white-space: nowrap;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.button i {
    font-size: 0.88rem;
    transition: transform 0.25s ease;
}

.button:hover {
    transform: translateY(-3px);
}

.button:hover i.fa-arrow-right {
    transform: translateX(4px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    box-shadow: 0 9px 22px rgba(8, 127, 91, 0.20);
}

.button-primary:hover {
    box-shadow: 0 14px 30px rgba(8, 127, 91, 0.30);
}

.button-outline {
    color: var(--primary);
    border-color: #d2e9dc;
    background: #fff;
}

.button-outline:hover {
    border-color: var(--primary-light);
    background: var(--primary-soft);
}

.button-light {
    color: var(--text);
    border-color: #e5eee8;
    background: rgba(255, 255, 255, 0.85);
}

.button-light:hover {
    color: var(--primary);
    border-color: #c7e7d5;
    background: #fff;
}

.button-light .fa-play {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    color: var(--primary);
    background: var(--primary-soft);
    font-size: 0.65rem;
}

.button-large {
    min-height: 54px;
    padding: 15px 24px;
    border-radius: 15px;
    font-size: 0.92rem;
}

.button-white {
    color: var(--primary-dark);
    background: #fff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.button-white:hover {
    color: var(--primary);
    background: #f3fff8;
}

/* =========================================================
   HEADER
========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: rgba(255, 255, 255, 0.88);
    border-bottom: 1px solid rgba(227, 238, 231, 0.8);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    transition:
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 8px 30px rgba(20, 65, 45, 0.07);
}

.header-inner {
    min-height: 84px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

/* Marca */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand-logo {
    position: relative;
    display: grid;
    width: 49px;
    height: 49px;
    place-items: center;
    overflow: hidden;
}

.brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-logo-fallback {
    display: none;
    width: 100%;
    height: 100%;
    place-items: center;

    border-radius: 15px;
    color: #fff;

    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    font-size: 1.3rem;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.23rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.brand-copy strong span {
    color: var(--primary-light);
}

.brand-copy small {
    margin-top: 5px;
    color: #84958b;
    font-size: 0.65rem;
    font-weight: 500;
}

/* Navegación */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 29px;
}

.nav-link {
    position: relative;
    padding: 8px 0;

    color: #52675c;
    font-size: 0.86rem;
    font-weight: 600;

    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;

    height: 2px;
    border-radius: 10px;

    background: var(--primary-light);

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    transform: scaleX(1);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Botón hamburguesa */

.menu-toggle {
    display: none;

    width: 45px;
    height: 45px;

    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    border: 1px solid var(--border);
    border-radius: 13px;

    background: #fff;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 10px;

    background: var(--primary);

    transition:
        transform 0.25s ease,
        opacity 0.25s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* =========================================================
   HERO
========================================================= */

.hero-section {
    overflow: hidden;
    padding: 85px 0 75px;

    background:
        radial-gradient(
            ellipse at 85% 20%,
            rgba(77, 213, 146, 0.12),
            transparent 36%
        ),
        linear-gradient(
            135deg,
            #f5fff8 0%,
            #ffffff 52%,
            #effbf4 100%
        );
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.06fr 0.94fr;
    align-items: center;
    gap: 55px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 25px;
    padding: 9px 15px;

    border: 1px solid #d2efde;
    border-radius: 50px;

    color: var(--primary);
    background: rgba(235, 255, 244, 0.8);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.label-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-light);
}

.label-dot::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 1px solid var(--primary-light);
    border-radius: 50%;
    animation: pulseRing 2s infinite;
}

.hero-content h1 {
    max-width: 650px;
    margin-bottom: 24px;

    color: #183c2d;

    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 5vw, 4.45rem);
    font-weight: 800;
    line-height: 1.13;
    letter-spacing: -2.7px;
}

.gradient-text {
    display: inline;
    color: var(--primary);

    background: linear-gradient(
        110deg,
        #087f5b,
        #13b981 60%,
        #45c990
    );

    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 560px;
    margin-bottom: 31px;

    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 13px;

    margin-top: 38px;
}

.trust-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;

    border: 1px solid #d7eee0;
    border-radius: 14px;

    color: var(--primary);
    background: #eafff2;

    font-size: 1.05rem;
}

.trust-copy {
    display: flex;
    flex-direction: column;
}

.trust-copy strong {
    color: #2a4b3a;
    font-size: 0.82rem;
}

.trust-copy span {
    margin-top: 2px;
    color: #87968c;
    font-size: 0.73rem;
}

/* Visual principal */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 480px;
}

.hero-visual-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;

    background: linear-gradient(
        135deg,
        rgba(70, 211, 139, 0.20),
        rgba(8, 127, 91, 0.05)
    );

    filter: blur(2px);
    animation: glowPulse 6s ease-in-out infinite;
}

.hero-image-frame {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 510px;
    min-height: 430px;
}

.hero-image {
    width: 100%;
    max-height: 480px;
    object-fit: contain;

    filter: drop-shadow(0 30px 35px rgba(7, 92, 61, 0.13));

    animation: heroFloat 6s ease-in-out infinite;
}

.hero-image-fallback {
    display: none;

    width: 310px;
    height: 310px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 15px;

    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;

    color: var(--primary);
    background: linear-gradient(135deg, #e6fff0, #fff);

    box-shadow: var(--shadow-lg);
}

.hero-image-fallback i {
    font-size: 5rem;
}

.hero-image-fallback span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
}

/* Tarjetas flotantes */

.floating-card {
    position: absolute;
    z-index: 3;

    display: flex;
    align-items: center;
    gap: 12px;

    padding: 15px 18px;

    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 17px;

    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 15px 40px rgba(21, 72, 48, 0.12);

    backdrop-filter: blur(12px);
}

.floating-card-top {
    top: 50px;
    right: -5px;

    animation: floatingCard 5s ease-in-out infinite;
}

.floating-card-bottom {
    bottom: 50px;
    left: -10px;

    animation: floatingCard 5.5s ease-in-out infinite reverse;
}

.floating-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;

    border-radius: 13px;
    font-size: 1.1rem;
}

.icon-green {
    color: #07875d;
    background: #e4f9ec;
}

.icon-orange {
    color: #e28b35;
    background: #fff3e3;
}

.floating-card > span:last-child {
    display: flex;
    flex-direction: column;
}

.floating-card strong {
    color: #254536;
    font-size: 0.8rem;
}

.floating-card small {
    margin-top: 3px;
    color: #84958b;
    font-size: 0.68rem;
}

.hero-decoration {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.decoration-one {
    top: 20px;
    left: 12%;

    width: 16px;
    height: 16px;

    background: #80d9a9;
    box-shadow: 0 0 0 8px rgba(128, 217, 169, 0.15);

    animation: decorationFloat 4s ease-in-out infinite;
}

.decoration-two {
    right: 12%;
    bottom: 15px;

    width: 11px;
    height: 11px;

    background: #f1b66f;
    box-shadow: 0 0 0 7px rgba(241, 182, 111, 0.15);

    animation: decorationFloat 5s ease-in-out infinite reverse;
}

.hero-bottom-line {
    position: absolute;
    bottom: 0;
    left: 50%;

    width: min(1200px, calc(100% - 48px));
    height: 1px;

    background: linear-gradient(
        90deg,
        transparent,
        #dcefe3,
        transparent
    );

    transform: translateX(-50%);
}

/* =========================================================
   VALORES
========================================================= */

.values-strip {
    padding: 25px 0;
    background: #fff;
    border-bottom: 1px solid #edf3ef;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.value-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.value-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;

    border: 1px solid #e0f1e6;
    border-radius: 15px;

    color: var(--primary);
    background: #f0fcf5;

    font-size: 1.05rem;
}

.value-item > div {
    display: flex;
    flex-direction: column;
}

.value-item strong {
    color: #294b39;
    font-size: 0.84rem;
}

.value-item span:last-child {
    margin-top: 3px;
    color: #8a9a90;
    font-size: 0.72rem;
}

/* =========================================================
   SECCIONES GENERALES
========================================================= */

.section {
    padding: 100px 0;
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 18px;

    color: var(--primary);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.section-kicker > span {
    display: inline-block;
    width: 25px;
    height: 2px;
    border-radius: 10px;
    background: var(--primary-light);
}

.section-title {
    margin-bottom: 20px;

    color: #183c2d;

    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.6vw, 3rem);
    font-weight: 800;
    line-height: 1.23;
    letter-spacing: -1.2px;
}

.section-title span {
    color: var(--primary);
}

.section-description {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.85;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 55px;
    text-align: center;
}

.section-heading .section-kicker {
    justify-content: center;
}

.section-heading .section-description {
    max-width: 650px;
    margin-inline: auto;
}

/* =========================================================
   NOSOTROS
========================================================= */

.about-section {
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 85px;
}

.about-visual {
    position: relative;
    padding: 20px;
}

.about-main-card {
    position: relative;
    overflow: hidden;

    min-height: 430px;
    padding: 45px 40px;

    border: 1px solid #e0f1e6;
    border-radius: 30px;

    background:
        radial-gradient(
            circle at 90% 10%,
            rgba(91, 217, 151, 0.20),
            transparent 35%
        ),
        linear-gradient(145deg, #f0fff6, #ffffff 70%);

    box-shadow: var(--shadow-md);
}

.about-icon-large {
    display: grid;
    width: 75px;
    height: 75px;
    place-items: center;

    margin-bottom: 32px;

    border: 1px solid #d8f1e2;
    border-radius: 23px;

    color: #fff;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    box-shadow: 0 15px 30px rgba(8, 127, 91, 0.22);

    font-size: 2rem;
}

.about-card-label {
    display: block;
    margin-bottom: 12px;

    color: #88a293;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.about-main-card h3 {
    max-width: 300px;
    margin-bottom: 15px;

    color: #1b4833;

    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.about-main-card h3 span {
    color: var(--primary);
}

.about-main-card p {
    max-width: 300px;
    color: #71877a;
    font-size: 0.9rem;
    line-height: 1.8;
}

.about-card-decoration {
    position: absolute;
    right: 30px;
    bottom: 30px;

    display: flex;
    gap: 10px;

    color: #b9e8cc;
    font-size: 1.5rem;
}

.about-card-decoration i:nth-child(2) {
    opacity: 0.55;
}

.about-card-decoration i:nth-child(3) {
    opacity: 0.25;
}

.about-sticker {
    position: absolute;
    right: -8px;
    bottom: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 14px 18px;

    border: 1px solid #fff;
    border-radius: 15px;

    color: var(--primary);
    background: #fff;

    box-shadow: var(--shadow-md);

    font-size: 0.8rem;
    font-weight: 700;

    animation: floatingCard 5s ease-in-out infinite;
}

.about-sticker i {
    font-size: 1.1rem;
}

.about-content .section-description {
    margin-bottom: 28px;
}

.about-points {
    display: grid;
    gap: 20px;
    margin-bottom: 28px;
}

.about-point {
    display: flex;
    align-items: flex-start;
    gap: 13px;
}

.point-check {
    display: grid;
    width: 27px;
    height: 27px;
    flex-shrink: 0;
    place-items: center;

    border-radius: 9px;
    color: var(--primary);
    background: #e8f8ef;

    font-size: 0.7rem;
}

.about-point strong {
    display: block;
    margin-bottom: 4px;

    color: #2b4b39;
    font-size: 0.88rem;
}

.about-point p {
    color: #819187;
    font-size: 0.8rem;
    line-height: 1.7;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    color: var(--primary);
    font-size: 0.87rem;
    font-weight: 800;
}

.text-link i {
    transition: transform 0.25s ease;
}

.text-link:hover i {
    transform: translateX(5px);
}

/* =========================================================
   SERVICIOS
========================================================= */

.services-section {
    background:
        radial-gradient(
            ellipse at 0% 0%,
            rgba(91, 217, 151, 0.07),
            transparent 35%
        ),
        #f7fbf8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.service-card {
    position: relative;
    overflow: hidden;

    padding: 30px;

    border: 1px solid #e3eee7;
    border-radius: 23px;

    background: #fff;
    box-shadow: 0 8px 25px rgba(18, 70, 48, 0.035);

    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );

    transform: scaleX(0);
    transform-origin: left;

    transition: transform 0.35s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: #ccebd9;
    box-shadow: var(--shadow-md);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 27px;
}

.service-icon {
    display: grid;
    width: 62px;
    height: 62px;
    place-items: center;

    border-radius: 19px;
    font-size: 1.5rem;

    transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
    transform: rotate(-7deg) scale(1.05);
}

.service-icon-green {
    color: #07875d;
    background: #e5f9ed;
}

.service-icon-blue {
    color: #4389c7;
    background: #eaf5ff;
}

.service-icon-orange {
    color: #df9847;
    background: #fff3e5;
}

.service-number {
    color: #d3e5d9;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
}

.service-card h3 {
    margin-bottom: 13px;

    color: #254a36;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
}

.service-card p {
    min-height: 75px;
    margin-bottom: 24px;

    color: #7c8e83;
    font-size: 0.85rem;
    line-height: 1.8;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 800;
}

.service-link i {
    transition: transform 0.25s ease;
}

.service-link:hover i {
    transform: translateX(5px);
}

/* =========================================================
   BENEFICIOS
========================================================= */

.benefits-section {
    overflow: hidden;
    background: #fff;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.benefits-content .section-description {
    margin-bottom: 30px;
}

.benefit-list {
    display: grid;
    gap: 20px;
}

.benefit-row {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefit-row-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    place-items: center;

    border-radius: 11px;
    color: var(--primary);
    background: #e8f8ef;

    font-size: 0.75rem;
}

.benefit-row strong {
    display: block;
    margin-bottom: 4px;

    color: #2a4a38;
    font-size: 0.9rem;
}

.benefit-row p {
    color: #839287;
    font-size: 0.81rem;
    line-height: 1.7;
}

/* Tarjeta ilustrativa */

.benefits-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;

    min-height: 470px;
}

.benefits-card {
    position: relative;
    z-index: 2;

    width: min(100%, 390px);
    overflow: hidden;

    border: 1px solid #e1eee6;
    border-radius: 27px;

    background: #fff;
    box-shadow: 0 30px 70px rgba(8, 127, 91, 0.12);

    transform: rotate(2deg);
    transition: transform 0.4s ease;
}

.benefits-card:hover {
    transform: rotate(0deg) translateY(-5px);
}

.benefits-card-header {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 22px;

    border-bottom: 1px solid #edf4ef;
    background: #fbfefc;
}

.benefits-card-logo {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;

    border-radius: 14px;
    color: #fff;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    font-size: 1.2rem;
}

.benefits-card-header > span:nth-child(2) {
    display: flex;
    flex-direction: column;
}

.benefits-card-header strong {
    color: #2c4b39;
    font-size: 0.84rem;
}

.benefits-card-header small {
    margin-top: 3px;
    color: #91a197;
    font-size: 0.7rem;
}

.benefits-card-status {
    margin-left: auto;
    color: #4bc58b;
    font-size: 0.55rem;
}

.benefits-card-body {
    padding: 32px;
}

.benefits-heart {
    display: grid;
    width: 75px;
    height: 75px;
    place-items: center;

    margin-bottom: 25px;

    border: 1px solid #d9f1e3;
    border-radius: 24px;

    color: var(--primary);
    background: #edfff4;

    font-size: 2rem;

    animation: heartBeat 3s ease-in-out infinite;
}

.benefits-card-body h3 {
    margin-bottom: 12px;

    color: #204632;
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
}

.benefits-card-body p {
    margin-bottom: 25px;

    color: #829287;
    font-size: 0.86rem;
    line-height: 1.8;
}

.benefits-progress {
    overflow: hidden;
    width: 100%;
    height: 7px;

    margin-bottom: 22px;

    border-radius: 20px;
    background: #eaf5ee;
}

.benefits-progress span {
    display: block;
    width: 76%;
    height: 100%;

    border-radius: inherit;
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-light)
    );
}

.benefits-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 15px;

    color: #91a197;
    font-size: 0.72rem;
}

.benefits-card-footer strong {
    color: var(--primary);
}

.benefits-circle {
    position: absolute;
    display: block;
    border-radius: 50%;
}

.benefits-circle-one {
    top: 25px;
    right: 10px;

    width: 180px;
    height: 180px;

    background: #e9f9ef;
}

.benefits-circle-two {
    bottom: 10px;
    left: 5px;

    width: 120px;
    height: 120px;

    border: 25px solid #f0faf4;
}

/* =========================================================
   CTA
========================================================= */

.cta-section {
    padding: 45px 0 100px;
    background: #fff;
}

.cta-card {
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;

    min-height: 360px;
    padding: 60px 70px;

    border-radius: 32px;

    color: #fff;

    background: linear-gradient(
        120deg,
        #056344 0%,
        #087f5b 50%,
        #12a978 100%
    );

    box-shadow: 0 25px 60px rgba(8, 127, 91, 0.19);
}

.cta-content {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.cta-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: #c9f6dc;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.cta-content h2 {
    margin-bottom: 17px;

    color: #fff;

    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1.2px;
}

.cta-content h2 span {
    color: #b8f3d1;
}

.cta-content p {
    max-width: 600px;
    margin-bottom: 28px;

    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
    line-height: 1.8;
}

.cta-icon {
    position: relative;
    z-index: 2;

    display: grid;
    width: 190px;
    height: 190px;
    flex-shrink: 0;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;

    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.08);

    font-size: 5rem;

    animation: heroFloat 6s ease-in-out infinite;
}

.cta-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.cta-decoration-one {
    top: -130px;
    right: 10%;

    width: 350px;
    height: 350px;

    border: 1px solid rgba(255, 255, 255, 0.10);
}

.cta-decoration-two {
    right: -100px;
    bottom: -180px;

    width: 400px;
    height: 400px;

    background: rgba(255, 255, 255, 0.05);
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer {
    color: #d5e8dd;
    background: #123b2c;
}

.footer-main {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr 0.8fr 1fr;
    gap: 55px;

    padding-top: 65px;
    padding-bottom: 55px;
}

.footer-brand-link {
    margin-bottom: 20px;
}

.footer-logo .brand-logo-fallback {
    background: linear-gradient(
        135deg,
        #13a978,
        #45d69b
    );
}

.footer-brand .brand-copy strong {
    color: #fff;
}

.footer-brand .brand-copy strong span {
    color: #70ddb0;
}

.footer-brand .brand-copy small {
    color: #9ab8a7;
}

.footer-brand > p {
    max-width: 300px;

    color: #9ab8a7;
    font-size: 0.82rem;
    line-height: 1.8;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-column h4 {
    margin-bottom: 8px;

    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 800;
}

.footer-column > a {
    color: #a5c0b0;
    font-size: 0.8rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.footer-column > a:hover {
    color: #fff;
    transform: translateX(3px);
}

.footer-contact p {
    display: flex;
    align-items: center;
    gap: 10px;

    color: #a5c0b0;
    font-size: 0.8rem;
}

.footer-contact p i {
    color: #65d9a5;
}

.footer-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-top: 4px;

    color: #76e0b2 !important;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding-top: 22px;
    padding-bottom: 22px;
}

.footer-bottom p,
.footer-bottom span {
    color: #89a998;
    font-size: 0.74rem;
}

.footer-bottom span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-bottom span i {
    color: #68dca8;
}

/* =========================================================
   VOLVER ARRIBA
========================================================= */

.back-to-top {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 900;

    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;

    color: #fff;
    background: linear-gradient(
        135deg,
        var(--primary),
        var(--primary-light)
    );

    box-shadow: 0 10px 25px rgba(8, 127, 91, 0.25);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease,
        transform 0.25s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-4px);
}

/* =========================================================
   ANIMACIONES
========================================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.75s ease,
        transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay {
    transition-delay: 0.15s;
}

.reveal-delay-1 {
    transition-delay: 0.12s;
}

.reveal-delay-2 {
    transition-delay: 0.24s;
}

@keyframes heroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-13px);
    }
}

@keyframes floatingCard {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes glowPulse {
    0%,
    100% {
        opacity: 0.65;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.06);
    }
}

@keyframes decorationFloat {
    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-12px) rotate(30deg);
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

@keyframes heartBeat {
    0%,
    100% {
        transform: scale(1);
    }

    10% {
        transform: scale(1.08);
    }

    20% {
        transform: scale(1);
    }

    30% {
        transform: scale(1.05);
    }

    40% {
        transform: scale(1);
    }
}

/* =========================================================
   RESPONSIVE - TABLET
========================================================= */

@media (max-width: 1100px) {
    .header-inner {
        gap: 18px;
    }

    .main-navigation {
        gap: 18px;
    }

    .header-actions .button {
        padding: 11px 14px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-content h1 {
        font-size: clamp(2.6rem, 5vw, 3.7rem);
    }

    .hero-visual {
        min-height: 420px;
    }

    .floating-card-top {
        right: 0;
    }

    .floating-card-bottom {
        left: 0;
    }

    .about-grid,
    .benefits-grid {
        gap: 50px;
    }

    .footer-main {
        gap: 35px;
    }
}

/* =========================================================
   RESPONSIVE - MÓVIL
========================================================= */

@media (max-width: 850px) {
    .container {
        width: min(100% - 36px, 680px);
    }

    .header-inner {
        min-height: 75px;
    }

    .menu-toggle {
        display: flex;
        order: 3;
    }

    .header-actions {
        margin-left: auto;
    }

    .header-actions .button-outline {
        display: none;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 12px 25px 22px;

        border-bottom: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 20px 35px rgba(20, 65, 45, 0.09);

        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);

        transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
    }

    .main-navigation.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-link {
        padding: 14px 5px;
        border-bottom: 1px solid #edf4ef;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link.active {
        color: var(--primary);
    }

    .hero-section {
        padding: 60px 0 50px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content {
        text-align: center;
    }

    .hero-label {
        margin-inline: auto;
    }

    .hero-content h1 {
        max-width: 650px;
        margin-inline: auto;

        font-size: clamp(2.5rem, 8vw, 3.7rem);
        letter-spacing: -1.7px;
    }

    .hero-description {
        margin-inline: auto;
        font-size: 0.94rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        min-height: 380px;
    }

    .hero-image-frame {
        min-height: 360px;
    }

    .hero-image {
        max-height: 390px;
    }

    .hero-visual-glow {
        width: 320px;
        height: 320px;
    }

    .floating-card-top {
        top: 25px;
        right: 3%;
    }

    .floating-card-bottom {
        bottom: 25px;
        left: 3%;
    }

    .values-grid {
        gap: 18px;
    }

    .value-item {
        justify-content: flex-start;
    }

    .section {
        padding: 75px 0;
    }

    .about-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-visual {
        max-width: 520px;
        width: 100%;
        margin-inline: auto;
    }

    .about-main-card {
        min-height: 390px;
    }

    .about-content {
        max-width: 650px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-card:last-child {
        grid-column: 1 / -1;
    }

    .benefits-visual {
        min-height: 440px;
    }

    .cta-section {
        padding: 35px 0 75px;
    }

    .cta-card {
        padding: 45px;
    }

    .cta-icon {
        width: 140px;
        height: 140px;
        font-size: 3.8rem;
    }

    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* =========================================================
   RESPONSIVE - MÓVIL PEQUEÑO
========================================================= */

@media (max-width: 560px) {
    .container {
        width: calc(100% - 30px);
    }

    .header-inner {
        min-height: 68px;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-copy strong {
        font-size: 1.05rem;
    }

    .brand-copy small {
        font-size: 0.59rem;
    }

    .header-actions .button-primary {
        display: none;
    }

    .menu-toggle {
        width: 42px;
        height: 42px;
    }

    .hero-section {
        padding: 45px 0 35px;
    }

    .hero-label {
        margin-bottom: 20px;
        padding: 8px 12px;
        font-size: 0.68rem;
    }

    .hero-content h1 {
        margin-bottom: 18px;
        font-size: clamp(2.2rem, 10vw, 3rem);
        line-height: 1.16;
        letter-spacing: -1.4px;
    }

    .hero-description {
        margin-bottom: 25px;
        font-size: 0.88rem;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .hero-actions .button {
        width: 100%;
    }

    .hero-trust {
        margin-top: 25px;
    }

    .hero-visual {
        min-height: 280px;
    }

    .hero-image-frame {
        min-height: 270px;
    }

    .hero-image {
        max-height: 290px;
    }

    .hero-visual-glow {
        width: 240px;
        height: 240px;
    }

    .floating-card {
        gap: 8px;
        padding: 10px 12px;
        border-radius: 13px;
    }

    .floating-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 0.9rem;
    }

    .floating-card strong {
        font-size: 0.7rem;
    }

    .floating-card small {
        font-size: 0.6rem;
    }

    .floating-card-top {
        top: 10px;
        right: 0;
    }

    .floating-card-bottom {
        bottom: 10px;
        left: 0;
    }

    .values-strip {
        padding: 22px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .value-item {
        justify-content: flex-start;
    }

    .value-icon {
        width: 42px;
        height: 42px;
    }

    .section {
        padding: 60px 0;
    }

    .section-kicker {
        margin-bottom: 14px;
        font-size: 0.67rem;
        letter-spacing: 1.2px;
    }

    .section-title {
        margin-bottom: 16px;
        font-size: 1.9rem;
        letter-spacing: -0.8px;
    }

    .section-description {
        font-size: 0.87rem;
    }

    .section-heading {
        margin-bottom: 35px;
    }

    .about-visual {
        padding: 10px;
    }

    .about-main-card {
        min-height: 340px;
        padding: 30px 25px;
        border-radius: 23px;
    }

    .about-icon-large {
        width: 60px;
        height: 60px;
        margin-bottom: 25px;
        border-radius: 18px;
        font-size: 1.6rem;
    }

    .about-main-card h3 {
        font-size: 1.8rem;
    }

    .about-main-card p {
        font-size: 0.82rem;
    }

    .about-sticker {
        right: 0;
        bottom: -5px;
        padding: 11px 13px;
        font-size: 0.7rem;
    }

    .about-points {
        gap: 17px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card,
    .service-card:last-child {
        grid-column: auto;
        padding: 25px;
    }

    .service-card p {
        min-height: auto;
    }

    .service-card-top {
        margin-bottom: 20px;
    }

    .benefits-visual {
        min-height: 390px;
    }

    .benefits-card {
        border-radius: 22px;
    }

    .benefits-card-header {
        padding: 17px;
    }

    .benefits-card-body {
        padding: 25px;
    }

    .benefits-card-body h3 {
        font-size: 1.4rem;
    }

    .benefits-circle-one {
        width: 120px;
        height: 120px;
    }

    .benefits-circle-two {
        width: 90px;
        height: 90px;
        border-width: 18px;
    }

    .cta-section {
        padding: 25px 0 60px;
    }

    .cta-card {
        min-height: auto;
        padding: 35px 25px;
        border-radius: 25px;
    }

    .cta-content h2 {
        font-size: 1.9rem;
        letter-spacing: -0.8px;
    }

    .cta-content p {
        font-size: 0.85rem;
    }

    .cta-icon {
        display: none;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;
        padding-top: 45px;
        padding-bottom: 40px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-brand > p {
        max-width: 100%;
    }

    .footer-bottom-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .footer-bottom p,
    .footer-bottom span {
        font-size: 0.68rem;
    }

    .back-to-top {
        right: 15px;
        bottom: 15px;
        width: 43px;
        height: 43px;
        border-radius: 13px;
    }
}

/* =========================================================
   ACCESIBILIDAD / MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
/* =========================================
   CARRITO DE COMPRAS - BIO FARMA
========================================= */

.carrito-container {
    width: min(1200px, 94%);
    margin: 40px auto;
    padding: 28px;
    background: #ffffff;
    border: 1px solid #e5edf5;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(15, 40, 75, 0.08);
}

.carrito-titulo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
    color: #102b4e;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
}

.carrito-titulo i {
    color: #08a9df;
    font-size: 28px;
}

.carrito-vacio {
    padding: 55px 20px;
    text-align: center;
    color: #64748b;
}

.carrito-vacio i {
    display: block;
    margin-bottom: 18px;
    color: #9bb5ca;
    font-size: 65px;
}

.carrito-vacio h3 {
    margin-bottom: 10px;
    color: #163653;
    font-size: 22px;
}

.carrito-vacio p {
    margin-bottom: 25px;
    font-size: 15px;
}

.carrito-tabla-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e8eef5;
    border-radius: 14px;
}

.carrito-tabla {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: #fff;
}

.carrito-tabla thead {
    background: #102b4e;
    color: #fff;
}

.carrito-tabla th {
    padding: 16px 14px;
    text-align: left;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.carrito-tabla td {
    padding: 16px 14px;
    border-bottom: 1px solid #edf2f7;
    color: #334155;
    vertical-align: middle;
}

.carrito-tabla tbody tr {
    transition: background 0.2s ease;
}

.carrito-tabla tbody tr:hover {
    background: #f5fbff;
}

.carrito-producto {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 220px;
}

.carrito-producto img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    padding: 5px;
    background: #f7fafc;
    border: 1px solid #e5edf5;
    border-radius: 12px;
}

.carrito-producto-nombre {
    color: #153453;
    font-weight: 700;
    font-size: 14px;
}

.carrito-precio {
    color: #0b789f;
    font-weight: 700;
    white-space: nowrap;
}

.carrito-cantidad {
    display: flex;
    align-items: center;
    gap: 8px;
}

.carrito-cantidad input {
    width: 65px;
    height: 38px;
    padding: 5px;
    border: 1px solid #d7e3ee;
    border-radius: 9px;
    text-align: center;
    outline: none;
}

.carrito-cantidad input:focus {
    border-color: #08a9df;
    box-shadow: 0 0 0 3px rgba(8, 169, 223, 0.12);
}

.carrito-subtotal {
    color: #102b4e;
    font-weight: 800;
    white-space: nowrap;
}

.carrito-eliminar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #e11d48;
    background: #fff1f2;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carrito-eliminar:hover {
    color: #fff;
    background: #e11d48;
    transform: translateY(-2px);
}

.carrito-resumen {
    display: flex;
    justify-content: flex-end;
    margin-top: 25px;
}

.carrito-resumen-card {
    width: min(100%, 390px);
    padding: 24px;
    background: #f5faff;
    border: 1px solid #dcecf7;
    border-radius: 16px;
}

.carrito-resumen-fila {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 14px;
    color: #52677d;
    font-size: 15px;
}

.carrito-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 17px;
    margin-top: 12px;
    border-top: 1px solid #d7e5f0;
    color: #102b4e;
    font-size: 20px;
    font-weight: 800;
}

.carrito-total strong {
    color: #0798ca;
}

.carrito-acciones {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 25px;
}

.carrito-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 12px 20px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.carrito-btn-volver {
    color: #153453;
    background: #edf4fa;
}

.carrito-btn-volver:hover {
    background: #dceaf5;
    transform: translateY(-2px);
}

.carrito-btn-comprar {
    color: #fff;
    background: linear-gradient(135deg, #087eae, #08b7e8);
    box-shadow: 0 7px 18px rgba(8, 169, 223, 0.22);
}

.carrito-btn-comprar:hover {
    box-shadow: 0 10px 22px rgba(8, 169, 223, 0.3);
    transform: translateY(-2px);
}

/* Adaptación para celulares */
@media (max-width: 768px) {
    .carrito-container {
        width: 95%;
        margin: 20px auto;
        padding: 16px;
        border-radius: 15px;
    }

    .carrito-titulo {
        margin-bottom: 18px;
        font-size: 22px;
    }

    .carrito-titulo i {
        font-size: 23px;
    }

    .carrito-tabla {
        min-width: 580px;
    }

    .carrito-tabla th,
    .carrito-tabla td {
        padding: 12px 10px;
        font-size: 12px;
    }

    .carrito-producto img {
        width: 50px;
        height: 50px;
    }

    .carrito-resumen {
        justify-content: stretch;
    }

    .carrito-resumen-card {
        width: 100%;
        padding: 18px;
    }

    .carrito-acciones {
        flex-direction: column;
        align-items: stretch;
    }

    .carrito-btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .carrito-container {
        padding: 12px;
    }

    .carrito-total {
        font-size: 18px;
    }

    .carrito-vacio i {
        font-size: 50px;
    }
}
/* =========================================
   CARRITO DEL HEADER
========================================= */

.header-cart {
    position: relative;
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #087f5b;
    background: #ecfdf5;
    border: 1px solid rgba(8, 127, 91, 0.15);
    font-size: 20px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.header-cart:hover {
    color: #ffffff;
    background: #087f5b;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(8, 127, 91, 0.20);
}

.header-cart-count {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: #ef4444;
    color: #ffffff;
    border: 2px solid #ffffff;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
}
/* =====================================================
   MODAL DEL CARRITO - BIO FARMA
   Reemplaza los estilos anteriores del modal
===================================================== */

#cartModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;

    width: 100%;
    height: 100%;
    height: 100dvh;

    display: none;
    place-items: center;

    padding: 20px;
    box-sizing: border-box;

    background: rgba(15, 23, 42, 0.62);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    overflow-y: auto;
}

#cartModal.active {
    display: grid !important;
}

/* Cuadro del modal */
#cartModal .cart-modal {
    position: relative !important;

    width: 100%;
    max-width: 520px;

    max-height: calc(100dvh - 40px);
    min-height: 0;

    margin: auto !important;
    padding: 0 !important;

    display: flex !important;
    flex-direction: column !important;

    box-sizing: border-box;
    overflow: hidden;

    background: #ffffff;
    border: none;
    border-radius: 22px;

    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.22);

    animation: cartModalShow 0.25s ease;
}

/* Animación */
@keyframes cartModalShow {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Cabecera */
#cartModal .cart-modal-header {
    flex: 0 0 auto;

    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    width: 100%;
    gap: 15px;

    padding: 22px 24px;
    margin: 0;

    box-sizing: border-box;
    border-bottom: 1px solid #edf0f2;
    background: #ffffff;
}

/* Título e icono */
#cartModal .cart-modal-title {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 13px;
    min-width: 0;
}

#cartModal .cart-modal-icon {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0;
    padding: 0;

    border-radius: 14px;
    background: #ecfdf5;
    color: #087f5b;

    font-size: 19px;
}

#cartModal .cart-modal-title h2 {
    margin: 0 !important;
    padding: 0;

    color: #172b24;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
}

#cartModal .cart-modal-title p {
    margin: 4px 0 0 !important;
    padding: 0;

    color: #7b8790;
    font-size: 13px;
    line-height: 1.4;
}

/* Botón de cerrar */
#cartModal .cart-modal-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0;
    padding: 0;

    border: none !important;
    border-radius: 12px;

    background: #f3f5f6 !important;
    color: #52616b !important;

    font-size: 18px;
    line-height: 1;

    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

#cartModal .cart-modal-close:hover {
    background: #fee2e2 !important;
    color: #dc2626 !important;
}

/* Cuerpo desplazable */
#cartModal .cart-modal-body {
    flex: 1 1 auto;
    min-height: 0;

    width: 100%;
    padding: 20px 24px 24px;
    margin: 0;

    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Lista de productos */
#cartModal .cart-products-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px;
}

#cartModal .cart-product-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;

    gap: 13px;
    padding: 13px;

    margin: 0;
    box-sizing: border-box;

    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #ffffff;
}

/* Imagen del producto */
#cartModal .cart-product-image {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    overflow: hidden;
    margin: 0;
    padding: 0;

    border-radius: 12px;
    background: #f0fdf4;
    color: #087f5b;

    font-size: 23px;
}

#cartModal .cart-product-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Nombre y cantidad */
#cartModal .cart-product-info {
    flex: 1 1 auto;
    min-width: 0;
}

#cartModal .cart-product-info h3 {
    margin: 0 0 6px !important;
    padding: 0;

    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

#cartModal .cart-product-info p {
    margin: 0 !important;
    padding: 0;

    color: #84909b;
    font-size: 12px;
}

/* Subtotal */
#cartModal .cart-product-subtotal {
    flex: 0 0 auto;

    color: #087f5b;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

/* Total */
#cartModal .cart-modal-total {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;

    gap: 15px;
    margin-top: 20px;
    padding-top: 18px;

    border-top: 1px solid #e9eef0;
}

#cartModal .cart-modal-total span {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

#cartModal .cart-modal-total strong {
    color: #087f5b;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 23px;
    font-weight: 800;
}

/* Carrito vacío */
#cartModal .cart-empty {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: 100%;
    padding: 30px 10px;

    margin: 0;
    box-sizing: border-box;
    text-align: center;
}

#cartModal .cart-empty-icon {
    width: 76px;
    height: 76px;
    flex: 0 0 76px;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 auto 18px;
    padding: 0;

    border-radius: 24px;
    background: #ecfdf5;
    color: #087f5b;

    font-size: 30px;
}

#cartModal .cart-empty h3 {
    margin: 0 0 9px !important;
    padding: 0;

    color: #172b24;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

#cartModal .cart-empty p {
    max-width: 300px;

    margin: 0 auto 22px !important;
    padding: 0;

    color: #7b8790;
    font-size: 14px;
    line-height: 1.6;
}

/* Botón explorar catálogo */
#cartModal .cart-empty-button {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;

    gap: 10px;
    padding: 12px 20px;

    margin: 0;
    border: none;
    border-radius: 12px;

    background: #087f5b;
    color: #ffffff;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: background 0.2s ease, transform 0.2s ease;
}

#cartModal .cart-empty-button:hover {
    background: #066747;
    transform: translateY(-2px);
}

/* Adaptación a celulares */
@media (max-width: 480px) {
    #cartModal {
        padding: 12px;
    }

    #cartModal .cart-modal {
        max-width: 100%;
        max-height: calc(100dvh - 24px);
        border-radius: 18px;
    }

    #cartModal .cart-modal-header {
        padding: 18px;
    }

    #cartModal .cart-modal-body {
        padding: 16px 18px 20px;
    }

    #cartModal .cart-product-item {
        gap: 10px;
        padding: 10px;
    }

    #cartModal .cart-product-image {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
    }

    #cartModal .cart-product-info h3 {
        font-size: 12px;
    }

    #cartModal .cart-product-subtotal {
        font-size: 12px;
    }

    #cartModal .cart-modal-total strong {
        font-size: 20px;
    }
}
/* Imagen pequeña dentro del carrito */
.cart-product-image-click {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}

.cart-product-image-click:hover {
    transform: scale(1.05);
}

/* Fondo de pantalla completa */
#cartImagePreview {
    position: fixed !important;
    inset: 0 !important;

    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;

    display: none;
    align-items: center !important;
    justify-content: center !important;

    padding: 24px !important;
    box-sizing: border-box !important;

    background: rgba(10, 15, 25, 0.88);

    /* Debe estar por encima del modal del carrito */
    z-index: 2147483647 !important;

    overflow: auto;
}

/* Mostrar modal */
#cartImagePreview.active {
    display: flex !important;
}

/* Contenedor de imagen y nombre */
#cartImagePreview .cart-image-preview-content {
    position: relative !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    width: auto !important;
    height: auto !important;

    max-width: 95vw !important;
    max-height: 90vh !important;
    max-height: 90dvh !important;

    margin: auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    transform: none !important;
}

/* Imagen grande */
#cartImagePreview #cartImagePreviewImg {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 90vw !important;
    max-height: 78vh !important;
    max-height: 78dvh !important;

    object-fit: contain !important;

    margin: 0 auto !important;
    padding: 8px !important;

    background: #ffffff !important;
    border-radius: 14px !important;

    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.35) !important;
}

/* Nombre del producto */
#cartImagePreview #cartImagePreviewName {
    display: block;

    max-width: 90vw;
    margin: 14px 0 0 !important;

    color: #ffffff !important;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}

/* Botón cerrar */
#cartImagePreview .cart-image-preview-close {
    position: fixed !important;

    top: 20px !important;
    right: 24px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 46px !important;
    height: 46px !important;

    margin: 0 !important;
    padding: 0 !important;

    border: none !important;
    border-radius: 50% !important;

    background: #ffffff !important;
    color: #152238 !important;

    font-family: Arial, sans-serif !important;
    font-size: 32px !important;
    font-weight: 400 !important;
    line-height: 1 !important;

    cursor: pointer;
    z-index: 10 !important;

    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

#cartImagePreview .cart-image-preview-close:hover {
    background: #e8faff !important;
    transform: scale(1.05);
}

/* Adaptación móvil */
@media (max-width: 600px) {
    #cartImagePreview {
        padding: 14px !important;
    }

    #cartImagePreview #cartImagePreviewImg {
        max-width: 94vw !important;
        max-height: 72vh !important;
        max-height: 72dvh !important;
    }

    #cartImagePreview .cart-image-preview-close {
        top: 12px !important;
        right: 12px !important;

        width: 42px !important;
        height: 42px !important;
    }

    #cartImagePreview #cartImagePreviewName {
        font-size: 14px;
    }
}
/* Botón eliminar producto */
.cart-remove-product {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 32px;
    height: 32px;

    border: none;
    border-radius: 9px;

    background: #fff0f0;
    color: #dc3545;

    cursor: pointer;
    transition: all 0.2s ease;
}

.cart-remove-product:hover {
    background: #dc3545;
    color: #ffffff;
}

/* Botón vaciar carrito */
.cart-clear-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    padding: 9px 12px;

    border: 1px solid #ffe0e0;
    border-radius: 10px;

    background: #fff5f5;
    color: #dc3545;

    font-size: 12px;
    font-weight: 700;

    cursor: pointer;
}

.cart-clear-button:hover {
    background: #dc3545;
    color: #ffffff;
}

.cart-clear-button:disabled,
.cart-remove-product:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Botón enviar pedido por WhatsApp */
.cart-whatsapp-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 18px;
    margin-top: 16px;

    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #ffffff;

    border: none;
    border-radius: 12px;

    font-size: 15px;
    font-weight: 700;
    font-family: inherit;

    cursor: pointer;
    transition: all 0.25s ease;

    box-shadow: 0 5px 14px rgba(37, 211, 102, 0.22);
}

/* Icono de WhatsApp */
.cart-whatsapp-button i {
    font-size: 21px;
}

/* Efecto al pasar el mouse */
.cart-whatsapp-button:hover {
    background: linear-gradient(135deg, #20C45A, #0D796D);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.30);
}

/* Efecto al presionar */
.cart-whatsapp-button:active {
    transform: scale(0.98);
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.20);
}

/* Adaptación para móviles */
@media (max-width: 480px) {
    .cart-whatsapp-button {
        padding: 13px 14px;
        font-size: 14px;
        border-radius: 10px;
    }

    .cart-whatsapp-button i {
        font-size: 19px;
    }
}