:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --gray-light: #e8e8e8;
  --gray-mid: #aaaaaa;
  --border: #2a2a2a;
  --card-bg: #111111;
  --content-width: 1240px;
  --panel-card: #151515;
  --copy-small: #d9d9d9;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  overflow-x: hidden;
}

a {
  color: inherit;
}

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

.container,
.shell {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 56px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 56px;
  height: 72px;
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
}

.nav-left,
.nav-right {
  display: flex;
  gap: 32px;
}

.nav-center,
.brand-mark {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", serif;
  font-size: 24px;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.site-nav a {
  text-decoration: none;
  color: var(--white);
  font-size: 15px;
  font-weight: 400;
  opacity: 0.85;
  transition: opacity 0.2s;
}

.site-nav a:hover {
  opacity: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1px;
  border-radius: 999px;
  background: var(--white);
}

.nav-mobile-menu {
  display: none;
}

.site-nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
}

.is-front-page .site-nav {
  background: transparent;
  backdrop-filter: none;
}

.is-front-page .site-nav.nav-scrolled {
  background: rgba(10, 10, 10, 0.5);
  backdrop-filter: blur(10px);
}

.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34vh;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 0%, rgba(10, 10, 10, 0.65) 52%, var(--black) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero-video,
.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-fallback {
  background: radial-gradient(circle at top, rgba(255,255,255,0.15), transparent 36%), linear-gradient(180deg, #121212 0%, #080808 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  mix-blend-mode: difference;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 10vw, 110px);
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--white);
  line-height: 1;
  user-select: none;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  opacity: 0.7;
}

