:root {
  --bone: #f3eee4;
  --paper: #fbf8f2;
  --sand: #d9cbb9;
  --honey: #cc8733;
  --tobacco: #8b4c25;
  --chocolate: #3b1f14;
  --charcoal: #24211f;
  --olive: #6c6a4c;
  --white: #fffdfa;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, "Segoe UI", Arial, sans-serif;
  --shadow: 0 18px 48px rgba(59, 31, 20, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body { margin: 0; overflow-x: hidden; background: var(--bone); color: var(--chocolate); font-family: var(--sans); line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -100px; z-index: 9999; background: var(--white); padding: 12px 18px; border-radius: 4px; }
.skip-link:focus { top: 16px; }

.announcement { background: var(--chocolate); color: var(--bone); text-align: center; padding: 8px 16px; font-size: 12px; letter-spacing: .13em; text-transform: uppercase; }
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(243, 238, 228, .94); border-bottom: 1px solid rgba(59,31,20,.12); backdrop-filter: blur(12px); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 158px; height: 70px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; letter-spacing: .04em; }
.site-nav > a:not(.button) { position: relative; padding: 28px 0; }
.site-nav > a:not(.button)::after { content: ""; position: absolute; left: 0; bottom: 22px; width: 0; height: 1px; background: var(--honey); transition: width .25s ease; }
.site-nav > a:hover::after, .site-nav > a:focus-visible::after { width: 100%; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; }
.menu-toggle > span:not(.sr-only) { display: block; width: 25px; height: 1px; margin: 6px 0; background: var(--chocolate); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--honey); background: var(--honey); color: var(--chocolate); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; transition: transform .2s ease, background .2s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #dda253; }
.button-small { min-height: 42px; padding-inline: 20px; }
.button.dark { background: var(--chocolate); color: var(--bone); border-color: var(--chocolate); }
.light-button { background: var(--bone); border-color: var(--bone); color: var(--chocolate); }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.text-link.light { color: var(--white); }

.hero { position: relative; min-height: 720px; display: grid; align-items: end; color: var(--white); overflow: hidden; }
.hero-media, .hero-overlay { position: absolute; inset: 0; }
.hero-media { background: url("assets/hero-comedor.webp") center 52% / cover no-repeat; transform: scale(1.01); }
.hero-overlay { background: linear-gradient(90deg, rgba(24,15,10,.72) 0%, rgba(24,15,10,.45) 47%, rgba(24,15,10,.12) 78%), linear-gradient(0deg, rgba(24,15,10,.48), transparent 45%); }
.hero-content { position: relative; z-index: 1; padding-bottom: 86px; }
.eyebrow, .section-index { margin: 0 0 18px; font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; font: 400 clamp(58px, 8vw, 112px)/.92 var(--serif); letter-spacing: -.045em; }
.hero-copy { max-width: 600px; margin: 30px 0 35px; font-size: 19px; line-height: 1.55; }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }

