/* ==========================================================================
   Design System & Variables
   ========================================================================== */
:root {
  /* Colors */
  --color-black: #111111;
  --color-grey-dark: #666666;
  --color-grey-mid: #AAAAAA;
  --color-grey-light: #EAEAEA;
  --color-white: #FFFFFF;
  --color-background: #FFFFFF;
  --color-overlay: rgba(0, 0, 0, 0.32);

  /* Typography */
  --font-sans: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  
  /* Font Sizes */
  --text-hero: clamp(44px, 6vw, 72px);
  --text-title: clamp(28px, 3vw, 32px);
  --text-highlight: clamp(20px, 2.2vw, 24px);
  --text-normal: clamp(15px, 1.4vw, 17px);
  --text-small: clamp(12px, 1vw, 13px);

  /* Spacing */
  --space-xl: 120px;
  --space-l: 80px;
  --space-m: 40px;
  --space-s: 20px;

  /* Layout */
  --container-max-width: 1280px;
  --header-height: 80px;
  
  /* Transitions */
  --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-hover: all 0.22s ease-in-out;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-black);
  background-color: var(--color-background);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  letter-spacing: -0.02em;
}

p {
  color: var(--color-black);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-hover);
}

img {
  max-width: 100%;
  display: block;
}

/* ==========================================================================
   Layout Utils
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-m);
}

/* ==========================================================================
   Header (Navbar)
   ========================================================================== */
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-background);
  display: flex;
  align-items: center;
  z-index: 100;
  /* subtle bottom border always visible */
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* On scroll: faint shadow appears */
.header--scrolled {
  border-bottom-color: var(--color-grey-light);
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__logo {
  font-family: var(--font-sans);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.header__nav {
  display: flex;
  gap: 8px;
}

.header__nav-link {
  font-size: 15px;
  font-weight: 400;
  color: var(--color-black);
  padding: 8px 16px;
  border-radius: 4px;
  position: relative;
  transition: color 0.2s ease;
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 16px;
  right: 16px;
  height: 1px;
  background-color: var(--color-black);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header__nav-link:hover::after {
  transform: scaleX(1);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.15) 0%,
    rgba(0,0,0,0.35) 50%,
    rgba(0,0,0,0.65) 100%
  );
  z-index: 2;
}

/* Home specific hero */
.hero--home {
  position: relative;
  display: flex;
  align-items: stretch;
  height: calc(100vh - var(--header-height));
  min-height: 680px;
  background-color: var(--color-background);
  overflow: hidden;
}

/* Degradado blanco lateral */
.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.85) 30%,
    rgba(255, 255, 255, 0) 65%
  );
  pointer-events: none;
}

/* Imagen de fondo a pantalla completa */
.hero--home .hero__image-wrapper {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
}

.hero--home .hero__background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

/* Texto a la izquierda */
.hero--home .hero__content-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: clamp(70px, 10vh, 120px) var(--space-m) 72px var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background-color: transparent;
}

.hero--home .hero__title {
  font-family: var(--font-serif);
  color: var(--color-black);
  font-size: clamp(42px, 4.5vw, 64px);
  line-height: 1.08;
  font-weight: 400;
  margin-bottom: 24px;
  max-width: 560px;
  animation: fadeUp 1s forwards ease-out 0.2s;
  opacity: 0;
}

/* Pantallas intermedias */
@media (max-width: 1180px) {
  .hero--home::before {
    background: linear-gradient(
      to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.9) 40%,
      rgba(255, 255, 255, 0) 75%
    );
  }

  .hero--home .hero__title {
    font-size: clamp(38px, 4.2vw, 56px);
  }
}


/* Ajuste para escritorios con poca altura útil */
@media (max-height: 820px) and (min-width: 1025px) {
  .hero--home .hero__content-box {
    padding-top: 56px;
    padding-bottom: 48px;
  }

  .hero--home .hero__title {
    font-size: clamp(38px, 4.1vw, 58px);
    margin-bottom: 18px;
  }

  .hero--home .hero__subtle {
    margin-bottom: 28px;
  }
}

/* Tablet y móvil: versión superpuesta segura */
@media (max-width: 1024px) {
  .hero--home {
    height: calc(100svh - 70px);
    min-height: 560px;
  }
  
  .hero--home::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0.95) 60%,
      rgba(255, 255, 255, 0.95) 100%
    );
  }
  
  .hero--home .hero__content-box {
    justify-content: flex-end;
    padding-bottom: 80px;
  }
}

