:root {
  --bg: #111411;
  --surface: #1a1e19;
  --line: #333a31;
  --text: #f2f3e9;
  --muted: #afb5a8;
  --accent: #c5f277;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.75 "Manrope",
    Arial,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
input,
textarea {
  -webkit-tap-highlight-color: transparent;
}
.container {
  width: min(1200px, 88%);
  margin: auto;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}
.logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.5px;
}
.logo span {
  color: var(--accent);
}
nav ul {
  display: flex;
  gap: 30px;
  align-items: center;
  list-style: none;
}
nav a {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
nav a:hover,
nav a.active {
  color: var(--accent);
}
nav li:last-child a {
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 12px 22px;
  color: var(--text);
}
nav li:last-child a:hover {
  border-color: var(--accent);
}
.menu-abrir,
.menu-cerrar,
nav li:first-child {
  display: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 64px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 22px;
}
.status-dot {
  display: inline-block;
  background: var(--accent);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}
h1 {
  font-size: clamp(48px, 5.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -4px;
  font-weight: 800;
  margin-bottom: 26px;
}
h1 span {
  color: var(--accent);
}
.hero-description {
  font-size: 23px;
  line-height: 1.45;
  max-width: 440px;
  letter-spacing: -0.5px;
}
.hero-detail {
  color: var(--muted);
  max-width: 450px;
  margin-top: 18px;
  font-size: 14px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 25px;
  border: 1px solid var(--line);
  padding: 14px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 13px;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.btn2 {
  color: #182013;
  background: var(--accent);
  border-color: var(--accent);
}
.btn2:hover {
  background: #d7ffa0;
}
.text-link {
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.text-link span {
  margin-left: 10px;
  color: var(--accent);
}
.hero-portrait {
  height: 460px;
  position: relative;
  border-radius: 130px 12px 12px 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}
.hero-portrait:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.88));
}
.portrait-caption {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 1;
}
.portrait-caption span {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 8px;
}
.portrait-caption strong {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.portrait-index {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--muted);
}
.hero-bottom {
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 22px 0;
  font-size: 11px;
  color: var(--muted);
}
.hero-bottom a {
  color: var(--accent);
}
section {
  padding: 100px 0;
  border-top: 1px solid var(--line);
}
.sub-title {
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 700;
  margin-bottom: 24px;
}
.section-intro {
  color: var(--muted);
  max-width: 450px;
}
.row {
  display: flex;
  justify-content: space-between;
  gap: 70px;
}
.about-col-1 {
  flex: 0 0 35%;
  position: relative;
}
.about-col-1 img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: 12px;
}
.about-col-1:after {
  content: "20+ años en tecnología";
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  padding: 15px 20px;
  border: 1px solid #ffffff30;
  border-radius: 6px;
  background: #111411e8;
  color: var(--accent);
  font-weight: 700;
}
.about-col-2 {
  flex: 1;
  min-width: 0;
}
.about-col-2 > p:not(.eyebrow) {
  color: var(--muted);
  margin-bottom: 18px;
}
.about-amir {
  font-size: 13px;
  border-left: 2px solid var(--accent);
  padding: 8px 0 8px 16px;
}
.about-amir i {
  color: var(--accent);
  margin-right: 6px;
}
.tab-titles {
  display: flex;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  margin: 26px 0 20px;
}
.tab-links {
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  background: none;
  padding: 12px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.tab-links.active-link {
  color: var(--accent);
  border-color: var(--accent);
}
.tab-contents {
  display: none;
}
.tab-contents.active-tab {
  display: block;
}
.tab-contents ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 25px;
}
.tab-contents li {
  font-size: 12px;
  color: var(--muted);
}
.tab-contents li span {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}
.services-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
  counter-reset: service;
}
.services-list > div {
  background: var(--surface);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  position: relative;
  transition:
    border-color 0.2s,
    transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.services-list > div:before {
  counter-increment: service;
  content: "0" counter(service);
  position: absolute;
  top: 24px;
  right: 25px;
  color: #767e6e;
  font-size: 11px;
}
.services-list > div:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}
.services-list i {
  color: var(--accent);
  font-size: 23px;
  margin: 7px 0 28px;
}
.services-list h3 {
  font-size: 19px;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.services-list p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 24px;
}
.services-list a {
  font-size: 11px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  margin-top: auto;
  padding-bottom: 5px;
}
.services-list a:after {
  content: " ↗";
  color: var(--accent);
  margin-left: 12px;
}
.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  margin-top: 40px;
}
.work {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}
.work img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8/5;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--line);
}
.layer {
  padding: 26px;
  position: relative;
}
.layer h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  padding-right: 42px;
  margin-bottom: 9px;
}
.layer p {
  font-size: 13px;
  color: var(--muted);
  max-width: 90%;
}
.layer a {
  position: absolute;
  right: 24px;
  top: 26px;
  background: var(--accent);
  color: var(--bg);
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
}
.layer a:hover {
  background: #d7ffa0;
}
.work-pronto {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 120px 1fr;
  align-items: center;
  background: transparent;
  border-style: dashed;
}
.work-pronto__icono {
  font-size: 35px;
  color: var(--accent);
  text-align: center;
}
.work-pronto .layer {
  padding: 24px 24px 24px 0;
}
.work-pronto .layer h3 {
  font-size: 19px;
}
.work-pronto__etiqueta {
  display: inline-block;
  font-size: 10px;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 4px 12px;
  margin-top: 12px;
}
#portfolio > .container > .btn {
  margin-top: 30px;
}
#contact {
  background: #171c16;
}
.contact-left {
  flex: 1;
  min-width: 0;
}
.contact-right {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 32px;
}
.contact-left > p:not(.eyebrow):not(.section-intro) {
  margin-top: 22px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.contact-left p i {
  color: var(--accent);
  margin-right: 12px;
}
.contact-left .btn {
  margin-top: 26px;
}
.contact-left a:hover {
  color: var(--accent);
}
.contact-left .btn2:hover {
  color: var(--bg);
}
.social-icons {
  display: flex;
  gap: 12px;
  margin-top: 26px;
}
.social-icons a {
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 18px;
  color: var(--muted);
}
form label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
}
form input:not([type="hidden"]):not([type="checkbox"]),
form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 13px 15px;
  border-radius: 5px;
  color: var(--text);
  margin-bottom: 20px;
  font-size: 13px;
  outline: none;
}
form textarea {
  resize: vertical;
  min-height: 130px;
}
form input:focus,
form textarea:focus {
  border-color: var(--accent);
}
form .btn {
  width: 100%;
}
form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
}
.estado-envio {
  font-size: 12px;
  margin-top: 12px;
}
.estado-envio.ok {
  color: var(--accent);
}
.estado-envio.error {
  color: #ff9da6;
}
.copyright {
  border-top: 1px solid var(--line);
  padding: 28px 6%;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  transform: translateY(-200%);
  padding: 10px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 20;
}
.skip-link:focus {
  transform: none;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 5px;
}
@media (min-width: 1000px) {
  .services-list > div:nth-child(4) {
    grid-column: 1/2;
  }
  .services-list > div:nth-child(5) {
    grid-column: 2/4;
  }
}
@media (max-width: 1000px) {
  nav ul {
    gap: 18px;
  }
  .hero-grid {
    gap: 28px;
  }
  h1 {
    letter-spacing: -2.5px;
  }
  .hero-portrait {
    height: 400px;
  }
  .hero-actions {
    gap: 18px;
  }
  .row {
    gap: 35px;
  }
  .services-list {
    grid-template-columns: 1fr 1fr;
  }
  .hero-bottom span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 700px) {
  .container {
    width: 88%;
  }
  nav {
    min-height: 82px;
  }
  .logo {
    font-size: 26px;
  }
  .menu-abrir,
  .menu-cerrar {
    display: block;
    background: none;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: var(--text);
    padding: 8px 12px;
    font-size: 19px;
    cursor: pointer;
  }
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 6%;
    right: 6%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
    z-index: 10;
    box-shadow: 0 20px 50px #0008;
  }
  nav ul.abierto {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }
  nav li:first-child {
    display: block;
    align-self: flex-end;
  }
  nav li:last-child a {
    display: block;
    text-align: center;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 45px 0 28px;
    gap: 35px;
  }
  h1 {
    font-size: clamp(43px, 10.7vw, 70px);
    letter-spacing: -2.5px;
  }
  .hero-description {
    font-size: 21px;
  }
  .hero-detail {
    font-size: 13px;
  }
  .hero-portrait {
    height: 350px;
    border-top-left-radius: 90px;
  }
  .hero-actions {
    gap: 20px;
  }
  .hero-actions .btn {
    padding: 13px 20px;
  }
  .hero-bottom {
    font-size: 10px;
  }
  section {
    padding: 65px 0;
  }
  .row {
    flex-direction: column;
    gap: 35px;
  }
  .about-col-1 {
    flex: auto;
    width: 100%;
  }
  .about-col-1 img {
    aspect-ratio: 5/4;
  }
  .sub-title {
    font-size: 36px;
    letter-spacing: -1.5px;
  }
  .services-list {
    gap: 12px;
  }
  .services-list > div {
    padding: 22px;
  }
  .services-list h3 {
    font-size: 17px;
  }
  .services-list p {
    font-size: 12px;
  }
  .work-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .work-pronto {
    grid-template-columns: 80px 1fr;
  }
  .contact-right {
    padding: 24px;
  }
  .tab-titles {
    gap: 24px;
  }
  .tab-contents ul {
    gap: 18px;
  }
  .eyebrow {
    font-size: 10px;
  }
}
@media (max-width: 400px) {
  .services-list {
    grid-template-columns: 1fr;
  }
  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-portrait {
    height: 300px;
  }
  .tab-titles {
    gap: 18px;
  }
  .tab-links {
    font-size: 12px;
  }
  .tab-contents ul {
    grid-template-columns: 1fr;
  }
  .contact-right {
    padding: 20px;
  }
  .portrait-caption {
    left: 22px;
  }
  .hero-bottom {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none !important;
  }
}

/* La foto conserva su altura al cambiar de pestaña. */
.about-col-1 {
  align-self: flex-start;
}
.about-col-1 img {
  display: block;
}

/* Experiencia y educación se leen en orden, como una trayectoria. */
#experiencia ul,
#educacion ul {
  display: block;
  border-left: 1px solid var(--line);
  margin-left: 5px;
}
#experiencia li,
#educacion li {
  position: relative;
  padding: 0 0 22px 22px;
  font-size: 13px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
#experiencia li:last-child,
#educacion li:last-child {
  padding-bottom: 0;
}
#experiencia li::before,
#educacion li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
#experiencia li span,
#educacion li span {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 14px;
}
@media (max-width: 700px) {
  .about-col-1 {
    align-self: auto;
  }
}
