/* ========================================
   LOCAL FONTS: InterDisplay (WOFF2)
   ======================================== */
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-ExtraLight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "InterDisplay";
  src: url("./fonts/InterDisplay-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Inter (variable) */
@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter/Inter-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./fonts/Inter/Inter-Italic-VariableFont_opsz,wght.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/*
  ========================================
  DESIGN TOKENS & CONFIGURATION
  ========================================
  
  To customize the design, edit these CSS variables:
  
  COLORS:
  - --color-accent: Primary brand color (buttons, highlights)
  - --color-text-primary: Main heading color
  - --color-text-body: Body text color
  - --color-border: Border and divider color
  - --color-bg: Main background color
  
  SPACING:
  - --space-*: Spacing scale (8px increments)
  
  TYPOGRAPHY:
  - --font-family: Main font stack
  - --font-size-*: Font size scale
  
  LAYOUT:
  - --container-max-width: Maximum content width (1140px)
  - --grid-gutter: Grid gutter width (24px)
*/

:root {
  /* Colors */
  --color-accent: #FF4921;
  --color-accent-foreground: #ffffff;
  --color-text-primary: #000000;
  --color-text-body: #555555;
  --color-text-muted: #999999;
  --color-border: #e5e5e5;
  --color-bg: #ffffff;
  --color-bg-muted: #f9f9f9;

  /* Image max width for full-width-img-small */
  --full-width-img-small-max-width: 558px;

  /* Spacing Scale */
  --space-1: 0.25rem; /* 4px */
  --space-2: 0.5rem; /* 8px */
  --space-3: 0.75rem; /* 12px */
  --space-4: 1rem; /* 16px */
  --space-6: 1.5rem; /* 24px */
  --space-8: 2rem; /* 32px */
  --space-12: 3rem; /* 48px */
  --space-16: 4rem; /* 64px */
  --space-20: 5rem; /* 80px */
  --space-24: 6rem; /* 96px */

  /* Typography */
  --font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  --font-size-xs: 0.75rem; /* 12px */
  --font-size-sm: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-lg: 1.125rem; /* 18px */
  --font-size-xl: 1.25rem; /* 20px */
  --font-size-2xl: 1.5rem; /* 24px */
  --font-size-3xl: 1.875rem; /* 30px */
  --font-size-4xl: 2.25rem; /* 36px */
  --font-size-5xl: 3rem; /* 48px */
  --font-size-6xl: 3.75rem; /* 60px */

  /* Layout */
  --container-max-width: 1140px;
  --grid-visual-width: 1140px;
  --grid-gutter: 24px;
  --grid-col: calc((var(--container-max-width) - (11 * var(--grid-gutter))) / 12); /* 73px when 1140/12 with 24px gutters */
  --header-height: 4rem;

  /* Transitions */
  --transition-fast: 200ms ease-in-out;
  --transition-base: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
}

/* ========================================
   RESET & BASE STYLES
   ======================================== */

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

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-body);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ========================================
   HEADER COMPONENT
   ======================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  contain: layout paint;
}

.header__container {
  width: 100%;
  max-width: var(--container-max-width);
  padding: 0 var(--space-6);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.header__logo img,
.header__mobile-logo img {
  width: 32px;
  height: 32px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.header__logo-box {
  width: 2rem;
  height: 2rem;
  background-color: var(--color-text-primary);
  border-radius: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-weight: 700;
  font-size: var(--font-size-sm);
  background-image: url("images/hero-background.svg");

}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.header__nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
    text-transform: uppercase;
    letter-spacing: 1px;

}

.header__nav-link:hover,
.header__nav-link:focus {
  color: var(--color-accent);
}

.header__nav-link--active {
  color: var(--color-text-primary);
  font-weight: 700;
}

.header__menu-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: right;
  line-height: 0;
  -webkit-font-smoothing: antialiased;
  transform: translateZ(0);
  backface-visibility: hidden;
  padding: 0;
  width: 44px;
  height: 44px;
}

.header__close-icon {
  display: none;
}

.header__menu-icon,
.header__close-icon {
  width: 32px;
  height: 32px;
  transition: opacity var(--transition-fast);
}
.header__close-icon{ 
  opacity: 0; 
  pointer-events: none; 
}
.header__menu-btn.is-open .header__menu-icon{ 
  opacity: 0; 
  pointer-events: none; 
}
.header__menu-btn.is-open .header__close-icon{ 
  opacity: 1; 
  pointer-events: auto; 
}

/* Mobile nav overlay styles */
.header__mobile-nav{
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #ffffff;
  display: none;
  flex-direction: column;
  overflow-y: auto;
}
.header__mobile-nav.is-open{ display: flex; }
body.is-locked{ overflow: hidden; }
body.is-locked .header { border-bottom-color: transparent; }

.header__mobile-top{
  position: sticky;
  top: 0;
  background-color: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__mobile-logo img{
  width: 32px;                  /* bigger logo square */
  height: 32px;
  display: block;
}

.header__mobile-close{
  width: 32px;
  height: 32px;
  padding: 0;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header__mobile-close svg {
  width: 32px;
  height: 32px;
  stroke-width: 2.5;
  display: block;
  margin: 0;
}

.header__mobile-close img{
  width: 32px;
  height: 32px;
  display: block;
}

.header__mobile-links{ display:flex; flex-direction:column; }
.header__mobile-link{
  display:block;
  padding: 24px 24px;
  font-size: 24px;
  color: #222;
  border-bottom:1px solid var(--color-border);
  transition: color var(--transition-fast), background-color var(--transition-fast);
}
.header__mobile-link--active{ color: var(--color-accent); font-weight: 600; }
/* Show the highlight only for keyboard users */
.header__mobile-link:focus-visible{ outline: none; background: rgba(0,0,0,0.03); }

.header__mobile-link:last-child {
  border-bottom: none;
}

.header__mobile-footer{
  margin-top: auto;
  padding: 16px 24px 24px;
  display:flex; gap:12px; align-items:center;
  border-top: 1px solid var(--color-border);
}
.header__mobile-social{ width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; }
.header__mobile-social img{ width:24px; height:24px; display:block; }

/* Desktop navigation */
@media (min-width: 768px) {
  .header__nav {
    display: flex;
  }

  .header__menu-btn {
    display: none;
  }
}



/* ========================================
   HERO COMPONENT
   ======================================== */

/* HERO COMPONENT */

.hero__grid-overlay {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1024px;                     /* grid visual width */
  max-width: calc(100% - 48px);      /* keep 24px padding per side on small screens */
  height: 100%;
  pointer-events: none;
  z-index: 0;                         /* behind content */

  
}


.hero {
  position: relative;
  width: 100%;
  min-height: calc(100svh - var(--header-height)); /* use small viewport to include browser UI on mobile */
  padding: 0;        /* keep hero flush so its inner container aligns with the global grid */
  overflow: hidden;
  display: flex;
  align-items: center;   /* center content vertically within the viewport */
}


.hero__container {
  position: relative;
  max-width: 1092px;
  margin: 0 auto;
  padding: 0 var(--space-6);
  width: 100%;
  min-height: calc(100svh - var(--header-height));
  display: flex;
  align-items: center;         /* vertical center */
  justify-content: center;     /* horizontal center of the content block */
  z-index: 1;
  background-image: url("images/hero-background.svg");
  background-repeat: no-repeat;        /* extend vertically without distorting lines */
  background-position: center top;    /* centered horizontally */
  background-size: 100% auto;         /* keep 1024px-based proportions, do NOT squash */
}

/* Bottom white gradient overlay for hero__container */
.hero__container::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(80px, 12vh, 160px);
  pointer-events: none;
  z-index: 0; /* sits above background image but below content */
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, #ffffff 85%, #ffffff 100%);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 88px;
  position: static;
  z-index: auto;
}

.hero__title {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 56px;                 /* match design */
  font-weight: 700;
  color: #000000;                   /* design black */
  letter-spacing: -2px;             /* match design */
  line-height: 1.1;                 /* 110% */
  text-shadow: 0 0 4px rgba(255, 255, 255, 0.6); /* subtle white glow like design */
  margin-top: 0;
  margin-bottom: -2px;
  text-align: center;
}

.hero__subtitle {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 56px;                 /* match design */
  font-weight: 700;
  color: #FF4921;                  /* design accent */
  letter-spacing: -2px;            /* match design */
  line-height: 1.1;                /* 110% */
  margin-top: 0;
  margin-bottom: var(--space-4); /* 16px */
  text-align: center;
}

.hero__description {
  max-width: calc(8 * var(--grid-col) + 7 * var(--grid-gutter)); /* 8 columns wide */
  text-align: center;
  color: #767676;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 18px;           /* matches requested size */
  font-style: normal;
  font-weight: 400;
  line-height: 170%;         /* 30.6px */
  letter-spacing: -0.3px;
  margin-bottom: var(--space-6); /* 24px */
}

.hero__tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: 1vh;
}

