/*
Theme Name: Ladera Arquitectura
Theme URI: https://ladera-ejemplo.com
Author: Ladera Arquitectura
Author URI: https://ladera-ejemplo.com
Description: Tema de WordPress exclusivo y contemporáneo para estudio de arquitectura con fondos cálidos, video hero a pantalla completa, proyectos con galería interactiva y popup modal de ficha técnica.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
Text Domain: ladera-arquitectura
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Tags: architecture, portfolio, full-width-template, grid-layout, custom-colors, responsive-layout
*/

/* ==========================================================================
   LADERA ARQUITECTURA - STYLESHEET
   - Portada Hero cinematográfica oscura con video y cristal
   - Resto de la web: Fondos claros y cálidos, editorial y minimalista
   - Tipografía obligatoria: Inter (300, 400, 500, 600)
   ========================================================================== */

:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Paleta Hero Oscura */
  --hero-bg: #0b0b0b;
  --hero-text: #ffffff;
  --hero-glass-dark: rgba(15, 15, 15, 0.45);
  
  /* Paleta Cálida y Clara (Resto de la web) */
  --bg-warm: #f8f6f2;
  --bg-warm-card: #ffffff;
  --bg-warm-alt: #f1ede5;
  --bg-warm-footer: #ebe6de;
  
  --text-dark: #1c1b18;
  --text-secondary: #58554e;
  --text-muted: #8e887e;
  
  --border-subtle: #e8e4da;
  --border-subtle-alt: #ded9cd;
  
  --spacing-mobile: 18px;
  --spacing-tablet: 32px;
  --spacing-desktop: 48px;
  --spacing-desktop-lg: 64px;
  --nav-height: 80px;
  
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.8, 0.25, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   ACCESSIBILITY & FOCUS
   ========================================================================== */

a, button {
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 2px solid var(--text-dark);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-to-content {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  background: var(--text-dark);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.875rem;
  transform: translateY(-200%);
  transition: transform 0.2s ease;
  text-decoration: none;
}

.skip-to-content:focus {
  transform: translateY(0);
}

/* ==========================================================================
   PORTADA: HERO A PANTALLA COMPLETA (MANTENIDA INTACTA)
   ========================================================================== */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-color: var(--hero-bg);
  color: var(--hero-text);
}

.hero-media-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Gradiente protector de contraste suave */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.15) 55%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Capa de desenfoque inferior selectiva */
.bottom-glass {
  position: absolute;
  inset: 0;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  mask-image: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.5) 20%, transparent 45%);
  -webkit-mask-image: linear-gradient(to top, black 0%, rgba(0, 0, 0, 0.5) 20%, transparent 45%);
  pointer-events: none;
  z-index: 2;
}

.hero-main {
  position: relative;
  z-index: 10;
  width: 100%;
  padding: 0 var(--spacing-mobile) calc(32px + env(safe-area-inset-bottom, 0px));
}

@media (min-width: 768px) {
  .hero-main {
    padding: 0 var(--spacing-tablet) 48px;
  }
}

@media (min-width: 1024px) {
  .hero-main {
    padding: 0 var(--spacing-desktop-lg) var(--spacing-desktop-lg);
  }
}

