/** ==========================================================*

*SUPERLATIVO · CSS GLOBAL*

*01 Sistema tipográfico y base · 02 Cabecera · 03 Pie legal*

*04 Home · 05 Trabajo · 06 Sobre mí · 07 Contacto*

* ========================================================== */



/** ==========================================================*

*01. SISTEMA TIPOGRÁFICO Y VARIABLES GLOBALES*

* ========================================================== */



:root {

/** Colores */

--ink: #504642;

--paper: #ffffff;

--rule: #dedbd8;

--footer: #504642;

--dark-section: #403b38;

--content-width: 100%;



/** Familias tipográficas */

--font-body: "Zilla Slab", "Roboto Slab", "Bitter";

--font-brand: Arial, Helvetica, sans-serif;



/** Tamaños de texto */

--text-xs: 14px;

--text-sm: 16px;

--text-base: 18px;

--text-lg: 20px;

--text-xl: 24px;



/** Titulares */

--heading-h1: clamp(32px, 3.2vw, 48px);

--heading-h2: clamp(24px, 2.2vw, 32px);

--heading-h3: clamp(20px, 1.7vw, 24px);



/** Pesos */

--weight-regular: 400;

--weight-medium: 500;

--weight-semibold: 600;

--weight-bold: 700;



/** Interlineados */

--line-body: 1.4;

--line-copy: 1.5;

--line-heading: 1;

}



* { box-sizing: border-box; }



html { scroll-behavior: smooth; }



body {

margin: 0;

color: var(--ink);

background: var(--paper);

font-family: var(--font-body);

font-style: italic;

font-size: var(--text-base);

font-weight: var(--weight-regular);

line-height: var(--line-body);

-webkit-font-smoothing: antialiased;

text-rendering: optimizeLegibility;

}



a { color: inherit; text-decoration: none; }

img { max-width: 100%; }



h1 {

font-size: var(--heading-h1);

font-weight: var(--weight-semibold);

line-height: var(--line-heading);

}



h2 {

font-size: var(--heading-h2);

font-weight: var(--weight-semibold);

line-height: var(--line-heading);

}



h3 {

font-size: var(--heading-h3);

font-weight: var(--weight-semibold);

line-height: var(--line-heading);

}



p { line-height: var(--line-body); }



/** ==========================================================*

*02. CABECERA, MARCA Y NAVEGACIÓN*

*========================================================== */



.site-header {

min-height: 70px;

padding: 13px 3.5%;

display: flex;

align-items: center;

justify-content: space-between;

gap: 32px;

background: #fff;

box-shadow: 0 5px 16px rgb(0 0 0 / 10%);

position: relative;

z-index: 2;

}



.brand {

display: inline-flex;

align-items: center;

gap: 15px;

white-space: nowrap;

}



.brand-logo {

display: block;

width: 230px;

height: auto;

object-fit: contain;

flex-shrink: 0;

}



.brand-descriptor {

font-size: 25px;

font-style: italic;

font-weight: var(--weight-medium);

}



.main-nav {

display: flex;

align-items: center;

gap: clamp(16px, 2.5vw, 38px);

font-size: 18px;

white-space: nowrap;

}



.main-nav a { transition: opacity .2s ease; }

.main-nav a:hover { opacity: .6; }

.main-nav .active { text-decoration: underline; text-underline-offset: 3px; }

/* El botón hamburguesa solo aparece en móvil */
.menu-toggle { display: none; }

body.menu-open { overflow: hidden; }



/** ==========================================================*

*03. PIE DE PÁGINA Y ENLACES LEGALES*

* ========================================================== */



.site-footer {

min-height: 34px;

padding: 9px 16px;

display: flex;

justify-content: center;

align-items: center;

flex-wrap: wrap;

gap: 18px;

color: #fff;

background: var(--footer);

font-size: 10px;

line-height: 1.2;

}



.footer-brand {

font-family: var(--font-brand);

font-size: .55rem;

font-weight: 800;

letter-spacing: .06em;

}



.site-footer a:hover { text-decoration: underline; }







