/* CéspedPerú 4.6.7 · logotipo destacado y adaptable */
.rich-content .page-about-template {
    color: var(--text);
}
/* CéspedPerú 4.6.7: marca más visible y portada adaptable. */
.cespedperu-theme .header-inner { grid-template-columns:clamp(300px,29vw,375px) minmax(255px,1fr) auto auto; min-height:94px; }
.cespedperu-theme .garden-brand-logo { width:clamp(300px,29vw,375px); height:84px; object-fit:contain; }
.cespedperu-theme .garden-footer-brand img { width:270px; height:76px; }
.admin-cespedperu .admin-brand img { width:190px; height:58px; }

.new-products-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:clamp(20px,2.8vw,38px); align-items:stretch; }
.new-products-layout.with-promo { grid-template-columns:minmax(260px,31%) minmax(0,1fr); }
.new-products-main { min-width:0; display:flex; flex-direction:column; }
.new-products-main .section-head { margin-bottom:1.45rem; }
.new-products-main .front-carousel { min-width:0; }
.new-products-main .front-carousel-products .front-carousel-track { grid-auto-columns:calc((100% - 36px)/3); gap:18px; }
.new-products-promo { position:relative; display:block; align-self:stretch; min-width:0; min-height:0; overflow:hidden; background:var(--surface-2); color:#182b1e; text-decoration:none; isolation:isolate; transition:transform .25s ease,box-shadow .25s ease; }
.new-products-promo:hover,.new-products-promo:focus-visible { transform:translateY(-4px); box-shadow:0 16px 36px rgba(15,47,23,.17); }
.new-products-promo:focus-visible { outline:3px solid var(--brand-gold); outline-offset:3px; }
.new-products-promo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:center; }
.new-products-promo::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(255,255,255,.93) 0%,rgba(255,255,255,.78) 25%,rgba(255,255,255,0) 58%); pointer-events:none; }
.new-products-promo-copy { position:relative; z-index:1; display:grid; justify-items:start; align-content:start; gap:.45rem; padding:clamp(24px,2.9vw,42px); }
.new-products-promo-copy small { color:#2e5030; font-size:.78rem; font-weight:700; line-height:1.4; text-transform:uppercase; }
.new-products-promo-copy strong { max-width:16ch; color:#18231e; font-size:clamp(1.35rem,2.05vw,2rem); font-weight:900; line-height:1.1; text-transform:uppercase; }
.new-products-promo-copy > span { margin-top:.35rem; color:#2e5030; font-size:.9rem; font-weight:850; text-transform:uppercase; }
html.dark .new-products-promo img { filter:none; opacity:1; }

.showcase-services-track { grid-auto-columns:calc((100% - 3.9rem)/4); gap:1.3rem; padding-bottom:.5rem; touch-action:auto; }
.showcase-services-carousel .front-carousel-arrow { top:43%; }
@media(max-width:1100px) {
    .cespedperu-theme .header-inner { grid-template-columns:clamp(250px,31vw,340px) minmax(240px,1fr) auto; }
    .cespedperu-theme .garden-brand-logo { width:clamp(250px,31vw,340px); height:78px; }
    .cespedperu-theme .garden-footer-brand img { width:250px; }
}
@media(max-width:1024px) {
    .new-products-layout.with-promo { grid-template-columns:minmax(220px,32%) minmax(0,1fr); }
    .new-products-main .front-carousel-products .front-carousel-track { grid-auto-columns:calc((100% - 14px)/2); gap:14px; }
}
@media(max-width:1100px) {
    .showcase-services-track { grid-auto-columns:calc((100% - 1.1rem)/2); gap:1.1rem; }
}
@media(max-width:820px) {
    .cespedperu-theme .header-inner { grid-template-columns:42px minmax(120px,1fr) auto; min-height:78px; }
    .cespedperu-theme .garden-brand-logo { width:min(320px,55vw); height:70px; }
}
@media(max-width:760px) {
    .new-products-layout.with-promo { grid-template-columns:minmax(0,1fr); }
    .new-products-promo { min-height:clamp(245px,45vw,340px); }
    .new-products-promo img { object-position:center 58%; }
}
@media(max-width:760px) {
    .showcase-services-track { grid-auto-columns:100%; gap:.75rem; }
    .showcase-services-carousel .front-carousel-controls { display:none !important; }
}
@media(max-width:560px) {
    .cespedperu-theme .header-inner { min-height:68px; }
    .cespedperu-theme .garden-brand-logo { width:min(270px,calc(100vw - 130px)); height:62px; }
    .cespedperu-theme .garden-footer-brand img { width:min(225px,80vw); height:70px; }
    .new-products-promo { min-height:300px; }
    .new-products-promo-copy { padding:25px; }
    .new-products-main .section-head { margin-bottom:1rem; }
    .new-products-main .front-carousel-products .front-carousel-track { grid-auto-columns:calc((100% - 12px)/2); gap:12px; }
}
@media(prefers-reduced-motion:reduce) {
    .new-products-promo { transition:none; }
}
.rich-content .page-about-editorial {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(2.25rem, 4vw, 5rem);
    align-items: center;
    min-height: 720px;
}
.rich-content .page-about-copy,
.rich-content .page-about-visual {
    min-width: 0;
}
.rich-content .page-about-heading {
    margin: 0 0 2.25rem;
}
.rich-content .page-about-kicker {
    display: block;
    margin-bottom: .45rem;
    color: var(--primary-strong);
    font-size: clamp(.88rem, 1.45vw, 1.08rem);
    line-height: 1.3;
}
.rich-content .page-about-heading h2 {
    position: relative;
    margin: 0;
    padding-bottom: 1.15rem;
    color: var(--text);
    font-size: clamp(2rem, 3.8vw, 3rem);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -.035em;
}
.rich-content .page-about-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: var(--brand-gold);
    content: "";
}
.rich-content .page-about-description {
    max-width: 665px;
    color: var(--muted);
    font-size: clamp(.94rem, 1.3vw, 1.05rem);
    line-height: 1.55;
}
.rich-content .page-about-description p {
    margin: 0 0 1rem;
}
.rich-content .page-about-intro {
    color: color-mix(in srgb, var(--text) 72%, var(--muted));
}
.rich-content .page-about-pillars {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1.25rem, 3vw, 2.75rem);
    margin-top: clamp(2.1rem, 4vw, 3.5rem);
}
.rich-content .page-about-pillars article {
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    min-width: 0;
}
.rich-content .page-about-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    color: var(--brand-gold);
}
.rich-content .page-about-icon svg {
    display: block;
    width: 48px;
    height: 48px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}