@media (max-width: 768px) {
  .hero--home .hero__title {
    font-size: clamp(36px, 8vw, 48px);
  }
}

.hero--home .hero__subtle {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--color-grey-dark);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 420px;
  font-weight: 300;
  animation: fadeUp 1s forwards ease-out 0.4s;
  opacity: 0;
}

.hero--home .hero__cta-link {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-black);
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 4px;
  align-self: flex-start;
  animation: fadeUp 1s forwards ease-out 0.6s;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero--home .hero__cta-link:hover {
  opacity: 0.7 !important;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: var(--space-m);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  z-index: 4;
  animation: fadeScroll 2.4s infinite ease-in-out;
}

@keyframes fadeScroll {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50%       { opacity: 1;   transform: translateY(6px); }
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
#proyectos {
  scroll-margin-top: 100px;
}

.projects {
  padding-top: var(--space-l);
  padding-bottom: var(--space-m);
}

.projects__header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 12px;
}

.projects__title {
  font-family: var(--font-serif);
  font-size: var(--text-title);
  font-weight: 400;
  color: var(--color-black);
}

.projects__line {
  flex: 1;
  height: 1px;
  background-color: var(--color-grey-light);
}

.projects__intro {
  font-size: 14px;
  color: var(--color-grey-dark);
  margin-bottom: 48px;
}

.projects__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }
}

.project-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 2px;
  background: var(--color-black);
}

.project-card__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.project-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  opacity: 0.85; /* Dark overlay effect */
}

.project-card:hover .project-card__image {
  transform: scale(1.05);
  opacity: 0.65;
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 32px;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 50%);
}

.project-card__info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 32px;
  z-index: 2;
  color: var(--color-white);
  pointer-events: none;
}

@media (max-width: 480px) {
  .project-card__info {
    padding: 24px;
  }
}

.project-card__title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.project-card__type {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.5;
  color: rgba(255,255,255,0.8);
  max-width: 85%;
}

.project-card__arrow {
  color: var(--color-white);
  font-size: 20px;
  margin-left: auto;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.4s ease;
}

.project-card:hover .project-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================================
   Method + CTA Section
   ========================================================================== */
.method-cta {
  padding-top: var(--space-m);
  padding-bottom: var(--space-xl);
}

.method-cta__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 80px;
  align-items: center;
}

@media (max-width: 1024px) {
  .method-cta__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.method-cycle-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.method-cycle {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.method-cycle::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid var(--color-grey-light);
  border-radius: 50%;
  box-sizing: border-box;
}

.method-cycle__center {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 32px;
  z-index: 2;
}

.method-cycle__brand {
  font-family: var(--font-serif);
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--color-black);
}

.method-cycle__desc {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-grey-dark);
  max-width: 140px;
  line-height: 1.5;
}

.method-cycle__step {
  position: absolute;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  color: var(--color-black);
  background-color: var(--color-background);
  padding: 8px 16px;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 3;
}

/* Position around circle */
.method-cycle__step--one { top: 0; left: 50%; }
.method-cycle__step--two { top: 50%; left: 100%; }
.method-cycle__step--three { top: 100%; left: 50%; }
.method-cycle__step--four { top: 50%; left: 0; }