/** ==========================================================
 * 04. HOME — PORTADA, PRESENTACIÓN Y PROYECTO DESTACADO
 * ========================================================== */

/* Portada principal y carrusel */
.hero {
  width: 93%;
  margin: 0 auto;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

/* Presentación del estudio */
.intro-grid {
  width: min(84%, 1280px);
  margin-inline: auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.intro-column {
  min-width: 0;
  padding-inline: clamp(20px, 2.5vw, 38px);
  border-right: 1px solid var(--rule);
}

.intro-column:first-child {
  padding-left: 0;
}

.intro-column:last-child {
  border-right: 0;
  padding-right: 0;
}

.intro-column h2 {
  margin: 0 0 7px;
  font-size: var(--heading-h2);
  font-weight: var(--weight-semibold);
  font-style: italic;
  line-height: var(--line-heading);
}

.intro-column p,
.intro-column ol {
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--line-copy);
}

.intro-column ol {
  padding-left: 1.25rem;
}

.intro-column li {
  padding-left: 0.35rem;
}

/* Proyecto destacado */
.featured {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #b8a18a;
}

.featured > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1750 / 566;
  object-fit: cover;
  object-position: center;
}

.more-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 118px;
  min-height: 58px;
  padding: 12px 24px;
  outline: 1px solid rgb(255 255 255 / 80%);
  outline-offset: 4px;
  border-radius: 999px;
  color: #fff;
  background: rgb(50 42 36 / 25%);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: var(--weight-semibold);
  transition: background 0.25s ease, color 0.25s ease;
}

.more-link:hover {
  color: var(--ink);
  background: #fff;
}

/* Adaptación a móvil */
@media (max-width: 700px) {
  .hero {
    width: 100%;
    aspect-ratio: 3 / 2;
  }
}








/** ==========================================================*

* 05. TRABAJO — DETALLE DEL PROYECTO*

* ========================================================== */



/** 05.1. Introducción y portada */

.project-page { width: 100%; }
.project-intro {
display: grid;
grid-template-columns: 57% 43%;
min-height: 390px;
}

/** La primera imagen conserva su formato original */

.project-cover {
min-width: 0;
min-height: 360px;
overflow: hidden;
background: #d7cec4;
}

.project-cover img {
display: block;
width: 100%;
height: 100%;
min-height: 360px;
object-fit: cover;
object-position: center;
}


.project-summary {
    align-self: center;
    width: 100%;
    max-width: 700px;
    box-sizing: border-box;
    padding: 42px clamp(30px, 5.3vw, 90px);
    justify-self: center;
}

.eyebrow {
margin: 0;
font-size: var(--text-lg);
line-height: var(--line-copy);
}

.project-summary h1 {
margin: 0 0 5px;
font-size: var(--heading-h1);
font-style: italic;
font-weight: var(--weight-semibold);
line-height: var(--line-heading);

}

.project-meta {
margin: 0 0 24px;
font-size: var(--text-sm);
letter-spacing: .025em;
line-height: var(--line-copy);
}

.project-summary > p:not(.eyebrow):not(.project-meta) {
margin: 0 0 18px;
font-size: var(--text-base);
line-height: var(--line-copy);
}

.project-summary h2 {
    margin: 0 0 4px;
    font-size: var(--text-base);
    font-style: italic;
    font-weight: 400;
    line-height: var(--line-copy);
}

.project-summary ul {
    margin: 0;
    padding-left: 1rem;
    font-size: var(--text-base);
    line-height: var(--line-copy);
    list-style-type: circle;
}

.project-summary li {
    padding-left: 0.15rem;
}


/** =========================================================*

*05.2. ESPACIO Y PLANOS*

*   ========================================================= */



.space-section {

    display: grid;

    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);

    gap: clamp(32px, 4vw, 64px);

    align-items: center;



    width: 100%;

    margin: 0;

    padding: 48px 4%;

    box-sizing: border-box;

}



.dark-section {

    color: #fff;

    background: var(--dark-section);

}



/** Texto: limitar la longitud de línea */

.section-copy {

    width: 100%;

    max-width: 460px;

    justify-self: center;

}



.section-copy p {

    max-width: 100%;

}