.hero-content-grid {
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

@media (min-width: 880px) {
  .hero-content-grid {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
  }
}

.hero-text-block {
  max-width: 760px;
}

.hero-title {
  font-size: clamp(2.15rem, 5.2vw, 4.25rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: #ffffff;
  margin-bottom: 1.15rem;
}

.hero-subtitle {
  font-size: clamp(0.95rem, 1.35vw, 1.2rem);
  font-weight: 400;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.90);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.88rem 1.9rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-primary {
  background-color: #ffffff;
  color: #111111;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.btn-glass {
  background-color: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.btn-glass:hover {
  background-color: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.hero-badge-container {
  display: flex;
  align-items: center;
  align-self: flex-start;
  flex-shrink: 0;
}

@media (min-width: 880px) {
  .hero-badge-container {
    align-self: flex-end;
    align-items: flex-end;
  }
}

.glass-capsule {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--hero-glass-dark);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.75rem 1.45rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.90);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
  white-space: nowrap;
}

.glass-capsule-dot {
  width: 6px;
  height: 6px;
  background-color: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  display: inline-block;
}

/* ==========================================================================
   HEADER CON TRANSICIÓN DINÁMICA DE COLOR (HERO OSCURO -> RESTO CLARO)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px var(--spacing-mobile);
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  color: #ffffff;
  transition: background-color 0.35s ease, backdrop-filter 0.35s ease, border-color 0.35s ease, padding 0.35s ease, color 0.35s ease;
}

@media (min-width: 768px) {
  .site-header {
    padding: 28px var(--spacing-tablet);
  }
}

@media (min-width: 1024px) {
  .site-header {
    padding: 32px var(--spacing-desktop-lg);
  }
}

/* Estado de la cabecera cuando entra en los fondos claros */
.site-header.is-light {
  background-color: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
  padding-bottom: 16px;
  color: var(--text-dark);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  letter-spacing: 0.18em;
  font-weight: 500;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.brand-link span {
  font-weight: 300;
  opacity: 0.7;
  margin-left: 0.4rem;
}

.main-nav {
  display: none;
}

@media (min-width: 880px) {
  .main-nav {
    display: flex;
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-list {
    display: flex;
    align-items: center;
    gap: 2.25rem;
    list-style: none;
  }

  .nav-link {
    font-size: 0.88rem;
    font-weight: 400;
    color: inherit;
    opacity: 0.85;
    text-decoration: none;
    position: relative;
    padding: 0.35rem 0;
    letter-spacing: 0.02em;
    transition: opacity 0.25s ease;
  }

  .nav-link:hover {
    opacity: 1;
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: currentColor;
    transition: width 0.3s var(--ease-smooth);
  }

  .nav-link:hover::after {
    width: 100%;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-header-cta {
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  padding: 0.6rem 1.35rem;
  border-radius: 9999px;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: all 0.3s var(--ease-smooth);
}

.btn-header-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.site-header.is-light .btn-header-cta {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
}

.site-header.is-light .btn-header-cta:hover {
  background: #36342f;
}

@media (min-width: 640px) {
  .btn-header-cta {
    display: inline-flex;
  }
}

/* Botón menú móvil */
.mobile-menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.20);
  border-radius: 50%;
  gap: 5px;
  color: inherit;
  transition: all 0.25s ease;
}

.site-header.is-light .mobile-menu-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.10);
}

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

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

.mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

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

@media (min-width: 880px) {
  .mobile-menu-toggle {
    display: none;
  }
}

/* Menú móvil desplegable cálido y luminoso */
.mobile-nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(248, 246, 242, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(28px + env(safe-area-inset-top, 0px)) var(--spacing-mobile) calc(36px + env(safe-area-inset-bottom, 0px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  color: var(--text-dark);
  transition: opacity 0.35s var(--ease-smooth), visibility 0.35s;
}

.mobile-nav-drawer.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin: auto 0;
}

.mobile-nav-link {
  font-size: 1.85rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-nav-link:hover, .mobile-nav-link:focus {
  opacity: 0.65;
  transform: translateX(4px);
}

.mobile-nav-footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-footer .btn-primary-dark {
  width: 100%;
  justify-content: center;
  text-align: center;
}

/* ==========================================================================
   ESTILOS GENERALES: FONDOS CLAROS Y CÁLIDOS
   ========================================================================== */

.section {
  position: relative;
  width: 100%;
  padding: 85px 0;
  background-color: var(--bg-warm);
}

@media (min-width: 768px) {
  .section {
    padding: 110px 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 130px 0;
  }
}

.section-alt {
  background-color: var(--bg-warm-alt);
}

.section-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--spacing-mobile);
}

@media (min-width: 768px) {
  .section-container {
    padding: 0 var(--spacing-tablet);
  }
}

@media (min-width: 1024px) {
  .section-container {
    padding: 0 var(--spacing-desktop-lg);
  }
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 0.85rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 18px;
  height: 1px;
  background-color: var(--text-muted);
}

.section-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--text-dark);
  margin-bottom: 1.15rem;
}

.section-lead {
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 640px;
}

/* ==========================================================================
   01. ESPACIOS: CADA PROYECTO CON SUS 3 FOTOS Y CARACTERÍSTICAS
   ========================================================================== */

