/* ─── Page loader ─── */
@keyframes smoothMorph {
  0%   { transform: scale(1)    rotate(0deg);   border-radius: 50%; }
  20%  { transform: scale(0.9)  rotate(72deg);  border-radius: 35%; }
  40%  { transform: scale(1.1)  rotate(144deg); border-radius: 15%; }
  60%  { transform: scale(0.85) rotate(216deg); border-radius: 8%;  }
  80%  { transform: scale(1.05) rotate(288deg); border-radius: 25%; }
  100% { transform: scale(1)    rotate(360deg); border-radius: 50%; }
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}

.page-loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

.morphing-spinner {
  width: 3.5em;
  height: 3.5em;
  position: relative;
}

.morphing-spinner-inner {
  position: absolute;
  inset: 0;
  background: #0066FF;
  border-radius: 50%;
  animation: smoothMorph 3s ease-in-out infinite;
}

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

/* ─── Accesibilidad / SEO: visualmente oculto pero legible por buscadores ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ─── Design tokens (Milestoners system) ─── */
:root {
  --black:   #000000;
  --black-2: #1c1c1c;
  --white:   #ffffff;
  --grey-1:  #cccccc;
  --grey-2:  #e5e5e5;
  --grey-3:  #f2f2f2;
  --navy:    #1A2E4A;
}

/* ─── Base ─── */
html { height: 100%; scroll-behavior: smooth; scroll-padding-top: 5em; }

body {
  background-color: var(--white);
  color: var(--black);
  font-family: 'DM Sans', Arial, sans-serif;
  font-size: 1.11vw;
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ─── Typography scale ─── */
.h1 {
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 8.75em;
  font-weight: 300;
  line-height: 0.95;
}

.h2 {
  letter-spacing: -0.02em;
  text-transform: uppercase;
  font-size: 7em;
  font-weight: 300;
  line-height: 1;
}

.h3 {
  letter-spacing: -0.02em;
  font-size: 3.5em;
  font-weight: 300;
  line-height: 1.1;
}

.h4 {
  letter-spacing: -0.01em;
  font-size: 2em;
  font-weight: 300;
  line-height: 1.15;
}

.text-regular {
  letter-spacing: -0.005em;
  font-size: 1.375em;
  font-weight: 300;
  line-height: 1.55;
}

.heading-sm {
  letter-spacing: -0.03em;
  font-size: 1.1em;
  font-weight: 300;
}

/* ─── Layout ─── */
.site-container {
  width: 84em;
  max-width: 1344px;
  margin-inline: auto;
  padding-inline: 3em;
}

/* ─── CTA Button (Milestoners pill style) ─── */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  border: 1px solid var(--black);
  background-color: var(--white);
  height: 2.75em;
  color: var(--black);
  border-radius: 100px;
  padding-inline: 1.25em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
}

