/* Carpintería. Concepto: el despiece.
   Nogal oscuro, roble y lápiz de carpintero sobre papel de taller. Big Shoulders Display e Instrument Sans. */

:root {
  --nogal: #2A2420;
  --nogal-2: #3A322C;
  --roble: #B9782F;
  --fondo: #F6F3EE;
  --superficie: #FFFFFF;
  --texto: #2A2420;
  --texto-suave: #5E554D;
  --linea: #E0D8CC;
  --acento: #B9782F;
  --sobre-acento: #1E1915;
  --acento-texto: #8A5516;
  --fuente-titulos: "Big Shoulders Display", system-ui, sans-serif;
  --fuente-texto: "Bitter", Georgia, serif;
  --radio: 3px;
}

.boton {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 52px; padding: .8rem 1.4rem; border-radius: var(--radio);
  font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--rapido) var(--curva), background-color var(--rapido), color var(--rapido);
}
.boton:active { transform: scale(.97); }
.boton--principal { background: var(--acento); color: var(--sobre-acento); }
.boton--linea { border-color: #6B5D51; color: #fff; }
.boton--secundario { border-color: var(--texto); color: var(--texto); background: transparent; }

.cabecera { position: sticky; top: 0; z-index: 40; background: var(--nogal); color: #fff; }
.cabecera__fila { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; }
.marca { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 800 1.6rem/1 var(--fuente-titulos); letter-spacing: .01em; }
.marca__icono { width: 24px; fill: none; stroke: var(--roble); stroke-width: 3; stroke-linecap: round; }
.marca__logo { max-height: 40px; width: auto; }
.cabecera__menu { display: none; background: none; border: 0; padding: .5rem; margin-right: -.5rem; cursor: pointer; color: #fff; }
.cabecera__menu svg { width: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
.menu { display: flex; align-items: center; gap: 1.75rem; font-weight: 600; }
.menu a { text-decoration: none; padding: .5rem 0; color: #D9CFC4; }
.menu .menu__boton { background: var(--acento); color: var(--sobre-acento); padding: .6rem 1.1rem; border-radius: var(--radio); }
@media (max-width: 52rem) {
  .cabecera__menu { display: block; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--nogal); padding: .25rem 1.25rem 1.25rem;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity var(--medio) var(--curva), transform var(--medio) var(--curva), visibility 0s linear var(--medio);
  }
  .menu.abierto { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .menu a { padding: .95rem 0; border-bottom: 1px solid var(--nogal-2); }
  .menu .menu__boton { margin-top: 1rem; text-align: center; padding: .95rem; }
}

.portada { background: var(--nogal); color: #fff; padding: clamp(3rem, 7vw, 5.5rem) 0; }
.portada__rejilla { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.portada h1 { font-size: clamp(3rem, 7vw, 5.8rem); font-weight: 800; line-height: .92; margin-bottom: 1.25rem; }
.portada__entrada { font-size: 1.15rem; color: #D9CFC4; max-width: 44ch; }
.portada__acciones { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }
.portada__nota { font-size: .95rem; color: #B0A396; margin: 0; }
.portada__google { margin: .6rem 0 0; font-weight: 700; }
.portada__foto { margin: 0; }
.portada__foto img { width: 100%; aspect-ratio: 8 / 9; object-fit: cover; }

.despiece { margin: 0; background: #F2ECE2; color: var(--texto); padding: 1.5rem; border-radius: var(--radio); background-image: linear-gradient(#E3DACB 1px, transparent 1px), linear-gradient(90deg, #E3DACB 1px, transparent 1px); background-size: 20px 20px; }
.despiece svg { width: 100%; max-height: 26rem; }
.despiece__mueble rect, .despiece__mueble path { fill: none; stroke: var(--nogal); stroke-width: 3; }
.despiece__mueble rect { fill: #E6C9A0; }
.despiece__veta path { fill: none; stroke: var(--roble); stroke-width: 1.5; opacity: .6; }
.despiece__cotas path { fill: none; stroke: #A13A2A; stroke-width: 1.5; }
.despiece__cotas text { font: 700 15px var(--fuente-titulos); fill: #A13A2A; text-anchor: middle; letter-spacing: .04em; }
.despiece figcaption { font: 700 1.1rem var(--fuente-titulos); letter-spacing: .02em; margin-top: .5rem; text-align: center; }

.seccion { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.seccion h2, .presupuesto h2 { font-size: clamp(2.6rem, 5.6vw, 4.2rem); font-weight: 800; line-height: .95; }

.trabajos__lista { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 2.5rem; }
.trabajos__lista li { padding: 1.4rem 0; border-top: 3px solid var(--nogal); }
.trabajos__lista h3 { font: 800 1.7rem/1 var(--fuente-titulos); margin-bottom: .5rem; }
.trabajos__lista p { margin: 0; color: var(--texto-suave); }

.proceso { background: var(--superficie); }
.proceso__lista { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; counter-reset: p; }
.proceso__lista li { counter-increment: p; position: relative; padding-top: 3.5rem; }
.proceso__lista li::before { content: counter(p); position: absolute; top: 0; left: 0; font: 800 3rem/1 var(--fuente-titulos); color: var(--acento-texto); }
.proceso__lista li::after { content: ""; position: absolute; top: 1.4rem; left: 2.5rem; right: -1rem; border-top: 2px dashed var(--linea); }
.proceso__lista li:last-child::after { display: none; }
.proceso h3 { font: 800 1.5rem var(--fuente-titulos); }
.proceso p { margin: 0; color: var(--texto-suave); }

.fotos__rejilla { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); gap: .75rem; }
.fotos__rejilla img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fotos .resenas-hueco, .resenas .resenas-hueco { margin-top: 1.25rem; }

.resenas { background: var(--superficie); }
.resenas__nota-google { font-weight: 700; color: var(--acento-texto); }
.resenas__lista { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1.5rem; }
.resena { border-left: 4px solid var(--roble); padding-left: 1.1rem; }
.resena blockquote { margin: 0; }
.resena__autor { font-weight: 700; margin: 0; }

.taller__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.direccion { font-weight: 700; font-size: 1.1rem; }
.horario { margin: 1rem 0; }
.horario div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--linea); }
.horario dt { font-weight: 700; }
.horario dd { margin: 0; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.zona { color: var(--texto-suave); }

.preguntas { background: var(--superficie); }
.preguntas__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 2rem 3rem; }
.faq__item { border-top: 2px solid var(--texto); }
.faq__item:last-child { border-bottom: 2px solid var(--texto); }
.faq__item summary { list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1.1rem 0; position: relative; font-weight: 700; font-size: 1.05rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: .25rem; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: linear-gradient(var(--roble), var(--roble)) center / 100% 2.5px no-repeat, linear-gradient(var(--roble), var(--roble)) center / 2.5px 100% no-repeat; transition: transform var(--medio) var(--curva); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { color: var(--texto-suave); padding-right: 2rem; }

.presupuesto { background: var(--nogal); color: #fff; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.presupuesto__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: start; }
.presupuesto p { color: #D9CFC4; max-width: 38ch; }
.presupuesto a { color: #fff; text-underline-offset: 4px; text-decoration-color: var(--roble); }
.presupuesto__dato { font: 800 clamp(2rem, 4.5vw, 2.8rem) var(--fuente-titulos); margin-top: 1.5rem; }
.presupuesto__form { background: var(--superficie); color: var(--texto); padding: clamp(1.25rem, 4vw, 2rem); border-radius: var(--radio); }
.presupuesto__form .boton { width: 100%; }

.pie { background: #1E1915; color: #B0A396; padding: 2rem 0; font-size: .95rem; }
.pie__fila { display: flex; flex-wrap: wrap; gap: 1rem 2rem; justify-content: space-between; align-items: center; }
.pie p { margin: 0; }
.pie strong { color: #fff; }
.pie-legal { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.pie-legal a { color: #EDE5DB; text-underline-offset: 3px; }

.fijo-movil__llamar { background: var(--nogal); color: #fff; border: 1px solid #4A4037; }
.fijo-movil__wa { background: var(--acento); color: var(--sobre-acento); }
.pagina-legal { background: var(--superficie); }

@media (max-width: 60rem) {
  .portada__rejilla, .taller__rejilla, .preguntas__rejilla, .presupuesto__rejilla { grid-template-columns: minmax(0, 1fr); }
  .trabajos__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proceso__lista { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proceso__lista li:nth-child(2)::after { display: none; }
  .despiece { max-width: 26rem; }
}
@media (max-width: 40rem) {
  .trabajos__lista, .proceso__lista { grid-template-columns: minmax(0, 1fr); }
  .proceso__lista li::after { display: none; }
  .horario div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .portada__acciones .boton { width: 100%; }
}
@media (hover: hover) and (pointer: fine) {
  .boton--principal:hover { background: color-mix(in srgb, var(--acento) 85%, #fff); }
  .boton--linea:hover { border-color: #fff; }
  .boton--secundario:hover { background: var(--texto); color: #fff; }
  .menu a:hover { color: #fff; }
  .menu .menu__boton:hover { background: color-mix(in srgb, var(--acento) 85%, #fff); color: var(--sobre-acento); }
  .faq__item summary:hover { color: var(--acento-texto); }
}
