/* Umarti Digital · Landing de consultoría */
:root {
  --ink: #0B1E2F;        /* azul marino de la marca */
  --ink-2: #213D54;
  --teal: #17BBBD;       /* turquesa de la marca */
  --teal-deep: #0C7173;  /* turquesa legible sobre fondo claro */
  --mist: #EEF4F4;
  --line: #D3DEE0;
  --slate: #475663;
  --white: #FFFFFF;

  --font: "Archivo", system-ui, sans-serif;
  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Tipografía: un solo tipo, contraste por ancho */
h1, h2, h3 { margin: 0; line-height: 1.1; font-stretch: 125%; font-weight: 800; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; font-stretch: 112%; font-weight: 700; }
p { margin: 0 0 1em; }

/* Botones */
.btn {
  display: inline-block;
  background: var(--teal);
  color: var(--ink);
  font-weight: 700;
  font-stretch: 110%;
  text-decoration: none;
  padding: 0.95em 1.6em;
  border: 0;
  border-radius: 999px;
  font-family: inherit;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: #3fd0d2; }
.btn--small { padding: 0.6em 1.15em; font-size: 0.95rem; white-space: nowrap; }
.link { color: var(--white); font-weight: 600; text-underline-offset: 4px; }

/* Barra superior */
.topbar { position: absolute; inset: 0 0 auto 0; z-index: 10; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.topbar__logo img { width: 150px; }
.topbar__nav { display: flex; align-items: center; gap: 28px; }
.topbar__nav a:not(.btn) { color: #C9D6DC; text-decoration: none; font-size: 0.97rem; }
.topbar__nav a:not(.btn):hover { color: var(--white); }

/* Hero */
.hero {
  background: var(--ink);
  color: var(--white);
  padding: 140px 0 0;
  overflow: hidden;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 { max-width: 14ch; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.25rem); color: #C9D6DC; max-width: 52ch; margin-top: 28px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin: 34px 0 0; }
.hero__portrait { margin: 0; position: relative; justify-self: center; }
.hero__portrait picture {
  display: block;
  width: min(380px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid var(--teal);   /* eco del círculo del logo */
  overflow: hidden;
  background: #EAF0F2;
}
.hero__portrait img { width: 100%; height: 100%; object-fit: cover; }
.hero__portrait figcaption { text-align: center; margin-top: 18px; color: #C9D6DC; font-size: 0.95rem; }
.hero__portrait figcaption strong { display: block; color: var(--white); font-stretch: 112%; font-size: 1.05rem; }
.hero__for {
  margin: 64px 0 0;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #C9D6DC;
  font-size: 1rem;
}

/* Secciones */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--mist { background: var(--mist); }
.section--ink { background: var(--ink); color: var(--white); }
.section__lead { color: var(--slate); max-width: 60ch; margin: 18px 0 48px; font-size: 1.1rem; }
.section--ink .section__lead { color: #C9D6DC; }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split__head p { color: var(--slate); margin-top: 18px; max-width: 42ch; }
.section--ink .split__head p { color: #C9D6DC; }

/* Problemas */
.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pains li { padding: 18px 0 18px 36px; border-bottom: 1px solid var(--line); position: relative; font-size: 1.1rem; }
.pains li::before {
  content: ""; position: absolute; left: 0; top: 1.6em; width: 18px; height: 2px; background: var(--teal-deep);
}

/* Servicios */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.service { padding: 32px 36px 28px 0; border-bottom: 1px solid var(--line); }
.service:nth-child(odd) { border-right: 1px solid var(--line); }
.service:nth-child(even) { padding-left: 36px; padding-right: 0; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--slate); margin: 0; max-width: 46ch; }

/* Método: la ruta */
.route {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px;
  position: relative;
}
.route::before {               /* la carretera */
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 14px;
  background: var(--ink-2);
  border-radius: 7px;
}
.route::after {                /* línea de carril */
  content: ""; position: absolute; left: 10px; right: 10px; top: 32px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 18px, transparent 18px 34px);
  opacity: .7;
}
.route__stop { position: relative; z-index: 1; }
.route__num {
  display: grid; place-items: center;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--ink); border: 3px solid var(--teal);
  font-stretch: 125%; font-weight: 800; font-size: 1.5rem; color: var(--teal);
  margin-bottom: 22px;
}
.route__stop h3 { margin-bottom: 10px; }
.route__stop p { color: #C9D6DC; font-size: 0.98rem; margin: 0; }
.principle {
  margin: 72px 0 0; padding: 0 0 0 28px; border-left: 4px solid var(--teal);
  font-size: clamp(1.25rem, 2.3vw, 1.7rem); font-stretch: 112%; font-weight: 600; line-height: 1.35; max-width: 34ch;
}

/* Resultados */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 64px; }
.figures p { margin: 0; color: var(--slate); max-width: 22ch; }
.figures strong {
  display: block; color: var(--teal-deep);
  font-size: clamp(2.6rem, 5vw, 3.8rem); font-stretch: 125%; font-weight: 800; line-height: 1; margin-bottom: 10px;
}
.cases { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.case { border-top: 2px solid var(--ink); padding-top: 20px; }
.case__place { color: var(--teal-deep); font-weight: 600; font-size: 0.95rem; margin-bottom: 8px; }
.case h3 { margin-bottom: 14px; }
.case ul { margin: 0; padding-left: 1.1em; color: var(--slate); }
.case li { margin-bottom: 6px; }
.case li::marker { color: var(--teal-deep); }

/* Presentación comercial */
.deck-cta {
  margin-top: 64px; padding: 28px 32px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px;
  background: var(--ink); color: var(--white); border-radius: 16px;
}
.deck-cta p { margin: 0; font-size: 1.15rem; font-stretch: 108%; font-weight: 600; max-width: 46ch; }

/* Partners y modalidades */
.ticks { list-style: none; margin: 0 0 48px; padding: 0; }
.ticks li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 1.05em; width: 12px; height: 7px;
  border-left: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep); transform: rotate(-45deg);
}
.modes__title { margin-bottom: 16px; }
.modes { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.modes dt { font-weight: 700; margin-bottom: 4px; }
.modes dd { margin: 0; color: var(--slate); }

/* Sobre mí */
.about { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); }
.about__text p { font-size: 1.15rem; max-width: 56ch; }

/* Preguntas frecuentes */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 44px 20px 0; font-weight: 700; font-stretch: 108%; font-size: 1.08rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px;
  border-right: 2.5px solid var(--teal-deep); border-bottom: 2.5px solid var(--teal-deep);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { color: var(--slate); margin: 0 0 22px; max-width: 62ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* Formulario */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form label { display: grid; gap: 6px; font-size: 0.95rem; font-weight: 600; color: #DCE6EA; }
.optional { font-weight: 400; color: #8FA6B2; }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; color: var(--ink);
  background: var(--white); border: 2px solid transparent; border-radius: 10px;
  padding: 12px 14px; width: 100%;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--teal); }
.form .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute !important; left: -9999px; }
.notice { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-weight: 600; }
.notice--ok { background: var(--teal); color: var(--ink); }
.notice--error { background: #F6D5D0; color: #5B1A12; }

/* Pie */
.footer { background: var(--ink); color: #8FA6B2; border-top: 1px solid rgba(255,255,255,.1); padding: 32px 0; font-size: 0.95rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.footer__inner p { margin: 0; }
.footer__inner img { width: 120px; margin-right: auto; }

/* Responsive */
@media (max-width: 960px) {
  .cases { grid-template-columns: 1fr; }
  .route { grid-template-columns: 1fr; gap: 0; }
  .route::before { left: 26px; right: auto; top: 0; bottom: 0; width: 14px; height: auto; }
  .route::after { left: 32px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, var(--teal) 0 18px, transparent 18px 34px); }
  .route__stop { display: grid; grid-template-columns: 66px 1fr; column-gap: 20px; padding-bottom: 32px; }
  .route__num { grid-row: span 2; margin: 0; }
}
@media (max-width: 820px) {
  .topbar__nav a:not(.btn) { display: none; }
  .topbar__logo img { width: 120px; }
  .hero { padding-top: 110px; }
  .hero__grid, .split, .about { grid-template-columns: 1fr; }
  .hero__portrait { justify-self: start; display: flex; align-items: center; gap: 18px; }
  .hero__portrait picture { width: 96px; border-width: 4px; flex: none; }
  .hero__portrait figcaption { text-align: left; margin: 0; }
  .hero__grid { gap: 36px; }
  .hero__text { order: 1; }
  .hero__portrait { order: 2; }
  .services { grid-template-columns: 1fr; }
  .service, .service:nth-child(odd), .service:nth-child(even) { padding: 26px 0; border-right: 0; }
  .figures { grid-template-columns: 1fr; gap: 28px; }
  .form__row, .modes { grid-template-columns: 1fr; }
}