.project-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 4.5rem;
}

.project-showcase-card {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(30, 25, 20, 0.03);
  display: grid;
  grid-template-columns: 1fr;
  transition: transform 0.35s var(--ease-smooth), box-shadow 0.35s ease, border-color 0.35s ease;
}

@media (min-width: 960px) {
  .project-showcase-card {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.project-showcase-card:hover {
  border-color: #d6d0c4;
  box-shadow: 0 20px 48px rgba(30, 25, 20, 0.06);
}

/* Galería con vista principal y 3 miniaturas interactivas */
.project-gallery {
  display: flex;
  flex-direction: column;
  background-color: #f1ede5;
  padding: 1.25rem;
  gap: 0.85rem;
}

@media (min-width: 768px) {
  .project-gallery {
    padding: 1.6rem;
    gap: 1rem;
  }
}

.gallery-main-view {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  background-color: #1a1a1a;
}

.gallery-active-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.6s var(--ease-smooth);
}

.gallery-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

/* 3 Miniaturas interactivas con foco visible */
.gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .gallery-thumbnails {
    gap: 0.85rem;
  }
}

.thumb-btn {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  display: block;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.thumb-btn span {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  white-space: nowrap;
  padding: 2px 0 1px;
}

.thumb-btn:hover img {
  opacity: 0.95;
}

.thumb-btn.is-active {
  border-color: var(--text-dark);
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.thumb-btn.is-active img {
  opacity: 1;
}

.thumb-btn.is-active span {
  color: var(--text-dark);
  font-weight: 600;
}

/* Panel de información y características del proyecto */
.project-info-panel {
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .project-info-panel {
    padding: 2.5rem 2.25rem;
  }
}

.project-num {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 0.4rem;
}

.project-name {
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 0.45rem;
}

.project-tagline {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Cuadrícula estructurada de características arquitectónicas */
.project-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem 1rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.spec-box {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.spec-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.spec-value {
  font-size: 0.90rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.35;
}

.project-brief-summary {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   02. ESTUDIO: MENOS TARJETAS, TEXTOS CORTOS Y ESENCIALES
   ========================================================================== */

.studio-statement {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 10px 30px rgba(30, 25, 20, 0.02);
}

@media (min-width: 768px) {
  .studio-statement {
    padding: 3rem 3.5rem;
  }
}

.statement-text {
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.studio-principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .studio-principles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.principle-card {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
}

.principle-num {
  font-size: 1.75rem;
  font-weight: 300;
  color: #b0a89b;
  margin-bottom: 0.75rem;
  font-feature-settings: "tnum";
}

.principle-title {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.principle-desc {
  font-size: 0.90rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Fila compacta de fundadores */
.founders-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
}

@media (min-width: 640px) {
  .founders-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.founders-names {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.founders-roles {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   03. CONTACTO: DATOS CLAROS DE EJEMPLO Y FORMULARIO LIMPIO
   ========================================================================== */

.demo-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.demo-dot {
  width: 6px;
  height: 6px;
  background-color: #8e887e;
  border-radius: 50%;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 880px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4.5rem;
  }
}

.contact-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact-item-label {
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.contact-item-val {
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 400;
  text-decoration: none;
}

.contact-item-val:hover {
  opacity: 0.8;
}

.contact-item-sub {
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.contact-card-box {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(30, 25, 20, 0.03);
}

@media (min-width: 640px) {
  .contact-card-box {
    padding: 2.75rem 2.5rem;
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dcd7ce;
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.92rem;
  transition: all 0.25s ease;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #a8a399;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--text-dark);
  outline: none;
  box-shadow: 0 0 0 3px rgba(28, 27, 24, 0.08);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-primary-dark {
  background-color: var(--text-dark);
  color: #ffffff;
  padding: 0.88rem 2rem;
  border-radius: 9999px;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid var(--text-dark);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  align-self: flex-start;
  transition: all 0.25s var(--ease-smooth);
}

.btn-primary-dark:hover {
  background-color: #36342f;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.form-status-alert {
  display: none;
  padding: 1.1rem 1.35rem;
  border-radius: 12px;
  background: #efebe2;
  border: 1px solid #dcd7ce;
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.5;
  margin-top: 0.5rem;
}

.form-status-alert.is-visible {
  display: block;
}

/* ==========================================================================
   PIE DE PÁGINA (FOOTER) CÁLIDO
   ========================================================================== */

.site-footer {
  background-color: var(--bg-warm-footer);
  border-top: 1px solid var(--border-subtle-alt);
  padding: 70px 0 40px;
}

.footer-top-row {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  justify-content: space-between;
  margin-bottom: 3.5rem;
}

@media (min-width: 768px) {
  .footer-top-row {
    flex-direction: row;
    align-items: flex-start;
  }
}

.footer-brand h3 {
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 0.4rem;
}

.footer-brand p {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  flex-wrap: wrap;
}

.footer-nav-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--text-dark);
}

.footer-bottom-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 0.78rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom-row {
    flex-direction: row;
  }
}

.btn-back-to-top {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  padding: 0.45rem 1.15rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  transition: all 0.2s ease;
}

.btn-back-to-top:hover {
  background: #f1ede5;
}

/* ==========================================================================
   ENTRADA Y ANIMACIONES ESCALONADAS
   ========================================================================== */

@keyframes entranceReveal {
  0% {
    opacity: 0;
    transform: translateY(22px);
    filter: blur(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.anim-entry {
  opacity: 0;
  animation: entranceReveal 1s var(--ease-out-expo) forwards;
}

.anim-delay-brand   { animation-delay: 0.10s; }
.anim-delay-nav     { animation-delay: 0.22s; }
.anim-delay-cta     { animation-delay: 0.32s; }
.anim-delay-title   { animation-delay: 0.45s; }
.anim-delay-sub     { animation-delay: 0.60s; }
.anim-delay-actions { animation-delay: 0.75s; }
.anim-delay-badge   { animation-delay: 0.90s; }

/* ==========================================================================
   BARRA DE FILTRO POR CATEGORÍAS DE PROYECTOS
   ========================================================================== */

.category-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 3rem;
}

.category-btn {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.35rem;
  border-radius: 9999px;
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-smooth);
}

.category-btn .cat-count {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.category-btn:hover {
  background: #ffffff;
  border-color: #cfc9be;
  color: var(--text-dark);
  transform: translateY(-1px);
}

.category-btn.is-active {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
  font-weight: 500;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.category-btn.is-active .cat-count {
  color: rgba(255, 255, 255, 0.7);
}

.project-showcase-card.is-hidden {
  display: none !important;
}

/* ==========================================================================
   ACCIONES EN TARJETA DE PROYECTO (VER MÁS Y VER PÁGINA 100% ALINEADOS)
   ========================================================================== */

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  width: 100%;
}

.project-card-actions > script {
  display: none !important;
}

.btn-ver-mas,
.btn-ver-pagina {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  padding: 0 1.4rem;
  margin: 0 !important;
  align-self: center !important;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  transition: all 0.25s var(--ease-smooth);
  -webkit-appearance: none;
  appearance: none;
}

.btn-ver-mas {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-ver-mas:hover {
  background: var(--text-dark);
  color: #ffffff;
  border-color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}

.btn-ver-pagina {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.btn-ver-pagina:hover {
  background: #ffffff;
  border-color: var(--text-dark);
  color: var(--text-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-ver-mas svg,
.btn-ver-pagina svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.25s ease;
}

.btn-ver-mas:hover svg,
.btn-ver-pagina:hover svg {
  transform: translateX(3px);
}

/* ==========================================================================
   POPUP MODAL DE PROYECTO (TODA LA INFORMACIÓN DETALLADA)
   ========================================================================== */

.project-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 19, 17, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-mobile);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.project-popup-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.project-popup-card {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  max-width: 960px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 72px rgba(20, 15, 10, 0.35);
  position: relative;
  display: flex;
  flex-direction: column;
}

.popup-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1.25rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 640px) {
  .popup-sticky-header {
    padding: 1.5rem 2.5rem;
  }
}

.popup-header-info {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.popup-title {
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.025em;
  color: var(--text-dark);
}

.popup-category-badge {
  background: #f1ede5;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
}

.popup-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.popup-close-btn:hover {
  background: var(--text-dark);
  color: #ffffff;
  transform: rotate(90deg);
}

.popup-scroll-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .popup-scroll-body {
    padding: 2.5rem;
  }
}

/* Galería dentro del popup */
.popup-gallery-box {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background-color: #f1ede5;
  padding: 1rem;
  border-radius: 16px;
}

.popup-main-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #111111;
}

.popup-main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease;
}

.popup-badge-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  pointer-events: none;
}

.popup-thumbs-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.popup-thumb-btn {
  background: #ffffff;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  padding: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.popup-thumb-btn img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  opacity: 0.65;
}

.popup-thumb-btn span {
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.popup-thumb-btn:hover img {
  opacity: 0.95;
}

.popup-thumb-btn.is-active {
  border-color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.popup-thumb-btn.is-active img {
  opacity: 1;
}

.popup-thumb-btn.is-active span {
  color: var(--text-dark);
  font-weight: 600;
}

/* Ficha técnica exhaustiva en popup */
.popup-section-title {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.popup-specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  background: #faf8f5;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .popup-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 800px) {
  .popup-specs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.popup-spec-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.popup-spec-label {
  font-size: 0.70rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 500;
}

.popup-spec-val {
  font-size: 0.92rem;
  color: var(--text-dark);
  font-weight: 400;
  line-height: 1.35;
}

/* Memoria arquitectónica en popup */
.popup-narrative {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  font-size: 0.94rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.popup-narrative strong {
  color: var(--text-dark);
  font-weight: 500;
}

.popup-footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.btn-popup-cta {
  background: var(--text-dark);
  color: #ffffff;
  padding: 0.85rem 2rem;
  border-radius: 9999px;
  font-size: 0.90rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.25s var(--ease-smooth);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.btn-popup-cta:hover {
  background: #36342f;
  transform: translateY(-1px);
}

.btn-popup-secondary {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.85rem 1.6rem;
  border-radius: 9999px;
  font-size: 0.90rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-popup-secondary:hover {
  background: #f1ede5;
  color: var(--text-dark);
}

/* ==========================================================================
   PREFERS-REDUCED-MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .anim-entry {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }

  .bottom-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 45%);
  }

  .project-showcase-card:hover {
    transform: none !important;
  }
}

/* ==========================================================================
   PÁGINA INDIVIDUAL DE PROYECTO (SINGLE-PROYECTO.PHP)
   ========================================================================== */

.single-project-page {
  padding-top: calc(var(--nav-height) + 1rem);
  background-color: var(--bg-warm);
  min-height: 100vh;
}

.single-project-nav-bar {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(250, 248, 245, 0.90);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.single-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.single-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease;
}

.single-back-link:hover {
  transform: translateX(-3px);
  color: #000000;
}

.single-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.80rem;
  color: var(--text-muted);
}

.single-breadcrumbs a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.single-breadcrumbs a:hover {
  color: var(--text-dark);
}

.breadcrumb-sep {
  opacity: 0.4;
}

.breadcrumb-current {
  color: var(--text-dark);
  font-weight: 500;
}

/* Cabecera del proyecto */
.single-project-header {
  padding: 3.5rem 0 2rem;
}

.single-header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.single-project-category {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
}

.single-project-meta-pill {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.single-project-title {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.08;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.single-project-tagline {
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 820px;
}

/* Galería interactiva individual */
.single-project-gallery-section {
  padding: 1rem 0 3.5rem;
}

.single-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.single-gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background-color: #111111;
  box-shadow: 0 16px 40px rgba(30, 25, 20, 0.08);
}

.single-gallery-active-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.single-gallery-badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  pointer-events: none;
}

.single-gallery-caption {
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-style: italic;
  padding: 0 0.5rem;
  min-height: 1.5em;
}

.single-gallery-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 640px) {
  .single-gallery-thumbnails {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

.single-thumb-btn {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  cursor: pointer;
  text-align: left;
  transition: all 0.25s var(--ease-smooth);
}

.single-thumb-btn:hover {
  background: #ffffff;
  border-color: #cfc9be;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.single-thumb-btn.is-active {
  background: #ffffff;
  border-color: var(--text-dark);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.single-thumb-media {
  width: 72px;
  height: 52px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #222;
}

.single-thumb-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.single-thumb-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.single-thumb-text strong {
  font-size: 0.82rem;
  color: var(--text-dark);
  font-weight: 600;
}

.single-thumb-text small {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Memoria y Ficha Técnica en 2 columnas */
.single-project-body-section {
  padding: 2rem 0 4rem;
}

.single-body-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .single-body-layout {
    grid-template-columns: 1.25fr 0.85fr;
    gap: 4.5rem;
    align-items: start;
  }
}

.single-section-subtitle {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
}

.single-content-prose {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.single-content-prose strong {
  color: var(--text-dark);
  font-weight: 500;
}

.single-content-prose p {
  margin: 0;
}

/* Tarjeta Ficha Técnica Lateral */
.single-specs-card {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 8px 24px rgba(30, 25, 20, 0.03);
  position: sticky;
  top: calc(var(--nav-height) + 2rem);
}

.single-specs-heading {
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-dark);
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.75rem;
}

.single-specs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.single-specs-list .spec-row {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  padding-bottom: 0.65rem;
}

.single-specs-list .spec-row dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

.single-specs-list .spec-row dd {
  font-size: 0.92rem;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.4;
}

.single-specs-action {
  margin-top: 1.75rem;
}

/* Paginación anterior / siguiente */
.single-project-pagination {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.4);
}

.pagination-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.project-nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-decoration: none;
  transition: transform 0.2s ease;
}

.project-nav-card:hover {
  transform: translateY(-2px);
}

.project-nav-card.nav-right {
  text-align: right;
}

.nav-direction {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-title {
  font-size: 1.05rem;
  color: var(--text-dark);
  font-weight: 500;
}

/* CTA inferior */
.single-cta-section {
  padding: 5rem 0 6rem;
}

.single-cta-card {
  background: var(--bg-warm-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 3.5rem 2.5rem;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
  box-shadow: 0 12px 36px rgba(30, 25, 20, 0.03);
}

.single-cta-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin: 1rem 0 1rem;
}

.single-cta-text {
  font-size: 0.96rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto 2rem;
}

.single-cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   OPTIMIZACIONES ESPECÍFICAS PARA TABLETS Y MÓVILES (100% OPERATIVO)
   ========================================================================== */

/* 1. Ajustes globales para tablets (max-width: 1024px) */
@media (max-width: 1024px) {
  .section-container {
    padding-left: var(--spacing-tablet);
    padding-right: var(--spacing-tablet);
  }

  .studio-principles-grid {
    gap: 1.15rem;
  }

  .principle-card {
    padding: 1.75rem 1.35rem;
  }
}

/* 2. Ajustes para tablets intermedias y móviles grandes (max-width: 880px) */
@media (max-width: 880px) {
  .site-header {
    padding: 18px var(--spacing-tablet);
  }

  .project-showcase-card {
    grid-template-columns: 1fr;
    border-radius: 20px;
  }

  .project-info-panel {
    padding: 2.25rem 1.75rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .contact-card-box {
    padding: 2.25rem 1.75rem;
  }
}

/* 3. Ajustes para móviles (max-width: 640px) */
@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .section-container {
    padding-left: var(--spacing-mobile);
    padding-right: var(--spacing-mobile);
  }

  /* Hero en móviles */
  .hero-main {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .hero-title {
    font-size: clamp(1.95rem, 8vw, 2.65rem);
    line-height: 1.12;
    margin-bottom: 0.85rem;
  }

  .hero-subtitle {
    font-size: 0.96rem;
    line-height: 1.45;
    margin-bottom: 1.5rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.82rem 1.5rem;
  }

  .hero-badge-container {
    width: 100%;
  }

  .glass-capsule {
    width: 100%;
    justify-content: center;
    text-align: center;
    font-size: 0.76rem;
    padding: 0.65rem 1rem;
    letter-spacing: 0.08em;
  }

  /* Filtro de categorías horizontal swipeable */
  .category-filter-bar {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 6px;
    margin-bottom: 2.25rem;
    scrollbar-width: none;
  }

  .category-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .category-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.5rem 1.15rem;
    font-size: 0.80rem;
    min-height: 38px;
  }

  /* Galería de tarjetas en móvil */
  .project-gallery {
    padding: 1rem;
    gap: 0.65rem;
  }

  .gallery-main-view {
    border-radius: 10px;
    aspect-ratio: 16 / 10;
  }

  .gallery-badge {
    top: 0.65rem;
    left: 0.65rem;
    font-size: 0.68rem;
    padding: 0.28rem 0.7rem;
  }

  .gallery-thumbnails {
    gap: 0.5rem;
  }

  .thumb-btn {
    padding: 3px;
    border-radius: 8px;
  }

  .thumb-btn span {
    font-size: 0.65rem;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Info panel en móvil */
  .project-info-panel {
    padding: 1.5rem 1.15rem;
  }

  .project-name {
    font-size: 1.55rem;
  }

  .project-tagline {
    font-size: 0.88rem;
    margin-bottom: 1.15rem;
  }

  .project-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem 0.65rem;
    padding: 1rem 0;
    margin-bottom: 1.15rem;
  }

  .spec-label {
    font-size: 0.66rem;
  }

  .spec-value {
    font-size: 0.84rem;
  }

  .project-brief-summary {
    font-size: 0.86rem;
    line-height: 1.55;
  }

  /* Botones Ver más y Ver página en móvil: perfectamente simétricos */
  .project-card-actions {
    display: flex;
    flex-direction: row;
    gap: 0.55rem;
    margin-top: 1.35rem;
  }

  .btn-ver-mas,
  .btn-ver-pagina {
    flex: 1 1 0px;
    min-width: 0;
    padding: 0 0.85rem;
    font-size: 0.80rem;
    height: 40px;
    min-height: 40px;
    max-height: 40px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
  }

  /* Estudio en móvil */
  .studio-statement {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2.25rem;
    border-radius: 16px;
  }

  .statement-text {
    font-size: 1.15rem;
    line-height: 1.5;
  }

  .studio-principles-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
    margin-bottom: 2.25rem;
  }

  .principle-card {
    padding: 1.6rem 1.25rem;
    border-radius: 14px;
  }

  .founders-bar {
    padding: 1.25rem;
    gap: 0.5rem;
    text-align: left;
  }

  /* Contacto en móvil */
  .demo-banner {
    font-size: 0.74rem;
    padding: 0.35rem 0.85rem;
    margin-bottom: 1.75rem;
  }

  .contact-layout {
    gap: 2rem;
  }

  .contact-card-box {
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
  }

  /* 16px previene el zoom automático de Safari en iOS */
  .form-input,
  .form-textarea {
    font-size: 16px !important;
    padding: 0.75rem 1rem;
    border-radius: 10px;
  }

  .btn-primary-dark {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  /* Popup Modal en móvil */
  .project-popup-overlay {
    padding: calc(10px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .project-popup-card {
    border-radius: 18px;
    max-height: 94dvh;
  }

  .popup-sticky-header {
    padding: 1rem 1.15rem;
  }

  .popup-title {
    font-size: 1.15rem;
  }

  .popup-category-badge {
    font-size: 0.68rem;
    padding: 0.25rem 0.65rem;
  }

  .popup-close-btn {
    width: 38px;
    height: 38px;
  }

  .popup-scroll-body {
    padding: 1.25rem 1rem;
    gap: 1.5rem;
  }

  .popup-gallery-box {
    padding: 0.75rem;
    border-radius: 12px;
  }

  .popup-thumbs-strip {
    gap: 0.45rem;
  }

  .popup-thumb-btn span {
    font-size: 0.65rem;
  }

  .popup-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    gap: 0.75rem;
  }

  .popup-narrative {
    font-size: 0.88rem;
    line-height: 1.6;
  }

  .popup-footer-actions {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 0.65rem;
  }

  .btn-popup-cta,
  .btn-popup-secondary {
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.82rem 1.5rem;
    height: 44px;
    min-height: 44px;
  }

  /* Footer en móvil */
  .site-footer {
    padding: 45px 0 30px;
  }

  .footer-top-row {
    margin-bottom: 2.25rem;
  }

  .footer-nav-links {
    gap: 1rem 1.5rem;
  }
}

/* 4. Ajustes para pantallas ultra compactas (max-width: 360px) */
@media (max-width: 360px) {
  .project-card-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-ver-mas,
  .btn-ver-pagina {
    width: 100%;
  }

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


