/* ============================================================
   Avadía Natural — avadia.css
   Palette: Forest #003B3A | Leaf #00AF4C | Teal #00BFB3
            Cream #EFE6C8 | Warm white #FAFDF8
   Typography: Quicksand 700/800 (headings) · Montserrat 600 (sub)
               Lato 400 (body)
   ============================================================ */

.avadia-page {
    /* Core palette */
    --av-forest:    #003B3A;
    --av-forest-lt: #005250;
    --av-leaf:      #00AF4C;
    --av-leaf-dk:   #008C3D;
    --av-teal:      #00BFB3;
    --av-cream:     #EFE6C8;
    --av-bg:        #FAFDF8;
    --av-card:      #F1F5F0;
    --av-dark:      #1A2B1A;
    --av-muted:     #536253;
    --av-border:    rgba(0, 59, 58, 0.1);

    /* Typography */
    --av-heading: 'Quicksand', 'Nunito Sans', system-ui, sans-serif;
    --av-sub:     'Montserrat', system-ui, sans-serif;
    --av-body:    'Lato', 'Open Sans', system-ui, sans-serif;

    /* Shape */
    --av-radius:    12px;
    --av-radius-lg: 18px;

    /* Per-line accent (overridden via inline style on each section) */
    --line-color: #00543D;
    --line-bg:    rgba(0, 84, 61, 0.08);

    font-family: var(--av-body);
    background: var(--av-bg);
    color: var(--av-dark);
}

/* ── Hero ────────────────────────────────────────────────────────── */

.avadia-hero {
    background: var(--av-forest);
    padding-top: 120px; /* clears fixed nav */
    padding-bottom: 88px;
    overflow: hidden;
    position: relative;
}

/* Subtle botanical leaf watermark pattern */
.avadia-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15 Q68 35 50 55 Q32 35 50 15Z' fill='%23ffffff' fill-opacity='0.025'/%3E%3Cpath d='M20 60 Q38 80 20 100 Q2 80 20 60Z' fill='%23ffffff' fill-opacity='0.018'/%3E%3Cpath d='M80 10 Q98 30 80 50 Q62 30 80 10Z' fill='%23ffffff' fill-opacity='0.015'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}

.avadia-hero__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .avadia-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.avadia-hero__logo {
    width: 180px;
    height: auto;
    display: block;
    margin-bottom: 28px;
}

.avadia-hero__title {
    font-family: var(--av-heading);
    font-size: 36px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.14;
    margin: 0 0 18px;
    letter-spacing: -0.02em;
}

@media (min-width: 768px)  { .avadia-hero__title { font-size: 48px; } }
@media (min-width: 1200px) { .avadia-hero__title { font-size: 58px; } }

.avadia-hero__subtitle {
    font-family: var(--av-body);
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    margin: 0 0 36px;
    max-width: 460px;
}

.avadia-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--av-leaf);
    color: #ffffff;
    font-family: var(--av-sub);
    font-size: 14.5px;
    font-weight: 600;
    text-decoration: none;
    padding: 14px 30px;
    border-radius: 100px;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.avadia-hero__cta:hover {
    background: #00c656;
    transform: translateY(-1px);
}

.avadia-hero__cta svg {
    flex-shrink: 0;
}

.avadia-hero__visual {
    position: relative;
}

.avadia-hero__img {
    width: 100%;
    height: auto;
    border-radius: var(--av-radius-lg);
    object-fit: cover;
    aspect-ratio: 4 / 3;
    display: block;
}

.avadia-hero__img-ph {
    aspect-ratio: 4 / 3;
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px dashed rgba(255, 255, 255, 0.15);
    border-radius: var(--av-radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.avadia-hero__img-ph::before {
    content: 'imagen requerida';
    font-size: 11px;
    font-family: var(--av-sub);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.2);
}

.avadia-hero__img-ph span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    font-family: monospace;
}

/* ── Sellos de calidad ───────────────────────────────────────────── */

.avadia-sellos {
    background: #ffffff;
    border-bottom: 1px solid var(--av-border);
    padding-block: 14px;
}

.avadia-sellos__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: nowrap;
}

.avadia-sellos__list::-webkit-scrollbar { display: none; }

.avadia-sello {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 59, 58, 0.06);
    border: 1px solid rgba(0, 59, 58, 0.12);
    color: var(--av-forest);
    font-family: var(--av-sub);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 13px 5px 8px;
    border-radius: 100px;
    white-space: nowrap;
    flex-shrink: 0;
}

.avadia-sello__icon {
    color: var(--av-leaf);
    flex-shrink: 0;
}

/* ── Quick Nav ───────────────────────────────────────────────────── */

.avadia-qnav {
    background: #ffffff;
    border-bottom: 1px solid var(--av-border);
    position: sticky;
    top: 66px; /* sits below the fixed site nav */
    z-index: 100;
}

.avadia-qnav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    overflow-x: auto;
    padding-block: 12px;
    scrollbar-width: none;
}

.avadia-qnav__list::-webkit-scrollbar { display: none; }

