:root {
    --brand: #d6006e;
    --brand-deep: #9e0056;
    --brand-soft: #ffe4f0;
    --paper: #fff8fc;
    --paper-strong: #ffffff;
    --ink: #2a1830;
    --muted: #71566d;
    --line: rgba(214, 0, 110, 0.14);
    --shadow-xl: 0 28px 80px rgba(111, 22, 74, 0.18);
    --shadow-md: 0 20px 50px rgba(111, 22, 74, 0.12);
    --radius-xl: 36px;
    --radius-lg: 26px;
    --radius-md: 18px;
    --content-width: min(1220px, calc(100% - 32px));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.post-summary {
    margin-top: 20px;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 220, 238, 0.8), transparent 28%),
        radial-gradient(circle at 90% 20%, rgba(255, 238, 245, 0.7), transparent 22%),
        linear-gradient(180deg, #fff7fb 0%, #fffdfd 42%, #fff4fa 100%);
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.site-bg {
    position: fixed;
    inset: auto auto 0 0;
    width: 44vw;
    height: 44vw;
    pointer-events: none;
    z-index: -2;
    opacity: 0.16;
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.site-bg-a {
    top: -6vw;
    left: -10vw;
    background-image: url("../images/maddre-nube-01.webp");
}

.site-bg-b {
    right: -12vw;
    bottom: -8vw;
    left: auto;
    background-image: url("../images/maddre-nube-02.webp");
}

.masthead,
.page-wrap,
.site-footer,
.cookie-banner {
    width: var(--content-width);
    margin: 0 auto;
}

.masthead {
    position: sticky;
    top: 18px;
    z-index: 30;
    padding-top: 18px;
}

.masthead-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(214, 0, 110, 0.98), rgba(126, 4, 83, 0.94));
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(18px);
}

.brandmark img {
    width: 138px;
    margin-left: 10px;
}

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

.main-nav a {
    padding: 10px 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.94rem;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
    position: relative;
}

.nav-toggle span {
    position: absolute;
    left: 13px;
    width: 22px;
    height: 2px;
    background: #fff;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span:first-child {
    top: 19px;
}

.nav-toggle span:last-child {
    top: 27px;
}

.nav-toggle.is-open span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.nav-toggle.is-open span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}

.page-wrap {
    padding: 24px 0 72px;
}

.section-tag,
.article-date,
.priority-badge {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(214, 0, 110, 0.08);
    color: var(--brand-deep);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
    line-height: 0.95;
}

h1,
h2 {
    font-family: "Fraunces", serif;
    letter-spacing: -0.04em;
}

h1 {
    font-size: clamp(2rem, 5.4vw, 5rem);
}

h2 {
    font-size: clamp(1.8rem, 3.5vw, 3.5rem);
}

.article-body h2 {
    font-size: clamp(1.3rem, 2vw, 2rem);
}

h3 {
    font-size: 1.3rem;
}

p,
li {
    line-height: 1.72;
    color: var(--muted);
}

ul {
    margin: 0;
    padding-left: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--brand), var(--brand-deep));
    color: #fff;
    box-shadow: var(--shadow-md);
}

.button-ghost {
    border-color: rgba(214, 0, 110, 0.18);
    background: rgba(255, 255, 255, 0.72);
    color: var(--brand-deep);
}

.hero-stage,
.inner-hero,
.buy-hero,
.post-layout,
.product-stage,
.chapter-card,
.journey-section,
.presentation-showcase,
.presentation-feature,
.detail-card,
.ingredients-section,
.cta-ribbon,
.article-card,
.pharmacy-card,
.quick-buy-card,
.buy-hero-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
}

.detail-card h1,
.detail-card h2 {
    margin-bottom: 15px;
}

.hero-stage,
.chapter-grid,
.presentation-deck,
.article-grid,
.journey-rail,
.presentation-listing,
.detail-grid,
.ingredients-grid,
.pharmacy-grid,
.quick-buy-grid,
.buy-hero,
.post-hero {
    display: grid;
    gap: 24px;
}

.hero-stage {
    min-height: 660px;
    display: flex;
    align-items: stretch;
    padding: 0;
}

.hero-stage-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08);
    transform-origin: center;
}