@media (max-width: 768px) {
  .method-cycle-wrapper {
    justify-content: flex-start;
  }
  .method-cycle {
    width: 100%;
    height: auto;
    border-radius: 0;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
  .method-cycle::before {
    display: none;
  }
  .method-cycle__center {
    padding: 0;
    text-align: left;
    align-items: flex-start;
    margin-bottom: 24px;
  }
  .method-cycle__brand {
    font-size: 20px;
  }
  .method-cycle__desc {
    font-size: 9px;
    max-width: none;
  }
  .method-cycle__step {
    position: static;
    transform: none;
    padding: 0;
    padding-left: 16px;
    border-left: 1px solid var(--color-grey-light);
    font-size: 12px;
    color: var(--color-black);
  }
}

.method-cta__content {
  padding-left: 60px;
  border-left: 1px solid var(--color-grey-light);
}

@media (max-width: 1024px) {
  .method-cta__content {
    padding-left: 0;
    border-left: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

.method-cta__title {
  font-family: var(--font-serif);
  font-size: var(--text-highlight);
  font-weight: 400;
  margin-bottom: 16px;
  color: var(--color-black);
}

.method-cta__text {
  font-size: 14px;
  color: var(--color-grey-dark);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 400px;
}

.method-cta__btn {
  padding: 12px 24px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background-color: var(--color-black);
  color: var(--color-white);
  padding-top: 64px;
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 64px;
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 8px;
}

.footer__logo {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 8px;
}

.footer__desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

.footer__link,
.footer__text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s ease;
}

.footer__link:hover {
  color: var(--color-white);
}

.footer__separator {
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.1);
  margin-bottom: 32px;
}

.footer__bottom {
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

@media (max-width: 480px) {
  .footer__bottom {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }
}

.footer__copyright {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

.footer__socials {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer__socials--text {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.footer__social-link {
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: inherit;
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

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

.icon-instagram::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
}

.icon-linkedin::before {
  content: "in";
  font-weight: 700;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid currentColor;
  padding: 0 3px;
  border-radius: 2px;
  font-size: 10px;
  line-height: 14px;
}

/* ==========================================================================
   Mobile Menu (Hamburger Overlay)
   ========================================================================== */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 101;
}

.hamburger__line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-black);
  position: absolute;
  left: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger__line:nth-child(1) { top: 7px; }
.hamburger__line:nth-child(2) { bottom: 7px; }

.hamburger--active .hamburger__line:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}
.hamburger--active .hamburger__line:nth-child(2) {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--color-white);
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--space-m);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav__menu {
  display: flex;
  flex-direction: column;
  gap: var(--space-m);
  margin-top: auto;
  margin-bottom: auto;
}

.mobile-nav__link {
  font-family: var(--font-serif);
  font-size: clamp(32px, 8vw, 48px);
  color: var(--color-black);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
}

.mobile-nav__footer {
  font-size: var(--text-normal);
  color: var(--color-grey-dark);
  line-height: 1.8;
}

.no-scroll {
  overflow: hidden;
}

/* ==========================================================================
   Project Detail Pages
   ========================================================================== */
.project-hero {
  padding-top: 160px;
  padding-bottom: 100px;
}

.project-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-title);
  max-width: 700px;
  line-height: 1.15;
}

.project-hero p {
  margin-top: 16px;
  color: var(--color-grey-dark);
  font-size: var(--text-small);
}

.project-intro {
  padding-bottom: 100px;
}

.project-intro p {
  max-width: 720px;
  font-size: 20px;
  line-height: 1.6;
  font-weight: 300;
  color: var(--color-black);
}

.project-image {
  padding-bottom: 100px;
}

.project-image img {
  width: 100%;
  border-radius: 2px;
}

.project-text-image {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  padding-bottom: 120px;
}

.project-text-image img {
  width: 100%;
  border-radius: 2px;
}

.project-text-image p {
  max-width: 420px;
  font-size: var(--text-normal);
  line-height: 1.8;
  color: var(--color-black);
  margin-top: 60px;
}

.project-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 120px;
}

.project-gallery img {
  width: 100%;
  border-radius: 2px;
}

.project-closing {
  padding-bottom: 120px;
}

.project-closing p {
  max-width: 650px;
  font-size: var(--text-highlight);
  line-height: 1.5;
}