.cta-btn-bg {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 0;
  transition: height 0.38s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.cta-btn-bg.hover-in          { background-color: #0066FF; }
.cta-btn-bg.hover-out         { background-color: var(--white); }
.cta-btn-bg.dark              { background-color: transparent; }
.cta-btn-bg.hover-in.dark     { background-color: #0066FF; }

.cta-btn:hover .cta-btn-bg.hover-in { height: 100%; }

/* En hover el relleno es azul — el texto debe ser blanco normal (no exclusion) */
.cta-btn:hover .cta-btn-text,
.cta-btn:hover .cta-btn-svg {
  mix-blend-mode: normal;
  color: #ffffff;
}

.cta-btn-text {
  position: relative;
  z-index: 20;
  mix-blend-mode: exclusion;
  color: var(--white);
  font-size: 1.1em;
  font-weight: 300;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.cta-btn-svg {
  position: relative;
  z-index: 20;
  mix-blend-mode: exclusion;
  color: var(--white);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Light variant (white border, white bg — on dark sections) */
.cta-btn--light {
  border-color: var(--white);
  background-color: transparent;
}
.cta-btn--light .cta-btn-bg.hover-in { background-color: #0066FF; }

/* ─── Site Header / Nav ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 555;
  padding: 1.5em 2em;
  pointer-events: none;
  transition: padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container {
  pointer-events: none;
  max-width: 1344px;
  margin-inline: auto;
}

.site-header_inner {
  display: flex;
  align-items: center;
  gap: 2em;
  pointer-events: all;
  border-radius: 100px;
  padding: 0.5em 0.5em 0.5em 1.5em;
  border: 1px solid transparent;
  transition:
    background 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.5s;
}

/* Floating pill state — activated on scroll */
.site-header.scrolled .site-header_inner {
  background: rgba(8, 8, 8, 0.68);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.09);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.header-brand {
  flex-shrink: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
  user-select: none;
}

.logo-se,
.logo-en {
  font-family: 'Epilogue', sans-serif;
  font-weight: 100;
  font-style: normal;
  font-size: 1.45em;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: -0.01em;
  line-height: 1;
}

.logo-B {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1.45em;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
}

.logo-mark {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0.85px solid rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: 5.5px;
  color: rgba(255, 255, 255, 0.5);
  align-self: flex-start;
  margin-top: 3px;
  margin-left: 2.5px;
  line-height: 1;
  padding-top: 0.4px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75em;
  margin-left: auto;
}

.nav-link {
  font-size: 1.1em;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--white);
  text-decoration: none;
  transition: opacity 0.25s, color 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  white-space: nowrap;
  display: inline-block;
}
.nav-link:hover:not(.active) { opacity: 0.5; }
.nav-link.active {
  color: #0066FF;
  transform: scale(1.1);
  opacity: 1;
}

.nav-cta { margin-left: 0.5em; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  margin-left: auto;
  color: var(--white);
  pointer-events: all;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.28s ease, opacity 0.2s;
}
.hamburger.open span:first-child { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:last-child  { transform: translateY(-6.5px) rotate(-45deg); }

/* ─── Hero ─── */
.hero-section {
  height: 220vh;
  position: relative;
  background-color: var(--black);
}

.hero-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  background-color: var(--black);
  color: var(--white);
  overflow: hidden;
}

.hero-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding-top: 8em;
  padding-bottom: 3em;
  position: relative;
  z-index: 10;
}

.hero-label {
  font-size: 0.95em;
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 1.5em;
  flex-shrink: 0;
}

/* ─── Word reveal ─── */
.hero-words {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.05em;
}

.word-wrap {
  position: relative;
  display: block;
  line-height: 0.95;
}

.word-wrap--right {
  text-align: right;
}

.word-base {
  display: block;
  color: rgba(204, 204, 204, 0.18);
  user-select: none;
  pointer-events: none;
}

.word-base em,
.word-reveal em {
  font-style: italic;
  font-weight: 300;
}

.word-reveal {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: block;
  color: #0066FF;
  opacity: 0;
  pointer-events: none;
  transition: none;
}

/* ─── Scroll indicator ─── */
@keyframes scrollBounce {
  0%, 100% { transform: translateY(0); opacity: 0.25; }
  50%       { transform: translateY(7px); opacity: 0.45; }
}

.scroll-indicator {
  position: absolute;
  bottom: 3em;
  right: 3em;
  transform: none;
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5em;
  animation: scrollBounce 2.2s ease-in-out infinite;
  pointer-events: none;
  z-index: 20;
}

.scroll-indicator span {
  font-size: 0.75em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 300;
  opacity: 0.3;
}

/* ─── Hero bottom ─── */
.hero-bottom-line {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  flex-shrink: 0;
  padding-top: 2em;
}


/* ─── Trust badges ─── */
.trust-section {
  padding-block: 3em;
  border-bottom: 1px solid var(--grey-2);
  background: var(--white);
}

.trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  flex-wrap: wrap;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  border: 1px solid rgba(0, 0, 0, 0.13);
  border-radius: 100px;
  padding: 0.55em 1.2em 0.55em 0.9em;
  background: var(--white);
  opacity: 0;
  transform: translateY(-18px);
  transition:
    opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.22s ease,
    border-color 0.22s ease;
  cursor: default;
  user-select: none;
}

.hero-badge.visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.22);
}

.badge-icon {
  display: flex;
  align-items: center;
  color: rgba(0, 0, 0, 0.38);
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    color 0.22s ease;
  flex-shrink: 0;
}

.hero-badge:hover .badge-icon {
  transform: rotate(-10deg);
  color: #0066FF;
}

.badge-text {
  font-size: 1.1em;
  font-weight: 300;
  letter-spacing: -0.025em;
  color: var(--black);
  white-space: nowrap;
}

/* ─── Trust section — dark variant ─── */
.trust-section--dark {
  background: var(--black);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.trust-section--dark .hero-badge {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.14);
}

.trust-section--dark .hero-badge:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
}