.hero__tag {
  display: inline-flex;               /* allows fixed width on inline element */
  align-items: center;
  justify-content: center;            /* center text horizontally */
  width: 130px;                       /* fixed width as requested */
  padding: 6px 8px; /* 4px top/bottom, 16px left/right */
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  background-color: var(--color-bg);
  white-space: nowrap;                /* prevent line breaks inside */
  text-align: center;
}

/* Interactive hero scroll CTA button */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: max(24px, env(safe-area-inset-bottom) + 8px);
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-accent);
  background: transparent;
  border: 0;
  pointer-events: auto;       /* make it clickable */
  cursor: pointer;            /* indicate interactivity */
  padding-bottom:8px ;
}

/* smooth animation primitives */
.hero__scroll span,
.hero__scroll-icon {
  transition: transform 100ms ease-in-out, opacity 100ms ease-in-out, letter-spacing 100ms ease-in-out;
}
.hero__scroll span {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  color: #FF4921;
  text-align: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 130%; /* 15.6px */
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.hero__scroll-icon {
  width: 18px;
  height: 18px;
  margin-top: 0;
  display: block;
  line-height: 0;
  transform: translateY(0);
}
/* Hover animations only where hover is supported (no hover on touch) */
@media (hover: hover) {
  .hero__scroll:hover .hero__scroll-icon {
    transform: translateY(4px);   /* gentle nudge down */
  }
  .hero__scroll:hover span {
    opacity: 0.9;
    transform: translateY(-4px);
  }
}
/* Focus styles for keyboard users */
.hero__scroll:focus-visible {
  outline: 2px solid rgba(255,73,33,0.4);
  outline-offset: 4px;
  border-radius: 6px;
}

.hero__scroll-icon {
  width: 18px;
  height: 18px;
  margin-top: 0;
  display: block;
  line-height: 0;
}

/* Tablet and desktop */

@media (max-width: 1023px) {
  .hero__container{
    background-image: none;
  }
}

@media (min-width: 768px) {
  /* Tablet: same full-height logic so the scroll hint sits at the bottom */
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero__container { min-height: calc(100svh - var(--header-height)); }
  .hero__content {  }
  .hero__scroll { bottom: max(16px, env(safe-area-inset-bottom)); }
  .hero__title,
  .hero__subtitle {
    font-size: 56px;
  }
  .hero__description {
    font-size: var(--font-size-lg);
  }
}


@media (min-width: 1140px) {
  .hero {
    min-height: calc(100vh - var(--header-height));
  }
  .hero__title,
  .hero__subtitle {
    font-size: 56px;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 0 16px;
  }
  .hero__container{
    padding:0;
  }
  .hero__title,
  .hero__subtitle {
    font-size: 44px;
  }
  .hero__description p {
    font-size: var(--font-size-sm);
  }
  .hero__tag{
    width: 128px;
  }
  .hero__tags {
    gap: 8px 8px;
  }

  /* Mobile: keep hero full-height and reserve space for the scroll hint */
  .hero { min-height: calc(100svh - var(--header-height)); }
  .hero__container { min-height: calc(100svh - var(--header-height)); }
  .hero__content { margin-bottom: 0; padding-bottom: 88px; } /* keep content centered without overlapping the scroll hint */
  .hero__scroll { bottom: max(12px, env(safe-area-inset-bottom)); }
}

/* ========================================
   SERVICES COMPONENT (ACCORDION)
   ======================================== */

.services {
  width: 100%;
  padding: var(--space-16) 0;
}


.services__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.services__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12); /* 48px */
}

.services__header img {
  margin-bottom: 1px;
}

.services__arrow {
  display: inline-block;
  width: 15px;
  height: auto;
  vertical-align: middle;
  line-height: 0;
}

.services__title {
  color: #000;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 16px */
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-left:4px;
}

.services__accordion {
  border-top: 1px solid var(--color-border);
}

.accordion__item {
  border-bottom: 1px solid var(--color-border);
  padding:24px 8px;
}

.accordion__button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px;
  text-align: left;
  transition: color var(--transition-base);
  color: var(--color-text-primary);
  -webkit-text-fill-color: var(--color-text-primary); /* iOS Safari can override button text */
  appearance: none;
}

@media (hover: hover) {
  .accordion__button:hover { color: var(--color-accent); }
}
.accordion__button:focus-visible { color: var(--color-accent); }

.accordion__title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

/* Defensive: ensure any text inside the button inherits the intended color on iOS */
.accordion__button *,
.accordion__button .accordion__title { 
  color: var(--color-text-primary); 
  -webkit-text-fill-color: var(--color-text-primary);
}

.accordion__icon {
  flex-shrink: 0;
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition: transform var(--transition-base);
  display: inline-block;
}

.accordion__button[aria-expanded="true"] .accordion__icon {
 	transform: rotate(135deg); /* rotate 135° when open */
}

  .accordion__content {
    height: 0;
    overflow: hidden;
    will-change: height;
    transition: height 350ms cubic-bezier(.22,.61,.36,1); /* smoother spring-like ease */
  }

.accordion__inner {
  padding-right: var(--space-12);
  padding-top:12px;
  color: #767676;
}
.accordion__inner p {
  line-height: 1.7;
  color: var(--color-text-body);
  font-size: 16px;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 768px) {
  .services {
    padding: var(--space-24) 0;
  }

  .accordion__title {
    font-size: var(--font-size-2xl);
  }
}


/* ========================================
   RECENT WORK COMPONENT
   ======================================== */

.work {
  width: 100%;
  padding: var(--space-16) 0;
  background-color: var(--color-bg);
}

.work__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.work__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12); /* 48px */
}

.work__arrow {
  display: inline-block;
  width: 15px;
  height: auto;
  vertical-align: middle;
  line-height: 0;
}

.work__title {
  color: #000;
  font-family: var(--font-family-Font-1, Inter);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 16px */
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.work__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-16); /* 64px */
}

@media (max-width: 1023px) {
  .work__cta {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .work__button {
    text-align: center;
    justify-content: center;
  }

  .work__grid {
    margin-bottom: 24px;
  }
  
  
}

.work__card {
  display: block;
  overflow: hidden;
  border-radius: 0.5rem;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  will-change: transform, box-shadow;
  transform-origin: center center;
  transform: translateZ(0);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  

}

@media (hover: hover) {
  .work__card:hover,
  .work__card:focus {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08); /* subtle floating shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
}


/* asegurar nitidez */
.project-card {
  overflow: hidden;
  will-change: transform, box-shadow;
  transform: translateZ(0);
}
.project-image { overflow: hidden; }
.project-image img{
  display:block; width:100%; height:100%; object-fit:cover;
  transition: transform 200ms ease;
  backface-visibility: hidden;
  transform: translateZ(0);
}


.work__image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
}

/* Add bottom divider for images with light backgrounds */
.work__image img {
  background-color: #fff; /* fallback for images with transparent areas */
}

/* Apply subtle divider line only for light images */
.work__image img[src*="pomodoro"],
.work__image img[src*="paywall"],
.work__image img[src*="offboarding"],
.work__image img[src*="black-friday"],
.work__image img[src*="nius"],
.work__image img[src*="swg"],
.work__image img[src*="login"],
.work__image img[src*="regalar-articulo"] {
  border-bottom: 1px solid var(--color-border);
}

/* Add bottom divider for white background images */
.work__image[style*="#f5f5f5"] {
  border-bottom: 1px solid var(--color-border);
}

.work__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-fast);
  will-change: transform;
  backface-visibility: hidden;
  transform: translateZ(0);
}



