/* ---------- Tokens (paleta exacta del logo) ---------- */
:root {
  --navy: #004094;
  --navy-deep: #002a63;
  --sky: #4a8fd1;
  --paper: #f7f6f2;
  --panel: #eeece4;
  --paper-line: #ddd9d0;
  --ink: #262a30;
  --ink-soft: #5c6470;

  --display: 'Inter', system-ui, sans-serif;
  --accent-serif: 'Lora', Georgia, serif;
  --body: 'Inter', system-ui, sans-serif;

  --edge: 1px solid var(--paper-line);
  --max: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.eyebrow {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sky);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 246, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: var(--edge);
}

.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo { height: 32px; width: auto; }

.nav__links { display: flex; align-items: center; gap: 1.5rem; }

.nav__link {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.nav__link:hover { color: var(--navy); }

.nav__cta {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.6rem 1.2rem;
  background: var(--navy);
  color: var(--paper);
  border-radius: 2px;
  transition: background 0.2s ease;
}

.nav__cta:hover { background: var(--navy-deep); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5rem 1.5rem 5.5rem;
  border-bottom: var(--edge);
  overflow: hidden;
}

.hero__watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: min(620px, 55vw);
  opacity: 0.08;
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin: 1.1rem 0 1.4rem;
  color: var(--navy);
  text-wrap: balance;
}

.hero__title em {
  font-family: var(--accent-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--sky);
}

.hero__sub {
  max-width: 46ch;
  margin: 0 auto 2rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.95rem 2.1rem;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  background: var(--navy);
  color: var(--paper);
  transition: background 0.2s ease;
}

.btn:hover { background: var(--navy-deep); }

/* ---------- Sections ---------- */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section--alt {
  max-width: none;
  background: var(--panel);
  border-top: var(--edge);
  border-bottom: var(--edge);
}

.section--alt > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.section__head { margin-bottom: 2.5rem; max-width: 60ch; }

.article-label {
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
  display: inline-block;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--paper-line);
  margin-bottom: 0.9rem;
}

.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  letter-spacing: -0.01em;
  color: var(--navy);
  margin-bottom: 0.6rem;
}

.section__sub { color: var(--ink-soft); }

/* ---------- Accordion (Servicios) ---------- */
.accordion { border-top: var(--edge); }

.service-item { border-bottom: var(--edge); }

.service-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0;
}

.service-item summary::-webkit-details-marker { display: none; }

.service-item__name {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2.2vw, 1.5rem);
  color: var(--navy);
}

.service-item__toggle {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.service-item__toggle::before,
.service-item__toggle::after {
  content: '';
  position: absolute;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.service-item__toggle::before {
  left: 0; top: 50%; width: 100%; height: 2px; transform: translateY(-50%);
}

.service-item__toggle::after {
  top: 0; left: 50%; width: 2px; height: 100%; transform: translateX(-50%);
}

.service-item[open] .service-item__toggle::after { opacity: 0; }

.service-item__list {
  list-style: none;
  padding: 0 0 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.service-item__list li {
  color: var(--ink-soft);
  padding-left: 1.3rem;
  position: relative;
  font-size: 0.98rem;
}

.service-item__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sky);
}

/* ---------- Sobre mí ---------- */
.about { max-width: 68ch; }
.about__text { color: var(--ink-soft); margin-bottom: 1.1rem; font-size: 1.02rem; }
.about__email {
  display: inline-block;
  margin-top: 0.6rem;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--sky);
  padding-bottom: 2px;
}

/* ---------- Manual promo ---------- */
.manual-promo {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 3rem;
  align-items: center;
}

.manual-promo__cover {
  border: var(--edge);
  box-shadow: 0 25px 55px -25px rgba(0, 64, 148, 0.28);
}

.manual-promo__text { color: var(--ink-soft); margin-bottom: 1.75rem; max-width: 50ch; }

/* ---------- Contact ---------- */
.contact { max-width: 560px; }

.contact-form { display: flex; flex-direction: column; gap: 1.3rem; }

.field { display: flex; flex-direction: column; gap: 0.5rem; }

.field__label {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.field input, .field textarea {
  background: var(--paper);
  border: var(--edge);
  border-radius: 2px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  resize: vertical;
}

.field input:focus, .field textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}

.contact-form .btn { align-self: flex-start; }

.form-privacy { font-size: 0.8rem; line-height: 1.5; color: var(--ink-soft); }
.form-privacy a { color: var(--navy); font-weight: 600; text-decoration: underline; }

/* Campo señuelo anti-bots: fuera de pantalla, no visible ni enfocable por personas */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin-top: 1.2rem; font-size: 0.9rem; font-weight: 600; }
.form-status--success { color: var(--navy); }
.form-status--error { color: var(--ink); }

.contact__alt { margin-top: 1.8rem; color: var(--ink-soft); font-size: 0.92rem; }
.contact__alt a { color: var(--navy); font-weight: 600; }

/* ---------- Página legal (aviso de privacidad) ---------- */
.legal { max-width: 74ch; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
.legal__updated { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.8rem; }
.legal h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--navy);
  margin: 2.2rem 0 0.7rem;
}
.legal p { color: var(--ink-soft); margin-bottom: 0.9rem; }
.legal ul { color: var(--ink-soft); margin: 0 0 1rem 1.3rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--navy); font-weight: 600; text-decoration: underline; }
.legal strong { color: var(--ink); }

/* ---------- Artículos ---------- */
.article-meta { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1.8rem; }
.article-cta {
  margin-top: 3rem;
  padding: 1.8rem;
  background: var(--panel);
  border: var(--edge);
  border-radius: 2px;
}
.article-cta p { margin-bottom: 1.1rem; }
.article-cta .btn { color: var(--paper); text-decoration: none; }

.article-list { list-style: none; margin: 0; padding: 0; border-top: var(--edge); }
.article-list li { border-bottom: var(--edge); }
.article-list a {
  display: block;
  padding: 1.6rem 0;
  text-decoration: none;
}
.article-list__title {
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 0.3rem;
}
.article-list__desc { display: block; color: var(--ink-soft); font-weight: 400; }

/* ---------- Footer ---------- */
.footer {
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: var(--edge);
}

.footer__logo { height: 26px; margin: 0 auto 1.2rem; }
.footer p + p { margin-top: 0.4rem; }
.footer a { color: var(--navy); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .manual-promo { grid-template-columns: 1fr; }
  .manual-promo__cover { max-width: 260px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .nav__cta { display: none; }
  .service-item__name { font-size: 1.1rem; }
}