.hero-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.1) 34%, rgba(50, 10, 34, 0.14) 52%, rgba(50, 10, 34, 0.84) 100%);
    z-index: 1;
}

.cloud {
    position: absolute;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.75;
    pointer-events: none;
}

.cloud-left {
    left: -2%;
    top: 8%;
    width: 280px;
    height: 200px;
}

.hero-copy,
.product-stage-copy,
.buy-hero-copy,
.post-hero-copy {
    position: relative;
    z-index: 2;
}

.hero-copy {
    width: min(540px, 100%);
    margin: auto 72px auto auto;
    padding: 72px 0;
}

.hero-title {
    font-size: clamp(2.8rem, 5.8vw, 5.2rem);
}

.hero-title-mobile {
    display: none;
}

.hero-copy h1,
.hero-copy p {
    color: #fff;
}

.hero-copy .section-tag {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hero-copy .button-ghost {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.hero-copy p,
.inner-hero p,
.presentation-feature-copy p,
.article-body p,
.detail-card p,
.buy-hero-copy p,
.pharmacy-card p,
.quick-buy-card p,
.post-summary {
    max-width: 64ch;
}

.presentation-feature-copy ul {
    margin-bottom: 15px;
}

.hero-copy>p {
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.product-stage-art {
    position: relative;
    min-height: 600px;
}

.product-stage-frame {
    position: relative;
    width: min(100%, 560px);
    min-height: 620px;
    margin-left: auto;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 233, 244, 0.74));
    box-shadow: var(--shadow-xl);
}

.product-stage-ambient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-stage-toolkit,
.presentation-feature-toolkit {
    position: absolute;
    z-index: 3;
}

.chapter-grid {
    grid-template-columns: 0.92fr 1.08fr;
    margin-top: 28px;
}

.chapter-card {
    padding: 34px;
}

.chapter-card-quote {
    background: linear-gradient(135deg, rgba(214, 0, 110, 0.98), rgba(255, 103, 176, 0.92));
}

.chapter-card-quote .section-tag {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
}

.chapter-card-quote h2 {
    color: #fff;
    font-size: clamp(1.5rem, 3.4vw, 3.2rem);
}

.chapter-card-source {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.journey-section,
.presentation-showcase,
.article-preview,
.nutrition-counseling,
.ingredients-section,
.related-products,
.pharmacy-section,
.quick-buy {
    margin-top: 28px;
}

.journey-section,
.inner-hero,
.ingredients-section,
.post-layout,
.presentation-showcase {
    padding: 36px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-heading {
    width: 70%;
}

.journey-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.journey-stop {
    padding: 28px;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #fff 0%, #fff3f8 100%);
    border: 1px solid rgba(214, 0, 110, 0.12);
}

.journey-stop div {
    display: flex;
    align-items: center; /* Esto centra verticalmente los elementos hijos */
    margin-bottom: 20px;
}

.journey-stop div img {
    margin-right: 10px;
    height: 60px;
    width: auto; /* Mantiene la proporción de la imagen */
}

.journey-stop div h3 {
    margin: 0; /* Elimina márgenes por defecto del h3 que puedan descuadrar el centro */
}
.journey-stop span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800;
}

.presentation-deck {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.presentation-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-md);
}

.presentation-card.is-large {
    transform: translateY(-8px);
}

.presentation-art {
    position: relative;
    min-height: 400px;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.presentation-art::after,
.presentation-feature-art::after,
.product-stage-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.3));
}