/** Planos: reducir su tamaño y centrar la imagen */

.plans {

    min-width: 0;

    width: 100%;

    max-width: 1050px;

    justify-self: center;

}



.plans > img,

.plans figure > img {

    display: block;

    width: 100%;

    max-width: 100%;

    height: auto;

    object-fit: contain;

    object-position: center;

}


/** 05.3. Materiales */

.materials-section {

    display: grid;

    grid-template-columns: 58% 42%;

    gap: 5%;

    align-items: center;

    padding: 80px 8%;

}



.material-gallery {

display: grid;

grid-template-columns: repeat(3, 1fr);

gap: 10px;

}



.material-gallery img {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
object-fit: cover;
object-position: center;
}

.material-copy { padding: 0 0 0 8px; }
.material-copy h2 { margin-bottom: 12px; }

/** 05.4. Galería de concepto */

.image-mosaic {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px;
background: #fff;
}

.image-mosaic img {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
height: auto;
object-fit: cover;
object-position: center;
}

.mosaic-main { aspect-ratio: 1 / 1; }
.mosaic-small {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px;
}

.mosaic-small img { aspect-ratio: 1 / 1; }



/** 05.5. Concepto */

.concept-section {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 18px;
padding: 64px 10%;
text-align: center;
}


.concept-heading h2 {
margin: 0;
font-size: var(--heading-h2);
line-height: var(--line-heading);
}

.concept-section > p {
max-width: 900px;
margin: 0;
font-size: var(--text-base);
line-height: var(--line-copy);
text-align: center;
text-wrap: balance;
}



/** 05.6. Galería final */

.final-gallery {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px;
background: #fff;
}

.final-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 2px;
}


.final-grid img,
.final-bedroom {
display: block;
width: 100%;
aspect-ratio: 1 / 1;
height: auto;
object-fit: cover;
object-position: center;
}

.final-bedroom { min-width: 0; }



/** 05.7. Carruseles automáticos */

.auto-carousel {
position: relative;
display: block;
width: 100%;
aspect-ratio: 1 / 1;
min-width: 0;
min-height: 0;
overflow: hidden;
background: #d7d0c8;
}


.auto-carousel > img {
position: absolute;
inset: 0;
display: block;
width: 100%;
height: 100%;
min-height: 0;
object-fit: cover;
object-position: center;
opacity: 0;
transition: opacity .9s ease-in-out;
}


.auto-carousel > img.is-active { opacity: 1; }
.auto-carousel.mosaic-main,
.auto-carousel.final-bedroom,
.final-grid > .auto-carousel {
width: 100%;
aspect-ratio: 1 / 1;

}







/* ==========================================================
   06. ZEN VIDA — CSS ESPECÍFICO DESDE CERO
   Basado en el HTML actual de zen-vida.html.
   Galerías a ancho completo y separaciones de 2px como Bordadores.
   ========================================================== */

/* Aislar el diseño de Zen Vida de los estilos globales de Bordadores */
.zen-vida-page {
  width: 100%;
  max-width: none;
  min-width: 0;
}

/* 06.1. PORTADA */

.zen-vida-page .project-intro {
  display: grid;
  grid-template-columns: 50.5% 49.5%;
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
}

.zen-vida-page .project-cover {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: transparent;
}

.zen-vida-page .project-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  object-fit: cover;
  object-position: center;
}

.zen-vida-page .project-summary {
  align-self: center;
  justify-self: center;
  box-sizing: border-box;
  width: 100%;
  max-width: 700px;
  padding: 42px clamp(30px, 5.3vw, 90px);
}

/* 06.2. ESPACIO */

.zen-vida-page .space-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 48px 4%;
}

.zen-vida-page .dark-section {
  color: #fff;
  background: var(--dark-section, #403b39);
}

.zen-vida-page .space-section .section-copy {
  justify-self: center;
  width: 100%;
  max-width: 460px;
}

.zen-vida-page .space-section .plans {
  justify-self: center;
  width: 100%;
  max-width: 1050px;
  min-width: 0;
}

.zen-vida-page .space-section .plans figure {
  margin: 0;
  padding: 0;
}

.zen-vida-page .space-section .plans img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

/* 06.3. MATERIALES */

.zen-vida-page .materials-section {
  display: grid;
  grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);
  gap: 5%;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 80px 8%;
}