.trust-section--dark .badge-icon {
  color: rgba(255, 255, 255, 0.38);
}

.trust-section--dark .badge-text {
  color: rgba(255, 255, 255, 0.85);
}

/* ─── Section shared ─── */
.section-header {
  margin-bottom: 4em;
}

.section-label {
  display: block;
  font-size: 0.9em;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.4;
  margin-bottom: 0.75em;
}

/* Dark sections */
.section-dark {
  background-color: var(--black);
  color: var(--white);
  padding-block: 8em;
}

.section-dark .section-label { color: var(--white); }

/* Light sections */
.section-light {
  background-color: var(--white);
  color: var(--black);
  padding-block: 8em;
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
}

.card.service-card {
  background-color: var(--black-2);
  min-height: 26em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1em;
  transition: background-color 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card--web:hover,
.service-card--redes:hover,
.service-card--marca:hover { background-color: #0066FF; }

.service-card_top { display: flex; flex-direction: column; gap: 1.25em; }

.service-num {
  opacity: 0.35;
  font-size: 1em;
  letter-spacing: 0.05em;
}

.service-title {
  font-size: 2.2em;
  line-height: 1.05;
}

.service-card_bottom { display: flex; flex-direction: column; gap: 1.5em; }

.service-card .text-regular { opacity: 0.65; font-size: 1.2em; }

.service-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1.25em;
}

.service-price-row .heading-sm { font-size: 1.1em; }

.arrow-icon {
  display: flex;
  align-items: center;
  opacity: 0.5;
  transition: opacity 0.2s, transform 0.2s;
}
.service-card:hover .arrow-icon { opacity: 1; transform: translate(3px, -3px); }

/* ─── Steps / Process ─── */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--grey-2);
}

.step-item {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4em;
  align-items: start;
  padding-block: 3.5em;
  border-bottom: 1px solid var(--grey-2);
}

.step-top { display: flex; flex-direction: column; gap: 1em; }

.step-num {
  font-size: 0.95em;
  letter-spacing: 0.08em;
  font-weight: 300;
  opacity: 0.3;
  text-transform: uppercase;
}

.step-title { font-size: 2em; }

.step-body { opacity: 0.6; max-width: 36em; }

/* ─── Projects ─── */
.projects-section { padding-bottom: 8em; }
.projects-section .section-header { padding-inline: 3em; max-width: 1344px; margin-inline: auto; margin-bottom: 3em; }
.projects-header { width: 84em; max-width: 1344px; padding-inline: 3em; margin-inline: auto; margin-bottom: 3em; }

.projects-grid-outer {
  max-width: 1344px;
  margin-inline: auto;
  padding-inline: 3em;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25em;
}

.card.project-card {
  background-color: var(--black);
  height: 38em;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 0.5em;
}

.project-card_bg-wrapper {
  pointer-events: none;
  border-radius: 0.5em;
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-card_bg-image {
  object-fit: cover;
  width: 100%; height: 100%;
  max-width: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .project-card_bg-image { transform: scale(1.04); }

.project-card_bg-overlay {
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.65) 100%);
  width: 100%; height: 100%;
  position: absolute;
  inset: 0;
}

.project-card_top {
  position: relative;
  z-index: 10;
}

.project-card_top .h4 {
  font-size: 2em;
  position: relative;
}

.line-wrapper {
  height: 1px;
  margin-top: 0.5em;
  margin-bottom: 0.75em;
  overflow: hidden;
}