/* ==========================================================================
   Responsive â€” Tablet (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  :root {
    --space-xl: 80px;
    --space-l: 60px;
    --space-m: 30px;
  }

  .header {
    height: 70px;
  }

  .header__nav {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .philosophy__grid {
    gap: 40px;
  }

  .philosophy__image-col {
    flex: 0 0 54%;
    max-width: 54%;
  }
}

/* ==========================================================================
   Responsive â€” Mobile (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    height: calc(100svh - 70px);
    min-height: 520px;
    max-height: 720px;
  }

  .hero__background {
    object-position: 58% center;
  }

  .hero__content {
    padding-bottom: 72px;
  }

  .hero__title {
    font-size: clamp(36px, 9vw, 46px);
    line-height: 1.05;
    max-width: 100%;
  }

  .hero__scroll {
    right: 24px;
    bottom: 28px;
    font-size: 10px;
  }

  .positioning {
    padding-top: 64px;
  }

  .positioning__text {
    font-size: 20px;
    max-width: 100%;
  }

  .philosophy {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .philosophy__grid {
    flex-direction: column;
    gap: 40px;
  }

  .philosophy__text-col,
  .philosophy__image-col {
    max-width: 100%;
    flex-basis: 100%;
  }

  .philosophy__image-col img {
    height: 300px;
    transform: none;
  }

  .philosophy__text {
    margin-top: 0;
  }

  .architecture {
    padding-top: 40px;
    padding-bottom: 56px;
  }

  .architecture__grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
  }

  .project-card--large .project-card__image {
    height: 56vw;
    min-height: 260px;
  }

  .project-card--small-left .project-card__image,
  .project-card--small-right .project-card__image {
    height: 260px;
  }

  .project-card--small-left,
  .project-card--small-right {
    margin: 0;
  }

  .project-card__title {
    font-size: 16px;
  }

  .project-card__link {
    opacity: 1;
  }

  .footer {
    padding-top: 48px;
    padding-bottom: 32px;
  }

  .footer__links-row,
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__legals,
  .footer__socials {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .footer__separator-inline {
    display: none;
  }

  /* Project detail pages */
  .project-hero {
    padding-top: 100px;
    padding-bottom: 64px;
  }

  .project-intro,
  .project-image,
  .project-text-image,
  .project-gallery,
  .project-closing {
    padding-bottom: 64px;
  }

.project-intro {
  margin-bottom: 80px;
}

  .project-text-image,
  .project-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .project-text-image p {
    margin-top: 0;
    max-width: 100%;
  }
}

/* ==========================================================================
   Responsive â€” Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: clamp(32px, 8.5vw, 40px);
  }
}

.project-data {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.project-data__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.project-data__block h3 {
  font-size: 16px;
  margin-bottom: 12px;
}

.project-data__block p,
.project-data__block li {
  font-size: 14px;
  color: var(--color-grey-dark);
  line-height: 1.6;
}

.project-process {
  margin-top: 96px;   /* separación con bloque superior */
  padding-bottom: 100px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.project-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
}

.project-process h3 {
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 8px;
}

.project-process p {
  font-size: 14px;
  color: var(--color-grey-dark);
  line-height: 1.6;
}

.hero__subtle {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
  max-width: 420px;
  line-height: 1.5;
  font-weight: 300;
}
/* ==========================================================================
   Legal Pages
   ========================================================================== */

.legal-page {
  max-width: 820px;
  padding-top: 140px;
  padding-bottom: 140px;
}

.legal-page h1 {
  font-size: clamp(36px, 4vw, 52px);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 64px;
  letter-spacing: -0.03em;
}

.legal-page h2 {
  font-size: 18px;
  font-weight: 400;
  margin-top: 40px;
  margin-bottom: 12px;
  color: var(--color-black);
}

.legal-page p,
.legal-page li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-grey-dark);
  max-width: 720px;
}

.legal-page strong {
  color: var(--color-black);
  font-weight: 500;
}

.legal-page ul {
  padding-left: 20px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 96px;
    padding-bottom: 96px;
  }

  .legal-page h1 {
    margin-bottom: 48px;
  }
}

/* ==========================================================================
   Contact Page Redesign
   ========================================================================== */

/* Header Transparent (for Contact Hero) */
.header--transparent {
  position: absolute;
  background-color: transparent;
  border-bottom: none;
}
.header--transparent .header__logo,
.header--transparent .header__nav-link {
  color: var(--color-white);
}
.header--transparent .header__nav-link::after {
  background-color: var(--color-white);
}
.header--transparent .hamburger__line {
  background-color: var(--color-white);
}
.header--transparent.header--scrolled {
  position: fixed;
  background-color: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(8px);
}

.contact-hero {
  height: 50vh;
  min-height: 400px;
}

.contact-statement {
  padding-top: 120px;
  padding-bottom: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.contact-statement__text {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 36px);
  font-style: normal;
  font-weight: 400;
  max-width: 800px;
  color: var(--color-black);
}

.contact-divider-horizontal {
  border: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin: 0;
  width: 100%;
}

.contact-main {
  display: grid;
  grid-template-columns: 1fr 1px 1.5fr;
  gap: 80px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.contact-divider-vertical {
  background-color: rgba(0, 0, 0, 0.06);
  width: 1px;
  height: 100%;
}

.contact-main__title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 40px;
  color: var(--color-black);
}

