/* Página de cocinas: misma paleta, tipografía y anchura que la portada. */
body.kitchen {
  --ink: #253b38;
  --muted: #53645f;
  --green: var(--color-primary);
  --cream: #f4f1e9;
  --line: #dadfd9;
  display: block;
  height: auto;
  background: #fafaf9;
  color: var(--ink);
  font: 400 1.0625rem/1.65 'Open Sans', Arial, sans-serif;
}
.kitchen :focus-visible { outline: 3px solid #ad5121; outline-offset: 4px; }
.kitchen [id] { scroll-margin-top: 105px; }
.kitchen h1, .kitchen h2, .kitchen h3 { color: var(--ink); text-wrap: balance; }
.kitchen h1 { font-size: clamp(3.4rem, 5.9vw, 5.5rem); letter-spacing: -.055em; line-height: 1.01; font-weight: 600; }
.kitchen h2 { font-size: clamp(2rem, 3.3vw, 2.75rem); letter-spacing: -.04em; line-height: 1.12; font-weight: 500; }
.kitchen h3 { font-size: 1.4rem; letter-spacing: -.025em; line-height: 1.3; font-weight: 500; }
.kitchen p { color: var(--muted); }
.kitchen h2 + p, .kitchen h3 + p, .kitchen p + p { margin-top: 1rem; }
.kitchen a { color: var(--green); text-underline-offset: .22em; }
.kitchen a:hover { text-decoration-thickness: 2px; }
.kitchen .wrap { width: min(1240px, calc(100% - clamp(40px, 8vw, 96px))); margin-inline: auto; }
.kitchen .band { padding-block: clamp(3.25rem, 6.5vw, 5.5rem); }
.cream { background: var(--cream); }

.masthead { position: sticky; top: 0; z-index: 30; background: #fafaf9; border-bottom: 1px solid var(--line); }
.masthead-inner, .masthead nav { display: flex; align-items: center; gap: 24px; }
.masthead-inner { justify-content: space-between; min-height: 92px; }
.brand img { display: block; width: 185px; max-height: 64px; object-fit: contain; }
.kitchen .wide-link { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 600; }
.kitchen .wide-link:hover { text-decoration: underline; }
.kitchen .button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .8em;
  min-height: 48px;
  padding: .75em 1.25em;
  border-radius: 5px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  line-height: 1.4;
}
.kitchen .button:hover { background: #225656; }
.masthead .button { min-height: 44px; font-size: 1rem; }
.text-link { font-weight: 700; }
.opening { display: grid; grid-template-columns: .93fr 1.07fr; align-items: center; gap: clamp(30px, 5vw, 74px); padding-block: clamp(30px, 4vw, 60px); }
.crumb { display: flex; align-items: center; gap: .65rem; margin-bottom: clamp(1rem, 2vw, 2rem); font-size: .9rem; color: var(--muted); }
.opening h1 em { display: block; color: var(--green); font-style: normal; }
.kitchen .opening-price { margin-top: 1.4rem; font: 400 clamp(1.35rem, 2vw, 1.85rem)/1.3 Rubik, sans-serif; color: var(--ink); }
.opening .lead { max-width: 44ch; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.7rem; }
.cover img { display: block; width: 100%; height: auto; aspect-ratio: 1.23; object-fit: cover; object-position: 53% center; border-radius: clamp(55px, 7vw, 100px) 6px 6px 6px; }
.cover figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .3rem .8rem; margin-top: .6rem; font-size: .82rem; color: var(--muted); }
.cover figcaption span:first-child { font-weight: 600; }
.reassurance { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .7rem 2rem; border-block: 1px solid var(--line); padding: 1.2rem 0; font-weight: 600; }
.reassurance span::before, .commitments li::before { content: "✓"; font-weight: 700; color: var(--green); margin-right: .7rem; }
.jump { display: flex; gap: .25rem 1.6rem; flex-wrap: wrap; padding-block: .8rem; }
.jump a { display: inline-flex; align-items: center; min-height: 42px; font-size: .95rem; font-weight: 600; }

.package, .materials, .split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 8vw, 7rem); align-items: start; }
.package-intro > p, .materials p, .split p { max-width: 54ch; }
.quote { margin-top: 1.7rem; padding: .25rem 0 .25rem 1.5rem; border-left: 3px solid var(--color-secondary); }
.quote > span { display: block; font-size: .93rem; color: var(--muted); }
.quote > strong { display: block; font: 500 clamp(2.5rem, 4.5vw, 4rem)/1.2 Rubik, sans-serif; color: var(--green); letter-spacing: -.055em; }
.quote p { margin: .6rem 0 .9rem; max-width: 33ch; }
.scope section { border-top: 1px solid #c6cdc4; padding: 1.1rem 0; }
.scope section:last-child { padding-bottom: 0; }
.scope h3 { margin-bottom: .6rem; }
.scope ul, .plain-list { padding-left: 1.3em; color: var(--muted); }
.scope li, .plain-list li { padding: .14em 0; }
.scope li::marker, .plain-list li::marker { color: var(--green); }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.plain-list { margin: 1rem 0 1.4rem; }
.partial { background: #eaf0ea; border-radius: 6px; padding: clamp(1.5rem, 3vw, 2.75rem); }
.material-sheet { background: #fffefa; padding: clamp(1.4rem, 3vw, 2.4rem); border-top: 3px solid var(--green); }
.samples { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.3rem; padding: 0; margin: 1.2rem 0 0; }
.samples li { border-top: 1px solid var(--line); padding: .7rem 0; }
.section-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2rem; }
.kitchen .section-pair p { margin: 0; }
.styles-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1.4rem; }
.style { display: flex; flex-direction: column; align-items: stretch; }
.palette { height: clamp(66px, 6vw, 90px); border-radius: 26px 3px 3px 3px; background: linear-gradient(90deg, var(--tone-a) 0 49%, var(--tone-b) 49% 77%, var(--tone-c) 77%); }
.modern { --tone-a: #dad6cd; --tone-b: #404741; --tone-c: #ece8db; }
.nordic { --tone-a: #f0e6d2; --tone-b: #d1b085; --tone-c: #9da98d; }
.industrial { --tone-a: #69706e; --tone-b: #77543f; --tone-c: #b1aaa3; }
.classic { --tone-a: #e7d9bd; --tone-b: #687052; --tone-c: #b39257; }
.kitchen .key { font-size: .82rem; color: var(--muted); margin: .65rem 0 1rem; }
.style > p:not(.key) { font-size: 1rem; margin: .7rem 0 1.2rem; }
.style details { margin-top: auto; }
.kitchen .closing-note { margin-top: 1.75rem; }
.faq-band { background: #edf2ed; }
.kitchen details { border-block-start: 1px solid #bfcac1; }
.kitchen details:last-child { border-block-end: 1px solid #bfcac1; }
.kitchen summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; font: 500 1.08rem/1.45 Rubik, sans-serif; color: var(--ink); padding: 1rem 0; list-style: none; }
.kitchen summary::-webkit-details-marker { display: none; }
.kitchen summary::after { content: ""; width: .55em; height: .55em; border: solid var(--green); border-width: 0 2px 2px 0; transform: rotate(45deg); flex: none; margin: -.25em .3em 0 0; }
.kitchen details[open] > summary::after { transform: rotate(225deg); margin-top: .25em; }
.kitchen details > p { margin: 0 0 1.1rem; }
.commitments { list-style: none; padding: 0; }
.commitments li { padding: .67rem 0; border-bottom: 1px solid var(--line); display: flex; }
.contact-panel { background: var(--green); border-radius: 8px; padding: clamp(1.55rem, 4.5vw, 4rem); display: grid; grid-template-columns: 1.35fr 1fr; align-items: center; gap: 2rem; }
.kitchen .contact-panel h2, .kitchen .phone { color: white; }
.kitchen .contact-panel p { color: #edf3ef; }
.contact-actions { display: grid; justify-items: center; gap: .8rem; }
.kitchen .warm { background: #f4a261; color: #243b38; }
.kitchen .warm:hover { background: #f7b781; }
#simulacion .button { background-color: var(--cream); color: var(--ink); }
#simulacion .button:hover { background-color: #fff; }
.page-footer { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1.3rem; padding: 2rem 4rem 2rem 0; }
.page-footer p { margin-right: auto; font-size: .95rem; }
.kitchen .cookie-banner { background: #253b38; padding: 1rem max(20px, calc((100% - 1240px)/2)); gap: .8rem 1.4rem; }
.kitchen .cookie-banner p, .kitchen .cookie-banner a { color: #fff; }
.kitchen .cookie-buttons button { min-height: 44px; font-weight: 700; color: var(--ink); }
.kitchen:has(.cookie-banner.is-open) .joinchat__button { visibility: hidden; }
.kitchen .cookie-banner.is-open { display: flex; }
@media (max-width: 970px) {
  .styles-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 2rem; }
}
@media (max-width: 760px) {
  .masthead-inner { min-height: 74px; gap: .7rem; }
  .brand img { width: 133px; height: auto; }
  .wide-link { display: none; }
  .masthead .button { font-size: .9rem; padding-inline: .8rem; }
  .opening, .package, .split, .materials, .price-grid, .section-pair, .contact-panel { grid-template-columns: 1fr; }
  .opening { gap: 1.6rem; }
  .cover img { aspect-ratio: 1.65; }
  .section-pair { gap: .9rem; }
  .contact-actions { justify-items: start; }
  .reassurance { justify-content: flex-start; font-size: .97rem; }
  .kitchen [id] { scroll-margin-top: 90px; }
}
@media (max-width: 520px) {
  .styles-grid { grid-template-columns: 1fr; }
  .jump { gap: .1rem 1rem; }
  .page-footer { padding-bottom: 5rem; }
}
@media (max-width: 360px) {
  .masthead .button span { display: none; }
  .brand img { width: 111px; }
  .samples { grid-template-columns: 1fr; }
}

/* Galería de ideas de cocina */
.guide-intro { padding-top: clamp(1.5rem, 4vw, 3.5rem); }
.guide-heading { display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: clamp(2rem, 6vw, 5rem); }
.guide-heading h1 em { display: block; font-style: normal; color: var(--green); }
.guide-heading .text-link { display: inline-block; margin-top: .8rem; }
.style-index { margin-top: 2rem; border-block: 1px solid var(--line); }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.7rem, 5vw, 4.5rem) clamp(1.7rem, 4vw, 3.5rem); padding-block: 2.25rem clamp(3rem, 6vw, 5rem); }
.idea-feature { grid-column: 1 / -1; display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.idea-photo a { display: block; cursor: zoom-in; }
.idea-photo img { display: block; width: 100%; height: auto; border-radius: 5px; }
.idea-feature img { border-top-left-radius: clamp(48px, 5vw, 80px); }
.idea-photo figcaption { padding-block: .5rem; color: var(--muted); font-size: .9rem; }
.idea-copy { max-width: 62ch; }
.idea-copy h2 { margin: .8rem 0; }
.idea-feature h2 { margin-top: 0; }
.idea-copy details { margin-block: 1rem; }
.idea-copy dl { padding-bottom: 1rem; }
.idea-copy dt, .fronts dt { font-weight: 700; color: var(--ink); }
.idea-copy dd, .fronts dd { margin: .18rem 0 .85rem; color: var(--muted); }
.idea-copy .text-link { display: inline-flex; align-items: center; min-height: 44px; }
.tile-pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2.2rem); }
.tile-notes { margin-top: 1rem; }
.fronts { border-top: 2px solid var(--green); }
.fronts dt { padding-top: .8rem; }
.fronts dd { margin-bottom: 0; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.further-reading { padding-block: 3rem 1rem; }
.kitchen .further-reading h2 { font-size: 1.4rem; }
.further-reading p { max-width: 75ch; }
@media (max-width: 760px) {
  .guide-heading, .idea-feature, .idea-grid, .tile-pair { grid-template-columns: 1fr; }
  .guide-heading, .idea-feature { gap: 1rem; }
  .style-index { margin-top: 1.2rem; }
}

/* Catálogo de cocinas por tamaño */
.room-filter { border: 0; margin: 0; padding: 1.5rem 0; min-width: 0; }
.room-filter legend { padding: 1.5rem 0 0; font: 500 1.3rem/1.3 Rubik, sans-serif; }
.room-choices { display: flex; flex-wrap: wrap; gap: .55rem; }
.room-choices label { display: inline-flex; position: relative; cursor: pointer; }
.room-choices input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.room-choices span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem 1rem;
  border: 1px solid var(--green);
  border-radius: 5px;
  font-size: .94rem;
  color: var(--green);
}
.room-choices input:checked + span { color: white; background: var(--green); }
.room-choices input:focus-visible + span { outline: 3px solid #ad5121; outline-offset: 3px; }

.collection { border-top: 1px solid var(--line); padding: clamp(2rem, 4vw, 3.5rem) 0; }
.collection-heading { display: grid; grid-template-columns: .8fr 1.2fr; gap: 1.5rem; align-items: end; margin-bottom: 1.45rem; }
.kitchen .collection-heading p { margin: 0; max-width: 64ch; }
.rooms { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(1rem, 2.2vw, 1.8rem); }
.room > a { border-radius: 5px; overflow: hidden; }
.room figcaption { padding-block: .8rem 1.1rem; }
.room .room-measures { font-weight: 700; color: var(--green); }
.room h3 { margin: .35rem 0; font-size: clamp(1.15rem, 1.6vw, 1.45rem); }
.kitchen .room h3 + p { margin: 0; }
.room .room-request { display: inline-flex; align-items: center; min-height: 44px; cursor: pointer; font-weight: 600; }
.collection-notes dl { padding-bottom: 1rem; }
.collection-notes dt { font-weight: 700; }
.collection-notes dd { margin: 0 0 1rem; color: var(--muted); }
.material-reference { max-width: 78ch; }
.material-reference:has(figure) { display: grid; grid-template-columns: 1.4fr .9fr; gap: 2rem; max-width: 100%; }
.collections:has([value="pequena"]:checked) .room:not([data-room="pequena"]),
.collections:has([value="mediana"]:checked) .room:not([data-room="mediana"]),
.collections:has([value="grande"]:checked) .room:not([data-room="grande"]) { display: none; }
@media (min-width: 761px) {
  .collections:has(input:checked:not([value="todas"])) .rooms { grid-template-columns: minmax(0, 1fr); }
  .collections:has([value="pequena"]:checked) .room[data-room="pequena"],
  .collections:has([value="mediana"]:checked) .room[data-room="mediana"],
  .collections:has([value="grande"]:checked) .room[data-room="grande"] { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
}
@media (max-width: 760px) {
  .collection-heading, .rooms, .material-reference:has(figure) { grid-template-columns: 1fr; }
  .collection-heading { gap: .6rem; }
  .room-choices span { padding-inline: .7rem; }
}

/* El documento conserva su posición mientras se explora la foto. */
html:has(.idea-viewer[open]) { overflow: hidden; }
.idea-viewer { margin: auto; width: min(58rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border: 0; border-radius: 10px; background: #fafaf9; color: var(--ink); overflow: auto; overscroll-behavior: contain; }
.idea-viewer::backdrop { background: rgb(21 36 34 / .82); }
.viewer-bar, .viewer-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .75rem 1rem; padding: .9rem clamp(1rem, 3vw, 1.6rem); }
.viewer-bar { position: sticky; top: 0; background: #fafaf9; }
.kitchen .viewer-bar h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
.viewer-close { min-height: 44px; padding: .5rem 1rem; border: 1px solid var(--green); border-radius: 5px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.viewer-image { display: block; width: 100%; height: min(56vh, 65vw); object-fit: contain; background: var(--cream); }
.viewer-measure { font-size: .95rem; }
.kitchen .viewer-palette { margin: .2rem 0 0; color: var(--ink); font-weight: 600; }
.idea-viewer [hidden] { display: none; }
.kitchen .comparison-offer { padding-top: 1.1rem; margin-top: 1.5rem; border-top: 1px solid #93b4ae; }