section {
  padding: 104px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(42px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.section-label {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 54px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 52px;
}

.projects-nav {
  padding: 62px 0 48px;
  scroll-margin-top: 82px;
}

.projects-nav .section-label {
  margin-bottom: 28px;
  font-size: 42px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 44px;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}

.projects-grid a {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.projects-grid img {
  width: 60%;
  height: 60%;
  max-width: 60%;
  max-height: 60%;
  object-fit: contain;
}

.sobre-mi,
.nada,
.newsletter,
.proyectos-detail,
.trabajemos {
  background: var(--black);
}

.sobre-mi .inner,
.nada .inner,
.newsletter .inner,
.trabajemos .inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 46px 52px 42px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  background: var(--panel-card);
  border: 1px solid #2b2b2b;
  border-radius: 24px;
  overflow: hidden;
}

.sobre-mi h2,
.nada h2,
.nl-box h3,
.contact-box h3 {
  font-family: "Inter", sans-serif;
  font-size: 52px;
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.06;
  margin: 0 0 22px;
}

.sobre-mi p,
.nada p,
.nl-box p,
.contact-box p,
.home-post-card p,
.page-hero p,
.archive-description,
.prose-block,
.post-excerpt {
  font-size: 16px;
  line-height: 1.42;
  color: var(--copy-small);
}

.sobre-mi .playfair-inline {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 600;
}

.cards-stack,
.cards-stack-nada,
.cards-stack-nl,
.cards-stack-contact {
  position: relative;
  flex-shrink: 0;
}

.cards-stack {
  width: 620px;
  height: 500px;
  margin-top: 20px;
  margin-left: -98px;
}

.cards-stack-nada {
  width: 650px;
  height: 500px;
  margin-top: 20px;
  margin-left: -90px;
}

.cards-stack-nl {
  width: 460px;
  height: 380px;
  margin-left: -78px;
}

.cards-stack-contact {
  width: 430px;
  height: 520px;
}

.trabajemos .cards-stack-contact {
  width: 382px;
}

.card-item {
  position: absolute;
  background: #ffffff10;
  border: 1px solid #ffffff18;
  border-radius: 16px;
  backdrop-filter: blur(4px);
  overflow: hidden;
  transition: transform 0.4s ease, z-index 0.4s ease;
}

.card-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cards-stack .card-item:nth-child(1) { display: none; }
.cards-stack .card-item:nth-child(2) {
  width: 320px;
  height: 438px;
  top: 92px;
  left: 72px;
  transform: rotate(-12deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 28px;
}
.cards-stack .card-item:nth-child(3) {
  width: 372px;
  height: 510px;
  top: 8px;
  left: 248px;
  transform: rotate(12deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 30px;
}

.cards-stack-nada .card-item:nth-child(1) {
  width: 286px;
  height: 394px;
  top: 134px;
  left: 10px;
  transform: rotate(-23deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 28px;
}
.cards-stack-nada .card-item:nth-child(2) {
  width: 328px;
  height: 456px;
  top: 18px;
  left: 184px;
  transform: rotate(-10deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 28px;
}
.cards-stack-nada .card-item:nth-child(3) {
  width: 366px;
  height: 510px;
  top: 36px;
  left: 326px;
  transform: rotate(22deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 30px;
}

.cards-stack-nl .card-item:nth-child(1) {
  width: 268px;
  height: 356px;
  top: 52px;
  left: 4px;
  transform: rotate(-19deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 28px;
}

.cards-stack-nl .card-item:nth-child(2) {
  width: 284px;
  height: 380px;
  top: 34px;
  left: 138px;
  transform: rotate(22deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 28px;
}

.cards-stack-contact .card-item:nth-child(1) {
  width: 382px;
  height: 286px;
  top: 98px;
  left: 0;
  transform: rotate(0deg);
  background: #ffffff;
  border-color: #111111;
  border-radius: 24px;
}

.nl-box {
  background: var(--panel-card);
  border: none;
  border-radius: 12px;
  padding: 0;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.nl-box form {
  width: min(100%, 700px);
}

.nl-box input[type="email"] {
  width: min(100%, 700px);
  background: transparent;
  border: 1.5px solid #d9d9d9;
  border-radius: 14px;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 17px;
  padding: 16px 18px;
  margin-bottom: 14px;
  outline: none;
}

.nl-box input[type="email"]::placeholder {
  color: #bdbdbd;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
}

.checkbox-row input {
  accent-color: #ffffff;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.checkbox-row label {
  font-size: 14px;
  color: #d9d9d9;
}

.nl-box button {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 14px 44px;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.nl-box button:hover {
  opacity: 0.85;
}

.nl-message,
.contact-message {
  min-height: 20px;
  margin-top: 10px;
  font-size: 14px;
  color: #d9d9d9;
}

.home-post-list {
  display: grid;
  gap: 14px;
}

.home-post-card {
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 18px;
}

.home-post-card h4 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
}

.home-post-card a {
  text-decoration: none;
}

.blog-cta {
  margin-top: 18px;
}

.blog-cta a,
.contact-shortcode {
  display: inline-block;
  border: 1.5px solid #d9d9d9;
  border-radius: 12px;
  padding: 12px 18px;
}

.section-cta {
  margin-top: 18px;
}

.section-cta a {
  display: inline-block;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  padding: 10px 18px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form label {
  font-size: 14px;
  color: #d9d9d9;
  margin-bottom: 4px;
  display: block;
}

.contact-form input,
.contact-form textarea {
  width: min(100%, 760px);
  background: transparent;
  border: 1.5px solid #d9d9d9;
  border-radius: 14px;
  color: var(--white);
  font-family: "Inter", sans-serif;
  font-size: 14px;
  padding: 16px 18px;
  outline: none;
  resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #d9d9d9;
  opacity: 0.78;
}

.contact-form textarea {
  min-height: 144px;
}

.contact-form button {
  background: var(--white);
  color: var(--black);
  border: none;
  border-radius: 8px;
  font-family: "Inter", sans-serif;
  font-size: 18px;
  font-weight: 500;
  padding: 14px 44px;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
}

.contact-form button:hover {
  opacity: 0.85;
}

.contact-box {
  max-width: 760px;
  justify-self: start;
}

.hero-contact-links {
  padding-top: 0;
  padding-bottom: 12px;
}

.contact-socials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.contact-socials a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.96);
  color: #111111;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.contact-socials a:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.contact-socials svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: currentColor;
}

.arrow-connector {
  text-align: center;
  padding: 54px 0 0;
  color: #ffffff;
  font-size: 76px;
  line-height: 1;
}

.proyectos-detail {
  padding: 76px 0 96px;
}

.proyecto-item {
  max-width: var(--content-width);
  margin: 0 auto 18px;
  padding: 34px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 72px;
  align-items: center;
  background: var(--panel-card);
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}

.proyecto-item h3 {
  font-family: "Playfair Display", serif;
  font-size: 40px;
  font-weight: 400;
  margin: 0 0 22px;
}

.project-card-img {
  width: 420px;
  height: 420px;
  background: var(--black);
  border-radius: 34px;
  transform: rotate(-20deg);
  overflow: hidden;
}

.project-card-img img {
  width: 103%;
  height: 103%;
  object-fit: contain;
}

.ver-mas-wrap {
  text-align: center;
  padding-top: 52px;
}

.ver-mas-proyectos-btn {
  display: inline-block;
  font-size: 16px;
  color: var(--white);
  text-decoration: none;
  padding: 14px 44px;
  border: 2.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
}

.trabajemos {
  padding: 92px 0 72px;
}

.page-hero {
  padding: 124px 0 40px;
}

.contact-page-hero {
  padding: 150px 0 42px;
  text-align: center;
}

.contact-page-hero h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(60px, 9vw, 96px);
  font-weight: 400;
  line-height: 0.96;
  margin: 0 0 30px;
}

.page-hero h1,
.archive-description h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(52px, 8vw, 90px);
  font-weight: 400;
  line-height: 1;
  margin: 0 0 16px;
}

.page-section {
  padding-top: 24px;
}

.contact-page-section {
  padding: 24px 0 140px;
}

.contact-page-panel {
  background: var(--panel-card);
  border: 1px solid #2b2b2b;
  border-radius: 24px;
  padding: 50px 56px 44px;
  display: grid;
  grid-template-columns: 332px minmax(0, 1fr);
  gap: 44px;
  align-items: center;
}

.contact-page-visual {
  width: 100%;
  max-width: 332px;
  aspect-ratio: 0.86 / 1;
  border-radius: 20px;
  overflow: hidden;
  background: #ffffff;
}

.contact-page-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-page-box {
  max-width: 640px;
}

.contact-page-box h2 {
  font-size: 24px;
  line-height: 1.08;
  font-weight: 500;
  margin: 0 0 16px;
}

.prose-block-wide {
  max-width: 980px;
  margin: 0 auto;
  padding-bottom: 88px;
}

.product-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 32px;
}

.archive-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  padding-bottom: 88px;
}

.archive-list {
  display: grid;
  gap: 18px;
}

.post-card,
.sidebar-widget {
  background: var(--panel-card);
  border: 1px solid #2b2b2b;
  border-radius: 20px;
  padding: 26px;
}

.post-card h2,
.post-card h3,
.sidebar-title,
.prose-block h2,
.prose-block h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
}

.post-card a {
  text-decoration: none;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li + li {
  margin-top: 10px;
}

.tag-cloud-wrap a {
  font-size: 0.9rem !important;
  display: inline-block;
  margin: 0 8px 8px 0;
  text-decoration: none;
}

.single-post {
  max-width: 780px;
  padding-bottom: 88px;
}

.single-taxonomy {
  margin-bottom: 20px;
  color: var(--gray-mid);
}

.prose-block hr {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 40px 0;
}

.site-footer {
  padding: 28px 56px 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  row-gap: 26px;
  align-items: end;
}

.footer-left {
  font-size: 24px;
  color: #ffffff;
  grid-column: 1 / 2;
  grid-row: 1 / 2;
}

.footer-mid {
  display: flex;
  gap: 24px;
  grid-column: 1 / 2;
  grid-row: 2 / 3;
  flex-wrap: wrap;
}

.footer-mid a,
.footer-right a {
  font-size: 14px;
  color: #d9d9d9;
  text-decoration: none;
}

.footer-right {
  display: flex;
  gap: 48px;
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  align-self: end;
  flex-wrap: wrap;
}

@media (max-width: 1024px) {
  .sobre-mi .inner,
  .nada .inner,
  .newsletter .inner,
  .trabajemos .inner,
  .proyecto-item,
  .archive-layout,
  .product-page-grid,
  .service-list {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cards-stack,
  .cards-stack-nada,
  .cards-stack-nl,
  .cards-stack-contact,
  .project-card-img {
    margin: 0 auto;
  }

  .project-card-img {
    transform: none;
  }
}

@media (max-width: 640px) {
  .container,
  .shell,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .site-nav {
    padding: 0 14px;
    height: 54px;
  }

  .nav-left,
  .nav-right {
    display: none;
  }

  .nav-center {
    position: static;
    transform: none;
    margin-right: auto;
    font-size: 20px;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .nav-panel {
    display: block;
  }

  .nav-mobile-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    padding: 14px 18px 16px;
    background: rgba(10, 10, 10, 0.8);
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform-origin: top center;
    transform: scaleY(0.2);
    transition: opacity 0.22s ease, transform 0.24s ease;
  }

  .site-nav.is-open .nav-mobile-menu {
    opacity: 1;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .site-nav.is-open {
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(8px);
  }

  .hero-contact-links {
    padding-bottom: 0;
  }

  .contact-page-hero {
    padding-top: 116px;
    padding-bottom: 34px;
  }

  .contact-page-panel {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 22px 18px 20px;
    border-radius: 18px;
  }

  .contact-page-visual {
    max-width: none;
    aspect-ratio: 1.15 / 1;
    border-radius: 16px;
  }

  .contact-page-box h2 {
    font-size: 24px;
  }

  .contact-socials {
    gap: 10px;
  }

  .contact-socials a {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .hero h1 {
    font-size: clamp(44px, 15vw, 58px);
    letter-spacing: 0.02em;
  }

  section {
    padding: 68px 0;
  }

  .section-label {
    font-size: 34px;
    margin-bottom: 30px;
  }

  .projects-grid {
    gap: 6px 8px;
  }

  .projects-grid a {
    min-height: 62px;
  }

  .projects-grid img {
    width: 90%;
    height: 90%;
    max-width: 90%;
    max-height: 90%;
  }

  .sobre-mi .inner,
  .nada .inner,
  .newsletter .inner,
  .trabajemos .inner,
  .proyecto-item,
  .post-card,
  .sidebar-widget {
    padding: 16px;
    border-radius: 10px;
  }

  .sobre-mi h2,
  .nada h2,
  .nl-box h3,
  .contact-box h3,
  .proyecto-item h3 {
    font-size: 40px;
    line-height: 1.02;
  }

  .cards-stack,
  .cards-stack-nada,
  .cards-stack-nl,
  .cards-stack-contact {
    width: 100%;
    height: 190px;
    overflow: hidden;
  }

  .cards-stack-contact {
    height: auto;
  }

  .cards-stack-contact .card-item,
  .cards-stack-contact .card-item:nth-child(1) {
    position: relative;
    width: 100%;
    height: 240px;
    top: auto;
    left: auto;
    transform: none;
  }

  .project-card-img {
    width: 120px;
    height: 120px;
  }

  .nl-box button,
  .contact-form button {
    width: 100%;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .footer-right {
    flex-direction: column;
    gap: 8px;
  }
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