.contact-info__text {
  font-size: 14px;
  line-height: 1.8;
  color: var(--color-grey-dark);
  margin-bottom: 48px;
  max-width: 380px;
}

.contact-info__details {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 48px;
}

.contact-info__item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-info__icon {
  color: var(--color-grey-dark);
  margin-top: 2px;
}

.contact-info__text-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-info__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-black);
}

.contact-info__link,
.contact-info__value {
  font-size: 14px;
  color: var(--color-grey-dark);
  text-decoration: none;
}

.contact-info__link:hover {
  color: var(--color-black);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 14px;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-weight: 400;
}

.btn--outline {
  border: 1px solid rgba(0,0,0,0.15);
  color: var(--color-black);
  background: transparent;
}

.btn--outline:hover {
  border-color: var(--color-black);
  background: var(--color-black);
  color: var(--color-white);
}

.btn--whatsapp {
  font-size: 13px;
  padding: 12px 24px;
}

.btn--whatsapp::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 10px;
  background-color: #25D366;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z'%3E%3C/path%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  opacity: 0.85;
}
.btn--outline:hover.btn--whatsapp::before {
  background-color: var(--color-white);
  opacity: 1;
}

.btn--primary {
  background: var(--color-black);
  color: var(--color-white);
  border: 1px solid var(--color-black);
}

.btn--contact-submit {
  width: auto;
  padding: 14px 40px;
  font-size: 13px;
}

.btn--primary:hover {
  background: var(--color-grey-dark);
  border-color: var(--color-grey-dark);
}

/* Form Styles */
.form-group {
  margin-bottom: 32px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--color-black);
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.15);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--color-black);
  transition: border-color 0.3s ease;
  outline: none;
  resize: none;
}

.form-input::placeholder {
  color: var(--color-grey-mid);
  font-weight: 300;
}

.form-input:focus {
  border-bottom-color: var(--color-black);
}

.form-group--checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 48px;
  margin-bottom: 32px;
}

.form-checkbox {
  cursor: pointer;
  accent-color: var(--color-black);
  width: 14px;
  height: 14px;
}

.form-label-checkbox {
  font-size: 12px;
  color: var(--color-grey-dark);
  cursor: pointer;
}

.form-label-checkbox a {
  color: var(--color-black);
  text-decoration: underline;
}

.contact-aux-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding-bottom: 100px;
  color: var(--color-grey-dark);
}
.contact-aux-text {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 60px;
    padding-top: 60px;
    padding-bottom: 60px;
  }
  .contact-divider-vertical {
    display: none;
  }
  .contact-statement {
    padding-top: 80px;
    padding-bottom: 60px;
  }
}

/* ==========================================================================
   Contact Page — Final layout with white separated header
   ========================================================================== */

/* Contact uses the standard white header, separated from the hero. */
.page-contacto {
  background: var(--color-background);
}

body:has(.page-contacto) .header {
  position: sticky;
  top: 0;
  background: var(--color-background);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: none;
}

body:has(.page-contacto) .header__logo,
body:has(.page-contacto) .header__nav-link {
  color: var(--color-black);
}

body:has(.page-contacto) .header__nav-link::after {
  background-color: var(--color-black);
}

body:has(.page-contacto) .hamburger__line {
  background-color: var(--color-black);
}

/* Neutralize old transparent-header rules on Contact. */
body:has(.page-contacto) .header--transparent,
body:has(.page-contacto) .header--transparent.header--scrolled {
  position: sticky;
  background: var(--color-background);
  backdrop-filter: none;
}

/* Hero as a restrained editorial strip below the header. (REMOVED) */

/* Statement block: closer to the Figma reference. */
.page-contacto .contact-statement {
  max-width: 1040px;
  padding-top: 140px;
  padding-bottom: 80px;
}

.page-contacto .contact-statement__text {
  font-size: clamp(28px, 3.5vw, 36px);
  line-height: 1.4;
  max-width: 800px;
  margin: 0 auto;
}

.page-contacto .contact-divider-horizontal {
  max-width: 1040px;
  border-bottom-color: rgba(0, 0, 0, 0.07);
}

/* Main contact grid: real 3-column grid. */
.page-contacto .contact-main {
  width: 100%;
  max-width: 1040px;
  grid-template-columns: minmax(250px, 0.82fr) 1px minmax(0, 1.55fr);
  gap: 52px;
  padding-top: 58px;
  padding-bottom: 44px;
}