.zen-vida-page .material-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  min-width: 0;
}

.zen-vida-page .material-gallery img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center;
}

.zen-vida-page .material-copy {
  min-width: 0;
  padding: 0 0 0 8px;
}

/* 06.4. DOS FOTOGRAFÍAS ESTÁTICAS
   A sangre, con 2px entre ambas. Sin carrusel y sin proporción impuesta. */

.zen-vida-page .materials-views {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2px;
  width: 100vw;
  max-width: none;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  align-items: start;
  box-sizing: border-box;
  background: #fff;
}

.zen-vida-page .materials-views > .mosaic-main {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto !important;
}

.zen-vida-page .materials-views > .mosaic-main img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: auto !important;
  object-fit: contain;
  object-position: center;
}

/* 06.5. CONCEPTO */

.zen-vida-page .concept-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 64px 10%;
  text-align: center;
}

.zen-vida-page .concept-heading h2 {
  margin: 0;
  font-size: var(--heading-h2);
  line-height: var(--line-heading);
}

.zen-vida-page .concept-section > p {
  max-width: 900px;
  margin: 0;
  font-size: var(--text-base);
  line-height: var(--line-copy);
  text-align: center;
  text-wrap: balance;
}

/* 06.6. GALERÍA FINAL
   La imagen grande determina la altura de la galería.
   El contenedor derecho NO tiene aspect-ratio ni altura cuadrada forzada.
   Dos columnas x dos filas, separación de 2px.
   Todo el conjunto va a sangre. */

.zen-vida-page .final-mosaic {
  position: relative;
  left: 50%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  align-items: stretch;
  width: 100vw;
  max-width: none;
  height: auto;
  margin: 0;
  padding: 0;
  transform: translateX(-50%);
  box-sizing: border-box;
  background: #fff;
  aspect-ratio: auto !important;
}

.zen-vida-page .final-mosaic > .mosaic-main {
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: auto !important;
}

.zen-vida-page .final-mosaic > .mosaic-main img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  aspect-ratio: auto !important;
  object-fit: contain;
  object-position: center;
}

/* Este bloque ocupa la altura que marque la imagen principal.
   No declarar aspect-ratio ni una altura fija aquí. */

.zen-vida-page .final-mosaic > .mosaic-small {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: auto !important;
}

/* Las imágenes de los cuatro módulos rellenan su espacio sin deformarse.
   object-fit: cover puede recortar bordes, pero mantiene la proporción. */

.zen-vida-page .final-mosaic .mosaic-small > img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
}

/* Carruseles solo en los dos módulos señalados en el HTML */

.zen-vida-page .final-mosaic .mosaic-small > .auto-carousel {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: #fff;
  aspect-ratio: auto !important;
}

.zen-vida-page .final-mosaic .auto-carousel > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  aspect-ratio: auto !important;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity .9s ease-in-out;
}

.zen-vida-page .final-mosaic .auto-carousel > img.is-active {
  opacity: 1;
}

/* 06.7. TABLET */

@media (max-width: 900px) {
  .zen-vida-page .project-intro {
    grid-template-columns: 1fr 1fr;
  }

  .zen-vida-page .project-summary {
    padding: 32px clamp(20px, 4vw, 40px);
  }

  .zen-vida-page .space-section {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 28px;
    padding: 38px 4%;
  }

  .zen-vida-page .materials-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 28px;
    padding: 56px 5%;
  }

  .zen-vida-page .concept-section {
    padding: 48px 7%;
  }
}

/* 06.8. MÓVIL */