.presentation-art-main,
.presentation-feature-ambient {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.presentation-art-fade {
    position: absolute;
    inset: 0;
}

.presentation-feature-fade {
    position: absolute;
    inset: 0;
}

.product-stage-fade {
    position: absolute;
    inset: 0;
}

.presentation-art-fade .presentation-art-main {
    z-index: 1;
}

.presentation-feature-fade .presentation-feature-ambient {
    z-index: 1;
}

.product-stage-fade .product-stage-ambient {
    z-index: 1;
}

.presentation-art-main-primary {
    animation: presentationFadePrimary 6s ease-in-out infinite;
}

.presentation-feature-ambient-primary {
    animation: presentationFadePrimary 6s ease-in-out infinite;
}

.product-stage-ambient-primary {
    animation: presentationFadePrimary 6s ease-in-out infinite;
}

.presentation-art-main-secondary {
    opacity: 0;
    animation: presentationFadeSecondary 6s ease-in-out infinite;
}

.presentation-feature-ambient-secondary {
    opacity: 0;
    animation: presentationFadeSecondary 6s ease-in-out infinite;
}

.product-stage-ambient-secondary {
    opacity: 0;
    animation: presentationFadeSecondary 6s ease-in-out infinite;
}

.presentation-art-product,
.presentation-feature-product,
.product-stage-pack {
    position: absolute;
    z-index: 2;
    width: 60%;
    right: -5%;
    bottom: -3%;
    filter: drop-shadow(0 20px 30px rgba(88, 18, 62, 0.18));
    z-index: 10;
}

@keyframes presentationFadePrimary {

    0%,
    45% {
        opacity: 1;
    }

    50%,
    95% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes presentationFadeSecondary {

    0%,
    45% {
        opacity: 0;
    }

    50%,
    95% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.presentation-body,
.article-body,
.quick-buy-card {
    padding: 24px;
}

.presentation-body h3,
.article-body h2,
.article-body h3 {
    margin: 10px 0 12px;
}

.presentation-body a,
.article-body a,
.quick-buy-card a,
.pharmacy-card a,
.back-link {
    color: var(--brand-deep);
    font-weight: 800;
}

.ingredient-card {
    /*
    padding: 26px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(214, 0, 110, 0.12);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-md);
    */
    text-align: center;
}

.ingredient-card img {
    /*width: 88px;*/
    height: 150px;
    margin: auto;
}

.ingredient-card p {
    padding: 0 !important;
    margin: 0 !important;
}

.cta-ribbon {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 30px 34px;
    margin-top: 28px;
    background: linear-gradient(135deg, rgba(255, 241, 248, 0.88), rgba(255, 255, 255, 0.94));
}

.article-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.article-grid-page {
    margin-top: 28px;
}

.nutrition-counseling {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 24px;
    padding: 34px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(255, 215, 232, 0.88), transparent 28%),
        linear-gradient(135deg, rgba(255, 246, 250, 0.96), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(214, 0, 110, 0.1);
    box-shadow: var(--shadow-md);
}

.nutrition-counseling-copy,
.nutrition-counseling-visual {
    position: relative;
    z-index: 1;
}

.nutrition-counseling-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nutrition-counseling-copy p {
    max-width: 58ch;
}

.nutrition-counseling-actions {
    margin-top: 10px;
}

.nutrition-counseling-visual {
    min-height: 420px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(214, 0, 110, 0.1);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-md);
}

.nutrition-counseling-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.article-card {
    overflow: hidden;
}

.article-card img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.inner-hero,
.buy-hero {
    padding: 44px;
    margin-top: 12px;
}

.presentation-listing {
    margin-top: 28px;
}

.presentation-feature {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    align-items: center;
    padding: 28px;
}

.presentation-feature.is-reverse {
    grid-template-columns: 1.3fr 0.7fr;
}

.presentation-feature.is-reverse .presentation-feature-art {
    order: 2;
}

.presentation-feature.is-reverse .presentation-feature-copy {
    order: 1;
}

.presentation-feature-art {
    position: relative;
    min-height: 450px;
    border-radius: 30px;
    background-position: bottom center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
}

.presentation-feature-toolkit {
    bottom: 12%;
    right: 4%;
    width: 160px;
    z-index: 2;
}

.presentation-feature-product {
    width: 34%;
    right: 6%;
    bottom: 8%;
    z-index: 3;
}

.presentation-feature-copy {
    padding: 10px 14px 10px 34px;
}

.product-stage {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    margin-top: 12px;
}

.product-stage::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/maddre-bg-02.webp');
    background-size: auto 100%;
    background-position: bottom center;
    background-repeat: repeat-x;
    opacity: 0.1;
    z-index: -1;
    transform: scaleX(-1);
}

.product-stage-copy {
    padding: 42px;
}

.product-stage-copy ul {
    margin-top: 18px;
}

.product-stage-copy li+li {
    margin-top: 10px;
}

.back-link {
    display: inline-flex;
    margin-bottom: 20px;
}

.product-stage-pack-secondary {
    width: 24%;
    right: 44%;
    bottom: 7%;
    opacity: 0.92;
}

.product-stage-toolkit {
    width: 210px;
    right: 4%;
    bottom: 15%;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
}

.detail-card {
    padding: 32px;
}

.dosage-section {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 520px;
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #fdf8fb;
    box-shadow: var(--shadow-md);
}

.dosage-section-media {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
}

.dosage-section-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Las imágenes empiezan invisibles */
    opacity: 0; 
    animation: imageFade 12s infinite;
}