.page-contacto .contact-divider-vertical {
  display: block;
  width: 1px;
  min-height: 100%;
  background: rgba(0, 0, 0, 0.075);
}

.page-contacto .contact-main__title {
  font-size: 12px;
  line-height: 1.35;
  letter-spacing: 0.18em;
  margin-bottom: 34px;
  white-space: nowrap;
}

.page-contacto .contact-info__text {
  max-width: 285px;
  font-size: 12px;
  line-height: 1.75;
  margin-bottom: 38px;
}

.page-contacto .contact-info__details {
  gap: 30px;
  margin-bottom: 38px;
}

.page-contacto .contact-info__item {
  gap: 18px;
}

.page-contacto .contact-info__icon svg {
  width: 17px;
  height: 17px;
}

.page-contacto .contact-info__label {
  font-size: 11px;
  line-height: 1.25;
}

.page-contacto .contact-info__link,
.page-contacto .contact-info__value {
  font-size: 12px;
  line-height: 1.55;
}

.page-contacto .btn--whatsapp {
  width: 240px;
  height: 42px;
  font-size: 12px;
}

/* Form: visible placeholders, visible bottom lines, compact spacing. */
.page-contacto .contact-form-container {
  min-width: 0;
}

.page-contacto .contact-form {
  width: 100%;
}

.page-contacto .form-group {
  margin-bottom: 21px;
}

.page-contacto .form-label {
  font-size: 11px;
  line-height: 1.2;
  margin-bottom: 7px;
}

.page-contacto .form-input {
  display: block;
  width: 100%;
  height: 31px;
  min-height: 31px;
  padding: 3px 0 8px;
  font-size: 12px;
  line-height: 1.4;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.22);
  background: transparent;
  appearance: none;
}

.page-contacto textarea.form-input {
  height: 82px;
  min-height: 82px;
  padding-top: 3px;
  resize: vertical;
}

.page-contacto .form-input::placeholder {
  color: rgba(17, 17, 17, 0.42);
  opacity: 1;
}

.page-contacto .form-input:focus {
  border-bottom-color: rgba(0, 0, 0, 0.70);
}

.page-contacto .form-group--checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.page-contacto .form-checkbox {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin: 0;
}

.page-contacto .form-label-checkbox {
  display: inline-block;
  font-size: 11px;
  line-height: 1.4;
  color: var(--color-grey-dark);
  white-space: nowrap;
}

.page-contacto .btn--contact-submit {
  width: 270px;
  height: 48px;
  font-size: 13px;
  line-height: 1;
}

.page-contacto .contact-aux-footer {
  max-width: 1040px;
  padding-top: 8px;
  padding-bottom: 60px;
  gap: 10px;
}

.page-contacto .contact-aux-text {
  font-size: 11px;
  line-height: 1.4;
}

@media (max-width: 900px) {
  .page-contacto .contact-main {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 40px;
  }

  .page-contacto .contact-divider-vertical {
    display: none;
  }

  .page-contacto .contact-main__title {
    white-space: normal;
  }

  .page-contacto .contact-info__text {
    max-width: 100%;
  }

  .page-contacto .form-label-checkbox {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .page-contacto .contact-statement {
    padding-top: 100px;
    padding-bottom: 60px;
  }

  .page-contacto .contact-statement__text {
    font-size: clamp(22px, 7vw, 28px);
  }

  .page-contacto .btn--whatsapp,
  .page-contacto .btn--contact-submit {
    width: 100%;
    max-width: none;
  }

  .page-contacto .contact-aux-footer {
    justify-content: flex-start;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Category Page (Residencial, etc.)
   ========================================================================== */

.hero--category {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 50vh;
  min-height: 480px;
  background-color: var(--color-background);
  overflow: hidden;
  margin-top: 0;
}

.hero--category::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0) 75%
  );
  pointer-events: none;
}

.hero--category .hero__content-box {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 92px var(--space-m) 72px var(--space-m);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  background-color: transparent;
}

.hero--category .hero__title {
  font-family: var(--font-serif);
  color: var(--color-black);
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.05;
  font-weight: 400;
  margin-bottom: 20px;
  max-width: 520px;
  opacity: 1;
  animation: none;
}