@media (max-width: 600px) {
  .zen-vida-page .project-intro {
    grid-template-columns: 1fr;
  }

  .zen-vida-page .project-cover img {
    width: 100%;
    height: auto;
    min-height: 0;
  }

  .zen-vida-page .project-summary {
    max-width: none;
    padding: 30px 24px 36px;
  }

  .zen-vida-page .space-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 22px;
  }

  .zen-vida-page .materials-section {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 42px 22px;
  }

  .zen-vida-page .material-gallery {
    gap: 6px;
  }

  .zen-vida-page .material-copy {
    padding: 0;
  }

  .zen-vida-page .materials-views {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .zen-vida-page .concept-section {
    gap: 14px;
    padding: 42px 24px;
  }

  .zen-vida-page .final-mosaic {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .zen-vida-page .final-mosaic > .mosaic-main img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .zen-vida-page .final-mosaic > .mosaic-small {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto;
  }

  .zen-vida-page .final-mosaic .mosaic-small > img,
  .zen-vida-page .final-mosaic .mosaic-small > .auto-carousel {
    height: auto;
    aspect-ratio: auto !important;
  }

  .zen-vida-page .final-mosaic .auto-carousel > img {
    height: 100%;
  }
}








/* ==========================================================
   06. SOBRE MÍ — PRESENTACIÓN PERSONAL Y ESTUDIO
   ========================================================== */

/* Contenedor general */

.about-page {
    overflow: hidden;
}

/* Banner: altura fija en todos los dispositivos */

.about-banner {
    position: relative;
    width: 100%;
    height: 300px;
    min-height: 300px;
    max-height: 300px;
    overflow: hidden;
    background: #c9b9a5;
}

/* Imagen panorámica del banner */

.about-banner > .about-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

/* Retrato circular sobre el banner */

.about-banner .about-portrait {
    position: absolute;
    top: 50%;
    left: clamp(28px, 6vw, 88px);
    width: 260px;
    height: 260px;
    aspect-ratio: 1 / 1;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
    box-shadow: 0 3px 10px rgb(0 0 0 / 18%);
    z-index: 1;
}

/* Columnas de presentación */

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
}

/* Columnas personal y estudio */

.about-person,
.about-studio {
    position: relative;
    min-width: 0;
    padding: 45px clamp(32px, 7.7vw, 112px) 72px;
}

.about-person {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 55px;
    background: #fff;
}

.about-studio {
    background: #efeeec;
}

/* Contenido personal */

.about-person-content {
    max-width: 620px;
}

/* Títulos principales */

.about-person h1,
.about-studio h2 {
    margin: 0;
    font-size: var(--heading-h1);
    font-style: italic;
    font-weight: var(--weight-semibold);
    line-height: var(--line-heading);
}

/* Subtítulos */

.about-subtitle {
    margin: 2px 0 24px;
    font-size: var(--text-xl);
    font-style: italic;
    line-height: var(--line-copy);
}

/* Frase introductoria */

.about-tagline {
    margin: 0 0 22px;
    font-size: var(--text-sm);
    font-style: italic;
    line-height: var(--line-copy);
}

/* Textos descriptivos */

.about-person-content > p:not(.about-subtitle):not(.about-tagline),
.about-studio-content > p:not(.about-subtitle):not(.about-process-note) {
    margin: 0 0 18px;
    font-size: var(--text-base);
    line-height: var(--line-copy);
    font-style: italic;
}

/* Contenido del estudio */

.about-studio-content {
    max-width: 700px;
}

.about-studio .about-subtitle {
    margin-bottom: 24px;
}

/* Cita destacada */

.about-studio blockquote {
    margin: 22px 0;
    padding: 0;
    border: 0;
    font-size: var(--text-base);
    line-height: var(--line-copy);
    font-style: italic;
    font-weight: var(--weight-semibold);
}

/* Nota sobre el proceso */

.about-process-note {
    margin: 22px 0 0;
    font-size: var(--text-sm);
    line-height: var(--line-copy);
    font-style: italic;
}

/* ==========================================================
   RESPONSIVE — MÓVILES
   ========================================================== */

@media (max-width: 640px) {

    /* Mantener exactamente la misma altura del banner */

    .about-banner {
        height: 300px;
        min-height: 300px;
        max-height: 300px;
        overflow: hidden;
    }

    /* Mantener la imagen alineada a la izquierda */

    .about-banner > .about-banner-image {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: left center;
    }

    /* Adaptar el retrato sin cambiar la altura del banner */

    .about-banner .about-portrait {
        top: 50%;
        left: clamp(16px, 6vw, 28px);
        width: min(260px, 72vw);
        height: auto;
        aspect-ratio: 1 / 1;
        transform: translateY(-50%);
    }
}