.avadia-qnav__link {
    font-family: var(--av-sub);
    font-size: 13px;
    font-weight: 600;
    color: var(--av-muted);
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.avadia-qnav__link:hover {
    color: var(--qlink-color, var(--av-forest));
    background: rgba(0, 59, 58, 0.06);
}

/* ── Line sections ───────────────────────────────────────────────── */

.avadia-line {
    padding-block: 80px;
    background: var(--av-bg);
}

.avadia-line--alt {
    background: #ffffff;
}

/* Baby section: soft pastel gradient */
.avadia-line--baby {
    background: linear-gradient(
        135deg,
        rgba(185, 217, 235, 0.18) 0%,
        rgba(250, 223, 229, 0.18) 100%
    ), #ffffff;
}

.avadia-line__header {
    margin-bottom: 40px;
}

/* Per-line color badge */
.avadia-line__badge {
    display: inline-flex;
    align-items: center;
    background: var(--line-bg);
    color: var(--line-color);
    font-family: var(--av-sub);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 100px;
    margin-bottom: 12px;
}

.avadia-line__name {
    font-family: var(--av-heading);
    font-size: 34px;
    font-weight: 800;
    color: var(--av-dark);
    margin: 0 0 10px;
    line-height: 1.13;
    letter-spacing: -0.02em;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 10px;
}

@media (min-width: 768px) { .avadia-line__name { font-size: 40px; } }

/* Smaller sub-brand label inside the h2 (e.g. "Biosensitive", "+ Biotina") */
.avadia-line__subbrand {
    font-family: var(--av-sub);
    font-size: 0.52em;
    font-weight: 700;
    color: var(--line-color);
    letter-spacing: 0.01em;
    line-height: 1.2;
}

.avadia-line__tagline {
    font-family: var(--av-body);
    font-size: 14px;
    line-height: 1.65;
    color: var(--av-muted);
    margin: 0;
    max-width: 620px;
}

/* ── Product grid ────────────────────────────────────────────────── */

.avadia-line__products {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

@media (min-width: 600px) {
    .avadia-line__products {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .avadia-line__products {
        grid-template-columns: repeat(4, 1fr);
        gap: 22px;
    }
}

/* Narrow grid for lines with ≤3 products */
.avadia-line__products--small {
    max-width: 760px;
}

@media (min-width: 600px) {
    .avadia-line__products--small {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .avadia-line__products--small {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Two-product lines (Aloe) — centered pair */
.avadia-line__products--duo {
    max-width: 480px;
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
    .avadia-line__products--duo { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .avadia-line__products--duo { grid-template-columns: repeat(2, 1fr); }
}

/* ── Product card ────────────────────────────────────────────────── */

.avadia-card {
    background: #ffffff;
    border-radius: var(--av-radius);
    border: 1px solid var(--av-border);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.avadia-card:hover {
    box-shadow: 0 10px 32px rgba(0, 59, 58, 0.1);
    transform: translateY(-3px);
}

.avadia-card__img-wrap {
    aspect-ratio: 5 / 7.2;
    overflow: hidden;
    background: var(--av-card);
    flex-shrink: 0;
}

.avadia-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.avadia-card:hover .avadia-card__img {
    transform: scale(1.05);
}

.avadia-card__img-ph {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    text-align: center;
    font-size: 10px;
    color: rgba(0, 59, 58, 0.3);
    font-family: monospace;
    line-height: 1.45;
}

.avadia-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 6px;
}

.avadia-card__name {
    font-family: var(--av-heading);
    font-size: 15.5px;
    font-weight: 700;
    color: var(--av-dark);
    line-height: 1.25;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Variant label inherits --line-color from the enclosing section */
.avadia-card__variant {
    font-family: var(--av-sub);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--line-color);
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.avadia-card__desc {
    font-family: var(--av-body);
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--av-muted);
    margin: 0;
    flex: 1;
}

.avadia-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--av-border);
}

.avadia-card__volume {
    font-family: var(--av-sub);
    font-size: 11.5px;
    font-weight: 600;
    color: rgba(83, 98, 83, 0.85);
    background: var(--av-card);
    padding: 3px 10px;
    border-radius: 100px;
    white-space: nowrap;
}

.avadia-card__price {
    font-family: var(--av-heading);
    font-size: 16px;
    font-weight: 800;
    color: var(--av-forest);
    white-space: nowrap;
}

/* ── Baby & Kids — claim badges ──────────────────────────────────── */

.avadia-line__baby-claims {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

.avadia-baby-claim {
    display: inline-flex;
    align-items: center;
    font-family: var(--av-sub);
    font-size: 12px;
    font-weight: 600;
    background: var(--line-bg);
    color: var(--line-color);
    padding: 5px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

/* ── CTA final ───────────────────────────────────────────────────── */

.avadia-cta {
    background: var(--av-forest);
    padding-block: 84px;
    position: relative;
    overflow: hidden;
}

/* Reuse the leaf pattern from hero */
.avadia-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M50 15 Q68 35 50 55 Q32 35 50 15Z' fill='%23ffffff' fill-opacity='0.02'/%3E%3C/svg%3E");
    background-size: 100px 100px;
    pointer-events: none;
}

.avadia-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 36px;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .avadia-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.avadia-cta__title {
    font-family: var(--av-heading);
    font-size: 30px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.18;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) { .avadia-cta__title { font-size: 38px; } }

.avadia-cta__sub {
    font-family: var(--av-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    max-width: 440px;
    line-height: 1.7;
}

.avadia-cta__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex-shrink: 0;
}

@media (min-width: 480px) {
    .avadia-cta__actions { flex-direction: row; }
}

.avadia-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--av-sub);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 100px;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.avadia-cta__btn--primary {
    background: var(--av-leaf);
    color: #ffffff;
    border: 2px solid var(--av-leaf);
}

.avadia-cta__btn--primary:hover {
    background: #00c656;
    border-color: #00c656;
}

.avadia-cta__btn--outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.28);
}

.avadia-cta__btn--outline:hover {
    border-color: rgba(255, 255, 255, 0.65);
    color: #ffffff;
}