.work__info {
  padding: var(--space-6);
}

@media (max-width: 378px) {
  .work__info {
    padding: 16px;
  }
}

.work__card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-2);
  font-size: 24px;
  transition: color var(--transition-base); /* match accordion button */
  line-height: 100%;
  margin-bottom: 16px;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

.work__card:hover .work__card-title {
  color: var(--color-accent);
}


.work__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.work__tags span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 11px;
  border: 0.5px solid #CFCFCF;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  background-color: #fff;
  text-align: center;
}

.work__cta {
  display: flex;
  justify-content: center;
  /* margin-top: var(--space-16);  unified top spacing (64px) on all screens */
}



@media (max-width: 1023px) {
  .work__cta {
    margin-top: 24px; /* reduce top margin on smaller screens */
  }
}


.work__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background-color: var(--color-bg);
  font-weight: 500;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  will-change: transform, box-shadow, background-color, color, border-color;
}


@media (hover: hover) {
  .work__button:hover,
  .work__button:focus {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 73, 33, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  }
  .work__button:hover img,
  .work__button:focus img {
    filter: brightness(0) invert(1);
  }

  /* Contact form submit button: white text and arrow on hover/focus */
  .contact__submit:hover span,
  .contact__submit:focus span {
    color: var(--color-accent-foreground);
  }

  .contact__submit:hover img,
  .contact__submit:focus img {
    filter: brightness(0) invert(1);
  }
}
/* 2) Desktop: en hover/focus, texto y flecha en blanco */
@media (hover: hover) {
  .contact__submit:hover,
  .contact__submit:focus {
    color: var(--color-accent-foreground) !important;
    -webkit-text-fill-color: var(--color-accent-foreground);
  }
  .contact__submit:hover span,
  .contact__submit:focus span {
    color: var(--color-accent-foreground) !important;
    -webkit-text-fill-color: var(--color-accent-foreground);
  }
  /* por si usas <img> de flecha en algún momento */
  .contact__submit:hover img,
  .contact__submit:focus img {
    filter: brightness(0) invert(1);
  }
}

/* 3) Móvil/tablet (sin hover): al hacer tap (active) también en blanco */
@media (hover: none) {
  .contact__submit:active {
    color: var(--color-accent-foreground) !important;
    -webkit-text-fill-color: var(--color-accent-foreground);
  }
  .contact__submit:active span {
    color: var(--color-accent-foreground) !important;
    -webkit-text-fill-color: var(--color-accent-foreground);
  }
}

@media (min-width: 768px) {
  .work {
    padding: var(--space-24) 0;
  }

  .work__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }
}

@media (prefers-reduced-motion: reduce) {
  .work__card,
  .work__card:hover,
  .work__card:focus,
  .work__card:focus-visible {
    transition: none;
    transform: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  }
  .work__card:hover .work__image img {
    transform: none;
  }
}

/* ========================================
   ABOUT PAGE COMPONENTS
   ======================================== */

/* About Hero */
.about-hero { width: 100%; padding: var(--space-16) 0; }
.about-hero__container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: center; }
.about-hero__content { display: flex; align-items: flex-start; }
.about-hero__title { font-family: var(--font-family); font-weight: 700; color: var(--color-text-primary); font-size: clamp(28px, 4vw, 36px); line-height: 1.15; letter-spacing: -0.5px; }
.about-hero__highlight { display: inline-block; font-weight: 700; }
.about-hero__image img { width: 100%; height: auto; border-radius: 8px; background: #f5f5f5; }

@media (min-width: 768px){
  .about-hero { padding: var(--space-24) 0;padding-bottom: 40px;}
  .about-hero__container { grid-template-columns: 6fr 6fr; gap: var(--space-12); }
}

/* Section: ABOUT ME + DOWNLOAD CV + TIMELINE (shared header style) */
.about-section, .about-cv, .about-timeline { width: 100%; padding: var(--space-16) 0; }

/* Add bottom border divider to visually separate about sections */
.about-section,
.about-cv {
  border-bottom: 1px solid var(--color-border);
}

/* Timeline sections: remove top border from first (career), remove bottom border from last (studies) */
.about-timeline {
  border-top: none;
  border-bottom: 1px solid var(--color-border);
}
.about-timeline--studies {
  border-bottom: none;
}
.about-section__container, .about-cv__container, .about-timeline__container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-6); }
/* Make about-section__container two columns only on desktop screens */
@media (min-width: 1024px) {
  .about-section__container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px; /* adjust spacing as needed */
  }

  .about-section__header {
    flex: 0 0 220px;   /* enough width so "ABOUT ME" doesn't wrap */
  }

  .about-section__content {
    flex: 1 1 auto;    /* take the remaining space */
    min-width: 0;      /* allow content to shrink without overflow */
  }

  .about-section__title {
    white-space: nowrap;  /* force single line label */
  }

  /* --- Download my CV: two-column layout on desktop --- */
  .about-cv__container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 64px;
  }
  .about-cv__header {
    flex: 0 0 220px;
  }
  .about-cv__content {
    flex: 1 1 auto;
    min-width: 0;
  }
  .about-cv__title {
    white-space: nowrap;
  }
}
.about-section__header, .about-cv__header, .about-timeline__header { display: flex; align-items: center; gap: var(--space-2); margin-bottom: 24px }
.about-section__arrow, .about-cv__arrow, .about-timeline__arrow { width: 15px; height: auto; display: inline-block; }
.about-section__title, .about-cv__title, .about-timeline__title { color: #000; font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.96px; text-transform: uppercase; }

/* ABOUT ME content */
.about-section__text { color: var(--color-text-body); font-size: 16px; line-height: 1.7; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* CV block */
.about-cv__content { display: grid; grid-template-columns: 1fr; gap: var(--space-4); max-width: 820px; }
.about-cv__text { color: var(--color-text-body); font-size: 16px; line-height: 1.6; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
.about-cv__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  background-color: var(--color-bg);
  font-weight: 500;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  will-change: transform, box-shadow, background-color, color, border-color;
  width: fit-content;
  justify-self: start;
  line-height: 100%;
  color: var(--color-text-primary);
}
/* Download icon transition and hover effect */
.about-cv__button img {
  transition: filter 150ms ease;
}
@media (hover: hover) {
  .about-cv__button:hover,
  .about-cv__button:focus {
    background-color: var(--color-accent);
    color: var(--color-accent-foreground);
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 73, 33, 0.3);
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease, border-color 150ms ease;
  }
  .about-cv__button:hover img,
  .about-cv__button:focus img {
    filter: brightness(0) invert(1);
  }
}

/* Timeline */
.about-timeline__list { display: grid; gap: 0; border-top: none; }
.about-timeline__list .timeline-item:last-child {
  border-bottom: none;
}
.timeline-item { display: grid; grid-template-columns: 1fr; gap: var(--space-2); padding: 32px 0; border-bottom: 1px solid var(--color-border); }
.timeline-item:last-child {
  padding-bottom: 0;
}

.title-alignment-adjust{
  line-height: 190%;
}

@media (max-width: 1023px) {
  .timeline-item:first-child {
    padding-top: 0;
  }
  .title-alignment-adjust{
  line-height: normal;
}
.about-cv__content { gap: 24px;}

}

.timeline-item__date { color: var(--color-text-muted); font-size: 14px; }
.timeline-item__title { font-size: 18px; font-weight: 600; color: var(--color-text-primary); margin-bottom: 8px; font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;line-height: 109%; }
.timeline-item__description { color: var(--color-text-body); font-size: 15px; line-height: 1.7; max-width: 820px; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

@media (min-width: 768px){
  .timeline-item { grid-template-columns: 3fr 9fr; }
  
}

@media (max-width: 767px) {
  /* On small screens, only top padding is applied to .about-hero */
  .about-hero { padding: 32px 0 0px 0; }
}






/* ========================================
   FAVOURITE TOOLS COMPONENT
   ======================================== */

.tools {
  width: 100%;
  padding: var(--space-16) 0;
}

.tools__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.tools__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12); /* 48px */
}