/** ==========================================================*

* 07. CONTACTO — MODAL GLOBAL*

* Admite .contact-modal y .contact-modal-overlay.*

* Menú y pie legal permanecen nítidos.*

* ========================================================== */



.site-header,

.site-footer { position: relative; z-index: 1002; }



.site-header { background: #fff; }

.site-footer { background: var(--footer); }



/** Fondo desenfocado */



.contact-modal,

.contact-modal-overlay {

position: fixed;

inset: 0;

z-index: 1000;

display: grid;

place-items: center;

padding: 86px 22px 54px;

background: rgb(255 255 255 / 0%);

-webkit-backdrop-filter: blur(0);

backdrop-filter: blur(0);

opacity: 0;

visibility: hidden;

pointer-events: none;

transition:

opacity .42s ease,

background-color .42s ease,

-webkit-backdrop-filter .48s ease,

backdrop-filter .48s ease,

visibility 0s linear .48s;

}



.contact-modal.is-open,

.contact-modal-overlay.is-open {

background: rgb(255 255 255 / 20%);
-webkit-backdrop-filter: blur(9px);
backdrop-filter: blur(9px);
opacity: 1;
visibility: visible;
pointer-events: auto;
transition:
opacity .42s ease,
background-color .42s ease,
-webkit-backdrop-filter .48s ease,
backdrop-filter .48s ease,
visibility 0s;

}



/** Tarjeta */

.contact-dialog {
position: relative;
width: min(100%, 275px);
padding: 39px 38px 35px;
color: #fff;
background: rgb(70 63 60 / 83%);
border: 1px solid rgb(255 255 255 / 12%);
border-radius: 22px;
box-shadow: 0 20px 55px rgb(30 25 22 / 18%);
-webkit-backdrop-filter: blur(18px);
backdrop-filter: blur(18px);
opacity: 0;
transform: translateY(20px) scale(.94);
filter: blur(5px);
transition:
opacity .45s ease,
transform .6s cubic-bezier(.2, .8, .2, 1),
filter .45s ease;
}



.contact-modal.is-open .contact-dialog,
.contact-modal-overlay.is-open .contact-dialog {
opacity: 1;
transform: translateY(0) scale(1);
filter: blur(0);
transition-delay: .08s;
}



/** Cierre */
.contact-close {
position: absolute;
top: 12px;
right: 12px;
display: grid;
place-items: center;
width: 28px;
height: 28px;
padding: 4px;
border: 0;
border-radius: 50%;
color: #fff;
background: transparent;
font: inherit;
font-size: 1.8rem;
font-weight: 300;
line-height: 1;
cursor: pointer;
opacity: .78;
transition: opacity .2s ease, transform .25s ease, background-color .2s ease;
}



.contact-close:hover {
opacity: 1;
transform: rotate(90deg);
background: rgb(255 255 255 / 10%);
}



.contact-close svg {
width: 17px;
height: 17px;
fill: none;
stroke: currentColor;
stroke-width: 1.25;
stroke-linecap: round;
}



/** Textos y datos */
.contact-dialog h1,
.contact-dialog h2 {
margin: 0 0 14px;
font-size: var(--heading-h2);
font-style: italic;
font-weight: var(--weight-semibold);
line-height: var(--line-heading);
}



.contact-dialog p,
.contact-modal-intro {
margin: 0;
font-size: var(--text-sm);
font-style: italic;
line-height: var(--line-copy);
}



.contact-details {
display: grid;
gap: 12px;
margin-top: 17px;
padding-top: 14px;
border-top: 1px solid rgb(255 255 255 / 25%);
}

.contact-details a,
.contact-details span,
.contact-modal-email,
.contact-modal-location {
display: block;
font-size: var(--text-sm);
line-height: var(--line-copy);
overflow-wrap: anywhere;
}


.contact-modal-rule {
height: 1px;
margin: 17px 0 14px;
background: rgb(255 255 255 / 25%);
}

.contact-modal-email,
.contact-details a {
width: fit-content;
border-bottom: 1px solid transparent;
transition: border-color .2s ease;

}

.contact-modal-email:hover,
.contact-details a:hover { border-color: rgb(255 255 255 / 70%); }
.contact-modal-location { margin: 12px 0 22px; }




/*** Redes sociales: iconos PNG ***/

.contact-modal-socials,
.contact-socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: 22px;
}