/* Calculamos el retraso (delay) para cada imagen */
/* 12s total / 3 imágenes = 4s cada una */

.dosage-section-media img:nth-child(2) {
    animation-delay: 4s;
}

.dosage-section-media img:nth-child(3) {
    animation-delay: 8s;
}

@keyframes imageFade {
    0% {
        opacity: 0;
    }
    /* Aparece rápido */
    8% {
        opacity: 1;
    }
    /* Se mantiene visible (33% del tiempo total aprox) */
    33% {
        opacity: 1;
    }
    /* Se desvanece antes de que entre la siguiente */
    41% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.dosage-section-media::after {
    content: "";
    background:
        linear-gradient(90deg, rgba(255, 250, 252, 0.96) 0%, rgba(255, 250, 252, 0.9) 38%, rgba(255, 250, 252, 0.62) 58%, rgba(255, 250, 252, 0.16) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(214, 0, 110, 0.12));
}

.dosage-card {
    position: relative;
    z-index: 1;
    width: min(50%, 560px);
    min-height: 100%;
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 250, 252, 0.72));
    backdrop-filter: blur(10px);
}

.dosage-card h2 {
    margin-bottom: 0;
}

.dosage-richtext,
.dosage-list {
    color: var(--muted);
}

.dosage-richtext>*:first-child {
    margin-top: 0;
}

.dosage-richtext>*:last-child {
    margin-bottom: 0;
}

.dosage-richtext div {
    margin-bottom: 16px;
}

.dosage-richtext hr {
    margin: 18px 0;
    border: 0;
    border-top: 1px solid rgba(214, 0, 110, 0.18);
}

.dosage-list {
    margin: 0;
    padding-left: 18px;
}

.dosage-list li+li {
    margin-top: 12px;
}

.ingredients-grid,
.pharmacy-grid,
.quick-buy-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ingredients-grid {
    padding: 20px 0 40px 0;
}

.buy-hero {
    /*grid-template-columns: 1.12fr 0.88fr;*/
    align-items: center;
}

.buy-hero-card {
    padding: 34px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: linear-gradient(135deg, rgba(214, 0, 110, 0.95), rgba(255, 87, 161, 0.92));
}

.buy-hero-card .priority-badge,
.buy-hero-card p {
    color: #fff;
}

.buy-hero-card .priority-badge {
    background: rgba(255, 255, 255, 0.18);
    width: fit-content;
}

.pharmacy-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    padding: 16px 20px;
    border-radius: 24px;
    background: #fff;
    border: 1px solid rgba(214, 0, 110, 0.1);
}

.pharmacy-logo img {
    /*max-width: 180px;*/
    max-height: 35px;
    width: auto;
    height: auto;
}

.pharmacy-logo span {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--brand-deep);
}

.pharmacy-logo-highlight {
    min-height: 112px;
    background: rgba(255, 255, 255, 0.98);
}

.pharmacy-logo-highlight img {
    max-width: 220px;
    max-height: 64px;
}

.pharmacy-card {
    padding: 28px;
}

.pharmacy-card.is-priority {
    background: linear-gradient(135deg, rgba(255, 246, 250, 0.98), rgba(234, 255, 243, 0.96));
}

.pharmacy-note {
    color: var(--muted);
    font-weight: 700;
}

.quick-buy-card img {
    width: 150px;
    height: 180px;
    object-fit: contain;
    margin-bottom: 16px;
}

.post-layout {
    padding: 34px;
    margin-top: 12px;
}

.post-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    margin: 10px 0 28px;
}

.post-hero-media img {
    width: 100%;
    min-height: 420px;
    object-fit: cover;
    border-radius: 32px;
    border: 1px solid #d6006e;
}

.post-body table {
    margin-bottom: 15px;
}