.hero--category .hero__subtle {
  font-size: clamp(15px, 1.2vw, 17px);
  color: var(--color-black);
  line-height: 1.6;
  max-width: 440px;
  font-weight: 300;
  margin-bottom: 30px;
  opacity: 1;
  animation: none;
}

.category-hero__cta {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--color-black);
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  border-bottom: 1px solid var(--color-black);
  padding-bottom: 4px;
  align-self: flex-start;
}

.category-hero__cta:hover {
  opacity: 0.7;
}

@media (max-width: 768px) {
  .hero--category {
    height: 60vh;
    min-height: 400px;
  }
  .hero--category::before {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.8) 40%,
      rgba(255, 255, 255, 0.95) 80%,
      rgba(255, 255, 255, 1) 100%
    );
  }

  .hero--category .hero__content-box {
    justify-content: flex-end;
    padding: 60px 24px 64px 24px;
  }

  .hero--category .hero__title {
    font-size: clamp(40px, 11vw, 54px);
  }

  .hero--category .hero__subtle {
    max-width: 100%;
  }
}

.category-intro {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-l);
}

.category-intro__content {
  max-width: 720px;
  font-size: var(--text-normal);
  line-height: 1.7;
  color: var(--color-grey-dark);
  font-weight: 300;
  margin-bottom: var(--space-m);
}

.category-intro__line {
  width: 100%;
  height: 1px;
  background-color: var(--color-grey-light);
  margin-top: var(--space-m);
}

/* Project List & Alternating Grid */
#listado-proyectos {
  scroll-margin-top: 100px;
}

.project-list {
  padding-top: var(--space-l);
  padding-bottom: var(--space-m);
  display: flex;
  flex-direction: column;
  gap: 120px;
}

.project-item {
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: var(--space-l);
  align-items: center;
}

.project-item--reverse {
  grid-template-columns: 1fr 55%;
}

@media (max-width: 1024px) {
  .project-list {
    gap: 80px;
  }
  .project-item,
  .project-item--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-m);
  }
  .project-item--reverse .project-item__info {
    order: 2;
  }
  .project-item--reverse .project-item__media {
    order: 1;
  }
}

/* Carousel */
.project-carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: var(--color-grey-light);
  overflow: hidden;
}

.project-carousel__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-carousel__img.active {
  opacity: 1;
}

.project-carousel__ui {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 10;
  color: var(--color-white);
}

.project-carousel__arrow {
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 18px;
  cursor: pointer;
  padding: 4px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.project-carousel__arrow:hover {
  opacity: 1;
}

.project-carousel__counter {
  font-size: 12px;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Info */
.project-item__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--color-black);
  margin-bottom: 8px;
  font-weight: 400;
}

.project-item__meta {
  font-size: 13px;
  color: var(--color-grey-dark);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.project-item__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-grey-dark);
  font-weight: 300;
  margin-bottom: 40px;
}

/* Tech Sheet */
.tech-sheet {
  border-top: 1px solid var(--color-grey-light);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tech-sheet__row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  font-size: 13px;
  line-height: 1.5;
}

.tech-sheet__label {
  color: var(--color-black);
  font-weight: 500;
}

.tech-sheet__value {
  color: var(--color-grey-dark);
}

/* Category Nav */
.category-nav {
  padding-top: var(--space-m);
  padding-bottom: var(--space-xl);
}

.category-nav__title {
  font-family: var(--font-serif);
  font-size: var(--text-title);
  color: var(--color-black);
  font-weight: 400;
  margin-bottom: var(--space-m);
}

.category-nav__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 1024px) {
  .category-nav__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .category-nav__grid {
    grid-template-columns: 1fr;
  }
}

.category-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background-color: var(--color-black);
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.category-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
  filter: grayscale(10%) brightness(1.04);
  transition: opacity 0.3s ease, transform 0.5s ease, filter 0.3s ease;
}

.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.42) 0%,
    rgba(0,0,0,0.16) 48%,
    rgba(0,0,0,0.02) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.category-card:hover .category-card__img {
  opacity: 1;
  filter: grayscale(0%) brightness(1.02);
  transform: scale(1.04);
}

.category-card--current {
  border-color: rgba(17, 17, 17, 0.65);
}

.category-card--current .category-card__img {
  opacity: 0.62;
  filter: grayscale(18%) brightness(0.72);
}

.category-card--current::after {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.42) 52%,
    rgba(0,0,0,0.18) 100%
  );
}

