/* ALTHEA: warm stone, deep olive and restrained editorial typography. */
:root{--verde-oliva:#66705a;--verde-oliva-oscuro:#293b32;--verde-oliva-suave:#b9c0af;--verde-fondo-sutil:#efeee7;--blanco-roto:#f7f6f1;--gris-suave:#dedfd5;--texto-oscuro:#29362e}
html{scroll-behavior:smooth;scroll-padding-top:130px}
body{background:#f7f6f1;line-height:1.6;-webkit-font-smoothing:antialiased}
header{background:rgba(247,246,241,.96);backdrop-filter:blur(18px);border-bottom:1px solid #dedfd5;box-shadow:none}
.header-top{padding:20px 5vw}.logo-header{letter-spacing:.24em}
h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400;line-height:1.2}
.section-title{font-size:clamp(30px,4vw,48px);letter-spacing:-.02em;margin-bottom:36px}
.btn,button{transition:background .2s,color .2s,box-shadow .2s,transform .2s}
.btn{border-radius:2px;letter-spacing:.13em;font-size:12px;min-height:46px;background:var(--verde-oliva-oscuro);box-shadow:none}
.btn:hover{background:#415446;transform:translateY(-1px);box-shadow:0 6px 16px #293b3215}
button:disabled{opacity:.55;cursor:wait}
a{color:var(--verde-oliva-oscuro);text-underline-offset:4px}
:focus-visible{outline:2px solid #7a6839;outline-offset:4px}
.card{border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;padding:0 0 24px!important;overflow:hidden;transition:transform .3s}
.card:hover{transform:translateY(-4px);box-shadow:none!important}
.card h3,.card h4{margin-top:20px;line-height:1.35}
.card-img-real,.card-img-placeholder{aspect-ratio:4/5;object-fit:cover;border:0!important;border-radius:2px!important;box-shadow:none!important;background:#eae9e1}
.collection-cover{width:100%;height:320px;object-fit:cover;display:block;background:#e5e5da;flex-shrink:0}
.collection-empty{display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#d6dacb,#f0ece1);color:#5f6c55;font-family:Georgia,serif;letter-spacing:.35em;font-size:18px}
.modal-overlay{background:rgba(25,35,29,.48);backdrop-filter:blur(6px);overscroll-behavior:contain}
.modal-content{border:1px solid #dddcd1;border-radius:6px;box-shadow:0 24px 80px #17251c26;background:#faf9f5;animation:dialog-enter .25s ease-out}
.modal-fullscreen{max-width:1180px!important;width:94%!important;padding:48px!important}
.product-modal-layout{gap:60px;align-items:start}.product-image-col{background:#eae9e1;padding:0!important;border:0!important;box-shadow:none!important;overflow:hidden}
#productImgTag{background:#eae9e1;border:0;padding:0;width:100%;overflow:hidden}
#productImgTag>div{box-shadow:none!important;border-radius:0!important}
.modal-img-real{display:block;width:100%;height:auto!important;aspect-ratio:1/1.12;object-fit:contain;padding:0!important;border:0!important;border-radius:0!important;background:#eae9e1;mix-blend-mode:multiply;box-shadow:none!important}
#productName{font-size:clamp(28px,3.5vw,46px)!important;letter-spacing:-.025em}
#productPrice{font-size:24px!important}.product-tax{font-size:12px;color:#657062;margin:-14px 0 24px}
.product-detail{border-top:1px solid #ddded3;padding:15px 0;font-size:14px}.product-detail summary{cursor:pointer;letter-spacing:.03em}.product-detail p{margin-top:12px;color:#62695e}
#productControls{background:transparent!important;border:0!important;padding:0!important;margin-bottom:18px;box-shadow:none!important}
.size-label{display:block;font-size:12px;margin-bottom:10px}.size-btn{background:transparent;border:1px solid #b2b6a8;min-width:48px;min-height:42px;border-radius:2px}.size-btn.active{background:#293b32;color:white;border-color:#293b32}
input:not([type=checkbox]):not([type=hidden]),textarea,select{border:1px solid #cdd0c3;border-radius:3px;background:#fbfaf6;padding:12px;font-size:15px;max-width:100%}
.field-label{display:block;text-align:left;margin:18px 0 8px}#guestEmail{width:100%}
.consent-check{display:block;font-size:12px;line-height:1.7;text-align:left;margin:18px 0;color:#4e584d}.consent-check input{width:16px!important;height:16px;display:inline-block!important;margin-right:6px;accent-color:#293b32}
.muted{color:#646d61;font-size:14px;margin:14px 0}.eyebrow{letter-spacing:.2em;font-size:11px;margin-bottom:12px}
.checkout-summary{background:#eaece2;padding:18px;margin:20px 0;font-size:14px;text-align:left}
.otp-input{font-size:28px!important;letter-spacing:.3em;text-align:center;width:100%;margin:14px 0}
.dialog-open{overflow:hidden}.close-modal{background:none;border:0;cursor:pointer}
#vistaInicio,#vistaCategoria,#vistaCatalogoCompleto,#vistaCliente{animation:page-enter .35s ease-out}
.legal-page{max-width:850px;margin:60px auto;padding:0 26px 60px}.legal-page h1{font-size:clamp(32px,5vw,52px);margin:35px 0}.legal-page h2{font-size:25px;margin:30px 0 14px}.legal-page p,.legal-page ul{margin:16px 0}.legal-page nav{display:flex;gap:18px;flex-wrap:wrap;font-size:13px}.legal-page table{border-collapse:collapse;width:100%;font-size:14px}.legal-page td,.legal-page th{padding:12px;border-bottom:1px solid #d7dacd;text-align:left}
@keyframes dialog-enter{from{opacity:0;transform:translateY(12px) scale(.99)}to{opacity:1;transform:none}}
@keyframes page-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@view-transition{navigation:auto}::view-transition-old(root),::view-transition-new(root){animation-duration:.22s}
@media(max-width:700px){.header-top{padding:14px 16px}.modal-fullscreen{padding:28px 18px!important;width:96%!important}.product-modal-layout{gap:24px;display:flex;flex-direction:column}.product-image-col,.product-info-col{width:100%}.collection-cover{height:240px}.modal-content{max-height:90dvh;overflow:auto}.product-item{flex-wrap:wrap;gap:12px}.legal-page{margin-top:25px}.modal-img-real{aspect-ratio:1/1}#productName{margin-bottom:12px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.hero-content h1{font-size:clamp(38px,6vw,76px);max-width:850px;line-height:1.05;letter-spacing:-.035em}.hero-content p{font-size:15px!important;letter-spacing:.06em!important}.hero-content .eyebrow{font-size:11px!important;letter-spacing:.24em!important;margin-bottom:24px}.hero-cta{display:inline-flex;align-items:center;justify-content:center;margin-top:28px;text-decoration:none;padding:14px 28px;background:#f7f6f1;color:#293b32}.hero-overlay{background:linear-gradient(90deg,#10241870,#17271e25)}.cart-button{white-space:nowrap}#cookieBanner{background:#f7f6f1!important;border-color:#c6cbbb!important;box-shadow:0 8px 28px #1d302318!important}

.btn.btn-outline { background:#fff; color:#293b32; border:1px solid #293b32; }
.btn.btn-outline:hover,.btn.btn-outline:focus-visible { background:#293b32; color:#fff; }
[hidden] { display:none !important; }
.account-banner { padding:16px 5%; background:#edf0e5; color:#293b32; display:flex; gap:20px; align-items:center; justify-content:center; flex-wrap:wrap; }
.account-form { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:16px; margin:20px 0; text-align:left; align-items:end; }
.account-form label { display:grid; grid-template-rows:minmax(2.6em,auto) 44px; gap:8px; height:100%; }
.account-form .field-label { display:flex; align-items:flex-end; margin:0; line-height:1.3; }
.account-form input { padding:12px; border:1px solid #aab5a3; width:100%; height:44px; box-sizing:border-box; }
.account-form > .btn { min-height:44px; }
@media(max-width:700px){.account-form label{grid-template-rows:auto 44px}}
.saved-address { border:1px solid #c6cbbb; padding:16px; margin:12px 0; }
.cart-remove { background:transparent; border:0; color:#8d3434; min-width:44px; min-height:44px; cursor:pointer; }
.cart-remove svg { width:22px; height:22px; vertical-align:middle; }

/* Colores y composición de la tienda. */
.storefront-page { --verde-oliva-oscuro:#343e2e; --texto-oscuro:#3f4038; --texto-secundario:#68645b; }
.storefront-page .section-title { color:var(--verde-oliva-oscuro); font-size:clamp(30px,3.6vw,44px); letter-spacing:.025em; border-bottom-color:#95875d55; margin-bottom:28px; }
.storefront-page #vistaInicio > section { padding-top:0; padding-bottom:0; margin-top:0; margin-bottom:0; }
.storefront-page #vistaInicio { padding-block:clamp(48px,7vw,96px); }
.storefront-page #vistaInicio > section + section { margin-top:clamp(48px,7vw,96px); }
.storefront-page #vistaInicio .section-container > p,
.storefront-page #collectionsContainer .card p { color:var(--texto-secundario)!important; }
.storefront-page .card h3 { letter-spacing:.015em; }
.storefront-page .nav-cartier a:hover { color:#7a6839; }
.storefront-page .nav-cartier a:after { background:#95875d; }
/* El texto y las dimensiones originales nunca desplazan o encogen la foto. */
#collectionsContainer { grid-template-columns:repeat(2,minmax(0,1fr)); }
#collectionsContainer .card { min-width:0!important; min-height:0; justify-content:flex-start; }
#collectionsContainer .collection-cover { height:auto; aspect-ratio:4 / 3; flex:0 0 auto; object-fit:cover; object-position:center; }
#collectionsContainer .card h3 { overflow-wrap:anywhere; }
#collectionsContainer .card p { overflow-wrap:anywhere; }
@media(max-width:767px) {
    #collectionsContainer { grid-template-columns:minmax(0,1fr); gap:28px; }
    #collectionsContainer .card h3 { font-size:28px!important; }
}

/* La portada se escala completa: el logo y el lema nunca se recortan. */
.campaign-hero { width:100%; margin:0; background:transparent; }
/* Keep the campaign within its native resolution to avoid blurry upscaling. */
.campaign-hero > img { display:block; width:100%; max-width:1366px; margin-inline:auto; height:auto; aspect-ratio:1366 / 768; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.home-editorial { padding:clamp(40px,6vw,88px) 5%; max-width:1600px; margin:auto; }
.home-photo-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(12px,2vw,30px); }
.home-photo-grid figure { margin:0; min-width:0; aspect-ratio:3 / 4; overflow:hidden; background:#e8e4da; }
.home-photo-grid img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
#vistaPiedras .section-title, #vistaPiedras p { text-align:justify; text-align-last:left; hyphens:auto; overflow-wrap:anywhere; }
#vistaPiedras .section-title { display:block; }
#piedrasContainer .card { min-width:0; }
#piedrasContainer h3 { text-align:center; text-align-last:center; overflow-wrap:anywhere; }
#piedrasContainer .card p { white-space:pre-line; }
@media(max-width:600px) {
    .home-editorial { padding:40px 20px; }
    .home-photo-grid { grid-template-columns:minmax(0,1fr); gap:20px; }
    .home-photo-grid figure { aspect-ratio:4 / 5; }
}
.home-story-layout { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr); gap:clamp(24px,5vw,80px); align-items:center; }
.home-story-layout figure { margin:0 auto; width:100%; max-width:420px; aspect-ratio:4/5; overflow:hidden; background:#e8e4da; }
.home-story-layout img,.home-landscape-grid img { display:block; width:100%; height:100%; object-fit:cover; }
.story-text { min-width:0; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.85; font-size:clamp(16px,1.4vw,19px); color:#62695e; }
.home-story .section-title { overflow-wrap:anywhere; }
.home-landscape-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,2vw,30px); }
.home-landscape-grid figure { margin:0; aspect-ratio:3/2; overflow:hidden; background:#e8e4da; }
.story-modal-image { display:block; width:100%; max-height:360px; object-fit:contain; margin:0 0 24px; }
.footer-column { min-width:0; overflow-wrap:anywhere; }
@media(max-width:700px) { .home-story-layout,.home-landscape-grid { grid-template-columns:minmax(0,1fr); } }

/* Soft separators keep the closing photographs distinct without a heading. */
.home-landscape-section { position:relative; margin-block:clamp(24px,4vw,56px); }
.home-landscape-section::before,.home-landscape-section::after { content:""; position:absolute; left:8%; right:8%; height:1px; background:linear-gradient(90deg,transparent,rgba(102,112,90,.22),transparent); filter:blur(.5px); pointer-events:none; }
.home-landscape-section::before { top:0; }
.home-landscape-section::after { bottom:0; }
@media(max-width:700px) { .home-story-layout figure { max-width:300px; } }

/* Keep each photograph complete, including on collection cards. */
.card-img-real { object-fit:contain; }
.card:hover .card-img-real { transform:none; }
/* A separate toolbar remains visible while only the dialog body scrolls. */
.modal-overlay { isolation:isolate; padding:16px; }
.modal-content,.modal-content.modal-fullscreen { display:flex;flex-direction:column;padding:0!important;overflow:hidden!important;max-height:calc(100dvh - 32px)!important;height:auto!important; }
.modal-content.modal-fullscreen { height:calc(100dvh - 32px)!important; }
.dialog-toolbar { display:flex;justify-content:flex-end;flex-shrink:0;padding:10px 16px;background:#faf9f5;border-bottom:1px solid #dedfd5; }
.dialog-toolbar .close-modal { position:static;display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;min-width:112px;padding:8px 16px;border:1px solid #b9c0af;border-radius:4px;font-size:15px;color:#293b32;background:#f0f1e9; }
.dialog-toolbar .close-modal:hover { background:#e4e7dc; }
.dialog-body { min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:28px;scrollbar-gutter:stable; }
.modal-fullscreen .dialog-body { padding:32px 44px; }
.discount-controls { display:flex;gap:8px;flex-wrap:wrap;align-items:center; }
.discount-controls input { flex:1;min-width:120px;width:100%;text-transform:uppercase; }
.discount-message { text-align:left;font-size:14px;margin:10px 0; }
@media(max-width:700px) {
 .modal-overlay { padding:0; }
 .modal-content,.modal-content.modal-fullscreen { width:100%!important;max-width:100%!important;max-height:100dvh!important;border-radius:0; }
 .modal-content.modal-fullscreen { height:100dvh!important; }
 .dialog-toolbar { padding:calc(8px + env(safe-area-inset-top)) 12px 8px; }
 .dialog-body,.modal-fullscreen .dialog-body { padding:24px 16px calc(24px + env(safe-area-inset-bottom)); }
 #modalCollectionTitle { font-size:30px!important;margin-bottom:20px!important; }
 #modalCollectionDesc { font-size:16px!important; }
}

.sidebar { visibility:hidden;transition:left .3s ease,visibility .3s;max-width:100vw;height:100dvh;padding-top:env(safe-area-inset-top); }
.sidebar.open { visibility:visible; }
.sidebar-header { padding:12px 16px;gap:12px;flex-shrink:0; }
.close-sidebar { min-width:100px;min-height:48px;padding:8px 12px;border:1px solid #b9c0af;border-radius:4px;background:#f0f1e9;color:#293b32;font-size:15px; }
.sidebar-menu { overflow-y:auto; }
.sidebar-open { overflow:hidden; }
.discount-controls > button { min-height:44px;min-width:72px; }

.section-toolbar { position:sticky;top:var(--store-header-height,160px);z-index:110;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:10px 0;margin-bottom:24px;background:var(--blanco-roto);border-bottom:1px solid #dedfd5; }
.section-close,.section-back { display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:8px 16px;color:#293b32;text-decoration:none;font-size:15px; }
.section-close { background:#f0f1e9;border:1px solid #b9c0af;border-radius:4px;min-width:112px; }
.section-close:hover { background:#e4e7dc; }

.chat-close { min-height:44px;min-width:96px;padding:8px 12px;border:1px solid #b9c0af;border-radius:4px;background:#f0f1e9;color:#293b32;font-size:14px;cursor:pointer; }

.legal-toolbar { top:0;flex-wrap:wrap; }
