/*
Theme Name: Rafael Sierra
Theme URI: https://rafaelsierra.com
Author: Rafael Sierra
Description: Portafolio profesional para Rafael Sierra.
Version: 1.4.4
Text Domain: rafaelsierra
*/

:root {
  --ink: #12191b;
  --ink-soft: #263336;
  --paper: #f7f8f6;
  --white: #ffffff;
  --line: #d7dddc;
  --cyan: #087f8c;
  --cyan-dark: #075c64;
  --red: #c73a2d;
  --lime: #c9dc49;
  --muted: #607074;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

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

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--white);
}

.shell {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  right: 0;
  left: 0;
  height: 72px;
  color: var(--white);
  background: rgba(18, 25, 27, 0.94);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(12px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: var(--white);
  font-size: 18px;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ink);
  background: var(--lime);
  font-size: 13px;
  font-weight: 800;
}

.site-nav {
  align-items: center;
}

.site-nav-list {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a {
  color: #edf2f1;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--lime);
}

.site-nav .nav-cta a {
  padding: 10px 16px;
  color: var(--ink) !important;
  background: var(--lime);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  content: "";
  background: currentColor;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(830px, calc(100vh - 36px));
  align-items: end;
  color: var(--white);
  background-color: var(--ink);
}

.hero .wp-block-cover__background {
  background: linear-gradient(90deg, rgba(10, 17, 19, 0.92) 0%, rgba(10, 17, 19, 0.72) 55%, rgba(10, 17, 19, 0.12) 100%) !important;
  opacity: 1 !important;
}

.hero .wp-block-cover__inner-container {
  width: 100%;
}

.hero-inner {
  width: min(720px, 100%);
  padding-top: 150px;
  padding-bottom: 110px;
}

.eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
  color: var(--lime);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  content: "";
  background: currentColor;
}

.hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-role {
  margin: 22px 0 0;
  color: #c8d7d8;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 500;
}

.hero-copy {
  max-width: 650px;
  margin: 22px 0 0;
  color: #e0e8e7;
  font-size: 19px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.actions .wp-block-button__link {
  display: inline-flex;
  min-height: 48px;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid transparent;
}

.actions .button-primary .wp-block-button__link {
  color: var(--ink);
  background: var(--lime);
  border-radius: 0;
}

.actions .button-primary .wp-block-button__link:hover,
.actions .button-primary .wp-block-button__link:focus-visible {
  background: var(--white);
}

.actions .button-secondary .wp-block-button__link {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.48);
  border-radius: 0;
}

.actions .button-secondary .wp-block-button__link:hover,
.actions .button-secondary .wp-block-button__link:focus-visible {
  color: var(--ink);
  background: var(--white);
}

