/*
Theme Name: FINITECH
Template: twentytwentyfive
Version: 2.4.0
Text Domain: finitech-inicio
*/
.ft-shell { width: min(100% - 48px, 1240px); margin-inline: auto; }
.ft-header { min-height: 82px; padding-block: 12px; }
.ft-logo { margin: 0; }
.ft-logo img { display: block; width: 195px; height: auto; }
.ft-nav { font-size: 16px; font-weight: 600; }
.ft-main > .wp-block-post-content:empty { display: none; }
.ft-hero { background: #fafaf7; margin-block-start: 0; padding-block: clamp(36px, 6vw, 88px); }
.ft-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: center; gap: clamp(24px, 5vw, 76px); }
.ft-copy { padding-block: 12px; }
.ft-copy h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 700; line-height: 1.06; letter-spacing: -.045em; margin: 0; }
.ft-copy > p { color: #142b49; font-size: clamp(18px, 1.7vw, 20px); line-height: 1.55; max-width: 46ch; }
.ft-copy .ft-note { font-size: 14px; font-weight: 600; }
.ft-actions { margin-top: 28px; }
.ft-button .wp-block-button__link { background: #174991; color: #fafaf7; font-weight: 600; font-size: 16px; padding: 12px 18px; border: 1px solid #174991; border-radius: 4px; }
.ft-button .wp-block-button__link:hover { background: #142b49; color: #fafaf7; }
.ft-secondary .wp-block-button__link { background: transparent; color: #174991; }
.ft-hero-image { margin: 0; }
.ft-hero-image img { display: block; width: 100%; max-height: 510px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 65%; }
.ft-footer { background: #fafaf7; border-top: 1px solid #fafaf7; padding-block: 40px; }
.ft-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }
.ft-footer h2 { font-size: 18px; font-weight: 600; }
.ft-footer ul { padding: 0; list-style: none; line-height: 1.8; }
.ft-footer a { text-underline-offset: .2em; }
.ft-shell :focus-visible { outline: 2px solid #174991; outline-offset: 4px; }
@media (max-width: 980px) { .ft-header-cta { display: none; } }
@media (max-width: 760px) {
  .ft-shell { width: calc(100% - 40px); }
  .ft-header { min-height: 64px; }
  .ft-logo img { width: 165px; }
  .ft-grid, .ft-footer-grid { grid-template-columns: 1fr; }
  .ft-hero-image img { aspect-ratio: 4 / 3; }
}

.ft-home-section { padding-block: clamp(38px, 6vw, 82px); margin-block-start: 0; }
.ft-home-section h2 { font-size: clamp(26px, 4vw, 42px); line-height: 1.15; margin: 0 0 1rem; }
.ft-home-section h3 { font-size: clamp(20px, 2.5vw, 26px); margin: 0 0 .6rem; }
.ft-home-section p { line-height: 1.65; max-width: 66ch; }
.ft-service-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; }
.ft-service-card { padding: clamp(20px, 3vw, 36px); border: 1px solid #fafaf7; border-radius: 6px; }
.ft-home-section a { color: #174991; font-weight: 650; text-underline-offset: .2em; }
.ft-about { background: #142b49; color: #fafaf7; }
.ft-about a { color: #fafaf7; }
.ft-about-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(110px, 27%); gap: 24px; align-items: center; }
.ft-about-map { display: block; width: auto; height: 220px; margin-inline: auto; }
.ft-home-contact { background: #fafaf7; }
@media (max-width: 650px) {
  .ft-service-grid, .ft-about-grid { grid-template-columns: 1fr; }
  .ft-about-map { height: 175px; }
}

.ft-compare { color: #142b49; }
.ft-compare-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 32px); }
.ft-compare figure { margin: 0; padding: 0; min-width: 0; }
.ft-compare h3 { margin: 0 0 .65rem; font-size: clamp(1rem, 2vw, 1.25rem); }
.ft-compare-stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 6px; background: #fafaf7; }
.ft-compare-stage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.ft-compare-ready [data-before] { clip-path: inset(0 calc(100% - var(--split, 50%)) 0 0); }
.ft-compare-stage:not(.ft-compare-ready) { display: grid; grid-template-columns: 1fr 1fr; aspect-ratio: auto; }
.ft-compare-stage:not(.ft-compare-ready) img { position: static; height: auto; aspect-ratio: 4 / 5; }
.ft-compare-stage:not(.ft-compare-ready) [data-after] { order: 1; }
.ft-compare-label { position: absolute; z-index: 1; top: .75rem; padding: .32rem .5rem; border-radius: 4px; color: #fafaf7; background: #142b49; font-size: .76rem; line-height: 1.2; pointer-events: none; }
.ft-compare-label:first-of-type { left: .75rem; }
.ft-compare-label:last-of-type { right: .75rem; }
.ft-compare-line { position: absolute; inset-block: 0; left: var(--split, 50%); width: 2px; translate: -50% 0; background: #fafaf7; pointer-events: none; }
.ft-compare-line::after { content: '↔'; position: absolute; top: 50%; left: 50%; translate: -50% -50%; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid #fafaf7; border-radius: 50%; background: #174991; color: #fafaf7; }
.ft-compare-stage input { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ft-compare-stage:focus-within { outline: 3px solid #174991; outline-offset: 4px; }
@media (max-width: 640px) { .ft-compare-grid { grid-template-columns: 1fr; } }

body { font-size: 16px; font-weight: 450; }
[hidden] { display: none !important; }
.wp-site-blocks > * + *, .ft-main > * + * { margin-block-start: 0; }
.ft-header { min-height: 72px; }
.ft-nav { font-size: 14px; }
.ft-cinematic { isolation: isolate; position: relative; color: white; background: #142b49; padding: 0; }
.ft-hero-visual { position: absolute; inset: 0; z-index: -1; }
.ft-hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg,#142b49 5%,#142b49f2 26%,#142b49ad 57%,#142b4912 100%); }
.ft-hero-photo { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.ft-hero-inner { min-height: clamp(500px,48vw,655px); padding-block: 70px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; box-sizing: border-box; }
.ft-hero-inner h1, .ft-contact-hero h1 { margin: 0; max-width: 18ch; font-size: clamp(33px,4.15vw,58px); font-weight: 760; line-height: 1.08; letter-spacing: -.045em; text-wrap: balance; }
.ft-hero-inner p, .ft-contact-hero p { max-width: 55ch; font-size: 16px; line-height: 1.65; }
.ft-hero-inner p { color: #fafaf7; }
.ft-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ft-hero-actions p { flex: 0 0 100%; margin: 8px 0 0; font-size: 13px; }
.ft-switch { display: flex; flex-wrap: wrap; margin: 10px 0 0; gap: 4px; border: 1px solid #ffffff60; background: #142b49a0; border-radius: 8px; padding: 4px; }
.ft-switch button { font: inherit; font-size: 14px; font-weight: 650; background: transparent; border: 0; border-radius: 5px; color: #fafaf7; padding: 10px 15px; cursor: pointer; }
.ft-switch button[aria-pressed=true] { background: #fafaf7; color: #142b49; }
.ft-audience { min-height: 105px; }
.ft-action { display: inline-flex; align-items: center; justify-content: space-between; gap: 14px; background: #174991; color: white; padding: 12px 17px; margin: 4px 7px 4px 0; border-radius: 5px; font-weight: 680; font-size: 14px; text-decoration: none; min-height: 22px; }
.ft-action:hover { background: #142b49; color: white; }
.ft-cinematic :focus-visible,.ft-about :focus-visible,.ft-site-footer :focus-visible { outline-color: #fafaf7; }
.ft-section { padding-block: clamp(42px,6vw,78px); background: #fafaf7; }
.ft-section-soft { background: #fafaf7; }
.ft-section h2 { margin: 0 0 15px; font-size: clamp(25px,3vw,38px); line-height: 1.15; font-weight: 740; letter-spacing: -.032em; }
.ft-section h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.24; font-weight: 710; }
.ft-section p { color: #142b49; line-height: 1.65; max-width: 70ch; }
.ft-card-grid,.ft-work,.ft-contact-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,275px),1fr)); gap: 18px; margin-top: 25px; }
.ft-card { background: #fafaf7; border: 1px solid #142b4926; border-top: 3px solid #174991; border-radius: 8px; padding: clamp(18px,3vw,28px); }
.ft-card p { margin-bottom: 12px; }
.ft-card h2 { font-size: 23px; }
.ft-work figure { margin: 0; }
.ft-work img { width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; display: block; border-radius: 8px; }
.ft-work figcaption { font-size: 14px; font-weight: 650; margin-top: 8px; }
.ft-about { background: #142b49; }
.ft-about p { color: #fafaf7; }
.ft-about-layout { display: grid; grid-template-columns: 1fr minmax(120px,25%); gap: 24px; align-items: center; }
.ft-form-slot:not(:empty) { padding-block: 34px; }
.ft-disclosure { font-size: 14px; }
.ft-site-footer { color: #fafaf7; background: #142b49; font-size: 14px; }
.ft-site-footer a:not(.ft-action) { color: #fafaf7; text-underline-offset: 3px; }
.ft-footer-brand { margin: 0; }
.ft-footer-brand img { width: 160px; height: auto; display: block; filter: brightness(0) invert(1); }
.ft-footer-lead,.ft-footer-base { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.ft-footer-lead { padding: 30px 0 20px; border-bottom: 1px solid #ffffff33; }
.ft-footer-lead p:last-child { margin: 8px 0; }
.ft-footer-links { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; padding: 25px 0; }
.ft-footer-links h2 { font-size: 15px; color: white; margin: 0 0 9px; }
.ft-footer-links a { display: block; width: fit-content; margin-block: 5px; }
.ft-footer-base { border-top: 1px solid #ffffff33; padding: 14px 0; }
@media (max-width:760px) {
  .ft-hero-inner { min-height: 515px; padding-block: 48px; }
  .ft-hero-visual::after { background: linear-gradient(90deg,#142b49ed,#142b4999),linear-gradient(0deg,#142b49d9,transparent); }
  .ft-about-layout { grid-template-columns: 1fr; }
  .ft-footer-links { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:380px) { .ft-footer-links { grid-template-columns: 1fr; } }
.ft-hero-inner .ft-visit { font-size: 13px; margin-block: 14px 0; }
.ft-about .ft-action, .ft-site-footer .ft-action { color: white; }
.ft-site-footer a { overflow-wrap: anywhere; }

.wp-site-blocks > header.wp-block-template-part {
  position: sticky;
  top: var(--wp-admin--admin-bar--height, 0px);
  z-index: 20;
  background: #fafaf7;
  box-shadow: 0 1px 0 #142b4920;
}
html { scroll-padding-top: 100px; }
.ft-photo-grid figure { border-radius: 9px; overflow: hidden; background: #fafaf7; border: 1px solid #142b4919; }
.ft-photo-grid img { border-radius: 0; }
.ft-photo-grid figcaption { margin: 0; padding: 11px 14px; }
.ft-faq { max-width: 850px; }
.ft-faq details { border-bottom: 1px solid #142b4930; padding-block: 15px; }
.ft-faq summary { cursor: pointer; font-weight: 650; padding: 4px; }
.ft-faq p { margin: 8px 0 0 20px; }
.ft-closing { background: #142b49; color: white; }
.ft-closing p { color: #fafaf7; }
.ft-legal { max-width: 840px; }
.ft-legal h2 { margin-top: 34px; font-size: clamp(21px, 3vw, 26px); }
.ft-site-footer .ft-footer-lead p { margin-block: 8px; }
.ft-contact-address { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,300px),1fr)); gap: 24px; align-items: center; margin-top: 32px; }
.ft-contact-address img { display: block; width: 100%; aspect-ratio: 2 / 1; height: auto; object-fit: cover; border-radius: 8px; }

/* FINITECH reading and section layout */
:root { --ft-reading-font: system-ui, "Segoe UI", sans-serif; }
body .ft-main, body .ft-site-footer { font-family: var(--ft-reading-font); font-size: 16px; font-weight: 400; }
body .ft-main p { font-family: var(--ft-reading-font); font-size: clamp(16px, 1.1vw, 18px); font-weight: 430; line-height: 1.62; margin-block: 0 1em; }
body .ft-main .ft-visit, body .ft-main .ft-disclosure { font-size: 14px; }
.ft-main h1, .ft-main h2, .ft-main h3 { font-family: var(--wp--preset--font-family--finitech, var(--ft-reading-font)); }
.ft-card-grid { align-items: stretch; }
.ft-card { display: flex; flex-direction: column; align-items: flex-start; }
.ft-card > .ft-action:last-child { margin-top: auto; }
.ft-card > p:has(+ .ft-action) { margin-bottom: 1.1rem; }
.ft-inquiry { background: #fafaf7; }
.ft-inquiry-grid { display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1fr); gap: clamp(20px,5vw,68px); }
.ft-inquiry-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; background: #fafaf7; border: 1px solid #142b4926; border-radius: 10px; padding: clamp(18px,4vw,30px); }
.ft-inquiry-form label { display: grid; gap: 6px; font-size: 15px; font-weight: 650; }
.ft-form-wide { grid-column: 1 / -1; }
.ft-inquiry-form input, .ft-inquiry-form select, .ft-inquiry-form textarea { box-sizing: border-box; width: 100%; border: 1px solid #142b4980; border-radius: 5px; background: #fafaf7; color: #142b49; padding: 10px 12px; font: inherit; font-weight: 400; }
body .ft-inquiry-form p { font-size: 14px; margin: 0; }
.ft-inquiry-form button { border: 0; justify-self: start; cursor: pointer; }
@media (max-width: 720px) { .ft-inquiry-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ft-inquiry-form { grid-template-columns: 1fr; } }

.ft-hero-choices { display: grid; gap: 10px; width: min(100%, 350px); margin-top: 8px; }
.ft-hero-choices .ft-switch { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin: 0; }
.ft-hero-choices .ft-switch button { min-height: 44px; }
.ft-hero-choices .ft-hero-actions, .ft-hero-choices .ft-audience { display: grid; gap: 8px; min-height: 0; }
.ft-hero-choices .ft-audience p { margin: 0; font-size: 14px; }
.ft-hero-choices .ft-action { box-sizing: border-box; width: 100%; margin: 0; min-height: 46px; }

/* FINITECH editorial system */
body .ft-main, body .ft-main p, body .ft-site-footer, body .ft-nav {
  font-family: var(--wp--preset--font-family--finitech, Montserrat), system-ui, sans-serif;
}
body .ft-main p { font-size: 16px; font-weight: 480; letter-spacing: -.012em; line-height: 1.65; }
body .ft-nav, body .ft-nav .wp-block-navigation-item__content { font-size: 14px; font-weight: 630; }
body .ft-header-cta .wp-block-button__link { font-size: 14px; }
.ft-main h1, .ft-main h2, .ft-main h3 { font-weight: 700; letter-spacing: -.025em; }
.ft-section-soft { background: color-mix(in srgb, #174991 5%, #fafaf7); }
.ft-hero-team { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; gap: clamp(24px,5vw,76px); padding: clamp(24px,5vw,72px) max(24px,calc((100% - 1240px)/2)); }
.ft-hero-team .ft-hero-inner { grid-area: 1 / 1; width: 100%; min-height: 0; padding: 16px 0; }
.ft-hero-team .ft-hero-visual { grid-area: 1 / 2; position: static; z-index: auto; }
.ft-hero-team .ft-hero-visual::after { content: none; }
.ft-hero-team .ft-hero-photo { width: 100%; height: auto; max-height: 550px; object-fit: contain; border-radius: 10px; }
.ft-photo-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.ft-photo-grid figure { display: flex; flex-direction: column; }
.ft-photo-grid img { aspect-ratio: 3 / 2; }
.ft-gallery-open { position: relative; display: block; padding: 0; border: 0; width: 100%; cursor: zoom-in; background: #142b49; }
.ft-gallery-open::after { content: '+'; position: absolute; inset: auto 10px 10px auto; border-radius: 50%; width: 33px; height: 33px; display: grid; place-items: center; background: #142b49; color: #fafaf7; font-size: 22px; }
.ft-gallery-dialog { width: min(90vw,850px); max-width: none; max-height: 90dvh; padding: 12px; border: 0; border-radius: 10px; color: #fafaf7; background: #142b49; }
.ft-gallery-dialog::backdrop { background: #142b49ed; }
.ft-gallery-dialog img { display: block; width: 100%; height: auto; max-height: 72dvh; object-fit: contain; }
.ft-gallery-dialog form { display: flex; justify-content: flex-end; }
.ft-gallery-dialog button { border: 0; cursor: pointer; }
.ft-gallery-caption { margin: 8px 5px 4px; }
@media (max-width: 760px) {
  .ft-hero-team { grid-template-columns: 1fr; }
  .ft-hero-team .ft-hero-visual { grid-area: 2 / 1; }
  .ft-photo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ft-photo-grid:has(> :last-child:nth-child(odd)) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 510px) {
  .ft-photo-grid, .ft-photo-grid:has(> :last-child:nth-child(odd)) { grid-template-columns: 1fr; }
}

/* Obra, recorridos y pie de página */
.ft-hero-craft .ft-hero-photo { object-position: 75% 52%; }
.ft-hero-craft .ft-hero-visual::after {
  background: linear-gradient(90deg, #142b49 2%, #142b49f2 24%, #142b49af 48%, #142b490c 88%);
}
.ft-hero-jump { color: #fafaf7; font-size: 14px; font-weight: 650; margin-top: 14px; text-underline-offset: .25em; }
.ft-hero-jump span { display: inline-block; margin-left: 4px; }
.ft-project-photo { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 5px; margin-bottom: 19px; }
.ft-process { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.13fr); gap: clamp(20px,4vw,44px); align-items: start; margin-block: 25px 0; }
.ft-process-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 7px; }
.ft-process details { padding: 13px 16px; }
.ft-process details[open] { background: color-mix(in srgb, #174991 7%, #fafaf7); border-left: 3px solid #174991; }
.ft-process summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; min-height: 28px; }
.ft-process summary::after { content: '+'; color: #174991; font-size: 20px; line-height: 1; }
.ft-process details[open] summary::after { content: '−'; }
.ft-main .ft-section-soft, .ft-footer-modern { background-image: linear-gradient(90deg,#1749910a 1px,transparent 1px),linear-gradient(#1749910a 1px,transparent 1px); background-size: 32px 32px; }
.ft-footer-modern { border-top: 5px solid #174991; }
.ft-footer-columns { display: grid; grid-template-columns: 1.15fr 1fr 1.1fr 1.15fr; gap: clamp(20px,4vw,46px); padding-block: 40px; }
.ft-footer-columns h2 { color: #fafaf7; font-size: 15px; line-height: 1.35; font-weight: 700; margin: 0 0 12px; }
.ft-footer-columns a:not(.ft-action) { display: block; width: fit-content; margin-bottom: 8px; text-decoration-color: #fafaf780; }
.ft-footer-columns p, .ft-footer-columns address { margin: 0 0 8px; line-height: 1.55; font-style: normal; }
.ft-footer-columns .ft-footer-brand img { width: 168px; margin: 0 0 10px; }
.ft-footer-identity p { max-width: 26ch; }
.ft-footer-strip { background: #174991; }
.ft-footer-strip .ft-footer-base { padding: 13px 0; border: 0; font-size: 13px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  .ft-gallery-open img { transition: transform .2s ease; }
  .ft-gallery-open:hover img { transform: scale(1.035); }
}
@media (max-width:850px) { .ft-footer-columns { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width:650px) {
  .ft-process { grid-template-columns: 1fr; }
  .ft-hero-craft .ft-hero-visual::after { background: #142b49bd; }
  .ft-hero-craft .ft-hero-inner { min-height: 400px; }
}
@media (max-width:400px) { .ft-footer-columns { grid-template-columns: 1fr; } }
