/*
Theme Name: KUBO Cocinas
Theme URI: https://www.kubococinas.es
Author: KUBO
Description: Tema de KUBO, estudio de cocinas alemanas en Almería, con cubo 3D y solicitud de citas.
Version: 1.2.7
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: kubo
*/

:root {
	--night: #161615;
	--coal: #21211f;
	--ink: #242320;
	--paper: #f8f7f4;
	--stone: #eeece7;
	--line: #d7d3cb;
	--muted: #605d56;
	--light: #d3d0c8;
	--yellow: #f7e514;
	--red: #df252b;
	--display: Jost, 'Century Gothic', sans-serif;
	--body: Inter, system-ui, sans-serif;
	--gutter: clamp(20px, 5vw, 76px);
	--section-space: clamp(64px, 9vw, 132px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 var(--body); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
section[id], main[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; background: white; color: var(--ink); }
.skip:not(:focus) { clip-path: inset(50%); }
.wrap, .site-header__in { width: min(100%, 1536px); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--s { max-width: 1080px; }
.franja { display: block; width: 4px; height: 30px; flex: none; background: linear-gradient(#474542 0 33%, var(--red) 33% 66%, var(--yellow) 66%); }
.franja--horizontal { width: 42px; height: 3px; background: linear-gradient(90deg, #69655e 0 33%, var(--red) 33% 66%, var(--yellow) 66%); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; font: 600 .875rem/1.4 var(--body); text-align: center; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn--white { background: #f7f6f2; color: var(--night); }
.btn--white:hover { background: var(--yellow); }
.btn--ghost, .btn--line { color: #f7f6f2; background: transparent; border-color: #7c786f; }
.btn--ghost:hover, .btn--line:hover { background: #f7f6f2; border-color: #f7f6f2; color: var(--night); }
.btn--dark { background: var(--night); color: white; }
.btn--dark:hover { background: #3a382f; }
.btn--sm { padding-inline: 18px; }

.site-header { position: sticky; top: 0; z-index: 50; color: #fff; background: var(--night); border-bottom: 1px solid #383632; }
.admin-bar .site-header { top: 32px; }
.admin-bar section[id], .admin-bar main[id] { scroll-margin-top: 130px; }
.site-header__in { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; position: relative; }
.menu-btn { display: flex; gap: 13px; align-items: center; padding: 0; border: 0; color: inherit; background: none; text-align: left; cursor: pointer; }
.menu-btn__txt { display: grid; gap: 2px; }
.menu-btn__v { font: 500 1.25rem/1 var(--display); letter-spacing: .19em; }
.menu-btn__k { color: var(--light); font: 400 .8125rem/1.3 var(--body); }
.primary-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 8px clamp(16px, 3vw, 42px); font-size: .875rem; }
.primary-nav a { padding-block: 8px; }
.primary-nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: .3em; }
.menu-panel { position: absolute; top: 100%; left: var(--gutter); min-width: 265px; max-height: 75vh; overflow: auto; display: grid; padding: 8px; background: var(--coal); border: 1px solid #5c5850; box-shadow: 0 16px 36px #0006; }
.menu-panel[hidden] { display: none; }
.menu-panel a { padding: 11px 14px; }
.menu-panel a:hover, .menu-panel a.is-on { background: var(--paper); color: var(--ink); }

.mscene, .mcube, .mface { width: 42px; height: 42px; display: block; }
.mscene { flex: none; perspective: 420px; }
.mcube { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.mface { position: absolute; inset: 0; display: grid; place-items: center; backface-visibility: hidden; background: var(--night); color: white; box-shadow: inset 0 0 0 1px #5c5850; font: 500 9px var(--display); }
.m-front { transform: translateZ(21px); }
.m-right { transform: rotateY(90deg) translateZ(21px); }
.m-back { transform: rotateY(180deg) translateZ(21px); }
.m-left { transform: rotateY(-90deg) translateZ(21px); }
.m-top { transform: rotateX(90deg) translateZ(21px); }
.m-bottom { transform: rotateX(-90deg) translateZ(21px); }

.eyebrow { margin-bottom: 17px; color: var(--muted); font-size: .875rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow--light { color: var(--light); }
.h2 { max-width: 19ch; margin-bottom: 22px; font: 400 clamp(2.25rem, 4.6vw, 4.8rem)/1.03 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.h2--m { font-size: clamp(2.25rem, 4vw, 3.9rem); }
.lead { max-width: 60ch; margin-bottom: 38px; color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); }
.lead--light { color: var(--light); margin-bottom: 0; }
.sec { padding-block: var(--section-space); }
.sec--tight { padding-block: clamp(54px, 7vw, 96px); }
.sec--c2 { background: var(--stone); }
.sec--deep { background: var(--night); color: var(--paper); }
.sec--page { min-height: 60vh; }
.link-u, .check a { text-decoration: underline; text-underline-offset: .22em; }

.hero { background: var(--night); color: var(--paper); }
.hero__in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: clamp(24px, 5vw, 80px); padding-block: clamp(60px, 8.2vw, 122px) clamp(42px, 6vw, 88px); }
.hero .eyebrow { display: flex; align-items: center; gap: 13px; letter-spacing: .1em; }
.hero h1 { max-width: 11ch; margin-bottom: 24px; font: 400 clamp(3rem, 6.5vw, 7rem)/.96 var(--display); letter-spacing: -.053em; }
.hero h1 span { display: block; margin-top: .13em; color: #d3cec2; font-size: .72em; font-weight: 300; line-height: 1.04; }
.hero__lead { max-width: 44ch; margin-bottom: 28px; color: var(--light); font-size: clamp(1rem, 1.45vw, 1.125rem); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { max-width: 48ch; margin-top: 28px; padding-top: 18px; border-top: 1px solid #555149; font-size: .875rem; color: var(--light); }
.hero__cube { min-width: 0; display: flex; flex-direction: column; align-items: center; }
.scene { --edge: clamp(244px, 26vw, 370px); --depth: calc(var(--edge) / 2); width: var(--edge); aspect-ratio: 1; perspective: 1400px; touch-action: pan-y; cursor: grab; user-select: none; }
.scene:active { cursor: grabbing; }
.cube { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transform: rotateX(-9deg) rotateY(-16deg); transition: transform .85s cubic-bezier(.2,.8,.2,1); }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 13px; padding: clamp(21px, 2.7vw, 40px); backface-visibility: hidden; background: #191918; color: white; box-shadow: inset 0 0 0 1px #59564f, inset 0 0 0 8px #191918, inset 0 0 0 9px #45423e; }
.face p { color: var(--light); line-height: 1.4; }
.face__t { font: 400 clamp(1.5rem, 2.7vw, 2.35rem)/1 var(--display); text-transform: uppercase; letter-spacing: .06em; }
.face__t--s { font-size: clamp(1.25rem, 2.1vw, 1.85rem); }
.face__a { align-self: flex-start; font-size: .875rem; font-weight: 600; text-decoration: underline var(--yellow) 2px; text-underline-offset: .35em; }
.f-front { transform: translateZ(var(--depth)); padding: 0; }
.f-front img { width: 100%; height: 100%; object-fit: cover; }
.f-right { transform: rotateY(90deg) translateZ(var(--depth)); }
.f-back { transform: rotateY(180deg) translateZ(var(--depth)); }
.f-left { transform: rotateY(-90deg) translateZ(var(--depth)); }
.f-top { transform: rotateX(90deg) translateZ(var(--depth)); }
.f-bottom { transform: rotateX(-90deg) translateZ(var(--depth)); }
.cube-shadow { width: min(90%, 390px); height: 30px; margin-top: 35px; background: radial-gradient(ellipse, #000c, transparent 70%); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.chip, .cube-toggle { font: 500 .875rem/1 var(--body); color: var(--light); background: transparent; cursor: pointer; }
.chip { min-height: 42px; padding: 8px 10px; border: 1px solid #59564f; }
.chip:hover, .chip.is-on { color: var(--night); background: var(--paper); }
.cube-tools { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: .875rem; color: var(--light); }
.cube-toggle { min-height: 36px; padding: 0 4px; border: 0; text-decoration: underline; text-underline-offset: .22em; }

.band { background: var(--night); color: var(--paper); }
.band__in { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.band__in > div { padding: 22px 12px 25px 0; border-top: 1px solid #555149; }
.band__in > div + div { padding-left: clamp(14px, 3vw, 40px); border-left: 1px solid #555149; }
.band__n { font: 400 clamp(1.25rem, 2.4vw, 2.25rem)/1.15 var(--display); }
.band__t { margin-top: 6px; font-size: .875rem; color: var(--light); }

.cols3, .brands, .steps { display: grid; gap: clamp(18px, 3vw, 44px); }
.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .step { border-top: 1px solid var(--line); padding-top: 24px; }
.card h3, .step h3 { margin-bottom: 9px; font: 400 1.625rem/1.15 var(--display); }
.card p { color: var(--muted); }

.brands { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
.brand { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(24px, 4vw, 60px); border: 1px solid var(--line); }
.brand--dark { background: var(--coal); border-color: var(--coal); color: var(--paper); }
.brand--light { background: var(--paper); }
.brand h3 { margin-bottom: 10px; font: 400 clamp(2rem, 4.6vw, 4rem)/1 var(--display); letter-spacing: -.04em; }
.brand p { max-width: 42ch; margin-bottom: 23px; color: var(--muted); }
.brand--dark p { color: var(--light); }
.brand__a { margin-top: auto; font-weight: 600; text-decoration: underline 2px; text-underline-offset: .28em; }
.brand__a--y { text-decoration-color: var(--yellow); }
.brand__a--r { text-decoration-color: var(--red); }

.gal { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 235px); gap: 12px; }
.gal__i { position: relative; min-height: 0; overflow: hidden; background: var(--coal); }
.gal__i img, .estudio__img img { height: 100%; width: 100%; object-fit: cover; color: var(--light); }
.g1 { grid-area: span 2 / span 7; }
.g2, .g3 { grid-column: span 5; }
.g4, .g5, .g6 { grid-area: span 2 / span 4; }
.cap { position: absolute; inset: auto 0 0; padding: 31px 17px 14px; color: white; background: linear-gradient(transparent, #141413e8); font-size: .875rem; }

.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 38px; }
.step { border-color: #555149; }
.step__n { margin-bottom: 13px; color: var(--yellow); font: 300 2.65rem/1 var(--display); }
.step p { color: var(--light); }

.estudio, .cita { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(28px, 7vw, 100px); }
.estudio__img { height: clamp(260px, 41vw, 580px); overflow: hidden; background: var(--coal); }
.datos { display: grid; gap: 10px; overflow-wrap: anywhere; }
.datos a { text-decoration: underline; text-underline-offset: .22em; }
.rev { margin: 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.rev__s { margin-bottom: 12px; letter-spacing: .12em; }
.rev blockquote { margin: 0 0 13px; }
.rev figcaption { font-size: .875rem; color: var(--muted); }
.faq { margin-top: 34px; }
.faq details { border-top: 1px solid var(--line); padding-block: 16px; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; list-style: none; font: 400 clamp(1.25rem, 2.3vw, 1.6rem)/1.2 var(--display); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.65rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq p { max-width: 70ch; margin-top: 13px; color: var(--muted); }
.pros { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; }

#cita { background: var(--stone); }
.cita { align-items: start; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
.cita__panel { padding: clamp(18px, 3.6vw, 52px); border: 1px solid var(--line); background: var(--paper); }
.cita__intro .lead { margin-bottom: 0; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: .875rem; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #969188; border-radius: 0; background: white; color: var(--ink); font: inherit; }
.field textarea { resize: vertical; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .875rem; color: var(--muted); }
.check input { margin: .38em 0 0; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.notice { padding: 13px 16px; margin-bottom: 18px; }
.notice--ok { background: #e6efe5; border-left: 3px solid #3f7a4a; }
.notice--err { background: #f6e3e3; border-left: 3px solid var(--red); }

.entry__c { color: var(--muted); }
.entry__c p + p { margin-top: 1em; }
.entry__c h2, .entry__c h3 { font-family: var(--display); margin: 30px 0 10px; }
.entry__c a { text-decoration: underline; }
.site-footer { background: var(--night); color: var(--light); }
.site-footer__top { padding-block: 44px 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; }
.site-footer__brand { flex: 1 1 320px; font-size: .875rem; }
.site-footer__brand img { margin-bottom: 12px; }
.site-footer__brand p { max-width: 45ch; }
.site-footer__col { flex: 0 1 230px; display: grid; align-content: start; gap: 5px; font-size: .875rem; }
.site-footer__h { font-weight: 600; color: white; }
.site-footer__bottom { padding-block: 16px 30px; border-top: 1px solid #555149; display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: .8125rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }

@media (max-width: 920px) {
	.hero__in { gap: 27px; }
	.primary-nav { display: none; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.row { grid-template-columns: 1fr; }
}
@media (max-width: 782px) {
	.admin-bar .site-header { top: 46px; }
}
@media (max-width: 700px) {
	.site-header__in { min-height: 68px; }
	.hero__in, .estudio, .cita, .cols3, .brands { grid-template-columns: 1fr; }
	.hero__in { padding-top: 48px; gap: 46px; }
	.hero h1 { font-size: clamp(2.8rem, 10.5vw, 4.5rem); }
	.hero__note { margin-top: 20px; }
	.scene { --edge: clamp(220px, 62vw, 320px); }
	.band__in { grid-template-columns: 1fr; }
	.band__in > div { padding-block: 13px; }
	.band__in > div + div { padding-left: 0; border-left: 0; }
	.gal { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(130px, 33vw, 240px); }
	.gal__i { grid-area: auto; }
	.g1 { grid-column: span 2; }
}
@media (max-width: 600px) {
	.admin-bar .site-header { top: 0; }
}
@media (max-width: 390px) {
	.menu-panel { left: var(--gutter); right: var(--gutter); min-width: 0; }
	.hero__cta > a { width: 100%; }
	.steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.cube, .mcube, .btn { transition: none; }
}
