/*
Theme Name: Juan Diaz Tech Brand
Theme URI: https://juandiaz.eu
Author: Juan Pedro Diaz Tejera
Description: Landing premium de marca personal tecnologica para desarrollo WordPress, automatizacion y consultoria digital en automocion.
Version: 1.2.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: juandiaz
*/

:root {
  --jd-ink: #030a2d;
  --jd-navy: #071143;
  --jd-panel: #ffffff;
  --jd-panel-2: #f4f7fc;
  --jd-soft: #dce7fb;
  --jd-line: rgba(7, 17, 67, .14);
  --jd-text: #101729;
  --jd-muted: #4d5870;
  --jd-dim: #707b91;
  --jd-accent: #1f5fbf;
  --jd-accent-2: #2f7df0;
  --jd-green: #35d07f;
  --jd-blue: #2f7df0;
  --jd-radius: 14px;
  --jd-max: 1180px;
  --jd-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --jd-display: "Instrument Serif", Georgia, serif;
  --jd-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 14%, rgba(47, 125, 240, .18), transparent 23rem),
    linear-gradient(180deg, rgba(31, 95, 191, .09), transparent 32rem),
    #f7f9fd;
  color: var(--jd-text);
  font-family: var(--jd-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(7,17,67,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7,17,67,.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 72%);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

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

.jd-section {
  padding: 104px 0;
}

.jd-section--tight {
  padding: 84px 0;
}

.jd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--jd-accent);
  font-family: var(--jd-mono);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.jd-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--jd-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(31, 95, 191, .13);
}

.jd-heading {
  max-width: 790px;
  margin: 0;
  color: var(--jd-ink);
  font-family: var(--jd-display);
  font-size: clamp(2.65rem, 5.2vw, 5.75rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: 0;
}

.jd-heading span {
  color: var(--jd-accent);
}

.jd-copy {
  margin: 22px 0 0;
  max-width: 650px;
  color: var(--jd-muted);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.jd-btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--jd-radius);
  background: var(--jd-accent);
  color: #fff;
  font-weight: 800;
  line-height: 1;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}

.jd-btn:hover {
  transform: translateY(-2px);
  background: var(--jd-ink);
}

.jd-btn--ghost {
  background: #fff;
  color: var(--jd-ink);
  border-color: var(--jd-line);
}

.jd-btn--ghost:hover {
  background: var(--jd-panel-2);
  border-color: rgba(31, 95, 191, .34);
  color: var(--jd-accent);
}

.jd-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(7,17,67,.1);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(18px);
  color: var(--jd-text);
}

.jd-nav {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.jd-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: .01em;
}

.jd-brand__mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(31, 95, 191, .28);
  border-radius: var(--jd-radius);
  background: linear-gradient(135deg, rgba(31,95,191,.16), rgba(255,255,255,.8));
  color: var(--jd-accent);
  font-family: var(--jd-mono);
  font-size: .82rem;
}

.jd-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jd-menu a {
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--jd-muted);
  font-size: .92rem;
  font-weight: 700;
}

.jd-menu a:hover {
  background: rgba(31,95,191,.08);
  color: var(--jd-accent);
}

.jd-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  align-items: center;
  padding: 76px 0 54px;
}

.jd-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, .88fr);
  gap: 72px;
  align-items: center;
}

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

.jd-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 46px;
  overflow: hidden;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: var(--jd-line);
}

.jd-proof__item {
  min-height: 104px;
  padding: 20px;
  background: #fff;
}

.jd-proof__num {
  color: var(--jd-ink);
  font-family: var(--jd-display);
  font-size: 2.35rem;
  line-height: 1;
}

.jd-proof__label {
  margin-top: 8px;
  color: var(--jd-muted);
  font-size: .83rem;
  font-weight: 700;
  text-transform: uppercase;
}

.jd-visual {
  position: relative;
  border: 1px solid rgba(7,17,67,.13);
  border-radius: var(--jd-radius);
  background: #fff;
  box-shadow: 0 28px 90px rgba(7, 17, 67, .16);
  overflow: hidden;
}

.jd-visual {
  min-height: 650px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(31,95,191,.12), rgba(255,255,255,.9) 42%),
    #fff;
  overflow: visible;
}

.jd-visual::before {
  content: "";
  position: absolute;
  inset: 24px 24px auto auto;
  width: 74%;
  height: 74%;
  border-radius: 34px;
  background: linear-gradient(135deg, var(--jd-navy), var(--jd-accent));
}