.contact-modal-social,
.contact-socials a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    flex: 0 0 39px;
    padding: 0;
    color: #fff;
    border: none;
    border-radius: 0;
    background: transparent;
    text-decoration: none;
    transition: transform .25s ease;
}

.contact-modal-social img,
.contact-socials a img {
    display: block;
    width: 39px;
    height: 39px;
    object-fit: contain;
}

.contact-modal-social:hover,
.contact-socials a:hover {
    background: transparent;
    border-color: transparent;
    transform: translateY(-3px);
}



/** Menú y pie legales fijos durante la apertura del modal */



body.contact-modal-open {

overflow: hidden;

padding-right: var(--scrollbar-width, 0px);

}





/** Responsive del modal */



/* ==========================================================
   08. DISEÑO RESPONSIVE
   ========================================================== */

/* TABLET */
@media (max-width: 900px) {
  .site-header {
    gap: 20px;
    padding-inline: 4%;
  }

  .brand-logo {
    width: 190px;
  }

  .brand-descriptor {
    font-size: 20px;
  }

  .main-nav {
    gap: 16px;
    font-size: 16px;
  }

  .project-intro {
    grid-template-columns: 1fr 1fr;
  }

  .project-summary {
    padding: 30px;
  }

  .space-section {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 28px;
    padding: 42px 5%;
  }

  .section-copy {
    max-width: 100%;
  }

  .materials-section {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
    gap: 32px;
    padding: 64px 6%;
  }

  .about-person,
  .about-studio {
    padding-left: 6%;
    padding-right: 6%;
  }

  .about-portrait {
    width: 210px;
    height: 210px;
    aspect-ratio: 1 / 1;
  }
}