.rich-content .page-about-icon-eye svg {
    stroke-width: 4;
}
.rich-content .page-about-pillars h3 {
    margin: 0 0 .35rem;
    color: var(--text);
    font-size: clamp(1.15rem, 2vw, 1.48rem);
    font-weight: 900;
    line-height: 1.15;
}
.rich-content .page-about-pillars p {
    margin: 0;
    color: var(--muted);
    font-size: clamp(.9rem, 1.25vw, 1rem);
    line-height: 1.5;
}
.rich-content .page-about-values {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 1rem;
    align-items: center;
    max-width: 570px;
    margin: clamp(2.5rem, 5vw, 4rem) 0 0;
    padding: 0;
    border: 0;
    color: var(--primary-strong);
}
.rich-content .page-about-values > span {
    height: 48px;
    color: var(--brand-gold);
    font-family: Georgia, serif;
    font-size: 5.2rem;
    font-weight: 700;
    line-height: .82;
}
.rich-content .page-about-values p {
    margin: 0;
    font-size: clamp(.92rem, 1.45vw, 1.06rem);
    font-style: italic;
    line-height: 1.55;
}
.rich-content .page-about-visual {
    position: relative;
    min-height: 650px;
}
.rich-content .page-about-brand {
    position: absolute;
    top: 0;
    left: 7%;
    z-index: 3;
    display: grid;
    justify-items: center;
    width: 51%;
    margin: 0;
    padding: 1rem 1rem .85rem;
    background: var(--surface);
    text-align: center;
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.rich-content .page-about-brand > img {
    display: block;
    width: min(100%, 220px);
    aspect-ratio: 1;
    object-fit: contain;
    filter: none;
}
.rich-content .page-about-brand figcaption {
    display: grid;
    grid-template-columns: auto auto;
    align-items: start;
    justify-content: center;
    color: var(--primary-strong);
    line-height: .9;
}
.rich-content .page-about-brand figcaption strong {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 900;
    letter-spacing: -.06em;
}
.rich-content .page-about-brand figcaption > span {
    margin: .12rem 0 0 .22rem;
    font-size: clamp(.7rem, 1vw, .95rem);
    font-weight: 900;
    writing-mode: vertical-rl;
}
.rich-content .page-about-brand figcaption small {
    grid-column: 1 / -1;
    margin-top: .45rem;
    font-size: clamp(.32rem, .52vw, .48rem);
    font-weight: 800;
    line-height: 1.2;
}
.rich-content .page-about-photo {
    position: absolute;
    right: 0;
    bottom: 2%;
    z-index: 1;
    width: 76%;
    height: 49%;
    margin: 0;
    overflow: hidden;
    background: var(--surface-2);
    box-shadow: 0 18px 45px rgba(24, 55, 28, .12);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.rich-content .page-about-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: none;
    transition: transform .5s ease;
}
.rich-content .page-about-experience {
    position: absolute;
    bottom: 0;
    left: 0;
    z-index: 4;
    display: grid;
    align-content: center;
    width: 41%;
    min-height: 140px;
    padding: 1.2rem;
    background: color-mix(in srgb, var(--primary) 72%, #173f2b);
    color: #fff;
    box-shadow: 0 14px 35px rgba(22, 55, 27, .18);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.rich-content .page-about-experience strong {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    font-size: clamp(2.3rem, 4.2vw, 3.4rem);
    font-weight: 900;
    line-height: 1;
}
.rich-content .page-about-experience sup {
    margin-top: -.08rem;
    font-size: .48em;
}
.rich-content .page-about-experience small {
    margin-top: .65rem;
    color: #fff;
    font-size: clamp(.72rem, 1.15vw, .95rem);
    font-weight: 800;
    line-height: 1.25;
}
.rich-content .page-about-brand:hover,
.rich-content .page-about-experience:hover {
    transform: translateY(-6px);
}
.rich-content .page-about-photo:hover {
    transform: translateY(-5px);
}
.rich-content .page-about-photo:hover img {
    transform: scale(1.025);
}
html.dark .rich-content .page-about-brand {
    background: #1b2d1b;
}
html.dark .rich-content .page-about-brand > img,
html.dark .rich-content .page-about-photo img {
    filter: none !important;
}
html.dark .rich-content .page-about-intro {
    color: #d9e5d7;
}

/* Consulta segura de DNI y RUC con APIPerú */
.document-lookup-field {
    min-width: 0;
}
.document-lookup-control {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
    gap: .5rem;
    align-items: stretch;
}
.document-lookup-control .field {
    min-width: 0;
}
.document-lookup-button {
    display: grid;
    place-items: center;
    min-width: 46px;
    min-height: 46px;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--primary) 70%, #244f28);
    border-radius: var(--radius, 10px);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 7px 16px rgba(24, 73, 34, .16);
    transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}
.document-lookup-button:hover,
.document-lookup-button:focus-visible {
    transform: translateY(-1px);
    filter: brightness(.94);
    box-shadow: 0 9px 20px rgba(24, 73, 34, .22);
}
.document-lookup-button:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 30%, transparent);
    outline-offset: 2px;
}
.document-lookup-button:disabled {
    cursor: not-allowed;
    opacity: .72;
}
.document-lookup-button.is-loading:disabled {
    cursor: wait;
}
.document-lookup-button svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
}
.document-lookup-button.is-loading svg {
    animation: document-lookup-pulse .8s ease-in-out infinite alternate;
}
.document-lookup-status {
    display: block;
    min-height: 1.35em;
    margin-top: .38rem;
    color: var(--muted);
    font-size: .76rem;
    line-height: 1.35;
}
.document-lookup-status[data-state="success"] {
    color: #2f702f;
    font-weight: 700;
}
.document-lookup-status[data-state="error"] {
    color: #b42318;
    font-weight: 700;
}
.document-lookup-status[data-state="loading"] {
    color: var(--primary);
    font-weight: 700;
}
.integration-provider-note {
    margin-top: .85rem;
    padding: .9rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius, 10px);
    background: var(--surface-2);
}
.integration-provider-note p {
    margin: .25rem 0 0;
    color: var(--muted);
}
html.dark .document-lookup-button {
    color: #10210f;
}
html.dark .document-lookup-status[data-state="success"] {
    color: #a5db86;
}
html.dark .document-lookup-status[data-state="error"] {
    color: #ffaaaa;
}
@keyframes document-lookup-pulse {
    from { opacity: .45; transform: scale(.88); }
    to { opacity: 1; transform: scale(1.05); }
}