.post-body table td {
    padding: 10px;
    border-bottom: 1px solid #dedede;
}

.post-body table td p {
    margin-bottom: 6px;
    margin-top: 6px;
}

.post-body table thead {
    background-color: #efefef;
}

.post-body p {
    margin: 16px 0 16px;
}

.site-footer {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    padding: 18px 0 44px;
    border-top: 1px solid rgba(214, 0, 110, 0.12);
}

.footer-brand {
    padding-right: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(214, 0, 110, 0.08);
}

.footer-meta p {
    margin: 0;
}

.site-footer a,
.footer-link {
    display: block;
    margin-bottom: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    text-align: left;
    cursor: pointer;
}

.footer-kicker {
    color: var(--brand-deep);
    font-weight: 800;
}

.site-footer .footer-social-link,
.site-footer .footer-report-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    white-space: nowrap;
}

.site-footer .footer-social-link img,
.site-footer .footer-report-link img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.site-footer .footer-social-link span,
.site-footer .footer-report-link span {
    display: inline-block;
    line-height: 1.3;
}

.site-footer .footer-report-link {
    margin-top: 12px;
    margin-bottom: 0;
    padding: 12px 14px;
    border: 1px solid rgba(214, 0, 110, 0.18);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--brand-deep);
    box-shadow: 0 12px 24px rgba(111, 22, 74, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.site-footer .footer-report-link:hover {
    transform: translateY(-2px);
    border-color: rgba(214, 0, 110, 0.28);
    background: #fff;
    box-shadow: 0 16px 30px rgba(111, 22, 74, 0.12);
}

.cookie-banner {
    position: fixed;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(31, 8, 27, 0.8);
    box-shadow: var(--shadow-xl);
}

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner strong,
.cookie-banner p {
    color: #fff;
}

.cookie-banner strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.94rem;
    line-height: 1.2;
}

.cookie-banner p {
    margin: 0;
    max-width: 58ch;
    font-size: 0.9rem;
    line-height: 1.4;
    opacity: 0.82;
}

.cookie-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookie-policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.cookie-policy-status {
    margin-top: 16px;
    color: var(--brand-deep);
    font-weight: 700;
}