.underline-line {
  height: 1px;
  background: rgba(255,255,255,0.3);
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover .underline-line { transform: scaleX(1); }

.project-service-tag {
  font-size: 0.95em;
  opacity: 0.5;
  letter-spacing: 0.02em;
}

.project-card_bottom {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.project-card_bottom .text-regular { opacity: 0.7; font-size: 1.2em; }

.flex-wrap-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.molecule {
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 100px;
  padding: 0.3em 0.75em;
  display: inline-flex;
  align-items: center;
}

.molecule .heading-sm {
  font-size: 0.9em;
  opacity: 0.8;
  white-space: nowrap;
}

/* ─── About ─── */
.about-section { padding-block: 8em; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6em;
  align-items: center;
}

.about-left {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.about-title {
  font-size: 3.2em;
  margin-top: 0.4em;
  margin-bottom: 1.2em;
  color: var(--white);
}

.about-body {
  color: rgba(255,255,255,0.55);
  margin-bottom: 1.2em;
  font-size: 1.3em;
}

.about-photo-wrap {
  border-radius: 0.5em;
  overflow: hidden;
  aspect-ratio: 1;
}

.about-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(15%);
  transition: transform 0.6s ease;
}
.about-photo-wrap:hover .about-photo { transform: scale(1.02); }

/* ─── Contact ─── */
.contact-section {
  background-color: var(--black);
  color: var(--white);
  padding-top: 8em;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6em;
  align-items: start;
  padding-bottom: 8em;
}

.contact-label { color: rgba(255,255,255,0.35); }

.contact-title {
  font-size: 6em;
  margin-top: 0.3em;
  margin-bottom: 0.4em;
  color: var(--grey-1);
  line-height: 0.9;
}

.contact-sub {
  color: rgba(255,255,255,0.45);
  margin-bottom: 2.5em;
  font-size: 1.3em;
}

.contact-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75em;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

.form-group .heading-sm {
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85em;
}

.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 1.2em;
  font-weight: 300;
  padding: 0.85em 1em;
  outline: none;
  border-radius: 0.25em;
  transition: border-color 0.2s, background 0.2s;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.2); }

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.08);
}

.btn-submit { width: 100%; justify-content: center; margin-top: 0.5em; }

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 2em;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-copy {
  opacity: 0.25;
  font-size: 0.95em;
}