@media (max-width: 980px) {
    .rich-content .page-about-editorial {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .rich-content .page-about-visual {
        min-height: 600px;
    }
    .rich-content .page-about-brand {
        left: 10%;
        width: 46%;
    }
    .rich-content .page-about-photo {
        width: 72%;
        height: 54%;
    }
    .rich-content .page-about-experience {
        width: 36%;
    }
}

@media (max-width: 640px) {
    .rich-content .page-about-heading h2 {
        max-width: calc(100vw - 48px);
        font-size: clamp(1.65rem, 8vw, 2.15rem);
        overflow-wrap: anywhere;
    }
    .rich-content .page-about-heading h2::after {
        width: 110px;
    }
    .rich-content .page-about-description,
    .rich-content .page-about-pillars,
    .rich-content .page-about-values {
        max-width: calc(100vw - 48px);
    }
    .rich-content .page-about-pillars {
        grid-template-columns: 1fr;
        gap: 1.7rem;
    }
    .rich-content .page-about-values {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .rich-content .page-about-values > span {
        font-size: 4.2rem;
    }
    .rich-content .page-about-visual {
        display: grid;
        gap: 1rem;
        min-height: 0;
        padding-bottom: 76px;
    }
    .rich-content .page-about-brand,
    .rich-content .page-about-photo {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
    }
    .rich-content .page-about-brand {
        padding: .9rem;
    }
    .rich-content .page-about-brand > img {
        width: min(58vw, 190px);
    }
    .rich-content .page-about-photo {
        aspect-ratio: 1.35 / 1;
    }
    .rich-content .page-about-experience {
        bottom: 0;
        left: 4%;
        width: min(64%, 220px);
        min-height: 126px;
    }
    .rich-content .page-about-brand:hover,
    .rich-content .page-about-photo:hover,
    .rich-content .page-about-experience:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rich-content .page-about-brand,
    .rich-content .page-about-photo,
    .rich-content .page-about-photo img,
    .rich-content .page-about-experience {
        transition: none;
    }
    .document-lookup-button,
    .document-lookup-button.is-loading svg {
        animation: none;
        transition: none;
    }
}