/* MÓVIL Y TABLET ESTRECHA */
@media (max-width: 640px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
  }

  img,
  video,
  iframe {
    max-width: 100%;
  }

  /* Cabecera: marca en primera fila y botón de menú */
  .site-header {
    min-height: 0;
    width: 100%;
    padding: 12px 16px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    z-index: 1001;
  }

  .brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    max-width: calc(100% - 52px);
    white-space: normal;
  }

  .brand-logo {
    width: clamp(135px, 43vw, 190px);
    max-width: 58%;
    height: auto;
    flex: 0 1 auto;
  }

  .brand-descriptor {
    min-width: 0;
    font-size: clamp(13px, 3.6vw, 17px);
    line-height: 1.15;
    overflow-wrap: anywhere;
  }

  /* Botón que debe añadirse al HTML de las tres páginas */
  .menu-toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 9px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--rule);
    border-radius: 50%;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    position: relative;
    z-index: 10003;
  }

  .menu-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.25px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.25px) rotate(-45deg);
  }

  /* Menú desplegable a pantalla completa */
  .main-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10002;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    padding: 100px 28px 40px;
    background: var(--paper);
    color: var(--ink);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    font-size: clamp(24px, 7vw, 34px);
    white-space: normal;
    overflow-y: auto;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    display: block;
    padding: 6px 0;
  }

  /* HOME: imagen fluida y presentación apilada */
  .hero {
    width: 100%;
    margin: 0;
  }

  .hero img {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
  }

  .intro-grid {
    width: 88%;
    max-width: 560px;
    margin-inline: auto;
    padding: 30px 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .intro-column,
  .intro-column:first-child,
  .intro-column:last-child {
    min-width: 0;
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .intro-column:first-child {
    padding-top: 0;
  }

  .intro-column:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .intro-column h2 {
    margin-bottom: 8px;
  }

  .intro-column p,
  .intro-column ol {
    font-size: 17px;
    line-height: 1.5;
  }

  .featured > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1750 / 850;
    object-fit: cover;
  }

  /* TRABAJO: una columna, imagen y texto */
  .project-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .project-cover {
    width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 1.3 / 1;
  }

  .project-cover img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
  }

  .project-summary {
    width: 100%;
    max-width: none;
    padding: 30px 7%;
  }

  .project-summary h1 {
    font-size: clamp(30px, 8vw, 38px);
  }

  /* ESPACIO Y PLANOS */
  .space-section {
    width: 100%;
    margin: 0;
    padding: 36px 7%;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .section-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .plans {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
  }

  .plans > img,
  .plans figure > img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  /* MATERIALES */
  .materials-section {
    width: 100%;
    padding: 36px 6%;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .material-gallery {
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .material-gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
  }

  .material-copy {
    min-width: 0;
    padding: 0;
  }

  /* GALERÍAS Y CONCEPTO */
  .concept-section {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 32px 7%;
  }

  .image-mosaic,
  .final-gallery {
    grid-template-columns: minmax(0, 1fr);
  }

  .mosaic-main,
  .auto-carousel.mosaic-main {
    aspect-ratio: 1 / 1;
  }

  .mosaic-small img {
    min-height: 0;
    width: 100%;
  }

  .final-grid img,
  .final-bedroom {
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  /* SOBRE MÍ: texto apilado y retrato circular */
  .about-banner {
    width: 100%;
    height: 190px;
  }

  .about-banner > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .about-columns {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
  }

  .about-person,
  .about-studio {
    width: 100%;
    min-width: 0;
    padding: 36px 7% 42px;
  }

  .about-person {
    padding-top: 92px;
  }

  .about-person-content,
  .about-studio-content {
    width: 100%;
    max-width: 620px;
    min-width: 0;
    margin-inline: auto;
  }

  .about-portrait {
    position: absolute;
    top: -68px;
    left: 7%;
    width: 136px;
    height: 136px;
    min-width: 136px;
    max-width: none;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 32%;
  }

  .about-person h1,
  .about-studio h2 {
    font-size: clamp(28px, 7vw, 34px);
  }

  .about-subtitle {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .about-person-content > p:not(.about-subtitle):not(.about-tagline),
  .about-studio-content > p:not(.about-subtitle):not(.about-process-note) {
    font-size: 16px;
    line-height: 1.5;
  }

  .about-tagline,
  .about-process-note {
    font-size: 14px;
  }

  /* PIE */
  .site-footer {
    width: 100%;
    padding: 14px 6%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
    font-size: 10px;
  }
}

/* MÓVIL ESTRECHO */
@media (max-width: 380px) {
  .site-header {
    padding-inline: 10px;
  }

  .brand {
    gap: 6px;
  }

  .brand-logo {
    width: 132px;
  }

  .brand-descriptor {
    font-size: 12px;
  }

  .intro-grid {
    width: 86%;
  }

  .project-summary {
    padding-inline: 6%;
  }

  .material-gallery {
    gap: 4px;
  }
}

/* MODAL DE CONTACTO EN MÓVIL */
@media (max-width: 600px) {
  .contact-modal-overlay {
    padding: 24px 18px;
    place-items: center;
  }

  .contact-dialog {
    width: min(100%, 380px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .auto-carousel > img,
  .menu-toggle span {
    transition: none;
  }
}



/* ==================================================
   SUPERLATIVO · PROTECCIÓN DE IMÁGENES
   ================================================== */

img,
picture,
.hero,
.featured,
.hero-carousel,
.auto-carousel,
.project-cover,
.material-gallery,
.image-mosaic,
.final-gallery,
.final-mosaic,
.about-banner {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* Evitar arrastrar imágenes */
img {
  -webkit-user-drag: none;
}

/* Refuerzo para móviles y pantallas táctiles */
@media (hover: none) and (pointer: coarse) {
  img,
  picture,
  .hero,
  .featured,
  .hero-carousel,
  .auto-carousel,
  .project-cover,
  .material-gallery,
  .image-mosaic,
  .final-gallery,
  .final-mosaic,
  .about-banner {
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
  }
}