/* ─── Responsive ─── */
@media (max-width: 1100px) {
  body { font-size: 1.4vw; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .card.project-card { height: 36em; }
}

@media (max-width: 768px) {
  body { font-size: 2.8vw; }

  /* Nav — menú móvil: card flotante con mismo estilo que el pill del header */
  .nav-links {
    display: none;
    position: fixed;
    top: 4.5em;
    left: 1em;
    right: 1em;
    height: auto;
    max-height: calc(100dvh - 6em);
    overflow-y: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 1.25em 1.5em 1.5em;
    border-radius: 20px;
    background: rgba(8, 8, 8, 0.88);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
    z-index: 600;
  }
  @keyframes navDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
  .nav-links.open {
    display: flex;
    animation: navDrop 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }
  .nav-link {
    font-size: 1.6em;
    color: var(--white);
    width: 100%;
    padding: 0.65em 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .nav-links .nav-link:last-child { border-bottom: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; z-index: 650; }

  /* Hero */
  .hero-section { height: 180vh; }
  .hero-container { padding-top: 6em; }
  .word-wrap .h1 { font-size: 5.5em; }
  .hero-bottom-line { flex-direction: column; align-items: flex-start; gap: 1.5em; padding-top: 1.5em; }
  .hero-sub { max-width: 100%; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Steps */
  .step-item { grid-template-columns: 1fr; gap: 1.5em; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }
  .card.project-card { height: 80vw; }

  /* About */
  .about-grid { grid-template-columns: 1fr; }
  .about-right { order: -1; }
  .about-photo-wrap { aspect-ratio: 4/3; }

  /* Contact */
  .contact-inner { grid-template-columns: 1fr; gap: 3em; }
  .contact-title { font-size: 4em; }

  .site-container { padding-inline: 1.5em; width: 100%; }
  .projects-grid-outer { padding-inline: 1.5em; }
  .projects-header { padding-inline: 1.5em; }
}

/* ═══════════════════════════════════════════════════
   BRAND REVEAL SECTION
═══════════════════════════════════════════════════ */

.brand-reveal {
  background: var(--black);
}

.br-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--black);
  overflow: hidden; /* clip letras al salir */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Phases — stacked, GSAP controls visibility ── */
.br-phase {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  will-change: opacity, transform;
}

/* ── Phase 1: Logo completo ── */
.br-logo-full {
  display: inline-flex;
  align-items: flex-start;
  line-height: 1;
}

.br-lf-se,
.br-lf-en {
  font-family: 'Epilogue', sans-serif;
  font-weight: 100;
  font-size: 9vw;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.01em;
  line-height: 1;
}

.br-lf-B {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 9vw;
  color: #ffffff;
  letter-spacing: -0.025em;
  line-height: 1;
}

.br-lf-mark {
  width: calc(9vw * 0.22);
  height: calc(9vw * 0.22);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Epilogue', sans-serif;
  font-weight: 300;
  font-size: calc(9vw * 0.1);
  color: rgba(255, 255, 255, 0.38);
  align-self: flex-start;
  margin-top: calc(9vw * 0.1);
  margin-left: calc(9vw * 0.04);
  flex-shrink: 0;
  padding-top: 0.3px;
}

/* ── Phase 2: B + sufijo ── */
.br-logo-b {
  display: flex;
  align-items: flex-end;
  line-height: 1;
  font-size: 14vw;
}

.br-lb-B {
  font-family: 'Epilogue', sans-serif;
  font-weight: 900;
  font-style: italic;
  font-size: 1em;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
}

.br-suffix-clip {
  overflow: hidden;
  height: 0.82em; /* cap-height aproximado de Epilogue */
  flex-shrink: 0;
  display: flex;
  align-items: flex-start; /* track anclado al top: y=0→arcelona, -33%→uild, -66%→rands */
  /* Máscara para eliminar bleed de letras adyacentes */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
  mask-image:         linear-gradient(to bottom, transparent 0%, #000 10%, #000 88%, transparent 100%);
}

.br-suffix-track {
  display: flex;
  flex-direction: column;
  will-change: transform;
}

.br-suffix-word {
  font-family: 'Epilogue', sans-serif;
  font-weight: 100;
  font-size: 1em;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  height: 0.82em;
  overflow: hidden;          /* recorta rendering del glifo fuera del box */
  display: flex;
  align-items: flex-end;
}

/* ── Phase 3: CRECEMOS CONTIGO ── */
.br-crecer {
  display: flex;
  flex-direction: column;
  text-align: center;
  line-height: 0.92;
}

.br-crecer-line {
  font-family: 'Epilogue', sans-serif;
  font-weight: 100;
  font-size: 10vw;
  color: rgba(255, 255, 255, 0.65);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  will-change: opacity, transform;
}

.br-crecer-bold em {
  font-style: italic;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
}

/* ── Scroll hint dentro de br-wrap ── */
.br-scroll-hint {
  position: absolute;
  bottom: 2.5em;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
}

/* ── Responsive brand reveal ── */
@media (max-width: 768px) {
  /* Fase 1: logo completo */
  .br-lf-se, .br-lf-en, .br-lf-B { font-size: 14vw; }
  .br-lf-mark {
    width: calc(14vw * 0.22);
    height: calc(14vw * 0.22);
    font-size: calc(14vw * 0.1);
    margin-top: calc(14vw * 0.1);
    margin-left: calc(14vw * 0.04);
  }

  /* Fase 2: B + sufijo — "Barcelona" es la palabra más ancha, debe caber en pantalla */
  .br-logo-b { font-size: 14vw; }

  /* Fase 3: CRECEMOS CONTIGO */
  .br-crecer-line { font-size: 12vw; }
}

/* ═══════════════════════════════════════════════════
   END BRAND REVEAL
═══════════════════════════════════════════════════ */

@media (max-width: 480px) {
  body { font-size: 3.8vw; }
  .hero-section { height: 160vh; }
  .word-wrap .h1 { font-size: 4em; }
  .h3 { font-size: 2.8em; }
  .h4 { font-size: 1.8em; }
  .card.project-card { height: 90vw; }
}
