/*
Theme Name: Nomade World
Theme URI: https://nomadeworld.com
Author: Nomade
Description: Tema de bloques para la plataforma global de acompañamiento migratorio Nomade.
Version: 0.4.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: nomade-world
*/

:root {
  --nomade-shadow: 0 20px 60px rgba(72, 38, 87, 0.12);
}

html {
  scroll-behavior: smooth;
}

body {
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.18em;
}

.nomade-wordmark {
  letter-spacing: -0.065em;
}

.nomade-eyebrow {
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nomade-card {
  box-shadow: var(--nomade-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.nomade-card:hover {
  box-shadow: 0 24px 70px rgba(72, 38, 87, 0.17);
  transform: translateY(-3px);
}

.nomade-route-line {
  position: relative;
}

.nomade-route-line::before {
  background: linear-gradient(90deg, #7b3f91, #c482db, #f5a54a);
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
  top: 1.2rem;
  z-index: 0;
}

.nomade-route-line > * {
  position: relative;
  z-index: 1;
}

.nomade-progress {
  background: linear-gradient(90deg, #7b3f91 0 64%, #e9dff0 64% 100%);
}

.nomade-soft-grid {
  background-image:
    linear-gradient(rgba(123, 63, 145, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 63, 145, 0.055) 1px, transparent 1px);
  background-size: 36px 36px;
}

.nomade-network {
  background:
    radial-gradient(circle at 18% 22%, rgba(196, 130, 219, 0.24), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(38, 138, 131, 0.2), transparent 24%),
    radial-gradient(circle at 58% 82%, rgba(245, 165, 74, 0.15), transparent 28%),
    #18151c;
  overflow: hidden;
  position: relative;
}

.nomade-network::before,
.nomade-network::after {
  content: "";
  pointer-events: none;
  position: absolute;
}

.nomade-network::before {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.44) 1.4px, transparent 1.8px);
  background-size: 24px 24px;
  border-radius: 48% 52% 44% 56%;
  height: min(62vw, 690px);
  opacity: 0.42;
  right: -10%;
  top: -18%;
  transform: rotate(-8deg);
  width: min(72vw, 850px);
}

.nomade-network::after {
  background:
    linear-gradient(28deg, transparent 49.6%, rgba(196, 130, 219, 0.18) 50%, transparent 50.4%),
    linear-gradient(152deg, transparent 49.6%, rgba(38, 138, 131, 0.15) 50%, transparent 50.4%);
  inset: 0;
}

.nomade-glass {
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.nomade-neural-card {
  min-height: 380px;
  overflow: hidden;
  position: relative;
}

.nomade-neural-card::before {
  background-image:
    radial-gradient(circle at 15% 22%, #f5a54a 0 5px, transparent 6px),
    radial-gradient(circle at 75% 18%, #c482db 0 6px, transparent 7px),
    radial-gradient(circle at 48% 46%, #ffffff 0 5px, transparent 6px),
    radial-gradient(circle at 82% 72%, #268a83 0 7px, transparent 8px),
    radial-gradient(circle at 24% 78%, #c482db 0 5px, transparent 6px);
  content: "";
  inset: 0;
  position: absolute;
}

.nomade-neural-card::after {
  background:
    linear-gradient(25deg, transparent 49.5%, rgba(255, 255, 255, 0.25) 50%, transparent 50.5%),
    linear-gradient(145deg, transparent 49.5%, rgba(255, 255, 255, 0.2) 50%, transparent 50.5%),
    linear-gradient(78deg, transparent 49.5%, rgba(255, 255, 255, 0.14) 50%, transparent 50.5%);
  content: "";
  inset: 12%;
  position: absolute;
}

.nomade-map-nodes {
  inset: 0;
  position: absolute;
  z-index: 2;
}

.nomade-map-node {
  backdrop-filter: blur(8px);
  background: rgba(24, 21, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  position: absolute;
}

.nomade-map-node:nth-child(1) { left: 8%; top: 18%; }
.nomade-map-node:nth-child(2) { left: 58%; top: 12%; }
.nomade-map-node:nth-child(3) { left: 38%; top: 48%; }
.nomade-map-node:nth-child(4) { left: 69%; top: 68%; }
.nomade-map-node:nth-child(5) { left: 12%; top: 76%; }

.nomade-neural-copy {
  bottom: 2rem;
  left: 2rem;
  max-width: 72%;
  position: absolute;
  z-index: 3;
}

.nomade-journey {
  --journey-step: 0;
  position: relative;
}

.nomade-journey-track {
  background: linear-gradient(90deg, #7b3f91, #c482db 52%, #f5a54a);
  border-radius: 999px;
  height: 5px;
  left: 8%;
  position: absolute;
  right: 8%;
  top: 46px;
}

.nomade-human {
  height: 62px;
  left: calc(8% - 22px);
  position: absolute;
  top: 4px;
  transform: translateX(calc(var(--journey-step) * ((84vw - 44px) / 4)));
  transition: transform 480ms cubic-bezier(.2,.8,.2,1);
  width: 44px;
  z-index: 3;
}

.nomade-human::before {
  background: #f5a54a;
  border: 3px solid #18151c;
  border-radius: 50%;
  content: "";
  height: 16px;
  left: 14px;
  position: absolute;
  top: 0;
  width: 16px;
}

.nomade-human::after {
  background:
    linear-gradient(75deg, transparent 46%, #f5a54a 47% 55%, transparent 56%) 0 20px/50% 38px no-repeat,
    linear-gradient(105deg, transparent 46%, #f5a54a 47% 55%, transparent 56%) 100% 20px/50% 38px no-repeat,
    linear-gradient(90deg, transparent 42%, #f5a54a 43% 57%, transparent 58%);
  content: "";
  inset: 16px 0 0;
  position: absolute;
}

.nomade-journey-step {
  background: transparent;
  border: 0;
  color: #3f2549;
  cursor: pointer;
  font: inherit;
  padding: 76px 0.25rem 0;
  text-align: center;
}

.nomade-journey-step::before {
  background: #fff;
  border: 3px solid #cbb9d2;
  border-radius: 50%;
  content: "";
  height: 18px;
  left: 50%;
  position: absolute;
  top: 38px;
  transform: translateX(-50%);
  width: 18px;
}

.nomade-journey-step.is-active {
  color: #7b3f91;
  font-weight: 700;
}

.nomade-journey-step.is-active::before {
  background: #7b3f91;
  border-color: #7b3f91;
  box-shadow: 0 0 0 7px rgba(123, 63, 145, 0.15);
}

.nomade-app-shell {
  min-height: 100vh;
}

.nomade-sidebar {
  position: sticky;
  top: 0;
}

.nomade-form input,
.nomade-form select,
.nomade-form textarea {
  background: #fff;
  border: 1px solid #d9cce0;
  border-radius: 14px;
  box-sizing: border-box;
  color: #18151c;
  font: inherit;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  width: 100%;
}

.nomade-form label {
  display: grid;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 0.4rem;
}

.nomade-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nomade-button,
.nomade-google-button {
  align-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 700;
  gap: 0.65rem;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.3rem;
  text-decoration: none;
}

.nomade-button {
  background: #7b3f91;
  color: #fff;
}

.nomade-google-button {
  background: #fff;
  border: 1px solid #d9cce0;
  color: #18151c;
  width: 100%;
}

.nomade-google-button::before {
  background: conic-gradient(from -45deg, #4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
  border-radius: 50%;
  content: "";
  height: 18px;
  width: 18px;
}

.nomade-notice {
  background: #f1eaf4;
  border-left: 4px solid #7b3f91;
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

@media (max-width: 781px) {
  .nomade-route-line::before {
    bottom: 0;
    height: auto;
    left: 1.15rem;
    right: auto;
    top: 0;
    width: 3px;
  }

  .nomade-form-grid {
    grid-template-columns: 1fr;
  }

  .nomade-human {
    transform: translateX(calc(var(--journey-step) * ((84vw - 44px) / 4))) scale(.9);
  }
}

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

  .nomade-card {
    transition: none;
  }
}

/* Nomade 0.3 — una identidad de cuidado y acompañamiento */
:root {
  --nomade-plum: #5f2d6f;
  --nomade-plum-deep: #41204d;
  --nomade-lavender: #c8aecf;
  --nomade-mist: #f1eaf2;
  --nomade-ivory: #fbf8f5;
  --nomade-rose: #eadbd8;
  --nomade-sage: #62796f;
  --nomade-ink-soft: #342d35;
  --nomade-line: #ded2df;
  --nomade-shadow-soft: 0 24px 70px rgba(67, 36, 76, .11);
}

.nomade-wordmark {
  color: var(--nomade-plum) !important;
  font-size: 2.15rem;
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: 1;
  text-decoration: none;
}

.nomade-home-v3 {
  color: var(--nomade-ink-soft);
  overflow: hidden;
}

.nomade-home-v3 h1,
.nomade-home-v3 h2,
.nomade-home-v3 h3 {
  color: var(--nomade-plum-deep);
}

.nomade-hero-care {
  background:
    radial-gradient(circle at 10% 12%, rgba(200, 174, 207, .22), transparent 28%),
    var(--nomade-ivory);
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 5vw, 4rem);
  position: relative;
}

.nomade-hero-care::before {
  background-image: radial-gradient(circle, rgba(95, 45, 111, .18) 1.2px, transparent 1.4px);
  background-size: 21px 21px;
  content: "";
  height: 180px;
  left: -45px;
  opacity: .45;
  position: absolute;
  top: 28px;
  width: 230px;
}

.nomade-hero-columns {
  gap: clamp(2.5rem, 6vw, 6rem);
  position: relative;
}

.nomade-kicker {
  color: var(--nomade-plum);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .13em;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
}

.nomade-soul-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.75rem, 5.3vw, 5.2rem) !important;
  font-weight: 500 !important;
  letter-spacing: -.045em !important;
  line-height: .99 !important;
  margin-bottom: 1.6rem;
  max-width: 760px;
}

.nomade-hero-lead,
.nomade-section-lead {
  color: #5f565f;
  font-size: clamp(1.08rem, 1.5vw, 1.3rem);
  line-height: 1.65;
}

.nomade-hero-lead {
  max-width: 650px;
}

.nomade-hero-actions {
  margin-top: 2rem;
}

.nomade-primary-button .wp-block-button__link {
  background: var(--nomade-plum);
  box-shadow: 0 10px 26px rgba(95, 45, 111, .2);
  color: #fff;
}

.nomade-primary-button .wp-block-button__link:hover {
  background: var(--nomade-plum-deep);
  transform: translateY(-1px);
}

.nomade-secondary-button .wp-block-button__link {
  border-color: var(--nomade-plum) !important;
  color: var(--nomade-plum) !important;
}

.nomade-trust-line {
  color: #746a73;
  font-size: .84rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.nomade-trust-line span {
  color: var(--nomade-sage);
  font-weight: 800;
}

.nomade-family-image {
  margin: 0;
}

.nomade-family-image img {
  aspect-ratio: 1.12 / 1;
  border-radius: 48% 48% 24px 24px;
  box-shadow: var(--nomade-shadow-soft);
  display: block;
  object-fit: cover;
  object-position: 60% center;
  width: 100%;
}

.nomade-care-note {
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(95, 45, 111, .11);
  border-radius: 18px;
  box-shadow: 0 16px 42px rgba(67, 36, 76, .13);
  margin: -74px 24px 0 auto;
  max-width: 290px;
  padding: 1rem 1.2rem;
  position: relative;
}

.nomade-care-note p {
  font-size: .9rem;
  line-height: 1.45;
  margin: 0;
}

.nomade-life-strip {
  background: #fff;
  border-bottom: 1px solid var(--nomade-line);
  border-top: 1px solid var(--nomade-line);
  padding: 1.5rem clamp(1.25rem, 5vw, 4rem);
}

.nomade-life-intro {
  color: var(--nomade-plum-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  margin-bottom: .9rem;
}

.nomade-life-types {
  color: #6f6570;
  display: flex;
  flex-wrap: wrap;
  font-size: .86rem;
  gap: .65rem 1.7rem;
  justify-content: center;
}

.nomade-life-types span::before {
  color: var(--nomade-lavender);
  content: "●";
  font-size: .65rem;
  margin-right: .55rem;
}

.nomade-companion-section,
.nomade-journey-section,
.nomade-world-section,
.nomade-final-care {
  padding: clamp(5rem, 9vw, 8rem) clamp(1.25rem, 5vw, 4rem);
}

.nomade-section-intro {
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: 3.5rem;
}

.nomade-section-intro h2,
.nomade-journey-section > h2,
.nomade-world-section h2,
.nomade-final-care h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 4rem) !important;
  font-weight: 500 !important;
  line-height: 1.08 !important;
}

.nomade-care-grid {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.nomade-care-grid article {
  background: #fff;
  border: 1px solid var(--nomade-line);
  min-height: 210px;
  padding: clamp(1.6rem, 4vw, 2.75rem);
}

.nomade-care-grid article:nth-child(1) { border-radius: 28px 0 0 0; }
.nomade-care-grid article:nth-child(2) { border-radius: 0 28px 0 0; }
.nomade-care-grid article:nth-child(3) { border-radius: 0 0 0 28px; }
.nomade-care-grid article:nth-child(4) { border-radius: 0 0 28px 0; }

.nomade-care-grid article > span {
  color: var(--nomade-lavender);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
}

.nomade-care-grid h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin: 1rem 0 .65rem;
}

.nomade-care-grid p {
  color: #675e67;
  line-height: 1.65;
  margin: 0;
}

.nomade-journey-section {
  background: var(--nomade-mist);
}

.nomade-journey-section > .nomade-section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 650px;
}

.nomade-journey-v3 {
  --journey-step: 0;
  margin: 4rem auto 0;
  max-width: 1040px;
  padding-top: 56px;
  position: relative;
}

.nomade-journey-path {
  background: #d6c6da;
  border-radius: 999px;
  height: 3px;
  left: 9%;
  position: absolute;
  right: 9%;
  top: 74px;
}

.nomade-walker {
  left: 9%;
  position: absolute;
  top: 6px;
  transform: translateX(calc(var(--journey-step) * ((82vw - 30px) / 4)));
  transition: transform .45s cubic-bezier(.2,.8,.2,1);
  z-index: 4;
}

.nomade-walker::before {
  background: #a271ad;
  border-radius: 50%;
  content: "";
  height: 15px;
  left: 7px;
  position: absolute;
  top: 0;
  width: 15px;
}

.nomade-walker::after {
  background: var(--nomade-plum);
  border-radius: 10px 10px 5px 5px;
  content: "";
  height: 31px;
  left: 5px;
  position: absolute;
  top: 17px;
  transform: rotate(5deg);
  width: 19px;
}

.nomade-walker i::before,
.nomade-walker i::after {
  background: var(--nomade-plum);
  border-radius: 3px;
  content: "";
  height: 18px;
  position: absolute;
  top: 43px;
  width: 5px;
}

.nomade-walker i::before { left: 7px; transform: rotate(8deg); }
.nomade-walker i::after { left: 18px; transform: rotate(-8deg); }

.nomade-journey-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  z-index: 2;
}

.nomade-journey-step {
  align-items: center;
  color: #736875;
  display: flex;
  flex-direction: column;
  gap: .8rem;
  padding: 0 .25rem;
}

.nomade-journey-step::before {
  display: none;
}

.nomade-journey-step b {
  align-items: center;
  background: #fff;
  border: 2px solid #cdbbd1;
  border-radius: 50%;
  color: var(--nomade-plum);
  display: flex;
  font-size: .76rem;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.nomade-journey-step.is-active b {
  background: var(--nomade-plum);
  border-color: var(--nomade-plum);
  box-shadow: 0 0 0 7px rgba(95, 45, 111, .1);
  color: #fff;
}

.nomade-journey-step span {
  font-size: .9rem;
}

.nomade-journey-message {
  background: rgba(255, 255, 255, .9);
  border: 1px solid var(--nomade-line);
  border-radius: 22px;
  margin: 2.5rem auto 0;
  max-width: 720px;
  padding: 1.4rem 1.7rem;
  text-align: center;
}

.nomade-journey-message p {
  color: var(--nomade-plum-deep);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  line-height: 1.5;
  margin: 0 0 .55rem;
}

.nomade-journey-message small {
  color: #7b707a;
}

.nomade-world-section {
  background: var(--nomade-ivory);
}

.nomade-world-section .wp-block-columns {
  gap: clamp(3rem, 7vw, 7rem);
}

.nomade-soft-map {
  aspect-ratio: 1.45 / 1;
  background:
    radial-gradient(ellipse at 35% 52%, rgba(200, 174, 207, .52) 0 20%, transparent 21%),
    radial-gradient(ellipse at 66% 43%, rgba(200, 174, 207, .38) 0 25%, transparent 26%),
    radial-gradient(circle, rgba(95, 45, 111, .22) 1px, transparent 1.4px);
  background-size: auto, auto, 17px 17px;
  border: 1px solid var(--nomade-line);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}

.nomade-soft-map::after {
  background: linear-gradient(25deg, transparent 49.7%, rgba(95, 45, 111, .12) 50%, transparent 50.3%);
  content: "";
  inset: 10%;
  position: absolute;
}

.nomade-soft-map span {
  background: rgba(255, 255, 255, .93);
  border: 1px solid rgba(95, 45, 111, .18);
  border-radius: 999px;
  color: var(--nomade-plum-deep);
  font-size: .68rem;
  left: var(--x);
  padding: .3rem .5rem;
  position: absolute;
  top: var(--y);
  transform: translate(-50%, -50%);
  white-space: nowrap;
  z-index: 2;
}

.nomade-final-care {
  background:
    radial-gradient(circle at 50% 120%, rgba(200, 174, 207, .42), transparent 52%),
    #fff;
  border-top: 1px solid var(--nomade-line);
  padding-bottom: clamp(6rem, 10vw, 9rem);
  text-align: center;
}

.nomade-final-care .nomade-section-lead {
  margin-left: auto;
  margin-right: auto;
  max-width: 680px;
}

@media (min-width: 1240px) {
  .nomade-walker {
    transform: translateX(calc(var(--journey-step) * 213px));
  }
}

@media (max-width: 781px) {
  .nomade-hero-care {
    padding-top: 3.5rem;
  }

  .nomade-family-image img {
    aspect-ratio: 1 / .9;
    border-radius: 34% 34% 20px 20px;
  }

  .nomade-care-note {
    margin-right: 12px;
  }

  .nomade-care-grid {
    grid-template-columns: 1fr;
  }

  .nomade-care-grid article,
  .nomade-care-grid article:nth-child(n) {
    border-radius: 20px;
  }

  .nomade-journey-v3 {
    margin-top: 2rem;
    padding-left: 8px;
    padding-top: 0;
  }

  .nomade-journey-path,
  .nomade-walker {
    display: none;
  }

  .nomade-journey-steps {
    gap: .45rem;
  }

  .nomade-journey-step {
    gap: .45rem;
  }

  .nomade-journey-step b {
    height: 30px;
    width: 30px;
  }

  .nomade-journey-step span {
    font-size: .72rem;
  }

  .nomade-soft-map {
    aspect-ratio: 1.1 / 1;
  }
}
