/*
Theme Name: Finzure Editorial
Description: Arquitectura técnica y gestión de edificios. Tema compatible con Flat Theme Manager.
Version: 1.1.0
Text Domain: finzure-editorial
*/

@font-face {
    font-family: "Instrument Sans";
    src: url("assets/media/instrument-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --paper: #eeede7;
    --paper-light: #f7f6f1;
    --ink: #18272a;
    --dark: #17292d;
    --text-muted: #495b5c;
    --brand: #61cbc8;
    --teal-ink: #215e5e;
    --line: #b6c0bb;
    --gutter: clamp(22px, 5vw, 82px);
    --section: clamp(55px, 8vw, 122px);
    --measure: 1500px;
    --ease: cubic-bezier(.2,.7,.25,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Instrument Sans", Arial, sans-serif; font-size: 16px; line-height: 1.52; }
::selection { color: var(--dark); background: var(--brand); }
a { color: inherit; text-underline-offset: .24em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #287b7c; outline-offset: 4px; }
img { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }
button, summary { cursor: pointer; }
button[hidden], [hidden] { display: none !important; }
h1,h2,h3 { margin: 0; font-weight: 560; line-height: 1.04; letter-spacing: -.037em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
address { font-style: normal; }
.wrap { width: min(100% - var(--gutter) * 2, var(--measure)); margin-inline: auto; }
.section { padding-block: var(--section); }
.skip { position: absolute; z-index: 20; background: var(--brand); padding: 10px 20px; inset: 12px auto auto 12px; transform: translateY(-160%); }
.skip:focus { transform: none; }

.masthead { color: #fff; background: var(--dark); }
.masthead-inner { width: min(100% - var(--gutter) * 2, var(--measure)); min-height: 76px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.wordmark { display: inline-flex; align-items: center; min-height: 50px; flex: none; }
.wordmark img { width: 140px; height: auto; }
.navigation { display: flex; align-items: center; gap: clamp(19px, 2.8vw, 42px); }
.navigation a { min-height: 45px; display: inline-flex; align-items: center; gap: 11px; font-size: 14px; text-decoration: none; white-space: nowrap; transition: color .2s; }
.navigation a:hover, .navigation [aria-current] { color: var(--brand); }
.navigation .community { color: #c7d7d7; }
.navigation .nav-contact { border: 1px solid #728787; padding-inline: 16px; }
.masthead :focus-visible, .site-footer :focus-visible { outline-color: var(--brand); }
.menu-button { border: 1px solid #728787; background: transparent; color: #fff; min-height: 44px; padding: 8px 13px; align-items: center; gap: 12px; }
.menu-button span { display: block; width: 15px; height: 7px; border-block: 1px solid currentColor; }
.arrow { position: relative; display: inline-block; flex: 0 0 17px; width: 17px; height: 16px; transition: transform .24s var(--ease); }
.arrow::before { content: ""; position: absolute; top: 7px; inset-inline: 0 2px; border-top: 1.5px solid currentColor; }
.arrow::after { content: ""; position: absolute; top: 3px; right: 2px; width: 9px; height: 9px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); }
a:hover > .arrow, button:hover > .arrow { transform: translateX(3px); }
.button { display: inline-flex; width: fit-content; min-height: 54px; align-items: center; justify-content: space-between; gap: 28px; padding: 13px 20px; color: white; background: var(--dark); border: 1px solid var(--dark); text-decoration: none; font-weight: 630; transition: background-color .22s, color .22s, scale .18s; }
.button:hover { color: var(--dark); background: var(--brand); }
.button:active { scale: .98; }
.text-link, .back-link { display: inline-flex; min-height: 44px; align-items: center; gap: 18px; font-weight: 650; color: var(--teal-ink); }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.menu-button { display: none; }
.showcase {
    --scene-height: clamp(590px, 85svh, 900px);
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--dark);
}
.showcase-scene { position: relative; min-height: var(--scene-height); }
.showcase-scene:not(.is-leaving) { z-index: 1; }
.showcase-scene.is-leaving { position: absolute; inset: 0; pointer-events: none; }
.showcase-background { position: absolute; inset: 0; overflow: hidden; }
.showcase-background img { width: 100%; height: 100%; object-fit: cover; opacity: .43; }
.showcase-background::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, #102428 4%, rgb(16 36 40 / .92) 28%, rgb(18 44 47 / .32) 76%), linear-gradient(0deg,#102428 0%,transparent 34%);
}
.showcase-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
    gap: clamp(25px, 3.2vw, 55px);
    align-items: center;
    min-height: var(--scene-height);
    padding-block: 34px 106px;
}
.showcase-copy { position: relative; z-index: 1; }
.showcase h2 {
    font-size: clamp(46px, 6.55vw, 103px);
    max-width: 13ch;
    letter-spacing: -.04em;
    line-height: .96;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.showcase .button {
    margin-top: clamp(22px, 3.2vw, 46px);
    border-color: var(--brand);
    background: var(--brand);
    color: var(--dark);
}
.showcase .button:hover { background: #d3efec; border-color: #d3efec; }
.showcase :focus-visible { outline-color: var(--brand); }
.showcase-photo {
    position: relative;
    min-width: 0;
    height: clamp(390px, 57svh, 620px);
    overflow: hidden;
    background: #29464b;
    box-shadow: 0 24px 70px -35px #061416;
}
.showcase-photo img { width: 100%; height: 100%; object-fit: cover; }
.showcase-photo::after {
    content: "";
    position: absolute;
    inset: clamp(9px, 1.3vw, 20px);
    border: 1px solid rgb(255 255 255 / .54);
    pointer-events: none;
}
.showcase-bottom {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-block: 16px 21px;
    border-top: 1px solid rgb(211 237 232 / .28);
}
.showcase-controls { display: flex; align-items: center; gap: clamp(8px,2vw,26px); }
.showcase-controls button {
    display: grid;
    min-height: 46px;
    min-width: 46px;
    padding: 0;
    place-items: center;
    color: #fff;
    border: 1px solid #728787;
    background: transparent;
    transition: color .19s, border-color .19s, background-color .19s, scale .19s;
}
.showcase-controls button:hover { color: var(--dark); border-color: var(--brand); background: var(--brand); }
.showcase-controls button:active { scale: .96; }
[data-scene-prev] .arrow, [data-scene-prev]:hover > .arrow { transform: rotate(180deg); }
.showcase-count { color: #dbe8e6; white-space: nowrap; font-size: 15px; font-variant-numeric: tabular-nums; }
.showcase-all { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; gap: 12px; text-decoration-color: #9ac0bd; }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: clamp(21px, 3.5vw, 48px); }
.home-intro p { margin: 0; max-width: 57ch; color: var(--text-muted); font-size: clamp(16px,1.55vw,22px); }
.home-intro a { flex-shrink: 0; }
.studio-media, .service-visual, .article-photo { position: relative; overflow: hidden; background: #c8d0c8; }
.studio-media img, .article-photo img { width: 100%; height: 100%; position: absolute; object-fit: cover; }

.services { background: var(--paper-light); }
.services h2, .studio h2, .reviews h2, .contact-band h2 { font-size: clamp(38px, 4.65vw, 70px); }
.services > .wrap > h2 { max-width: 19ch; margin-bottom: clamp(29px, 4vw, 56px); }
.service-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: clamp(32px, 6vw, 98px); align-items: start; }
.service-visual { position: sticky; top: 28px; aspect-ratio: 1 / 1.12; }
.service-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; scale: 1.035; transition: opacity .32s ease, scale .55s var(--ease); }
.service-visual img.is-active { opacity: 1; scale: 1; }
.service-list { border-block: 1px solid var(--line); margin: 0; padding: 0; list-style: none; }
.service-list li + li { border-top: 1px solid var(--line); }
.service-link { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: clamp(17px, 2vw, 30px) 3px; text-decoration: none; }
.service-text { display: block; }
.service-link h2, .service-link h3 { font-size: clamp(23px, 2.22vw, 34px); line-height: 1.12; transition: color .2s; }
.service-link:hover h3, .service-link:hover h2 { color: var(--teal-ink); }
.service-text > span { display: block; margin-top: 8px; color: var(--text-muted); font-size: 15px; }
.service-link .arrow { color: var(--teal-ink); }

.studio { background: var(--dark); color: white; }
.studio-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 7vw, 106px); align-items: center; }
.studio-media { min-height: 430px; }
.studio-copy h2 { margin-bottom: 28px; }
.studio-copy p { color: #d3dddd; max-width: 50ch; }
.studio .text-link { color: var(--brand); margin-top: 12px; }
.reviews h2 { margin-bottom: 34px; }
.reviews-source { display: flex; align-items: center; justify-content: space-between; gap: 16px 30px; border-block: 1px solid var(--line); padding-block: 15px; margin-bottom: 26px; }
.reviews-source p { font-weight: 630; margin: 0 0 4px; }
.reviews-source .text-link { white-space: nowrap; }
.reviews-meta { display: flex; align-items: center; gap: 10px 15px; flex-wrap: wrap; font-size: 14px; color: var(--text-muted); }
.stars { --star-size: 16px; display: inline-flex; width: fit-content; gap: 0; color: #8c570d; background: linear-gradient(90deg,#93600e var(--star-fill),#aaaca7 var(--star-fill)); }
.stars > span { width: var(--star-size); height: var(--star-size); background: var(--paper); clip-path: polygon(0 0,100% 0,100% 100%,0 100%,0 0,49% 7%,61% 36%,94% 38%,68% 60%,76% 93%,49% 74%,22% 93%,30% 60%,4% 38%,38% 36%,49% 7%); }
.stars > span + span { box-shadow: -2px 0 var(--paper); }
.review-track .stars > span { background: var(--paper-light); }
.review-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, calc((100% - 44px) / 3)); gap: 22px; margin: 0; padding: 0 0 18px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; }
.review-track li { scroll-snap-align: start; border-top: 2px solid var(--teal-ink); background: var(--paper-light); padding: 25px; }
.review-track figure { margin: 0; display: flex; min-height: 100%; flex-direction: column; gap: 12px; }
.review-track blockquote { margin: 0; line-height: 1.58; }
.review-track figcaption { font-size: 14px; font-weight: 670; }
.review-track figcaption span { display: block; color: var(--text-muted); font-weight: 400; }
.review-controls { display: flex; justify-content: end; gap: 8px; margin-top: 12px; }
.review-controls button { border: 1px solid var(--line); background: transparent; min-width: 45px; height: 45px; display: grid; place-items: center; color: var(--teal-ink); }
.review-controls button:disabled { opacity: .43; cursor: default; }
[data-review-prev] .arrow, [data-review-prev]:hover > .arrow, .back-link .arrow { transform: rotate(180deg); }

.contact-band { background: var(--brand); padding-block: clamp(40px, 6vw, 86px); }
.band-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.band-grid > div { display: flex; gap: 24px; align-items: center; }
.band-phone { font-weight: 650; white-space: nowrap; }
.site-footer { padding-block: 50px 28px; background: var(--dark); color: #e2ebea; }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 25px clamp(25px, 6vw, 100px); align-items: start; }
.site-footer address, .site-footer nav { display: grid; gap: 8px; }
.site-footer a:not(.wordmark) { text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.site-footer small { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #526466; color: #c0d0cf; }

.inner { min-height: 65vh; }
.page-head { padding-block: clamp(43px, 6vw, 92px) 36px; }
.page-head h1, .legal > h1 { font-size: clamp(42px, 6.1vw, 96px); text-wrap: balance; max-width: 18ch; }
.back-link { margin-bottom: 16px; }
.inner .services { padding-top: 36px; }
.article-grid { display: grid; grid-template-columns: 1.05fr .95fr; align-items: start; gap: clamp(25px, 6vw, 95px); margin-block: 14px var(--section); }
.article-photo { aspect-ratio: 1 / 1; }
.prose { line-height: 1.65; overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(27px, 3vw, 45px); margin-block: 1.25em .48em; }
.prose h3 { font-size: clamp(21px, 2vw, 28px); margin-block: 1.3em .55em; }
.prose h4, .prose h5 { margin-block: 1.4em .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li { margin-block: .4em; }
.prose li::marker { color: var(--teal-ink); }
.prose table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.prose th, .prose td { padding: clamp(5px, 1vw, 10px); text-align: left; vertical-align: top; border: 1px solid var(--line); }
.prose a { color: var(--teal-ink); }
.legal { padding-block: 18px var(--section); }
.legal .prose { max-width: 82ch; }
.legal > h1 { padding-block: 50px 26px; }
.next-service { margin: calc(var(--section) * -.5) auto clamp(35px, 5vw, 78px); }

.faq-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(26px, 6vw, 89px); padding-block: 15px var(--section); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { min-height: 62px; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 18px; list-style: none; font-size: clamp(17px, 1.8vw, 25px); font-weight: 620; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { width: 18px; height: 18px; flex: 0 0 18px; background: linear-gradient(currentColor,currentColor) center / 100% 1px no-repeat, linear-gradient(currentColor,currentColor) center / 1px 100% no-repeat; color: var(--teal-ink); }
.faq-list details[open] summary span { background-size: 100% 1px, 0 0; }
.faq-list .prose { padding-bottom: 18px; }

.contact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(28px, 7vw, 100px); padding-block: 14px var(--section); }
.contact-details { border-top: 1px solid var(--line); }
.contact-details > div { padding-block: 22px; border-bottom: 1px solid var(--line); }
.contact-details h2 { font-size: 18px; margin-bottom: 8px; }
.contact-details a { color: var(--teal-ink); display: inline-flex; gap: 12px; align-items: center; }
.contact-form { padding: clamp(19px, 4vw, 55px); background: var(--paper-light); }
.contact-form h2 { font-size: clamp(28px, 3.45vw, 47px); margin-bottom: 12px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.form-grid p { display: contents; }
.form-grid label { display: block; font-weight: 620; }
.form-grid label:has(textarea) { grid-column: 1 / -1; }
.form-grid input, textarea { color: var(--ink); border: 1px solid #80938f; border-radius: 0; background: white; display: block; width: 100%; min-height: 46px; padding: 10px; margin-top: 5px; }
.form-grid textarea { min-height: 130px; resize: vertical; }
.wpcf7-recaptcha { margin-top: 12px; }
.wpcf7 .wpcf7-list-item { margin-left: 0; }
.wpcf7 input[type=checkbox] { inline-size: 17px; block-size: 17px; accent-color: var(--teal-ink); vertical-align: middle; }
.wpcf7 input[type=submit] { border: 0; background: var(--dark); color: white; padding: 12px 20px; min-height: 48px; font-weight: 650; cursor: pointer; }
.wpcf7 input[type=submit]:disabled { opacity: .54; cursor: default; }
.wpcf7 input[type=submit]:not(:disabled):hover { background: var(--teal-ink); }
.form-preview { color: var(--text-muted); font-size: 14px; margin-block: 12px; }

@media (max-width: 950px) {
    .showcase h2 { font-size: clamp(43px, 6.1vw, 64px); }
    .service-grid { gap: 26px; }
    .navigation { gap: 17px; }
}
@media (max-width: 760px) {
    .masthead-inner { min-height: 66px; position: relative; flex-wrap: wrap; gap: 0; }
    .wordmark img { width: 121px; }
    .menu-button:not([hidden]) { display: inline-flex; }
    .navigation { width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 12px; gap: 0; }
    .navigation a { justify-content: space-between; border-top: 1px solid #526466; }
    .navigation .nav-contact { border: 0; border-top: 1px solid #526466; padding: 0; }
    .masthead.has-menu .navigation:not(.is-open) { display: none; }
    .showcase { --scene-height: clamp(565px, 78svh, 705px); }
    .showcase-grid { grid-template-columns: 1fr; gap: 25px; padding-block: 34px 89px; }
    .showcase h2 { font-size: clamp(43px, 10.1vw, 68px); max-width: 14ch; text-wrap: wrap; }
    .showcase .button { margin-top: 18px; min-height: 47px; }
    .showcase-background img { opacity: .32; }
    .showcase-background::after { background: linear-gradient(0deg,#102428,transparent 58%,rgb(16 36 40 / .56)); }
    .showcase-photo { height: auto; aspect-ratio: 1.24; }
    .showcase-bottom { padding-block: 12px; }
    .showcase-controls button { min-width: 44px; min-height: 44px; }
    .showcase-all { font-size: 14px; gap: 7px; }
    .home-intro { display: block; }
    .home-intro a { margin-top: 8px; }
    .reviews-source { align-items: flex-start; flex-direction: column; }
    .service-grid, .studio-grid, .article-grid, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
    .service-visual { position: relative; top: auto; aspect-ratio: 1.55; }
    .studio-media { min-height: 0; aspect-ratio: 1.4; }
    .article-photo { aspect-ratio: 1.38; }
    .review-track { grid-auto-columns: minmax(0, 85%); }
    .band-grid { display: grid; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > .wordmark { grid-column: 1 / -1; }
}
@media (max-width: 420px) {
    .form-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .review-track li { padding: 18px; }
    .review-controls { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: 0s !important; scroll-behavior: auto !important; }
}