.tools__arrow {
  display: inline-block;
  width: 15px;
  height: auto;
  vertical-align: middle;
  line-height: 0;
}

.tools__title {
  color: #000;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 16px */
  letter-spacing: 0.96px;
  text-transform: uppercase;
}

.tools__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.tools__card {
  display: flex;
  flex-direction: column;        /* stack icon, title, description */
  align-items: flex-start;        /* left align content */
  gap: var(--space-4);            /* 16px between elements */
  padding: var(--space-6);        /* 24px all around */
  border: 0.5px solid #CFCFCF;    /* subtle divider like in design */
  border-radius: 8px;             /* 8px radius */
  background-color: var(--color-bg);
}


.tools__icon {
  width: 4rem;    /* 64px */
  height: 4rem;   /* 64px */
  flex-shrink: 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
}

.tools__content {
  flex: 1;
}

.tools__card-title {
  font-size: 20px;              /* more prominent title as in screenshot */
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0;                    /* reset */
  line-height: 100%;
  margin-bottom: 8px;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

.tools__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tools__card img {
  border-radius: 4px;
}

@media (min-width: 768px) {
  .tools {
    padding: var(--space-24) 0;
  }

  .tools__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* ========================================
   FAVOURITE BOOKS COMPONENT
   ======================================== */

.books {
  width: 100%;
  padding: var(--space-16) 0;
  background-color: var(--color-bg);
}

.books__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.books__header {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-12); /* 48px */
}

.books__arrow {
  display: inline-block;
  width: 15px;
  height: auto;
  vertical-align: middle;
  line-height: 0;
}

.books__title {
  color: #000;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: 100%; /* 16px */
  letter-spacing: 0.96px;
  text-transform: uppercase;
}


.books__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

.books__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 0.5px solid #CFCFCF;
  border-radius: 8px;
  background-color: var(--color-bg);
}

.books__icon-img {
  width: 64px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.24);
  /* Ensure the cover fills and crop the extra white edges visually */
  object-fit: cover;
  object-position: center;
  /* Crop ~2% on the right and ~3% on the bottom (no change on left/top) */
  clip-path: inset(0 2% 3% 0);
}

.books__content {
  flex: 1;
}

.books__card-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 8px;
  line-height: 100%;
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

.books__description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 768px) {
  .books {
    padding: var(--space-24) 0;
  }
  .books__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}


/* ========================================
   FOOTER COMPONENT
   ======================================== */

.footer {
  width: 100%;
}

.footer__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.footer__cta {
  /* Center the CTA content like the spec: 1140 x 445, column, centered, 24px gap */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 445px;               /* visual height from the spec */
  gap: 0;
  margin-bottom: var(--space-16);
  text-align: center;
  background-color: #FBFAF9;
  border-radius: 0;
  width: 100%;
  padding:0 16px;
  margin-top: 96px;
}

.footer__heading {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;                        /* spacing handled by .footer__cta gap */
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-2);
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

.footer__text {
  max-width: 42rem;
  margin: 0;                        /* spacing handled by .footer__cta gap */
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--color-text-body);
  margin-bottom: var(--space-6);
}

.footer__button {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 9999px;
  background-color: var(--color-accent);
  color: var(--color-accent-foreground);
  font-weight: 500;
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.footer__button:hover,
.footer__button:focus {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 87, 51, 0.3);
  transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, color 150ms ease;
}

.footer__bottom {
  width: 100%;
  margin-top: 0;
  background-color: #FBFAF9;  /* full-width bar */
  padding: 20px 0;            /* vertical padding only; horizontal handled by inner */
  border-top: none;
  border-radius: 0;
}

.footer__bottom-inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.footer__social {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.footer__social-link {
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.footer__social-link:hover,
.footer__social-link:focus {
  color: var(--color-accent);
}

.footer__social img {
  width: 24px;
  height: 24px;
  display: block;
}

.footer__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: transparent;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
  opacity: 0.85;
}

@media (hover: hover) {
  .footer__social-link:hover,
  .footer__social-link:focus {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: rgba(0,0,0,0.02);
  }
  .header__logo:hover{
    opacity: 0.7;
  }
}

@media (min-width: 768px) {
  .footer {
    
  }

  .footer__heading {
    font-size: var(--font-size-4xl);
  }

  .footer__text {
    font-size: var(--font-size-lg);
  }

  .footer__bottom-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 1140px) {
  .footer__heading {
    font-size: var(--font-size-5xl);
  }
}

/* Remove default blue tap highlight and focus color */
button, a, input, textarea {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
*:focus {
  outline: none;
  box-shadow: none;
}

/* Mobile-only: reduce lateral paddings to 16px (≤767px) */
@media (max-width: 767px) {
  .header__container,
  .services__container,
  .work__container,
  .tools__container,
  .books__container,
  .about-hero__container,
  .about-section__container,
  .about-cv__container,
  .about-timeline__container,
  .footer__container,
  .footer__bottom-inner,
  .project__container,
  .project__container--side {
    padding-left: var(--space-4);   /* 16px */
    padding-right: var(--space-4);  /* 16px */
  }
/* Tablet: align project containers to standard grid (24px sides) */
@media (max-width: 1023px) {
  /* Keep side sections aligned with the standard grid on tablet */
  .project__container,
  .project__container--side {
    padding-left: var(--space-6);  /* 24px */
    padding-right: var(--space-6); /* 24px */
  }
}

  /* Ensure hero outer padding matches too */
  .hero {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

  .work__grid,
  .tools__grid,
  .books__grid {
    gap: var(--space-4); /* 16px */
  }

  /* Reduce vertical section spacing on mobile */
  .services,
  .work,
  .tools,
  .books {
    padding-top: var(--space-12);   /* 48px */
    padding-bottom: var(--space-12);/* 48px */
  }
  .footer__cta {
  /* Center the CTA content like the spec: 1140 x 445, column, centered, 24px gap */
 
  min-height: auto;              /* visual height from the spec */
 
  padding:48px 16px;
  margin-top: 16px;
  
  
  }
  .footer__text{
    font-size: 15px;
}

  /* Anchor offset only on mobile */
  .services,
  .work,
  .tools,
  .books {
    scroll-margin-top: calc(var(--header-height) + 8px);
  }

  /* Section header spacing: 32px on mobile */
  .services__header,
  .work__header,
  .tools__header,
  .books__header {
    margin-bottom: var(--space-8); /* 32px */
  }

  .hero__description{
    font-size: 16px;
  }
  
}
.page-mtmad {
  /* DARK THEME: mtmad project page */
  --color-bg: #18171a !important;
  --color-bg-muted: #212025 !important;
  --color-text-primary: #fff !important;
  --color-text-body: #bdb9c7 !important;
  --color-text-muted: #726e7b !important;
  --color-border: #28262c !important;
  --color-accent: #ff4e1b !important;
  --color-accent-foreground: #fff !important;
}

/* Tags (chips) dark mode */
.page-mtmad .chip {
  background-color: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.16);
}
.page-mtmad .chip:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Make 'All Projects' link white only on mtmad page */
body.page-mtmad .project__back-link {
  color: #fff;
}

/* Make 'All Projects' link white only on mtmad page */
body.page-mtmad .project__back-link:hover {
  color: var(--color-accent);
} 

body.page-mtmad .project__back-link img {
  filter: brightness(0) invert(1);
}
body.page-mtmad .project__back-link:hover img {
  color: var(--color-accent);
}
body.page-mtmad .project__back-link:hover {
  filter: brightness(0) saturate(100%) invert(39%) sepia(83%) saturate(4081%) hue-rotate(5deg) brightness(99%) contrast(98%);
}
/* ========================================
   PAGE-SPECIFIC: WORK
   ======================================== */
.page-work #work {
  padding-top: 64px !important;
  padding-bottom: 0 !important; /* zero spacing below the grid on Work page */
}



@media (max-width:1023px) {
  .page-work #work {
    padding-top: 16px !important;}

}

.page-work .footer__cta {
  margin-top: 64px !important;     /* pull CTA up on Work page */
}