.cookie-actions .button {
    min-height: 40px;
    padding: 0 15px;
    font-size: 0.88rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {

    .hero-stage,
    .product-stage,
    .buy-hero,
    .post-hero,
    .presentation-feature,
    .nutrition-counseling,
    .presentation-feature.is-reverse,
    .chapter-grid,
    .detail-grid,
    .journey-rail,
    .article-grid,
    .presentation-deck,
    .ingredients-grid,
    .pharmacy-grid,
    .quick-buy-grid,
    .site-footer {
        grid-template-columns: 1fr 1fr;
    }

    .hero-stage,
    .product-stage,
    .buy-hero,
    .post-hero,
    .presentation-feature,
    .nutrition-counseling,
    .presentation-feature.is-reverse,
    .chapter-grid {
        grid-template-columns: 1fr;
    }

    .presentation-feature.is-reverse .presentation-feature-art,
    .presentation-feature.is-reverse .presentation-feature-copy {
        order: initial;
    }
}

@media (max-width: 820px) {
    .masthead-bar {
        border-radius: 30px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 26px;
        background: rgba(214, 0, 110, 0.98);
        box-shadow: var(--shadow-xl);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 14px 16px;
    }

    .hero-stage,
    .inner-hero,
    .buy-hero,
    .post-layout,
    .journey-section,
    .ingredients-section,
    .dosage-card,
    .product-stage,
    .presentation-feature,
    .nutrition-counseling {
        padding: 26px;
    }

    .hero-stage,
    .product-stage {
        min-height: auto;
    }

    .product-stage-art {
        min-height: 420px;
    }

    .product-stage-copy {
        padding: 30px;
    }

    .product-stage-copy .hero-actions {
        gap: 12px;
    }

    .product-stage-copy .hero-actions .button {
        min-height: 50px;
    }

    .dosage-section {
        min-height: 460px;
    }

    .dosage-card {
        width: min(68%, 560px);
    }

    .nutrition-counseling-copy h2,
    .nutrition-counseling-copy p {
        max-width: none;
    }

    .nutrition-counseling-visual {
        min-height: 360px;
    }

    .product-stage-frame {
        min-height: 420px;
        margin: 0 auto;
    }

    .hero-copy {
        width: min(100% - 52px, 460px);
        margin: auto 26px 26px auto;
        padding: 112px 0 0;
    }

    .section-heading {
        width: 85%;
    }

    .article-grid,
    .presentation-deck,
    .ingredients-grid,
    .pharmacy-grid,
    .quick-buy-grid,
    .journey-rail,
    .detail-grid,
    .site-footer {
        grid-template-columns: 1fr;
    }

    .footer-meta {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .cta-ribbon,
    .cookie-banner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    :root {
        --content-width: min(100% - 20px, 1220px);
    }

    .brandmark img {
        width: 118px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .product-stage-frame {
        box-shadow: initial;
        margin-top: 15px;
        border: 1px solid var(--brand)
    }

    .product-stage-frame .product-stage-pack {
        width: 230px;
    }

    h2 {
        font-size: 1.9rem;
    }

    .presentation-art {
        min-height: 300px;
    }

    .hero-stage-image {
        object-position: left center;
        transform: scale(1.12);
        transform-origin: left center;
    }

    .hero-stage::after {
        background: linear-gradient(180deg, rgba(50, 10, 34, 0.02) 0%, rgba(50, 10, 34, 0.16) 42%, rgba(50, 10, 34, 0.84) 100%);
    }

    .hero-copy {
        width: 100%;
        margin: auto 16px 16px auto;
        padding: 120px 0 0;
    }

    .hero-copy p {
        font-size: 1em;
        line-height: 1.2em;
    }

    .section-heading {
        width: 100%;
    }

    .hero-title-desktop {
        display: none;
    }

    .hero-title-mobile {
        display: block;
        font-size: clamp(2.2rem, 7vw, 2.9rem);
    }

    .product-stage-pack {
        width: 46%;
    }

    .product-stage-pack-secondary {
        width: 28%;
        right: 48%;
    }

    .product-stage-copy {
        padding: 0;
    }

    .product-stage-copy ul {
        padding-left: 18px;
    }

    .product-stage-copy .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .product-stage-copy .hero-actions .button {
        width: 100%;
    }

    .presentation-feature-copy {
        padding: 20px 0 10px 0;
    }

    .ingredients-grid {
        padding: 10px 0 0;
    }

    .nutrition-counseling-visual {
        min-height: 280px;
    }

    .nutrition-counseling-actions .button {
        width: 100%;
    }

    .ingredient-card {
        padding: 22px;
    }

    .dosage-section {
        min-height: auto;
    }

    .dosage-section-media::after {
        background:
            linear-gradient(180deg, rgba(255, 250, 252, 0.2) 0%, rgba(255, 250, 252, 0.62) 36%, rgba(255, 250, 252, 0.95) 72%, rgba(255, 250, 252, 0.98) 100%),
            linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(214, 0, 110, 0.08));
    }

    .dosage-card {
        width: 100%;
        min-height: auto;
        margin-top: 180px;
        padding: 24px;
        gap: 14px;
    }

    .dosage-richtext div {
        margin-bottom: 14px;
    }

    .dosage-richtext hr {
        margin: 14px 0;
    }

    .presentation-feature-product {
        width: 42%;
    }

    .cookie-banner {
        left: 10px;
        right: 10px;
    }
}
/* --- MODAL STYLES --- */
.modal-overlay {
    position: fixed;
    inset: 0; /* Ocupa el 100% de la ventana del navegador */
    background: rgba(42, 24, 48, 0.55);
    backdrop-filter: blur(12px);
    z-index: 99999; /* Forzamos a que flote sobre menús sticky o cualquier elemento */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-active {
    opacity: 1;
    pointer-events: auto;
}

.modal-wrapper {
    position: relative;
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 640px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.is-active .modal-wrapper {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand-deep);
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: transform 0.2s ease, background 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.08);
    background: #ffd2e6;
}

.modal-body {
    padding: 36px;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-body img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
}

/* Optimización para pantallas pequeñas */
@media (max-width: 640px) {
    .modal-body {
        padding: 24px 16px 16px;
    }
    .modal-wrapper {
        border-radius: var(--radius-lg);
    }
}