.jd-visual::after {
  content: "";
  position: absolute;
  right: -40px;
  bottom: 84px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(31,95,191,.2);
  border-radius: 50%;
  background: rgba(255,255,255,.35);
}

.jd-visual__halo {
  position: absolute;
  left: 24px;
  top: 74px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(47, 125, 240, .12);
  filter: blur(4px);
}

.jd-visual__photo {
  position: relative;
  z-index: 1;
  width: min(82%, 410px);
  margin: 24px auto 0;
  transform: rotate(-2deg);
}

.jd-visual__photo img {
  width: 100%;
  aspect-ratio: 4 / 5.35;
  object-fit: cover;
  border: 8px solid #fff;
  border-radius: 26px;
  box-shadow: 0 28px 68px rgba(3, 10, 45, .28);
}

.jd-visual__tag {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 190px;
  padding: 14px 16px;
  border: 1px solid rgba(7,17,67,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.9);
  box-shadow: 0 18px 38px rgba(7,17,67,.13);
  backdrop-filter: blur(16px);
}

.jd-visual__tag--top {
  left: -24px;
  top: 92px;
}

.jd-visual__tag--bottom {
  right: -16px;
  bottom: 164px;
}

.jd-visual__tag span,
.jd-visual__panel span {
  color: var(--jd-dim);
  font-family: var(--jd-mono);
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.jd-visual__tag b,
.jd-visual__panel b {
  color: var(--jd-ink);
  font-size: .92rem;
  line-height: 1.25;
}

.jd-visual__panel {
  position: absolute;
  z-index: 2;
  left: 28px;
  right: 28px;
  bottom: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: var(--jd-navy);
  box-shadow: 0 20px 44px rgba(3,10,45,.2);
}

.jd-visual__panel div {
  display: grid;
  gap: 4px;
  padding: 18px;
  background: rgba(255,255,255,.04);
}

.jd-visual__panel span {
  color: rgba(255,255,255,.62);
}

.jd-visual__panel b {
  color: #fff;
}

.jd-command {
  margin: 0 0 18px;
  color: var(--jd-accent);
  font-family: var(--jd-mono);
  font-size: .9rem;
}

.jd-stack {
  display: grid;
  gap: 12px;
}

.jd-stack__row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  border: 1px solid rgba(7,17,67,.1);
  border-radius: 7px;
  background: var(--jd-panel-2);
}

.jd-stack__row b {
  color: var(--jd-ink);
}

.jd-stack__row span {
  color: var(--jd-muted);
  font-family: var(--jd-mono);
  font-size: .78rem;
  text-align: right;
}

.jd-section-head {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(280px, .55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 38px;
}

.jd-title {
  margin: 0;
  color: var(--jd-ink);
  font-family: var(--jd-display);
  font-size: clamp(2rem, 4vw, 3.7rem);
  font-weight: 400;
  line-height: 1;
}

.jd-section-head p {
  margin: 0;
  color: var(--jd-muted);
}

.jd-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.jd-card {
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(7, 17, 67, .07);
}

.jd-service {
  display: grid;
  align-content: space-between;
  min-height: 310px;
  padding: 26px;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.jd-service:hover {
  transform: translateY(-4px);
  border-color: rgba(31, 95, 191, .34);
  background: #fbfdff;
}

.jd-service__top {
  display: grid;
  gap: 16px;
}

.jd-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(31, 95, 191, .24);
  border-radius: var(--jd-radius);
  background: rgba(31, 95, 191, .08);
  color: var(--jd-accent);
}

.jd-service h3,
.jd-project h3 {
  margin: 0;
  color: var(--jd-ink);
  font-size: 1.18rem;
  line-height: 1.18;
}

.jd-service p,
.jd-project p {
  margin: 12px 0 0;
  color: var(--jd-muted);
  font-size: .95rem;
}

.jd-price {
  margin-top: 24px;
  color: var(--jd-accent);
  font-family: var(--jd-mono);
  font-size: .82rem;
  font-weight: 700;
}

.jd-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.jd-project {
  min-height: 286px;
  padding: 28px;
}

.jd-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.jd-chip {
  padding: 5px 9px;
  border: 1px solid rgba(31, 95, 191, .18);
  border-radius: 999px;
  color: var(--jd-muted);
  font-family: var(--jd-mono);
  font-size: .72rem;
}

.jd-project__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--jd-accent);
  font-weight: 800;
}

.jd-project__link:hover {
  color: var(--jd-ink);
}