.category-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 16px;
}

.category-card__name {
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
}

.category-card__status {
  color: var(--color-black);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.55);
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 7px;
  border-radius: 999px;
  opacity: 1;
}

.category-card__arrow {
  color: var(--color-white);
  font-size: 14px;
  opacity: 0.85;
}

/* CTA Final */
.cta-final {
  padding-top: calc(var(--space-l) + 20px);
  padding-bottom: var(--space-xl);
  text-align: left;
  border-top: 1px solid var(--color-grey-light);
  max-width: 800px;
}

.cta-final__title {
  font-family: var(--font-serif);
  font-size: clamp(28px, 4vw, 40px);
  color: var(--color-black);
  font-weight: 400;
  margin-bottom: 16px;
}

.cta-final__text {
  font-size: 16px;
  color: var(--color-grey-dark);
  line-height: 1.6;
  margin-bottom: 32px;
  font-weight: 300;
}

/* ==========================================================================
   Ajuste GRH — Proceso circular sin contenido interior
   ========================================================================== */

/* El cliente quiere el círculo vacío, sin texto ni marca en el interior.
   Se oculta solo el bloque central, manteniendo el aro y los cuatro pasos. */
.method-cycle__center {
  display: none;
}

@media (max-width: 768px) {
  .method-cycle__center {
    display: none;
  }

  .method-cycle {
    gap: 18px;
  }
}

/* ==========================================================================
   GRH — Footer redes sociales en texto (ajuste final estable)
   ========================================================================== */

/* Fuerza el formato tipográfico definitivo de las redes en el footer.
   Evita que en Home hereden estilos genéricos de .footer__link o reglas antiguas. */
.footer .footer__col .footer__socials,
.footer .footer__col .footer__socials--text {
  margin-top: 38px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 28px !important;
}

.footer .footer__col .footer__socials--text .footer__social-link {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  font-family: var(--font-sans) !important;
  font-size: 11px !important;
  line-height: 1 !important;
  font-weight: 500 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.46) !important;
  opacity: 1 !important;
  text-decoration: none !important;
  transition: color 0.2s ease, opacity 0.2s ease !important;
}

.footer .footer__col .footer__socials--text .footer__social-link:hover {
  color: rgba(255, 255, 255, 0.86) !important;
  opacity: 1 !important;
}

/* La franja inferior queda limpia: solo copyright. */
.footer .footer__bottom {
  justify-content: flex-start !important;
  align-items: center !important;
}

/* En móvil se mantiene como una línea de texto compacta, no como columna. */
@media (max-width: 768px) {
  .footer .footer__col .footer__socials,
  .footer .footer__col .footer__socials--text {
    margin-top: 30px !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 24px !important;
  }

  .footer .footer__col .footer__socials--text .footer__social-link {
    font-size: 11px !important;
    letter-spacing: 0.14em !important;
  }
}
/* ==========================================================================
   GRH — Logo imagen en cabecera
   ========================================================================== */

.header__logo--image {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  line-height: 1;
  text-decoration: none;
  flex-shrink: 0;
}

.header__logo--image img {
  display: block;
  width: auto;
  height: 58px;
  max-width: 240px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .header__logo--image img {
    height: 50px;
    max-width: 205px;
  }
}

@media (max-width: 768px) {
  .header__logo--image img {
    height: 44px;
    max-width: 180px;
  }
}

@media (max-width: 420px) {
  .header__logo--image img {
    height: 40px;
    max-width: 165px;
  }
}

/* ==========================================================================
   GRH — Página 404
   ========================================================================== */

.error-page {
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  padding-top: 96px;
  padding-bottom: 120px;
}

.error-page__content {
  width: 100%;
  max-width: 720px;
}

.error-page__code {
  margin-bottom: 20px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--color-grey-dark);
}

.error-page__title {
  margin-bottom: 24px;
  font-family: var(--font-serif);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--color-black);
}

.error-page__text {
  max-width: 540px;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-grey-dark);
}

.error-page__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.error-page__secondary-link {
  display: inline-flex;
  align-items: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--color-black);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.error-page__secondary-link:hover {
  opacity: 0.65;
}

@media (max-width: 768px) {
  .error-page {
    min-height: calc(100svh - 70px);
    padding-top: 72px;
    padding-bottom: 88px;
  }

  .error-page__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
  }
}