/* Safety fallback: ensure cards are visible on Work page (e.g., on iOS Safari if reveal fails) */
.page-work .work__card {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* Extra safety: on Work page, never hide [data-reveal] */
.page-work [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* ========================================
   PAGE-SPECIFIC: VISUALS GRID
   ======================================== */
.page-visuals #visuals {
  padding-top: 64px;
  padding-bottom: 0;
}

.visuals {
  width: 100%;
  padding: var(--space-16) 0;
  background-color: var(--color-bg);
}

.visuals__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* 3 columns on desktop, 2 on tablet, 1 on mobile */
.visuals__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 1023px) {
  .visuals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.visuals__card {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: none;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
/* NIUS overrides: visuals--nius visuals__card should also have no shadow or border */
.visuals--nius .visuals__card {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
  box-shadow: none;
  border: none;
  display: flex;
  justify-content: center;
  align-items: center;
}


.visuals__image {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

/* tighten paddings on mobile to match rest of site */
@media (max-width: 767px) {
  .visuals__container {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}

/* bring footer CTA closer on visuals page */
.page-visuals .footer__cta {
  margin-top: 64px !important;
}
/* ========================================
   PAGE-SPECIFIC: CONTACT (sticky footer)
   ======================================== */
body.page-contact {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body.page-contact .contact {
  flex: 1 0 auto;
}
body.page-contact .footer {
  margin-top: auto;
}

/* ========================================
   CONTACT PAGE
   ======================================== */

.contact { width: 100%; padding: var(--space-16) 0;padding-bottom:0px; }
.contact__container { max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-6); display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: start; }

@media (min-width: 1024px){
  .contact { padding: 64px 0; }
  .contact__container{ grid-template-columns: 6fr 6fr; gap: var(--space-12); }
}
@media (max-width: 1023px){
  .contact { padding: 48px 0; }
}

/* Tablet/mobile: two-column for left-side sections only */
@media (min-width: 480px) and (max-width: 1023px) {
  /* Only the two left-side sections become two columns */
  .contact__left { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: var(--space-10);
  }
  /* Keep the intro heading full width */
  .contact__intro { grid-column: 1 / -1; }
  /* Remove extra top margins now that blocks sit side by side */
  .contact__left > .contact__block { margin-top: var(--space-12); }
}

/* Intro left */
.contact__title{ font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-weight: 700; color: #000; letter-spacing: -2px; line-height: 1.1; font-size: clamp(32px, 5vw, 40px); }
.contact__description{ max-width: 520px; color: #767676; font-size: 18px; line-height: 1.7; letter-spacing: -0.3px; margin-top: var(--space-4); }

.contact__block{ margin-top: var(--space-12); }
.contact__block-header{ display:flex; align-items:center; gap: var(--space-2); margin-bottom: var(--space-4); }
.contact__arrow{ width: 15px; height: auto; }
.contact__block-title{ color:#000; font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-size: 14px; font-weight: 600; letter-spacing: 0.96px; text-transform: uppercase; }

.contact__actions{ display:flex; flex-direction: column; gap: var(--space-4); }
.contact__button{ justify-content: flex-start; padding: 15px 24px; width: fit-content; }
.contact__social{ display:flex; gap: 16px; }
.contact__social-link{
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

@media (hover: hover) {
  .contact__social-link:hover,
  .contact__social-link:focus {
    opacity: 1;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background-color: rgba(0,0,0,0.02);
  }
}

/* Form card */
.contact__form{ background: #fff; border: 1px solid var(--color-border); border-radius: 8px; padding: 32px; display:flex; flex-direction: column; gap:24px; }
.form-field{ display:flex; flex-direction: column; gap: 12px; }
.form-label{ font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-weight: 600; font-size: 14px; letter-spacing: 0.84px; text-transform: uppercase; color:#000; }
.form-input{ width:100%; border: 1px solid var(--color-border); border-radius: 6px; padding: 12px 16px; font-size: 16px; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color:#121212; background: #fff; outline: none; }
.form-input::placeholder{ color:#999; }
.form-textarea{ width:100%; min-height: 72px; border: 1px solid var(--color-border); border-radius: 6px; padding: 12px 16px; font-size: 16px; font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; resize: vertical; }

/* Chips */
.chip{ display:inline-flex; align-items:center; justify-content:center; padding: 8px 16px; border: 1px solid var(--color-border); border-radius: 9999px; background:#fff; font-size: 14px; font-weight: 500; color:#787878; line-height: 1; transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast); }
@media (hover: hover) {
  .chip:hover,
  .chip:focus {
    background: var(--color-accent);
    color: var(--color-accent-foreground);
    border-color: var(--color-accent);
  }
}
.chip.is-active{ background: var(--color-accent); color: var(--color-accent-foreground); border-color: var(--color-accent); }
.contact__chips{ display:flex; flex-wrap: wrap; gap: 8px; }

/* Submit */
.contact__submit{ align-self: flex-start; color}

/* Form title: only visible on tablet & mobile */
.contact__form-title{ display: none; }
@media (max-width: 1023px){
  .contact__form-title{ display: flex; margin-bottom: var(--space-4); }
}

@media (max-width: 767px){
  .contact__actions{ gap: var(--space-3); }
  .contact__form{ padding: 24px; gap: 24px; }
}

/* ========================================
   PROJECT PAGE TEMPLATE
   ======================================== */
:root{
  /* Fixed aspect ratio for body images in two‑column sections */
  --project-body-aspect: 4 / 3;
}

.project{ padding: var(--space-12) 0 var(--space-8); }
.project__container{ max-width: var(--container-max-width); margin: 0 auto; padding: 0 var(--space-6); }

/* Hero: intro + meta */
.project__hero{ display: grid; grid-template-columns: 1fr; gap: var(--space-8); align-items: start; }

@media (max-width: 1023px) {
  .project__intro::after {
    content: "";
    display: block;
    height: 1px;
    background-color: var(--color-border);
    width: 100vw;                          /* full viewport width */
    margin-top: 24px;                      /* only top margin */
    margin-bottom: 0;                      /* no bottom margin */
    margin-left: calc(50% - 50vw);         /* escape container to full-bleed */
    margin-right: calc(50% - 50vw);
  }
}
.project__intro{ display: grid; gap: var(--space-4); }
.project__title{ font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-size: clamp(26px, 3.8vw, 32px); font-weight: 700; color: var(--color-text-primary); letter-spacing: -0.2px;line-height: 100%; }
.project__description{ color: var(--color-text-body); font-size: 14px; line-height: 1.7; max-width: 62ch; }

/* Reuse chip style compatible with site */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: 9999px;
  font-size: var(--font-size-sm);
  font-weight: 500;
  background-color: var(--color-bg);
  white-space: nowrap;
  text-align: center;
}

/* Disable hover styles for .chip in .project */
.project .chip:hover {
  background-color: var(--color-bg);
  color: #787878;
  border-color: var(--color-border);
  cursor: default;
}
.project__tags{ display:flex; flex-wrap:wrap; gap: 8px; }

/* Meta table */
.project__meta{ display:grid; gap: 24px; align-content:start; padding-top:15px;}
.project__meta-row{ display:grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 0px 0 24px 0; border-bottom: 1px solid var(--color-border); }
.project__meta-row:last-child{ border-bottom:none; }
.project__meta dt{ 
  color: #000;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 100%; /* 16px */
letter-spacing: -0.3px;
}
.project__meta dd{ 
  color: #767676;
text-align: right;
font-family: Inter;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 100%; /* 16px */
letter-spacing: -0.3px;
}

@media (min-width: 1024px){
  .project{ padding: var(--space-16) 0 var(--space-12); }
  .project__hero{ grid-template-columns: 7fr 5fr; gap: var(--space-12); }
  .project__title{ font-size: clamp(26px, 3vw, 32px); }
}

/* Media blocks */
.project-media{ width:100%; }
.project-media--bleed{ /* full‑bleed across viewport */
  width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw);
  background: transparent; var(--color-border); 
}
.project-media--container{ /* constrained to body container */
  max-width: var(--container-max-width); margin: 0 auto; ;
}
.project-media--large{ margin-top: var(--space-8);  }

/* Variable‑height media
   Full‑bleed keeps a safe min-height; in-container adapts to intrinsic image height */
.project-media--bleed.project-media--variable .project-media__placeholder{ 
  min-height: clamp(220px, 40vh, 520px);
}
.project-media--container.project-media--variable .project-media__placeholder{ 
  min-height: 0; /* let the image define the height, no extra white margins */
}

/* Fixed‑aspect media for body side sections */
.project-media--fixed{ aspect-ratio: var(--project-body-aspect); width: 100%; overflow: hidden; }

/* Placeholder for all images (replace with <img> when ready) */
.project-media__placeholder{ width: 100%; height: 100%; background: #fff; border-radius: 6px; }
.project-media__placeholder img{
  border-radius: 8px;
}

@media (max-width: 767px) {
  .project-media--variable .project-media__placeholder{  padding: 0 16px; }}

.margin-top-24-img{
  margin-top: 24px;
}
.project-media__placeholder__big{
  border-radius: 0px;
  margin-bottom:48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  margin-bottom: 48px;
  overflow: hidden; /* evita que la imagen sobresalga */
  background-color: #FBFAF9;
}
.project-media__placeholder__big img{ 
  max-width: 1300px;
  align-content: center;
   
  height: auto;
  display: block;
}
.project-media img{ width:100%; height:100%; object-fit: cover; display:block; }

/* Sections */
.project-section{ padding: 48px 0; }
.project-section__header{ display:grid; gap: 16px; margin-bottom: var(--space-8); }
.project-section__header--center{ text-align:center; max-width: 820px; margin: 0 auto 0 }
.project-section__title{ font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif; font-weight: 600; font-size: 24px; color: #000; line-height: 100%;}
.project-section__subtitle{ color: var(--color-text-body); font-size: 14px; line-height: 1.7; }

/* Side sections */

.project__container--side{ display:grid; grid-template-columns: 1fr; gap: var(--space-8); align-items:center; }
.project-section--side{ padding: var(--space-12) 0; }

/* Ensure side-section text aligns to the left edge of the container on mobile/tablet */
.project-section--side .project-section__text {
  justify-self: start;   /* grid item snaps to left */
  margin-left: 0;        /* remove any auto-centering margin */
  text-align: left;      /* avoid inherited center */
  max-width: none;       /* prevent narrower inner max-widths */
  width: 100%;
}

/* Stretch grid items so both text and image take full column width on smaller screens */
@media (max-width: 1023px) {
  .project__container--side {
    align-items: start;  /* no vertical re-centering that can nudge layout */
    justify-items: start;/* grid children start at left gutter */
  }
}


@media (max-width: 1023px) {
  .project-section__header--center{
    max-width: 1440px;
  }
  
  .project-section__header--center p {
    margin-bottom:0px;
  }
  }


@media (max-width: 767px) {
  .project-section{
    padding: 24px 0;}
    .project{ padding: 24px 0 24px 0; }
    .project-section__header--center {
    margin: 0 auto 0}
    .project-section__header--center p {
    margin-bottom:0px;
  }
  .project-media--variable .project-media__placeholder{ min-height: auto;}
  }

  .project-media__placeholder__big {
    margin-bottom:24px   
}

@media (min-width: 768px) {
  
  .project-media__placeholder__big {
    margin-bottom:48px;
}
}



.project-section__text{ display:grid; gap: 16px; }

@media (min-width: 1024px){
  .project__container--side{ grid-template-columns: 6fr 6fr; gap: var(--space-12); }
}

@media (max-width: 1023px) {
  .column-reverse {
    display: flex;
    flex-direction: column-reverse;
  }
}

.project__back {
  max-width: var(--container-max-width);
  width: 100%;
  margin: 48px auto 0;
  padding: 0 var(--space-6);
  box-sizing: border-box;
}

.project__back-link {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  white-space: nowrap;           /* evita salto de línea entre icono y texto */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  line-height: 1;
  padding: 8px 0;
  text-decoration: none;
  transition: color 0.1s ease 0.05s; /* ← igual que los otros hovers */
  line-height: 106%;

}

.project__back-link img,
.project__back-link svg {
  width: 16px;
  height: auto;
  display: inline-block;
  transition: filter 0.1s ease 0.05s; /* ← suaviza también el color del icono */
  /* evita que el icono fuerce salto vertical */
}

.project__back-link:hover{
  color: var(--color-accent);
}

.project__back-link:hover img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(83%) saturate(4081%) hue-rotate(5deg) brightness(99%) contrast(98%);
}

.project__back-link:hover{
  color: var(--color-accent);
}

.project__back-link:hover img {
  filter: brightness(0) saturate(100%) invert(39%) sepia(83%) saturate(4081%) hue-rotate(5deg) brightness(99%) contrast(98%);
}

.footer__heading-project{
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0;                        /* spacing handled by .footer__cta gap */
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: var(--space-2);
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
}

@media (max-width: 767px) {
  .project__back{
    margin-top: 24px;
  }
    
  }
  
  .back_to_work_container{
  max-width: var(--container-max-width);
  width: 100%;
  margin: 24px auto 96px;
  padding: 0 var(--space-6);
  box-sizing: border-box;
  display: flex;
  justify-content: center;
}

/* Small full-width image colocado dentro de contenedor normal */
.full-width-img-small{
  aspect-ratio: auto !important;
  height: auto;
  display: flex;
  justify-content: center;
}

.full-width-img-small .project-media__placeholder{
  height: auto;
  min-height: 0;
  background: transparent;
  border-radius: 0;
}

.prueba {
  max-width: 522px;
  margin-top: 24px;
}

.paywall-image-container {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: inherit;
}

.paywall-image {
  height:auto;
  stroke: 1px black;
}





.landing-button {
  
    margin-bottom:0px;

}

@media (max-width: 1024px) {
  .prueba {
    max-width: 1024px;
  }
   .back_to_work_container{
  margin: 24px auto 48px;
  padding: 0;
  display: block;
}
  .work__cta{
 display: block;
  }
  .back_to_work_container{
    padding: 0 24px;
  }
  .project-section__title{
    text-align: left;
  }
  .project-section__subtitle{
    text-align: left;
  }

  .project-media__placeholder{
    padding: 0 0px;
  }
  

}

.hero_black{
  background-color: #121212;
}

.images-in-row-x3{
  display: flex;
  gap: 24px;
  justify-content: center;
  max-width: 1140px;
  padding: 0 24px;
  
}

/* ========================================
   PROJECT PAGE: BLACK FRIDAY PREVIEW CARDS
   ======================================== */
.cards-with-button {
  
}

.project-card-preview {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 522px;
}

.project-card-preview__image {
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.project-card-preview__image img {
  display: block;
  width: 100%;
  height: auto;
}

.project-card-preview__footer {
  display: flex;
  justify-content: center;
}

.project-card-preview__button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  background: #fff;
  font-weight: 500;
  color: #000;
  transition: 150ms ease;
  white-space: nowrap;
}

.project-card-preview__button span:first-child {
  font-size: 16px;
  line-height: 1;
}

@media (hover: hover) {
  .project-card-preview__button:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-2px);
  }
}

@media (max-width: 1024px) {
  .cards-with-button {
    flex-direction: column;
    align-items: center;
  }
  .project-card-preview {
    max-width: 1024px;
    width: 100%;
  }
  .project-card-preview__image img {
    width: 100%;
  }
  .project-card-preview--first--mobile{
    padding-top:48px;
  }
}


/* ====== Project screens (rows of 3) – keep full image height ====== */
/* Scoped ONLY to the screen galleries used inside project pages, not the Visuals page */
.screen-section-container .screen-row {
  align-items: flex-start;
}

.screen-section-container .screen-section-col {
  overflow: visible;              /* don't clip tall phone mockups */
  display: flex;
  justify-content: center;
}

.screen-section-container .screen-section-col img {
  width: 100%;
  height: auto;                   /* let height adapt to the image */
  object-fit: contain;            /* no cropping */
  display: block;
}
/* ===== NIUS project visuals (don't crop vertical phone mockups) ===== */
.visuals--nius .visuals__grid {
  /* keep same grid as visuals page */
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.visuals--nius .visuals__card {
  /* keep rounded + shadow from visuals */
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.03);
  display: flex;
  justify-content: center;
  align-items: center;
}

.visuals--nius .visuals__image {
  width: 100%;
  height: auto;
  aspect-ratio: auto;     /* override the global 4/3 */
  object-fit: contain;    /* don't crop iPhone pngs */
  display: block;
}

@media (max-width: 1023px) {
  .visuals--nius .visuals__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .visuals--nius .visuals__grid {
    grid-template-columns: 1fr;
  }
}
/* ===== Hard override solo para NIUS visuals ===== */
.visuals.visuals--nius .visuals__card {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.visuals.visuals--nius .visuals__image {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

.visuals.visuals--nius .visuals__card > * {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* ========================================
   PROJECT: NIUS CASE STUDY (dribbble-style)
   ======================================== */
.project-nius .nius-page {
  padding-top: 56px;
  padding-bottom: 96px;
  background: #fff;
}

.project-nius .nius__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* HERO */
.project-nius .nius-hero {
  text-align: center;
  margin-bottom: 96px;
}

.project-nius .nius-hero__logo-block {
  display: inline-flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  margin-bottom: 28px;
}

.project-nius .nius-hero__logo {
  width: 60px;
  height: 60px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 30px;
  font-family: "InterDisplay", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.project-nius .nius-hero__tagline {
  font-size: 13px;
  color: #888;
  max-width: 460px;
}

.project-nius .nius-hero__title {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
  color: #000;
}

.project-nius .nius-hero__subtitle {
  max-width: 600px;
  margin: 0 auto;
  color: #555;
  line-height: 1.7;
  margin-bottom: 40px;
}

.project-nius .nius-hero__image {
  max-width: 760px;
  margin: 0 auto;
}

.project-nius .nius-hero__image img {
  width: 100%;
  display: block;
}

/* LEFT LABEL SECTIONS */
.project-nius .nius-block {
  margin-bottom: 88px;
}

.project-nius .nius__row {
  display: flex;
  gap: 56px;
  align-items: flex-start;
}

.project-nius .nius-block__label {
  width: 140px;
  min-width: 140px;
  font-weight: 600;
  color: #000;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.project-nius .nius-block__body {
  flex: 1;
  max-width: 780px;
}

.project-nius .nius-block__text {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 32px;
}

.project-nius .nius-block__media {
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 45px rgba(0,0,0,0.04);
}

.project-nius .nius-block__media img {
  width: 100%;
  display: block;
}

/* SCREENS GRID */
.project-nius .nius-screens {
  margin-bottom: 88px;
}

.project-nius .nius-screens__title {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.project-nius .nius-screens__subtitle {
  color: #777;
  margin-bottom: 32px;
}

.project-nius .nius-screens__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.project-nius .nius-screens__item {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.05);
}

.project-nius .nius-screens__item img {
  width: 100%;
  display: block;
}

/* FLOW */
.project-nius .nius-flow {
  margin-bottom: 72px;
}

.project-nius .nius-flow__title {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
}

.project-nius .nius-flow__subtitle {
  color: #777;
  margin-bottom: 26px;
}

.project-nius .nius-flow__image img {
  width: 100%;
  border-radius: 12px;
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,0.04);
}

/* RESPONSIVE */
@media (max-width: 1023px) {
  .project-nius .nius__row {
    flex-direction: column;
  }
  .project-nius .nius-block__label {
    width: auto;
    min-width: auto;
  }
  .project-nius .nius-screens__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .project-nius .nius-page {
    padding-top: 40px;
  }
  .project-nius .nius-screens__grid {
    grid-template-columns: 1fr;
  }
  .project-nius .nius-hero__title {
    font-size: 32px;
  }
  .project-nius .nius-hero__image {
    max-width: 100%;
  }
}

/* ========================================
   VISUALS — NIUS SINGLE ROW (6 images)
   ======================================== */
.visuals--nius-row {
  margin: 96px 0;
}

.visuals__grid--6 {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.visuals__grid--6 .visuals__card {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
}

.visuals__grid--6 .visuals__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.visuals__grid--6 .visuals__image:hover {
  transform: scale(1.03);
}

/* Responsive */
@media (max-width: 1023px) {
  .visuals__grid--6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 639px) {
  .visuals__grid--6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* NIUS single row – show full screenshots */
.visuals__grid--6 .visuals__card {
  /* ya no las obligamos a ser cuadradas */
  aspect-ratio: auto;
  /* todas con la misma altura */
  height: 210px;                /* ajusta a 200–240 según te guste */
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
}

.visuals__grid--6 .visuals__image {
  height: 100%;
  width: auto;
  object-fit: contain;          /* que NO recorte */
  display: block;
}
.visuals__grid--6 .visuals__card { height: 230px; background-color: transparent; width: inherit;}



/* Mobile: align logo image left in .full-width-img-small and .project-media__placeholder.prueba */
@media (max-width: 767px) {
  .full-width-img-small {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
  }
  .full-width-img-small .project-media__placeholder.prueba,
  .project-media__placeholder.prueba {
    justify-content: flex-start !important;
    text-align: left !important;
    align-items: flex-start !important;
    margin-left: 0 !important;
  }
}

/* Force NIUS logo to align left on tablets & mobile */
@media (max-width: 1024px) {
  .full-width-img-small,
  .project-media__placeholder.prueba {
    justify-content: flex-start !important;
    text-align: left !important;
    margin-left: 0 !important;
  }
}

/* ========================================
   Project Logos (Pura Ropa)
   ======================================== */
.full-width-img-small {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.project-media__placeholder.prueba {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.project-media__placeholder.prueba img {
  display: block;
  margin: 0 auto;
}

.project-media__placeholder.prueba .logo-main {
  width: 110px;
  margin-bottom: 24px;
}

.project-media__placeholder.prueba .logo-alt {
  width: auto;
  max-width: 180px; /* opcional */
}
/* ========================================
   PAGE-SPECIFIC: MTMAD (DARK THEME)
   ======================================== */
.page-mtmad {
  background-color: #000;
  color: #fff;
}
/* Header over dark */
.page-mtmad .header {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-mtmad .header__nav-link {
  color: rgba(255, 255, 255, 0.55);
}
.page-mtmad .header__nav-link:hover,
.page-mtmad .header__nav-link:focus {
  color: #fff;
}
.page-mtmad .header__nav-link--active {
  color: #fff;
}
/* Mobile nav over dark */
.page-mtmad .header__mobile-nav {
  background: #000;
}
.page-mtmad .header__mobile-link {
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.page-mtmad .header__mobile-link--active {
  color: #fff;
}
/* Project wrapper */
.page-mtmad .project,
.page-mtmad .project-section,
.page-mtmad .visuals {
  background: transparent;
}
.page-mtmad .project__title,
.page-mtmad .project-section__title,
.page-mtmad .project__meta dt {
  color: #fff;
}
.page-mtmad .project__description,
.page-mtmad .project-section__subtitle,
.page-mtmad .project__meta dd {
  color: rgba(255, 255, 255, 0.68);
}
.page-mtmad .project__container,
.page-mtmad .visuals__container {
  border-color: rgba(255, 255, 255, 0.08);
}
/* Cards / visuals over black */
.page-mtmad .visuals__card {
  background: transparent;
  box-shadow: none;
  border: none;
}
.page-mtmad .visuals__image {
  background: transparent;
}
/* Global buttons on dark */
.page-mtmad .work__button,
.page-mtmad .about-cv__button,
.page-mtmad .contact__button {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
}
.page-mtmad .work__button:hover,
.page-mtmad .about-cv__button:hover,
.page-mtmad .contact__button:hover {
  background: #fff;
  color: #000;
  border-color: #fff;
}
/* Footer on dark (if present in this page) */
.page-mtmad .footer__bottom {
  background: #000;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.page-mtmad .footer__copyright {
  color: rgba(255, 255, 255, 0.4);
}
.page-mtmad .footer__social-link img {
  /*filter: brightness(0) invert(1);*/
}

/* ===== Fullscreen Image Modal (Landing Preview) ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.88);
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  border-radius: 8px;
}
/* ===== Fullscreen Image Modal (Landing Preview) ===== */
/* Reemplaza tu .modal__close por este */
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  display: grid;          /* centrar perfecto */
  place-items: center;    /* centra la X en ambos ejes */
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;         /* evita desajustes verticales por métricas de fuente */
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, opacity 120ms ease;
      padding: 0 0 2px 0;
}

/* Asegura que nada herede offsets raros */
.modal__close span,
.modal__close svg,
.modal__close::before,
.modal__close::after {
  transform: translateY(0);
}
@media (hover: hover) {
  .modal__close:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.12);
  }
}
/* Back to Work link: always white text (for project pages like mtmad) */
.back-to-work {
  color: #fff;
}



/* ========================================
   SCROLL REVEAL (data-reveal API)
   Variants: fade-up | fade-in | fade-left | fade-right | fade-down
   Uses [data-reveal], optional [data-reveal-delay], [data-reveal-group].
   Respects prefers-reduced-motion: reveal instantly without animation.
======================================== */
:root {
  --reveal-distance: 16px;
  --reveal-duration: 600ms;
  --reveal-ease: cubic-bezier(.22,.61,.36,1);
}

/* Base hidden state for any element with data-reveal */
[data-reveal] {
  opacity: 0;
  transform: translateZ(0); /* avoid blurriness */
  will-change: transform, opacity;
  transition:
    opacity var(--reveal-duration) var(--reveal-ease),
    transform var(--reveal-duration) var(--reveal-ease);
}

/* Variants initial offsets */
[data-reveal="fade-in"]   { transform: translate3d(0, 0, 0); }
[data-reveal="fade-up"]   { transform: translate3d(0, var(--reveal-distance), 0); }
[data-reveal="fade-down"] { transform: translate3d(0, calc(-1 * var(--reveal-distance)), 0); }
[data-reveal="fade-left"] { transform: translate3d(var(--reveal-distance), 0, 0); }
[data-reveal="fade-right"]{ transform: translate3d(calc(-1 * var(--reveal-distance)), 0, 0); }

/* Revealed state */
.is-revealed {
  opacity: 1 !important;
  transform: translate3d(0,0,0) !important;
}

/* When motion is reduced, show immediately with no transitions */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* === POP-UP CARD EFFECT === */

.work__grid {
  overflow: visible !important; /* permite que sobresalga sin recorte */
}

.work__card {
  position: relative !important;
  z-index: 0 !important;
  transform-origin: center center !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
  will-change: transform, box-shadow !important;
}

/* Efecto hover: escala y sombra 3D */
.work__card:hover,
.work__card:focus {
  transform: scale(1.01) !important; /* zoom perceptible */
  z-index: 10 !important; /* por encima de las demás */
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.04) !important;
}

/* Accesibilidad: igual para focus-visible */
.work__card:focus-visible {
  outline: 2px solid rgba(255, 73, 33, 0.35) !important;
  outline-offset: 3px !important;
  transform: scale(1) !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.05),
    0 8px 20px rgba(0, 0, 0, 0.04) !important;
  z-index: 10 !important;
}

/* Transición suave al volver */
.work__card:not(:hover):not(:focus) {
  transform: scale(1) !important;
  box-shadow: none !important;
}
/* ===============================
   WORK CARD HOVER: DESKTOP-ONLY OVERRIDES
   =============================== */

/* Disable scale/pop effect on tablet & mobile (<=1023px) */
@media (max-width: 1023px) {
  .work__card,
  .work__card:hover,
  .work__card:focus,
  .work__card:focus-visible {
    transform: none !important;
    box-shadow: none !important;
  }
}

/* Enable scale/pop hover effect only on desktop (>=1024px) and hover-capable devices */
@media (min-width: 1024px) and (hover: hover) {
  .work__grid { overflow: visible !important; }
  .work__card { position: relative !important; z-index: 0 !important; transform-origin: center center !important; transition: transform 0.2s ease, box-shadow 0.2s ease !important; will-change: transform, box-shadow !important; }
  .work__card:hover,
  .work__card:focus { transform: scale(1.018) !important; z-index: 10 !important; box-shadow: 0 20px 50px rgba(0,0,0,0.04), 0 8px 20px rgba(0,0,0,0.04) !important; }
  .work__card:focus-visible { outline: 2px solid rgba(255, 73, 33, 0.35) !important; outline-offset: 3px !important; transform: scale(1.06) !important; box-shadow: 0 20px 50px rgba(0,0,0,0.15), 0 8px 20px rgba(0,0,0,0.08) !important; z-index: 10 !important; }
}

@media (max-width: 1023px) {
  .contact__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
    gap: var(--space-3); /* mantiene el espaciado entre botones */
  }

  .contact__actions .contact__button {
    justify-content: flex-start;
    text-align: left;
    margin: 0;
  }
}

/* Desactivar hover en mobile y tablet para project__back-link */
@media (hover: none) {
  .project__back-link:hover {
    color: inherit !important;
    background: none !important;
  }
}

/* CONTACT: forzar visibilidad y color del submit en iOS/mobile */
.contact__submit{
  align-self: flex-start;           /* ya lo tienes, lo mantengo */
  color: var(--color-text-primary) !important;
  -webkit-text-fill-color: var(--color-text-primary);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
}

.contact__submit *{
  color: var(--color-text-primary);
  -webkit-text-fill-color: var(--color-text-primary);
}

/* Aumentar tamaño del texto del botón de envío */
.contact__submit span {
  font-size: calc(var(--font-size-base));
}

@media (max-width: 1023px) {
  .contact__submit span {
    font-size: 16px;
  }
}

.hero__adjustment img{
  max-width: 640px;
  min-height: ;
}

.hero__adjustment-2 img{
  max-width: 1092px;
}

.project-media--bleed.project-media--variable .project-media__placeholder {
  min-height: auto; /* o 0; */
}

@media (max-width: 767px) {
  .landing-button-container {
  
  margin-bottom: 0;
  
}
.work__cta{
  justify-content: left;
  align-items: left;
  text-align: left;

}
.project-card-preview--first--mobile{
  padding-top:0px;

}

}
/* ========================================
   PROJECT LOGOS: mobile fixes
   ======================================== */
@media (max-width: 767px) {
  .project-media__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: visible; /* avoid clipping logo wordmarks on iOS */
  }

  .project-media__placeholder .logo-main,
  .project-media__placeholder .logo-alt {
    max-width: 80%;
    height: auto;
  }
}
/* ========================================
   404 PAGE
   ======================================== */
body.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.page-404 .error {
  flex: 1 0 auto;
}

body.page-404 .footer {
  margin-top: auto;
}

.error {
  width: 100%;
  padding: var(--space-16) 0;
}

.error__container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

.error__content {
  display: grid;
  gap: var(--space-4);
}

.error__badge {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.error__title {
  font-family: "InterDisplay", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4vw, 40px);
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--color-text-primary);
}

.error__description {
  max-width: 520px;
  color: var(--color-text-body);
  font-size: 16px;
  line-height: 1.7;
}

.error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.error__button {
  justify-content: flex-start;
}

.error__button--ghost {
  background-color: #fff;
}

.error__illustration img {
  max-width: 420px;
  width: 100%;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .error__container {
    grid-template-columns: 6fr 5fr;
    gap: var(--space-12);
  }

  .error__illustration img {
    margin-right: 0;
    justify-self: end;
  }
}

@media (max-width: 767px) {
  .error {
    padding: var(--space-12) 0;
  }

  .error__container {
    gap: var(--space-8);
  }

  .error__actions {
    flex-direction: column;
    align-items: flex-start;
  }
}
/* 404 PAGE — Center content vertically & horizontally */
body.page-404 {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.error {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.error__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 24px;
}

.error__actions {
  justify-content: center;
}



  @media (max-width: 1023px) {
   
    .project-media__placeholder img{
      padding: 0 0px;
    }
    .landing-button-container{
      align-items: left;
    }
    .project-section__header--center{
      text-align: left;
      padding: 0 0;
    }
    .landing-button-container{
      padding: 0 0;
    }
    .preview__image img{
      padding: 0 8px;
    }
        .project-media--variable .project-media__placeholder {
        padding: 0 0px;
    }
    .project__meta-row {
    grid-template-columns: 64px 1fr;
    }
    .page-visuals #visuals {
    padding-top: 32px;

}
.preview__image-swg{
  padding: 0 24px;
}
  }

  .work__cta--center{
  text-align:center;
}
  