.jd-about {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(300px, .68fr);
  gap: 56px;
  align-items: start;
}

.jd-about__copy {
  color: var(--jd-muted);
  font-size: 1.05rem;
}

.jd-about__copy p {
  margin: 0 0 18px;
}

.jd-about__copy strong {
  color: var(--jd-ink);
}

.jd-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.jd-skill {
  padding: 7px 10px;
  border: 1px solid var(--jd-line);
  border-radius: 999px;
  color: var(--jd-muted);
  font-family: var(--jd-mono);
  font-size: .78rem;
}

.jd-timeline {
  position: relative;
  display: grid;
  gap: 14px;
}

.jd-time {
  padding: 20px;
}

.jd-time__date {
  margin-bottom: 7px;
  color: var(--jd-accent);
  font-family: var(--jd-mono);
  font-size: .76rem;
  font-weight: 700;
}

.jd-time h3 {
  margin: 0;
  color: var(--jd-ink);
  font-size: 1rem;
}

.jd-time p {
  margin: 8px 0 0;
  color: var(--jd-muted);
  font-size: .9rem;
}

.jd-contact {
  display: grid;
  grid-template-columns: minmax(280px, .65fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.jd-contact-list {
  display: grid;
  gap: 10px;
}

.jd-contact-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease;
}

.jd-contact-link:hover {
  transform: translateX(4px);
  border-color: rgba(31,95,191,.35);
}

.jd-contact-link span {
  display: block;
  color: var(--jd-dim);
  font-family: var(--jd-mono);
  font-size: .72rem;
  text-transform: uppercase;
}

.jd-contact-link b {
  display: block;
  color: var(--jd-ink);
  font-size: .95rem;
}

.jd-form {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.jd-form__row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.jd-field {
  display: grid;
  gap: 7px;
}

.jd-field label {
  color: var(--jd-muted);
  font-family: var(--jd-mono);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.jd-field input,
.jd-field select,
.jd-field textarea {
  width: 100%;
  border: 1px solid var(--jd-line);
  border-radius: var(--jd-radius);
  background: #fff;
  color: var(--jd-ink);
  padding: 13px 14px;
  outline: 0;
}

.jd-field textarea {
  min-height: 138px;
  resize: vertical;
}

.jd-field input:focus,
.jd-field select:focus,
.jd-field textarea:focus {
  border-color: var(--jd-accent);
  box-shadow: 0 0 0 3px rgba(31, 95, 191, .13);
}

.jd-alert {
  padding: 13px 15px;
  border-radius: var(--jd-radius);
  font-weight: 800;
}

.jd-alert--ok {
  border: 1px solid rgba(53, 208, 127, .32);
  background: rgba(53, 208, 127, .1);
  color: #b7ffd5;
}

.jd-alert--error {
  border: 1px solid rgba(31, 95, 191, .38);
  background: rgba(31, 95, 191, .08);
  color: var(--jd-ink);
}

.jd-footer {
  padding: 34px 0;
  border-top: 1px solid var(--jd-line);
  color: var(--jd-dim);
}

.jd-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.jd-footer a {
  color: var(--jd-muted);
}

.jd-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}

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

@media (max-width: 980px) {
  .jd-menu {
    display: none;
  }

  .jd-hero__grid,
  .jd-section-head,
  .jd-about,
  .jd-contact {
    grid-template-columns: 1fr;
  }

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

  .jd-visual {
    max-width: 560px;
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .jd-wrap {
    width: min(100% - 28px, var(--jd-max));
  }

  .jd-section {
    padding: 76px 0;
  }

  .jd-hero {
    padding-top: 56px;
  }

  .jd-hero__grid {
    gap: 38px;
  }

  .jd-proof,
  .jd-services,
  .jd-projects,
  .jd-form__row {
    grid-template-columns: 1fr;
  }

  .jd-proof__item {
    min-height: auto;
  }

  .jd-visual {
    min-height: 600px;
    padding: 18px;
  }

  .jd-visual::before {
    inset: 18px 18px auto auto;
    width: 82%;
    height: 70%;
    border-radius: 26px;
  }

  .jd-visual__photo {
    width: 86%;
    margin-top: 18px;
  }

  .jd-visual__tag {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    min-width: 0;
    margin-top: 12px;
  }

  .jd-visual__panel {
    left: 18px;
    right: 18px;
    bottom: 18px;
    grid-template-columns: 1fr;
  }

  .jd-form,
  .jd-project,
  .jd-service {
    padding: 20px;
  }

  .jd-footer__inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
