/*
Theme Name: SUR AI
Theme URI: https://sur-ai.com
Author: SUR AI
Description: Landing page y blog de SUR AI. Tema liviano y accesible.
Version: 1.2.3
Text Domain: sur-ai
*/

:root {
  --ink: #252b41;
  --ink-soft: #3b425c;
  --violet: #584ef7;
  --lavender: #ad6ee9;
  --sand: #f6e1cb;
  --paper: #fff;
  --muted: #697087;
  --line: rgba(37, 43, 65, .13);
  --shadow: 0 24px 80px rgba(37, 43, 65, .12);
  --radius: 1.4rem;
  --wrap: min(1160px, calc(100% - 2.5rem));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }

.wrap { width: var(--wrap); margin-inline: auto; }
.eyebrow {
  margin: 0 0 1rem;
  color: var(--violet);
  font-size: .79rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1 { max-width: 960px; font-size: clamp(3rem, 7.1vw, 6.2rem); }
h2 { max-width: 820px; font-size: clamp(2.25rem, 4.6vw, 4.25rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); }
p { margin: 0; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .75rem 1rem;
  background: var(--paper);
  color: var(--ink);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: absolute;
  z-index: 20;
  inset: 0 0 auto;
  padding: .85rem 0;
  background: #151D2E;
  color: var(--paper);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.single .site-header,
.page:not(.home) .site-header { position: relative; background: #151D2E; }
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand a { display: inline-flex; align-items: center; }
.brand img { width: 305px; height: auto; display: block; }
.brand__text { font-size: 1.3rem; font-weight: 800; letter-spacing: .04em; }
.site-nav { display: flex; align-items: center; gap: 1.35rem; }
.site-nav a { font-size: .88rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: #d9c2ff; }
.nav-toggle { display: none; border: 0; background: transparent; color: inherit; cursor: pointer; }
.nav-toggle span { display: block; width: 25px; height: 2px; margin: 5px 0; background: currentColor; }

.button {
  display: inline-flex;
  min-height: 3.15rem;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .8rem 1.25rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--violet);
  color: var(--paper);
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.button:hover { background: #7269ff; transform: translateY(-2px); }
.button--light { background: var(--paper); color: var(--ink); }
.button--light:hover { background: var(--sand); }
.button--outline { border-color: rgba(255,255,255,.45); background: transparent; }
.button--outline:hover { background: rgba(255,255,255,.09); }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 9.2rem 0 3rem;
  background:
    radial-gradient(circle at 84% 20%, rgba(173,110,233,.28), transparent 28%),
    radial-gradient(circle at 65% 78%, rgba(88,78,247,.3), transparent 34%),
    var(--ink);
  color: var(--paper);
}
.hero::before {
  content: "";
  position: absolute;
  width: 44rem;
  height: 44rem;
  right: -9rem;
  top: 7rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  box-shadow: 0 0 0 7rem rgba(255,255,255,.025), 0 0 0 14rem rgba(255,255,255,.018);
}
.hero__content { position: relative; z-index: 2; }
.hero h1 strong { color: #a89cff; font-weight: inherit; }
.hero__lead { max-width: 720px; margin-top: 1.35rem; color: #e0e2eb; font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: 1.6rem; }
.hero__note { margin-top: 2rem; color: #bfc3d2; font-size: .84rem; font-weight: 650; letter-spacing: .02em; }

.section { padding: clamp(5rem, 9vw, 8.5rem) 0; }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: var(--paper); }
.section__intro { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .7fr); gap: 3rem 6rem; align-items: end; }
.section__intro p:last-child { color: var(--muted); font-size: 1.12rem; }
.section--ink .section__intro p:last-child { color: #c7cad6; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.principle { padding: 2rem; border-top: 2px solid var(--violet); background: rgba(255,255,255,.72); }
.principle__number { display: block; margin-bottom: 2.8rem; color: var(--violet); font-size: .85rem; font-weight: 800; }
.principle p { margin-top: .85rem; color: var(--muted); }

.section--solutions { padding-block: clamp(4rem, 7vh, 6.5rem); }
.solutions { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; margin-top: 2.5rem; }
.solution {
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  background: rgba(255,255,255,.045);
}
.solution:hover { border-color: rgba(173,110,233,.7); }
.solution__number { color: #a89cff; font-size: .82rem; font-weight: 800; letter-spacing: .08em; }
.solution p { max-width: 36rem; margin-top: .7rem; color: #c7cad6; font-size: .95rem; line-height: 1.55; }

.capabilities { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 3rem; }
.capability { padding: .7rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 700; }

.section--about { background: #eef0f6; }
.partners { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 3.5rem; }
.partner { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-decoration: none; transition: box-shadow .2s ease, transform .2s ease; }
.partner:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.partner__logo { height: 132px; display: flex; align-items: center; justify-content: center; padding: 1.45rem; background: #252b41; }
.partner__logo--light { background: #fff; }
.partner__logo img { width: 100%; max-height: 84px; object-fit: contain; }
.partner__body { min-height: 180px; display: flex; flex-direction: column; padding: 1.35rem; }
.partner__body strong { font-size: 1.12rem; }
.partner__body small { margin-top: .2rem; color: var(--violet); font-weight: 700; }
.partner__body span { margin-top: auto; padding-top: 1.2rem; color: var(--muted); font-size: .9rem; line-height: 1.45; }

.section--projects { background: var(--paper); }
.projects { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; margin-top: 3.5rem; }
.project { position: relative; grid-column: span 2; min-height: 220px; display: flex; flex-direction: column; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: #f7f8fb; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.project:nth-child(4) { grid-column: 2 / span 2; }
.project--featured { grid-column: span 2; background: var(--ink); color: var(--paper); }
.project:hover { border-color: var(--violet); transform: translateY(-4px); }
.project__type { margin-bottom: auto; color: var(--violet); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project strong { max-width: 85%; margin-top: 2.2rem; font-size: 1.25rem; line-height: 1.15; }
.project p { margin-top: .65rem; color: var(--muted); font-size: .89rem; line-height: 1.45; }
.project--featured p { color: #c7cad6; }
.project__arrow { position: absolute; top: 1.4rem; right: 1.5rem; color: var(--violet); font-size: 1.4rem; }

.journal-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.text-link { color: var(--violet); font-weight: 800; }
.section--ideas { padding-block: clamp(3.8rem, 7vh, 5.5rem); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 2.2rem; }
.post-card { display: flex; min-height: 230px; flex-direction: column; padding: 1.55rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); transition: box-shadow .2s ease, transform .2s ease; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.post-card a { text-decoration: none; }
.post-card__meta { margin-bottom: auto; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.post-card h3 { margin-top: 1.7rem; }
.post-card p { margin-top: 1rem; color: var(--muted); }
.post-card__cta { margin-top: 1.4rem; color: var(--violet); font-weight: 800; }

.empty-posts { padding: 2rem; border: 1px dashed rgba(37,43,65,.25); border-radius: var(--radius); color: var(--muted); }
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(320px, 1fr); gap: 3rem 7rem; align-items: start; }
.contact__copy p:not(.eyebrow) { max-width: 34rem; margin-top: 1.6rem; color: #c7cad6; font-size: 1.1rem; }
.contact-form { padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.field { margin-bottom: 1rem; }
.field label { display: block; margin-bottom: .35rem; font-size: .92rem; font-weight: 800; }
.field input, .field textarea { width: 100%; border: 1px solid #cfd2dc; border-radius: .75rem; background: #fff; padding: .78rem .9rem; color: var(--ink); }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--violet); outline: 2px solid rgba(88,78,247,.18); }
.form-status { margin-bottom: 1rem; padding: .85rem 1rem; border-radius: .75rem; background: #e9f8ee; color: #164b29; }
.form-status--error { background: #fff0f0; color: #7d1e1e; }
.privacy-note { margin-top: .9rem; color: var(--muted); font-size: .8rem; }
.honeypot { position: absolute; left: -9999px; }

.site-footer { padding: 2.4rem 0; background: #151D2E; color: #bec2d0; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.site-footer img { width: 235px; }
.site-footer p { font-size: .86rem; }

.page-hero { padding: 11rem 0 5rem; background: var(--ink); color: var(--paper); }
.page-hero h1 { font-size: clamp(2.8rem, 7vw, 5.4rem); }
.archive { padding: 5rem 0 8rem; }
.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: .5rem; }
.pagination a, .pagination span { padding: .55rem .85rem; border: 1px solid var(--line); border-radius: .55rem; text-decoration: none; }
.pagination .current { background: var(--violet); color: var(--paper); }

.article { padding: 5rem 0 8rem; }
.article__inner { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }
.article__meta { margin-bottom: 1rem; color: var(--violet); font-size: .83rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.article h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); }
.article__content { margin-top: 3rem; color: var(--ink-soft); font-size: 1.08rem; }
.article__content > * + * { margin-top: 1.4em; }
.article__content > p:first-child { color: var(--ink); font-size: clamp(1.2rem, 2.5vw, 1.42rem); line-height: 1.55; }
.article__content h2 { margin-top: 1.6em; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.article__content h3 { margin-top: 1.5em; }
.article__content a { color: var(--violet); }
.article__content img { border-radius: 1rem; }
.article__content blockquote { margin-inline: 0; padding: 1.2rem 1.5rem; border-left: 4px solid var(--violet); background: #f3f1ff; }
.article__back { display: inline-block; margin-top: 3.5rem; color: var(--violet); font-weight: 800; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 0; display: none; flex-direction: column; justify-content: center; background: var(--ink); font-size: 1.5rem; }
  .site-nav.is-open { display: flex; }
  .site-nav a { font-size: 1.2rem; }
  .section__intro, .contact { grid-template-columns: 1fr; }
  .principles, .post-grid { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: 1fr; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .projects { grid-template-columns: repeat(2, 1fr); }
  .project, .project:nth-child(4), .project--featured { grid-column: auto; }
  .project--featured { grid-column: 1 / -1; }
  .hero { min-height: 700px; }
}

@media (max-width: 560px) {
  :root { --wrap: min(100% - 1.5rem, 1160px); }
  .brand img { width: 225px; }
  .site-header { padding-block: .75rem; }
  .hero { min-height: 690px; padding: 8.2rem 0 2.5rem; }
  .hero__actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .journal-head, .site-footer__inner { align-items: flex-start; flex-direction: column; }
  .partners, .projects { grid-template-columns: 1fr; }
  .project--featured { grid-column: auto; }
  .partner__body { min-height: 155px; }
}

@media (min-width: 900px) and (min-height: 720px) {
  .section--solutions { min-height: 100svh; display: grid; align-items: center; }
  .section--ideas { min-height: 100svh; display: grid; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
