/* =========================================================
   [Nombre del estudio] — sistema de diseño
   La paleta y la tipografía viven en un archivo de tema aparte.
   Temas guardados: tema-blanco-negro.css (activo) · tema-editorial.css · tema-verde.css (original).
   Para cambiar de tema, sustituir el nombre del archivo en el @import.
   ========================================================= */

@import url("tema-blanco-negro.css?v=20261012a");

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } *{ animation-duration:0.01ms !important; transition-duration:0.01ms !important; } }

body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font-body);
  font-size:17px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

img, svg{ max-width:100%; display:block; }
/* Protección de imágenes: no se pueden arrastrar, seleccionar ni guardar con pulsación larga (iOS). El menú contextual se bloquea en site.js */
img, video{ -webkit-user-drag:none; user-select:none; -webkit-user-select:none; -webkit-touch-callout:none; }
a{ color:inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible{
  outline:2px solid var(--focus); outline-offset:2px;
}

.display{
  font-family:var(--font-display);
  font-stretch:condensed;
  text-transform:uppercase;
  letter-spacing:0.07em;
}
.mono{
  font-family:var(--font-mono);
  font-variant-numeric: tabular-nums;
}

h1,h2,h3,h4{ font-family:var(--font-heading); font-weight:600; margin:0; text-wrap:balance; }
/* Page title: one size on every page (reference: El estudio), sized to run the full container width on a single line */
h1{ font-size:clamp(1.7rem, 3.6vw, 2.8rem); line-height:1.06; }
h1.project-title{ text-wrap:wrap; }
h1 + .lede{ margin-top:0.6rem; }
/* Pages without an eyebrow line (legal): keep the title at the same height as the rest */
.breadcrumb + h1{ margin-top:3.3rem; }
/* Project pages: tighter rhythm between title, gallery and text */
section.project-head{ padding-bottom:1.2rem; }
section.project-gallery{ padding:2rem 0 1.8rem; }
section.project-body{ padding-top:2.8rem; }
section.project-head + section.project-body{ padding-top:2rem; }
/* photo row after the project text (e.g. preliminary studies): no double gap with the section above */
section.project-body + section.project-studies{ padding-top:0; padding-bottom:4.2rem; }
/* project description: fills its column and is justified, like the studio page text */
@media (min-width:761px){ section.project-body p{ max-width:none; text-align:justify; hyphens:auto; -webkit-hyphens:auto; hyphenate-limit-chars:7 3 3; text-wrap:pretty; } }
section.project-list{ padding-top:1.6rem; }
/* Contact page: same tighter rhythm between title and form */
section.project-head + section.contact-body{ padding-top:2rem; }
section.project-head .lede{ margin-bottom:0; }
h2{ font-size:clamp(1.6rem, 3vw, 2.3rem); line-height:1.14; }
h3{ font-size:1.35rem; line-height:1.25; }
h2.home-title{ color:var(--accent); }
p{ margin:0 0 1rem; max-width:62ch; }
.lede{ font-size:1.14rem; color:var(--ink-soft); max-width:56ch; }

.hero-subtitle{
  font-family:var(--font-heading); font-weight:600;
  font-size:1.4rem; color:var(--accent); margin:0.5rem 0 1rem;
}

.container{ max-width:74rem; margin:0 auto; padding:0 1.5rem; }
@media (max-width:640px){ .container{ padding:0 1.1rem; } }

.eyebrow{
  display:inline-flex; align-items:baseline; gap:0.5rem;
  font-size:0.74rem; color:var(--accent-2); margin-bottom:0.6rem;
}
.eyebrow .rule{ width:1.6rem; height:1px; background:var(--accent-2); align-self:center; }
.hero-rule{ width:1.6rem; height:1px; background:var(--accent-2); margin:0 0 1rem; }

section{ padding:4.2rem 0; }
section.tight{ padding:2.6rem 0; }
/* Home services section, target of the "Servicios" / "Services" menu link: keep it clear of the sticky header */
#servicios, #services{ scroll-margin-top:4.5rem; }
.divider{ border:none; border-top:1px solid var(--line); margin:0; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:0.5rem;
  font-family:inherit; font-size:0.94rem; font-weight:600;
  padding:0.75rem 1.4rem; border:1px solid var(--accent); cursor:pointer;
  text-decoration:none; background:var(--accent); color:var(--accent-ink);
  transition:background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover{ background:var(--accent-strong); border-color:var(--accent-strong); }
.btn-outline{ background:transparent; color:var(--ink); border-color:var(--line-strong); }
.btn-outline:hover{ background:var(--ink); color:var(--bg); border-color:var(--ink); }
.btn-ghost{ background:transparent; color:var(--accent); border-color:transparent; padding-left:0; padding-right:0; }
.btn-ghost:hover{ background:transparent; color:var(--accent-strong); text-decoration:underline; }
.btn-sm{ padding:0.5rem 1rem; font-size:0.84rem; }
.btn-row{ display:flex; flex-wrap:wrap; gap:0.8rem; margin-top:1.4rem; }

/* ---------- Header / nav ---------- */
.site-header{
  position:sticky; top:0; z-index:40;
  background:var(--bg);
  border-bottom:1px solid var(--line);
  transition:background-color 0.25s ease;
}
.site-header.is-scrolled{
  background:color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter:blur(8px);
}
.site-header .bar{
  display:flex; align-items:center; justify-content:space-between;
  gap:1.5rem; padding:1rem 0;
}
.logo-mark{
  display:flex; align-items:center;
  text-decoration:none;
}
.logo-mark img{
  display:block; height:1.9rem; width:auto;
}
.logo-mark .logo-dark{ display:none; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .logo-mark .logo-light{ display:none; }
  :root:not([data-theme="light"]) .logo-mark .logo-dark{ display:block; }
}
:root[data-theme="dark"] .logo-mark .logo-light{ display:none; }
:root[data-theme="dark"] .logo-mark .logo-dark{ display:block; }
.main-nav{ display:flex; align-items:center; gap:1.9rem; }
.main-nav > ul{ list-style:none; display:flex; gap:1.6rem; margin:0; padding:0; align-items:center; }
.main-nav a{
  text-decoration:none; color:var(--ink-soft); font-size:0.92rem;
  font-family:var(--font-display);
  text-transform:uppercase; letter-spacing:0.04em; font-size:0.8rem;
}
.main-nav a:hover{ color:var(--ink); }
.main-nav .current{ color:var(--ink); border-bottom:1px solid var(--accent-2); padding-bottom:2px; }

.has-mega{ position:relative; }
.has-mega::after{
  content:""; position:absolute; left:0; right:0; top:100%; height:0.8rem;
}
.mega{
  display:none; position:absolute; top:100%; left:50%; transform:translateX(-50%);
  background:var(--card-bg); border:1px solid var(--line); box-shadow:var(--shadow-card);
  padding:0.9rem; min-width:19rem; margin-top:0.8rem;
}
.has-mega:hover .mega, .has-mega:focus-within .mega{ display:block; }
.mega ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.mega a{
  display:block; padding:0.55rem 0.6rem; text-transform:none; letter-spacing:0;
  font-family:var(--font-heading); font-size:0.94rem; color:var(--ink);
}
.mega a:hover{ background:var(--bg-raised); }
.mega a small{ display:block; font-family:inherit; color:var(--ink-soft); font-size:0.78rem; margin-top:0.1rem; }

.main-nav .nav-cta{ margin-top:0.2rem; }
.main-nav .nav-cta a{
  background:var(--accent); color:var(--accent-ink); padding:0.55rem 1.1rem;
  text-transform:none; letter-spacing:0; font-family:var(--font-heading); font-size:0.92rem;
}
.main-nav .nav-cta a:hover{ background:var(--accent-strong); color:var(--accent-ink); }
@media (max-width:920px){ .main-nav .nav-cta a{ display:inline-block; } }

.lang-switch{ display:flex; gap:0.3rem; font-size:0.78rem; }
.lang-switch a{ text-decoration:none; color:var(--ink-soft); padding:0.15rem 0.35rem; }
.lang-switch a[aria-current="true"]{ color:var(--ink); border:1px solid var(--line-strong); }

.nav-toggle{ display:none; }
.nav-toggle-label{ display:none; }
@media (max-width:920px){
  .main-nav{
    display:none; position:fixed; inset:0 0 0 auto; width:min(20rem, 86vw);
    background:var(--bg); border-left:1px solid var(--line);
    flex-direction:column; align-items:flex-start; gap:0; padding:5.5rem 1.6rem 2rem;
    overflow-y:auto;
  }
  .main-nav > ul{ flex-direction:column; align-items:flex-start; gap:0; width:100%; }
  .main-nav > ul > li{ width:100%; border-bottom:1px solid var(--line); }
  .main-nav a{ display:block; padding:0.9rem 0; font-size:0.86rem; }
  .mega{ display:block; position:static; transform:none; border:none; box-shadow:none; padding:0 0 0.6rem; margin:0; }
  .has-mega:hover .mega, .has-mega:focus-within .mega{ display:block; }
  .has-mega::after{ content:none; }
  .nav-toggle:checked ~ .main-nav{ display:flex; }
  .nav-toggle-label{
    display:flex; flex-direction:column; gap:4px; width:1.6rem; cursor:pointer; z-index:50;
  }
  .nav-toggle-label span{ height:2px; background:var(--ink); display:block; }
  .lang-switch{ margin-top:1.2rem; }
  /* backdrop-filter on .site-header creates a containing block for fixed descendants,
     which would confine the fixed-position .main-nav panel to the header's own height
     instead of the viewport. Drop it while the mobile menu is open. */
  .site-header:has(.nav-toggle:checked){ backdrop-filter:none; }
}

/* ---------- Hero ---------- */
.hero{ padding:3.6rem 0 3rem; }
.hero-grid{ display:grid; grid-template-columns:1.1fr 0.9fr; gap:2.8rem; align-items:center; }
/* Home hero: full-bleed photo, title and actions anchored bottom-right */
.home-hero{
  position:relative; padding:0; overflow:hidden; background:var(--photo-bg);
  display:flex; align-items:flex-end; min-height:calc(100vh - 4.5rem); min-height:calc(100svh - 4.5rem);
}
.home-hero-img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 60%; }
/* Slow-motion loop over the hero photo (the photo is the video's first frame, so it shows until the video starts) */
@media (prefers-reduced-motion: reduce){ .home-hero-video{ display:none; } }
.home-hero::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 55%);
}
.home-hero-inner{ position:relative; z-index:1; width:100%; display:flex; justify-content:flex-end; padding-top:3rem; padding-bottom:5.5rem; }
.home-hero-text{ text-align:right; }
/* Titular de la portada con la serifa del tema original (tema-verde.css) */
.home-hero h1.hero-subtitle{
  font-family:Charter, Georgia, serif;
  font-size:1.4rem; line-height:1.3; color:#fff; margin:0; text-shadow:0 1px 12px rgba(0,0,0,0.45);
}
.home-hero h1.hero-subtitle span{ display:block; }
.home-hero .btn-row{ justify-content:flex-end; }
/* Botones de la portada con la misma letra que el titular */
.home-hero .btn{ font-family:Charter, Georgia, serif; }
.home-hero .btn-outline{ color:#fff; border-color:#fff; }
.home-hero .btn-outline:hover{ background:#fff; color:var(--photo-bg); border-color:#fff; }
.hero .lede{ margin-bottom:1.6rem; }
@media (max-width:860px){
  .hero-grid{ grid-template-columns:1fr; }
}
@media (max-width:640px){
  .home-hero-img{ object-position:60% 60%; }
  .home-hero-inner{ padding-top:2rem; padding-bottom:5.5rem; }
  .home-hero .btn-row{ flex-direction:column; align-items:flex-end; }
}

/* ---------- Media placeholders ---------- */
.ph{
  position:relative; background:var(--bg-raised); border:1px solid var(--line);
  aspect-ratio: var(--ar, 4/3); overflow:hidden; display:flex; align-items:flex-end;
}
.ph svg{ position:absolute; inset:0; width:100%; height:100%; opacity:0.55; color:var(--ink-soft); }
.ph img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
/* Full-bleed map band (contact page) */
.map-strip{ position:relative; height:clamp(180px, 17vw, 240px); background:var(--bg-raised); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.map-strip iframe{ position:absolute; inset:0; width:100%; height:100%; border:0; }
main:has(> .map-strip:last-child) + .site-footer{ margin-top:0; }
.map-strip:last-child{ border-bottom:none; }
.ph .cap{
  position:relative; z-index:1; width:100%; padding:0.7rem 0.85rem;
  background:linear-gradient(to top, var(--overlay), transparent);
  color:var(--accent-ink); font-size:0.72rem; letter-spacing:0.03em;
}
.ph.ar-16-9{ --ar:16/9; }
.ph.ar-1-1{ --ar:1/1; }
.ph.ar-3-4{ --ar:3/4; }

/* ---------- Cards / grids ---------- */
.grid{ display:grid; gap:1.4rem; }
.grid.cols-2{ grid-template-columns:repeat(2,1fr); }
.grid.cols-3{ grid-template-columns:repeat(3,1fr); }
.grid.cols-4{ grid-template-columns:repeat(4,1fr); }
.grid.auto{ grid-template-columns:repeat(auto-fit, minmax(15.5rem,1fr)); }
@media (min-width:1100px){
  .grid.cols-5{ grid-template-columns:repeat(5,1fr); gap:1rem; }
  .grid.cols-5 .card .body{ padding:1rem 1rem 1.2rem; }
}
@media (max-width:860px){ .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns:1fr 1fr; } }
@media (max-width:640px){ .grid.cols-2, .grid.cols-3, .grid.cols-4{ grid-template-columns:1fr; } }

.card{
  background:var(--card-bg); border:1px solid var(--line);
  display:flex; flex-direction:column; text-decoration:none; color:inherit;
}
.card .body{ padding:1.1rem 1.2rem 1.3rem; }
.card h3{ font-size:1.08rem; margin-bottom:0.45rem; }
.card p{ font-size:0.92rem; color:var(--ink-soft); margin-bottom:0; }
.card .body p + p{ margin-top:0.6rem; }
.card .meta{ font-size:0.72rem; color:var(--accent-2); margin-bottom:0.4rem; }
/* Cards for projects without a page yet: clicking shows a "coming soon" note over the photo (see site.js) */
.card-soon{ cursor:pointer; }
.card-soon .soon-note{
  position:absolute; inset:0; z-index:1; display:flex; align-items:center; justify-content:center;
  background:var(--photo-scrim); color:var(--photo-ink); font-size:1.3rem; font-weight:600; letter-spacing:0.01em;
  opacity:0; transition:opacity 0.25s ease; pointer-events:none;
}
.card-soon.is-soon .soon-note{ opacity:1; }
/* Cards that link to a page (projects, and services on the home page): the photo zooms slightly inside its frame on hover */
a.card .ph img{ transition:transform 0.5s ease; }
@media (hover:hover){
  a.card:hover .ph img{ transform:scale(1.05); }
}
a.card:focus-visible .ph img{ transform:scale(1.05); }

.service-card{ position:relative; }
.service-card::before, .service-card::after{
  content:""; position:absolute; width:0.6rem; height:0.6rem; border-color:var(--accent-2);
  border-style:solid; z-index:2;
}
.service-card::before{ top:-1px; left:-1px; border-width:1.5px 0 0 1.5px; }
.service-card::after{ bottom:-1px; right:-1px; border-width:0 1.5px 1.5px 0; }

/* ---------- Process steps ---------- */
.steps{ list-style:none; margin:1.4rem 0; padding:0; counter-reset:step; }
.steps li{
  counter-increment:step; display:grid; grid-template-columns:2.6rem 1fr; gap:1rem;
  padding:1.1rem 0; border-top:1px solid var(--line);
}
.steps li:first-child{ border-top:none; }
.steps li::before{
  content:counter(step, decimal-leading-zero); font-family:inherit; color:var(--accent-2);
  font-size:0.95rem; font-variant-numeric:tabular-nums;
}
.steps h3, .steps h4{ font-family:var(--font-heading); font-weight:650; font-size:1rem; margin-bottom:0.3rem; }
.steps p{ font-size:0.92rem; margin-bottom:0; color:var(--ink-soft); max-width:none; }

/* ---------- Stats ---------- */
.stat-row{ display:flex; flex-wrap:wrap; gap:2.4rem; margin:1.6rem 0; }
.stat{ display:flex; flex-direction:column; gap:0.2rem; }
.stat .n{ font-size:2rem; font-weight:600; font-family:var(--font-heading); }
.stat .l{ font-size:0.76rem; color:var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq details{ border-top:1px solid var(--line); padding:0.9rem 0; }
.faq details:last-child{ border-bottom:1px solid var(--line); }
.faq summary{
  cursor:pointer; font-family:var(--font-heading); font-weight:650; font-size:1rem;
  display:flex; justify-content:space-between; align-items:baseline; gap:1rem; list-style:none;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{ content:"+"; color:var(--accent-2); font-size:1.2rem; flex-shrink:0; }
.faq details[open] summary::after{ content:"–"; }
.faq .a{ padding-top:0.6rem; font-size:0.94rem; color:var(--ink-soft); max-width:62ch; }

/* ---------- Callout / quote ---------- */
.callout{ background:var(--bg-raised); border:1px solid var(--line); padding:1.3rem 1.5rem; max-width:66ch; }
.callout .display{ font-size:0.72rem; color:var(--accent); margin-bottom:0.4rem; }
.callout p{ margin-bottom:0; font-size:0.94rem; }
blockquote{
  margin:0; padding-left:1.2rem; border-left:2px solid var(--accent-2);
  font-size:1.2rem; color:var(--ink-soft); max-width:52ch;
}
blockquote cite{ display:block; font-style:normal; font-size:0.78rem; margin-top:0.7rem; color:var(--ink-soft); }

.tag{ display:inline-block; background:var(--bg-raised); color:var(--ink-soft); font-size:0.72rem; padding:0.2rem 0.55rem; margin:0 0.3rem 0.3rem 0; }

/* ---------- CTA band ---------- */
.cta-band{ background:var(--accent); color:var(--accent-ink); padding:3.4rem 0; }
.cta-band h2, .cta-band h2.home-title{ color:var(--accent-ink); }
.cta-band .lede{ font-size:1rem; color:color-mix(in srgb, var(--accent-ink) 82%, transparent); }
.cta-band .btn-outline{ border-color:var(--accent-ink); color:var(--accent-ink); }
.cta-band .btn-outline:hover{ background:var(--accent-ink); color:var(--accent); }

/* ---------- Contact block ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1fr; gap:3rem; align-items:start; }
@media (max-width:860px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-channels{ display:flex; flex-direction:column; gap:1.1rem; }
.contact-channel{ display:flex; gap:0.9rem; align-items:flex-start; padding:1rem; border:1px solid var(--line); }
.contact-channel .display{ font-size:0.72rem; color:var(--accent-2); margin-bottom:0.2rem; }
.contact-channel strong{ font-size:1rem; }

form.form{ display:flex; flex-direction:column; gap:1rem; }
.form .field{ display:flex; flex-direction:column; gap:0.35rem; }
.form label{ font-size:0.78rem; color:var(--ink-soft); }
.form input, .form select, .form textarea{
  font-family:inherit; font-size:0.95rem; padding:0.7rem 0.8rem;
  border:1px solid var(--line-strong); background:var(--card-bg); color:var(--ink);
}
.form textarea{ resize:vertical; min-height:6rem; }
.form .row-2{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
@media (max-width:560px){ .form .row-2{ grid-template-columns:1fr; } }
.form-note{ font-size:0.78rem; color:var(--ink-soft);  max-width:none; }
.form-success{
  display:none; background:var(--bg-raised); border:1px solid var(--accent); padding:1rem 1.2rem; font-size:0.92rem;
}
.form-success.show{ display:block; }
.form-error{
  margin:0; border:1px solid var(--ink); border-left-width:4px; padding:0.8rem 1rem; font-size:0.88rem; max-width:none;
}
.form-error[hidden]{ display:none; }
/* Campo trampa antispam: fuera de pantalla para personas, visible para bots */
.hp-field{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form button[disabled]{ opacity:0.6; cursor:wait; }

/* ---------- WhatsApp float ---------- */
.wa-float{
  position:fixed; right:1.4rem; bottom:1.4rem; z-index:50;
  display:flex; align-items:center; gap:0.6rem;
  background:var(--accent); color:var(--accent-ink); text-decoration:none;
  padding:0.75rem 1.1rem; border:1px solid var(--accent-strong);
  font-size:0.86rem; font-weight:600; box-shadow:var(--shadow-card);
}
.wa-float:hover{ background:var(--accent-strong); }
.wa-float svg{ width:1.15rem; height:1.15rem; flex-shrink:0; }

/* ---------- Breadcrumb ---------- */
.breadcrumb{ display:flex; flex-wrap:wrap; gap:0.4rem; font-size:0.78rem; color:var(--ink-soft); margin-bottom:1.2rem; }
.breadcrumb a{ color:var(--ink-soft); text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }
.breadcrumb .sep{ opacity:0.5; }

/* ---------- Footer ---------- */
.site-footer{ border-top:1px solid var(--line-strong); background:var(--bg-raised); padding:3.2rem 0 2rem; margin-top:4rem; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:2.4rem; }
/* 5 columnas: cada una mide lo que su contenido y el espacio sobrante se reparte por igual entre ellas */
.footer-grid--5{ grid-template-columns:repeat(5, auto); justify-content:space-between; gap:2rem; }
.footer-grid--5 ul:not(.footer-contact) a{ white-space:nowrap; }
@media (max-width:1180px){ .footer-grid--5{ grid-template-columns:1fr 1fr 1fr; justify-content:normal; } .footer-grid--5 ul:not(.footer-contact) a{ white-space:normal; } }
@media (max-width:780px){ .footer-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:480px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-grid h4{ font-size:0.74rem; color:var(--ink-soft); margin-bottom:0.9rem; letter-spacing:0.05em; text-transform:uppercase; font-family:var(--font-display); }
.footer-grid ul{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.55rem; }
.footer-grid a{ text-decoration:none; color:var(--ink); font-size:0.9rem; }
.footer-contact{ font-family:inherit; }
.footer-contact li{ font-size:0.9rem; color:var(--ink); }
.footer-contact a{ font-size:inherit; font-family:inherit; color:var(--ink); text-decoration:none; }
.footer-contact a:hover{ color:var(--accent); }
.footer-grid a:hover{ color:var(--accent); }
.footer-bottom{
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:1rem;
  margin-top:2.6rem; padding-top:1.4rem; border-top:1px solid var(--line);
  font-size:0.76rem; color:var(--ink-soft);
}
.footer-bottom a{ color:var(--ink-soft); text-decoration:none; }
.footer-bottom a:hover{ text-decoration:underline; }
.placeholder-note{
  background:var(--bg-sunken); border-top:1px solid var(--line); border-bottom:1px solid var(--line);
  font-size:0.78rem; color:var(--ink-soft); text-align:center; padding:0.55rem 1rem;
}
.placeholder-note strong{ color:var(--ink); }

/* ---------- Utilities ---------- */
.center{ text-align:center; }
.mx-auto{ margin-left:auto; margin-right:auto; }
.mt-0{ margin-top:0; }
.text-soft{ color:var(--ink-soft); }
.visually-hidden{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); white-space:nowrap; border:0;
}

/* Passivhaus — cinco principios: pasos numerados con icono, en dos columnas */
.steps-icons li{ grid-template-columns:2.2rem 1.75rem minmax(0,1fr); align-items:start; }
.steps-icons p{ max-width:none; }
.steps-icons .step-ico{ width:1.75rem; height:1.75rem; color:var(--accent); }
/* sexto principio, propio del clima cálido: se numera como +1 */
.steps-icons li.plus{ counter-increment:none; }
.steps-icons li.plus::before{ content:"+1"; }
@media (min-width:860px){
  .steps-icons{ display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(3, auto); grid-auto-flow:column; column-gap:3rem; }
  .steps-icons li:nth-child(4){ border-top:none; }
}

/* Passivhaus — proceso en dos columnas (1-2 izquierda, 3-4 derecha) */
.steps-2col p{ max-width:none; }
@media (min-width:860px){
  .steps-2col{ display:grid; grid-template-columns:1fr 1fr; grid-template-rows:repeat(2, auto); grid-auto-flow:column; column-gap:3rem; }
  .steps-2col li:nth-child(3){ border-top:none; }
}

/* Passivhaus — ventajas: tarjetas anchas y bajas, 3 + 3 en dos columnas */
.why-grid .card p{ max-width:none; }
@media (min-width:860px){
  .why-grid{ grid-template-columns:1fr 1fr; grid-template-rows:repeat(3, auto); grid-auto-flow:column; gap:1.1rem 1.6rem; }
  .why-grid .card .body{ padding-block:1rem; }
  .why-grid .card h3{ margin-bottom:0.25rem; }
}

/* Passivhaus — cabecera: título, descripción y botones a todo el ancho; foto panorámica debajo (como en las páginas de servicio) */
.hero-stack{ padding-top:2.6rem; }
.hero-stack .hero-text{ max-width:none; }
.hero-stack .hero-text .lede{ max-width:none; }
.hero-stack .hero-figure{ margin:2.4rem 0 0; }
.hero-stack .hero-figure img{ border-radius:0.4rem; }
.hero-stack .hero-figure img{ width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:50% 50%; }
@media (max-width:640px){ .hero-stack .hero-figure{ margin-top:1.8rem; } }

/* Passivhaus — introducción: título a todo el ancho y un párrafo por columna */
.intro-cols{ display:grid; grid-template-columns:1fr; gap:0 3rem; }
.intro-cols h2{ grid-column:1 / -1; margin-bottom:1rem; }
.intro-cols p{ max-width:none; }
@media (min-width:860px){ .intro-cols{ grid-template-columns:1fr 1fr; } }

/* Passivhaus — etiqueta de la credencial en la cabecera */
.cred-tag{ display:inline-flex; align-items:center; gap:0.6rem; margin-top:1.4rem; padding:0.5rem 0.85rem; border:1px solid var(--line); border-radius:0.4rem; background:var(--bg-raised); font-size:0.82rem; color:var(--ink-soft); }
.cred-tag svg{ flex:none; color:var(--accent); }
.cred-tag strong{ display:block; color:var(--ink); font-weight:600; }

/* Passivhaus — preguntas frecuentes en dos columnas (4 + 3), respuestas a todo el ancho de su columna */
.faq .a{ max-width:none; }
.faq-cols{ display:grid; grid-template-columns:1fr; gap:0 3rem; align-items:start; }
.faq-col + .faq-col details:first-child{ border-top:none; }
@media (min-width:860px){
  .faq-cols{ grid-template-columns:1fr 1fr; }
  .faq-col + .faq-col details:first-child{ border-top:1px solid var(--line); }
}

/* ---------- Studio page ---------- */
section.about-body{ padding-top:2.4rem; }
.about-cols{ display:grid; grid-template-columns:1fr 2fr; gap:3rem; align-items:start; }
.about-cols p{ font-size:1.04rem; }
/* justified on wide screens only; hyphenation keeps word spacing even */
@media (min-width:761px){ .about-cols p{ max-width:none; text-align:justify; hyphens:auto; -webkit-hyphens:auto; hyphenate-limit-chars:7 3 3; text-wrap:pretty; } }
/* same justified setting for other long text blocks (home "Clientes internacionales") */
@media (min-width:761px){ .text-justify{ text-align:justify; hyphens:auto; -webkit-hyphens:auto; hyphenate-limit-chars:7 3 3; text-wrap:pretty; } }
.founder{ display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:3rem; align-items:start; }
.founder .ph{ --ar:4/5; }
.founder h3{ font-size:1.5rem; margin-bottom:0.35rem; }
.founder-photo{ margin:0; }
.founder-photo figcaption{ margin-top:0.6rem; font-size:0.88rem; color:var(--ink-soft); letter-spacing:0.02em; }
.founder .meta{ font-size:0.72rem; color:var(--accent-2); margin-bottom:1.1rem; }
/* founder bio: runs the full column width, to the same right edge as the "Sobre nosotros" text, justified like it */
@media (min-width:761px){ .founder p:not(.meta){ max-width:none; text-align:justify; hyphens:auto; -webkit-hyphens:auto; hyphenate-limit-chars:7 3 3; text-wrap:pretty; } }
.cred-list{ list-style:none; margin:1.3rem 0 0; padding:0; max-width:62ch; }
.cred-list li{ padding:0.6rem 0; border-top:1px solid var(--line); font-size:0.94rem; }
.cred-list li:last-child{ border-bottom:1px solid var(--line); }
@media (max-width:760px){
  .about-cols{ grid-template-columns:1fr; gap:1.2rem; }
  .founder{ grid-template-columns:1fr; gap:1.6rem; }
  .founder .ph{ max-width:260px; }
}

/* ---------- Saltar al contenido (accesibilidad) ---------- */
.skip-link{
  position:absolute; left:1rem; top:-4rem; z-index:1000;
  background:var(--bg); color:var(--ink); border:1px solid var(--ink); padding:0.6rem 1rem; font-size:0.9rem;
}
.skip-link:focus{ top:1rem; }