.proof { background: var(--paper); border-bottom: 1px solid rgba(59,31,20,.12); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.proof article { padding: 32px 34px; border-right: 1px solid rgba(59,31,20,.12); }
.proof article:first-child { padding-left: 0; }
.proof article:last-child { border-right: 0; }
.proof strong, .proof span { display: block; }
.proof strong { font: 400 23px/1.3 var(--serif); }
.proof span { margin-top: 4px; color: #786a5e; font-size: 13px; }

.split-intro { display: grid; grid-template-columns: 1fr 2.5fr; gap: 70px; align-items: start; }
.split-intro h2, .section-heading h2, .personalization h2, .craft h2, .care h2, .faq h2, .contact-cta h2 { margin: 0; font: 400 clamp(42px, 5.3vw, 72px)/1.05 var(--serif); letter-spacing: -.035em; }
.split-intro p:not(.section-index) { max-width: 750px; color: #6f6258; font-size: 18px; }

.collection-section { background: var(--paper); }
.section-heading { display: grid; grid-template-columns: 1.65fr 1fr; gap: 70px; align-items: end; margin-bottom: 55px; }
.section-heading > p { margin: 0 0 5px; color: #75685d; }
.section-heading.compact { margin-bottom: 45px; }
.collection-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.collection-card { display: block; background: var(--bone); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
.collection-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.collection-card:focus-visible { outline: 2px solid var(--honey); outline-offset: 4px; }
.collection-card > img { width: 100%; height: clamp(190px, 16vw, 225px); max-height: 225px; object-fit: cover; object-position: center; filter: saturate(.9) contrast(1.02); }
.card-body { display: flex; justify-content: space-between; gap: 12px; padding: 20px; }
.card-body p { margin: 0 0 12px; color: var(--honey); font-size: 11px; }
.card-body h3 { margin: 0; font: 400 29px/1.1 var(--serif); }
.card-body span { display: block; margin-top: 8px; color: #796c61; font-size: 12px; }
.card-body > i { align-self: end; display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(59,31,20,.3); border-radius: 50%; font: 400 19px var(--sans); font-style: normal; transition: color .2s ease, background .2s ease; }
.collection-card:hover .card-body > i, .collection-card:focus-visible .card-body > i { color: var(--white); background: var(--chocolate); }

/* Collection detail routes */
.collection-page { background: var(--bone); }
.collection-hero { padding: 76px 0 68px; background: var(--paper); border-bottom: 1px solid rgba(59,31,20,.12); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 42px; color: #76695e; font-size: 12px; }
.breadcrumb a { border-bottom: 1px solid rgba(59,31,20,.28); }
.collection-hero-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: end; }
.collection-hero h1 { margin: 0; font: 400 clamp(58px, 7vw, 96px)/.95 var(--serif); letter-spacing: -.045em; }
.collection-summary { margin: 0 0 6px; color: #6f6258; font-size: 17px; }
.catalog-section { padding: 78px 0 110px; }
.catalog-intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.catalog-intro h2 { margin: 0; font: 400 clamp(36px, 4vw, 54px)/1.05 var(--serif); letter-spacing: -.03em; }
.catalog-intro p { max-width: 540px; margin: 0; color: #75685d; font-size: 14px; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card { display: flex; min-width: 0; flex-direction: column; background: var(--paper); border: 1px solid rgba(59,31,20,.12); }
.product-image-button { position: relative; display: block; height: 260px; max-height: 260px; overflow: hidden; background: #e7ded1; }
.product-image-button::after { content: "Ampliar"; position: absolute; right: 14px; bottom: 14px; padding: 7px 10px; background: rgba(251,248,242,.92); color: var(--chocolate); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.product-image-button img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .35s ease; }
.product-image-button:hover img, .product-image-button:focus-visible img { transform: scale(1.025); }
.product-image-button:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.product-copy { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-copy p { margin: 0 0 5px; color: var(--honey); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.product-copy h2 { margin: 0; font: 400 28px/1.08 var(--serif); }
.product-copy > span { display: block; margin-top: 10px; color: #776a5f; font-size: 13px; }
.product-copy .text-link { align-self: flex-start; margin-top: auto; padding-top: 22px; }
.collection-note { margin-top: 34px; padding: 22px 25px; background: #e8ddce; color: #685b51; font-size: 13px; }
.other-collections { padding: 80px 0; background: var(--paper); }
.other-collections h2 { margin: 0 0 30px; font: 400 clamp(36px, 4vw, 52px)/1.05 var(--serif); }
.collection-links { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(59,31,20,.18); border-bottom: 1px solid rgba(59,31,20,.18); }
.collection-links a { display: flex; justify-content: space-between; gap: 12px; padding: 22px 18px; border-right: 1px solid rgba(59,31,20,.18); font: 400 20px var(--serif); }
.collection-links a:last-child { border-right: 0; }
.collection-links a[aria-current="page"] { color: #8a7d72; text-decoration: line-through; text-decoration-thickness: 1px; }
.image-viewer { width: min(1040px, calc(100% - 28px)); max-height: calc(100dvh - 28px); padding: 0; border: 0; background: #18120f; color: var(--white); box-shadow: 0 26px 70px rgba(0,0,0,.5); }
.image-viewer::backdrop { background: rgba(18,12,9,.82); backdrop-filter: blur(5px); }
.viewer-frame { position: relative; display: grid; grid-template-rows: minmax(0, 1fr) auto; max-height: calc(100dvh - 28px); }
.viewer-frame img { width: 100%; max-height: calc(100dvh - 92px); object-fit: contain; }
.viewer-caption { margin: 0; padding: 16px 64px 16px 18px; font: 400 20px var(--serif); }
.viewer-close { position: absolute; top: 12px; right: 12px; z-index: 1; width: 42px; height: 42px; border: 0; border-radius: 50%; background: rgba(243,238,228,.94); color: var(--chocolate); font-size: 27px; line-height: 1; cursor: pointer; }

.personalization-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; align-items: center; }
.personalization-image { position: relative; }
.personalization-image img { width: 100%; max-height: 720px; object-fit: cover; box-shadow: var(--shadow); }
.personalization-image > span { position: absolute; left: 24px; bottom: 24px; background: rgba(243,238,228,.92); padding: 10px 14px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.personalization-content > p:not(.section-index) { color: #706359; font-size: 17px; }
.feature-list { list-style: none; margin: 35px 0 28px; padding: 0; border-top: 1px solid rgba(59,31,20,.18); }
.feature-list li { display: grid; grid-template-columns: 42px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid rgba(59,31,20,.18); }
.feature-list li > span { color: var(--honey); font-size: 12px; }
.feature-list strong, .feature-list small { display: block; }
.feature-list small { margin-top: 3px; color: #776a5f; font-size: 13px; }
.swatches { display: flex; gap: 24px; margin: 28px 0 36px; }
.swatches > div { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35), 0 1px 4px rgba(0,0,0,.15); }
.swatch.honey { background: #c9792c; }.swatch.tobacco { background: #84451f; }.swatch.chocolate { background: #3c2018; }

.materials-section { background: #e9dfd2; }
.material-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.material-card { min-width: 0; overflow: hidden; background: var(--paper); }
.material-card > img { width: 100%; height: 210px; object-fit: cover; object-position: center; }
.material-card > div { padding: 20px; }
.material-card p { margin: 0 0 10px; color: var(--honey); font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.material-card h3 { margin: 0; font: 400 25px/1.12 var(--serif); }
.material-card span { display: block; margin-top: 8px; color: #75685d; font-size: 12px; }

.process { background: var(--chocolate); color: var(--bone); }
.process .section-heading > p, .process-note { color: #cbbbae; }
.process-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(243,238,228,.24); border-bottom: 1px solid rgba(243,238,228,.24); }
.process-grid li { min-height: 240px; padding: 28px; border-right: 1px solid rgba(243,238,228,.24); }
.process-grid li:last-child { border-right: 0; }
.process-grid span { color: var(--honey); font-size: 12px; }
.process-grid h3 { margin: 50px 0 12px; font: 400 25px/1.2 var(--serif); }
.process-grid p { color: #cbbbae; font-size: 14px; }
.process-note { max-width: 720px; margin: 22px 0 0; font-size: 12px; }

.projects-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; align-items: stretch; }
.project-main { margin: 0; position: relative; min-height: 680px; overflow: hidden; }
.project-main img { width: 100%; height: 100%; object-fit: cover; }
.project-main figcaption { position: absolute; left: 24px; bottom: 24px; background: rgba(243,238,228,.94); padding: 14px 18px; }
.project-main figcaption span, .project-main figcaption small { display: block; }
.project-main figcaption span { font: 400 22px var(--serif); }
.project-main figcaption small { margin-top: 4px; color: #74665b; }
.professional-card { display: flex; flex-direction: column; justify-content: center; padding: 60px; background: #d8c8b4; }
.professional-card h3 { margin: 0; font: 400 42px/1.08 var(--serif); }
.professional-card p:not(.eyebrow) { color: #67594f; }
.professional-card .text-link { align-self: flex-start; margin-top: 20px; }

.craft { padding: 0; display: grid; grid-template-columns: 1fr 1fr; min-height: 690px; background: var(--paper); }
.craft-image { min-height: 620px; background: url("assets/historia-familiar.webp") center / cover no-repeat; filter: sepia(.18); }
.craft-copy { align-self: center; padding: 90px max(40px, 8vw); }
.craft-copy p:not(.section-index) { color: #6f6258; font-size: 17px; }

.care-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; }
.care-grid > div:last-child { padding-top: 35px; color: #706359; font-size: 17px; }
.care-grid > div:last-child p { margin-top: 0; margin-bottom: 24px; }

.faq { background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; }
.faq-list { border-top: 1px solid rgba(59,31,20,.22); }
details { border-bottom: 1px solid rgba(59,31,20,.22); }
summary { cursor: pointer; list-style: none; position: relative; padding: 24px 45px 24px 0; font: 400 20px/1.3 var(--serif); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 5px; top: 19px; color: var(--honey); font: 300 29px var(--sans); }
details[open] summary::after { content: "−"; }
details p { margin: -5px 50px 24px 0; color: #75685d; font-size: 14px; }

.contact-cta { padding: 120px 0; text-align: center; background: var(--tobacco); color: var(--bone); }
.contact-inner { max-width: 850px; }
.contact-cta p:not(.eyebrow) { max-width: 650px; margin: 24px auto 32px; color: #ecdccc; font-size: 17px; }

.site-footer { padding: 80px 0 28px; background: #211713; color: var(--bone); }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 70px; }
.footer-brand img { width: 220px; height: 160px; object-fit: contain; filter: brightness(1.7); }
.footer-brand p { max-width: 330px; color: #bba99b; }
.footer-grid h3 { margin: 15px 0 18px; font: 400 20px var(--serif); }
.footer-grid > div:not(.footer-brand) a, .footer-grid > div:not(.footer-brand) span { display: block; margin: 9px 0; color: #c9b8aa; font-size: 13px; }
.footer-grid a:hover { color: var(--honey); }
.footer-bottom { display: flex; justify-content: space-between; gap: 30px; margin-top: 60px; padding-top: 25px; border-top: 1px solid rgba(243,238,228,.15); color: #95877d; font-size: 11px; }
.whatsapp-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #2f9f55; color: white; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: transform .2s ease; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 29px; fill: currentColor; }

@media (max-width: 980px) {
  .menu-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 88px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 24px; background: var(--bone); border-bottom: 1px solid rgba(59,31,20,.15); }
  .site-nav.is-open { display: flex; }
  .site-nav > a:not(.button) { padding: 13px 0; }
  .site-nav > a:not(.button)::after { display: none; }
  .site-nav .button { margin-top: 10px; }
  .collection-grid { grid-template-columns: repeat(2, 1fr); }
  .collection-card > img { height: 250px; max-height: 250px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .product-image-button { height: 250px; max-height: 250px; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material-card > img { height: 240px; }
  .collection-hero-grid { gap: 45px; }
  .collection-links { grid-template-columns: repeat(2, 1fr); }
  .collection-links a:nth-child(2) { border-right: 0; }
  .collection-links a:nth-child(-n+2) { border-bottom: 1px solid rgba(59,31,20,.18); }
  .personalization-grid { gap: 50px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid li:nth-child(2) { border-right: 0; }
  .process-grid li:nth-child(-n+2) { border-bottom: 1px solid rgba(243,238,228,.24); }
}

@media (max-width: 720px) {
  .shell { width: min(100% - 28px, 1180px); }
  .section { padding: 78px 0; }
  .announcement { font-size: 9px; }
  .header-inner { min-height: 76px; }
  .site-nav { top: 76px; }
  .brand img { width: 135px; height: 60px; }
  .hero { min-height: 590px; }
  .hero-overlay { background: linear-gradient(90deg, rgba(24,15,10,.74), rgba(24,15,10,.28)), linear-gradient(0deg, rgba(24,15,10,.55), transparent 50%); }
  .hero-content { padding-bottom: 56px; }
  .hero h1 { font-size: clamp(54px, 17vw, 78px); }
  .hero-copy { font-size: 16px; }
  .proof-grid, .split-intro, .section-heading, .personalization-grid, .projects-grid, .craft, .care-grid, .faq-grid, .footer-grid { grid-template-columns: 1fr; }
  .proof article { padding: 22px 0; border-right: 0; border-bottom: 1px solid rgba(59,31,20,.12); }
  .proof article:last-child { border-bottom: 0; }
  .split-intro, .section-heading, .care-grid, .faq-grid { gap: 30px; }
  .split-intro h2, .section-heading h2, .personalization h2, .craft h2, .care h2, .faq h2, .contact-cta h2 { font-size: 44px; }
  .section-heading { align-items: start; }
  .collection-grid { grid-template-columns: 1fr; gap: 18px; }
  .collection-card > img { height: 215px; max-height: 215px; }
  .card-body { padding: 16px; }
  .card-body h3 { font-size: 23px; }
  .card-body span { display: block; }
  .collection-hero { padding: 50px 0 48px; }
  .breadcrumb { margin-bottom: 30px; }
  .collection-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .collection-hero h1 { font-size: clamp(54px, 15vw, 76px); }
  .catalog-section { padding: 58px 0 80px; }
  .catalog-intro { align-items: flex-start; flex-direction: column; gap: 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 18px; }
  .product-image-button { height: 220px; max-height: 220px; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .material-card > img { height: 135px; }
  .material-card > div { padding: 15px; }
  .material-card h3 { font-size: 20px; }
  .material-card span { font-size: 11px; }
  .product-copy { padding: 19px; }
  .product-copy h2 { font-size: 26px; }
  .other-collections { padding: 62px 0; }
  .collection-links { grid-template-columns: 1fr; }
  .collection-links a { border-right: 0; border-bottom: 1px solid rgba(59,31,20,.18); }
  .collection-links a:nth-child(-n+2) { border-bottom: 1px solid rgba(59,31,20,.18); }
  .collection-links a:last-child { border-bottom: 0; }
  .personalization-image img { width: 100%; height: 390px; max-height: 390px; object-fit: cover; }
  .swatches { gap: 15px; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid li { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(243,238,228,.24); }
  .process-grid li:last-child { border-bottom: 0; }
  .process-grid h3 { margin-top: 24px; }
  .project-main { min-height: 440px; }
  .professional-card { padding: 45px 30px; }
  .craft-image { min-height: 380px; }
  .craft-copy { padding: 70px 28px; }
  .care-grid > div:last-child { padding-top: 0; }
  .contact-cta { padding: 90px 0; }
  .footer-grid { gap: 35px; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 430px) {
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .swatches { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