.proof-strip {
  color: var(--white);
  background: var(--cyan-dark);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.proof-item {
  min-height: 118px;
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item:first-child {
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-item strong {
  display: block;
  color: var(--lime);
  font-size: 20px;
}

.proof-item span {
  color: #dbe8e8;
  font-size: 14px;
}

.section {
  padding: 104px 0;
}

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

.section-white {
  background: var(--white);
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section-dark .section-kicker {
  color: var(--lime);
}

.section-heading {
  max-width: 840px;
  margin: 0;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-lead {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
}

.section-dark .section-lead {
  color: #bdc9c8;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 64px;
  border-top: 1px solid var(--line);
}

.service {
  padding: 34px 32px 10px 0;
  border-right: 1px solid var(--line);
}

.service > *:first-child,
.project > *:first-child {
  margin-top: 0;
}

.service + .service {
  padding-left: 32px;
}

.service:last-child {
  padding-right: 0;
  border-right: 0;
}

.service-number {
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
}

.service h3 {
  margin: 36px 0 14px;
  font-size: 24px;
  line-height: 1.2;
}

.service p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.capabilities span {
  padding: 5px 9px;
  color: var(--ink-soft);
  background: #e9eeee;
  font-size: 12px;
  font-weight: 700;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.experience-list {
  margin-top: 60px;
  border-top: 1px solid var(--line);
}

.experience {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 48px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.experience-meta {
  display: flex;
  gap: 8px;
  flex-direction: column;
}

.experience-meta strong {
  color: var(--cyan);
  font-size: 14px;
}

.experience-meta span {
  color: var(--ink-soft);
  font-weight: 750;
}

.experience h3 {
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.2;
}

.experience p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
}

.education-note {
  margin: 32px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-weight: 700;
  border-left: 4px solid var(--red);
}

.clients-band {
  background: #f1f4f3;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.client-card {
  display: flex;
  min-width: 0;
  min-height: 154px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px 18px;
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.client-logo-frame {
  display: flex;
  width: 100%;
  height: 82px;
  align-items: center;
  justify-content: center;
}

.client-card img {
  width: auto;
  max-width: 92%;
  max-height: 78px;
  object-fit: contain;
}

.client-label,
.client-wordmark-card span {
  width: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.client-card-dark {
  color: var(--white);
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.client-card-dark .client-label {
  color: #dbe4e3;
}

.client-wordmark-card {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: column !important;
  gap: 8px;
  background: #fbfcfb;
}

.client-wordmark {
  display: block;
  width: 100%;
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0;
  overflow-wrap: anywhere;
  text-align: center;
}

.project {
  min-height: 280px;
  padding: 32px;
  color: var(--white);
  background: var(--ink-soft);
  border: 1px solid #39484b;
}

.project:nth-child(2),
.project:nth-child(3) {
  background: var(--cyan-dark);
}

.project-type {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project h3 {
  margin: 54px 0 12px;
  font-size: 28px;
  line-height: 1.18;
}

.project p {
  max-width: 500px;
  margin: 0;
  color: #cfdbda;
  font-size: 15px;
}

.project a {
  display: inline-block;
  margin-top: 24px;
  color: var(--white);
  font-size: 14px;
  font-weight: 750;
  text-underline-offset: 5px;
}

.project-note {
  display: inline-block;
  margin-top: 24px;
  color: #afbfbd;
  font-size: 13px;
  font-weight: 700;
}

.process-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.process-list {
  border-top: 1px solid var(--line);
}

.process-step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.process-step strong {
  color: var(--cyan);
}

.process-step h3 {
  margin: 0 0 7px;
  font-size: 20px;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.about-band {
  color: var(--white);
  background: var(--red);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: end;
}

.about-quote {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 750;
  line-height: 1.08;
}

.about-copy {
  margin: 0;
  color: #fff4f0;
}

.contact {
  padding: 100px 0;
  background: var(--lime);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: end;
}

.contact h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1;
}

.contact-email {
  display: inline-block;
  margin-top: 28px;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  text-underline-offset: 7px;
}

.contact-note {
  margin: 0;
  color: #344043;
}

.site-footer {
  padding: 44px 0;
  color: #bbc6c5;
  background: var(--ink);
}

.footer-grid {
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
}

.footer-grid p {
  margin: 0;
  font-size: 14px;
}

.entry-page {
  min-height: 70vh;
  padding: 150px 0 90px;
}

.entry-page h1 {
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.06;
}

.entry-content {
  max-width: 820px;
}

.entry-content img {
  height: auto;
}

.publications-section {
  padding: 104px 0;
  background: #f3f5f4;
}

.publications-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.publication-card {
  min-height: 300px;
  padding: 30px;
  background: #fff;
  border-top: 4px solid var(--lime);
}

.publication-type {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.publication-card h3 {
  margin: 36px 0 14px;
  font-size: 25px;
  line-height: 1.2;
}

.publication-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.publication-card p {
  color: var(--muted);
}

.publication-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-weight: 800;
  text-underline-offset: 5px;
}

@media (max-width: 900px) {
  .hero {
    min-height: 760px;
    background-position: 63% center;
    box-shadow: inset 100vw 0 0 rgba(10, 17, 19, 0.76);
  }

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

  .clients-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .proof-item:nth-child(3) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .service-grid,
  .process-grid,
  .about-grid,
  .publications-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .experience {
    grid-template-columns: 170px 1fr;
    gap: 30px;
  }

  .service {
    padding: 30px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .service + .service {
    padding-left: 0;
  }
}

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

  .site-header {
    height: 64px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    left: 0;
    display: none;
    padding: 12px 20px 20px;
    background: var(--ink);
    border-top: 1px solid #344043;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav-list {
    width: 100%;
    gap: 0;
    align-items: stretch;
    flex-direction: column;
  }

  .site-nav a {
    padding: 12px 0;
  }

  .site-nav .nav-cta a {
    display: block;
    margin-top: 8px;
    padding-inline: 14px !important;
    text-align: center;
  }

  .hero {
    min-height: 700px;
    background-position: 66% center;
  }

  .hero-inner {
    padding-top: 130px;
    padding-bottom: 70px;
  }

  .hero h1 {
    font-size: 52px;
  }

  .hero-copy {
    font-size: 17px;
  }

  .proof-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 30px;
  }

  .client-card {
    min-height: 142px;
    padding: 18px 12px 14px;
  }

  .client-logo-frame {
    height: 72px;
  }

  .client-card img {
    max-height: 68px;
  }

  .experience {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proof-item,
  .proof-item:first-child,
  .proof-item:nth-child(3) {
    min-height: auto;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  .section {
    padding: 76px 0;
  }

  .project {
    min-height: 250px;
    padding: 26px;
  }

  .project h3 {
    margin-top: 38px;
  }

  .process-step {
    grid-template-columns: 42px 1fr;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

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