/* Agenda360 — asistente virtual
   Identidad propia: paleta bosque-terracota y tipografías Fraunces + Figtree.
   Paleta: bosque #1A2E28, terracota #C45C32, sage, papel verde-grisáceo.
   Tipografías: Fraunces (títulos) y Figtree (texto). */

:root {
  --ink: #1a2e28;
  --ink-soft: #33443e;
  --accent: #c45c32;
  --accent-hover: #a84b28;
  --accent-ink: #8e3d22;
  --accent-soft: #f3e4db;
  --sage: #3f6f5e;
  --sage-deep: #2f5648;
  --sage-soft: #e7eee9;
  --bg: #f3f5f2;
  --paper: #ffffff;
  --section: #e8ede8;
  --muted: #5a635f;
  --line: #d0d8d3;
  --whatsapp: #1c7a44;
  --whatsapp-hover: #156338;
  --header-h: 4.35rem;
  --max: 1120px;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 36px rgba(26, 46, 40, 0.07);
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Figtree", "Segoe UI", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--ink);
}

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

h1,
h2,
h3,
.brand-name {
  font-family: var(--font-serif);
  font-optical-sizing: auto;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.55em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0;
  transform: translateY(-180%);
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.9rem;
  z-index: 200;
  border-radius: 8px;
}

.skip:focus {
  transform: none;
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(26, 46, 40, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1.25rem;
  padding: 0.4rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

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

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 1.32rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
}

.brand-sub {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

#nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

#nav-toggle:checked + .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#nav-toggle:checked + .nav-toggle span:nth-child(2) {
  opacity: 0;
}

#nav-toggle:checked + .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav ul {
  display: flex;
  gap: 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
  background: var(--sage-soft);
}

.nav a.cta {
  background: var(--ink);
  color: var(--bg);
  margin-left: 0.35rem;
}

.nav a.cta:hover {
  background: var(--sage-deep);
  color: var(--bg);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
  font-family: inherit;
}

.btn-accent {
  background: var(--accent);
  color: #fffaf7;
}

.btn-accent:hover {
  background: var(--accent-hover);
  color: #fffaf7;
}

.btn-ink {
  background: var(--ink);
  color: var(--bg);
}

.btn-ink:hover {
  background: var(--sage-deep);
  color: var(--bg);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  color: var(--ink);
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}

.btn-wa {
  background: var(--whatsapp);
  color: #fff;
  border: 0;
}

.btn-wa:hover {
  background: var(--whatsapp-hover);
  color: #fff;
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: currentColor;
  flex-shrink: 0;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4.25rem 0 5rem;
  background:
    radial-gradient(1200px 420px at 90% -10%, rgba(63, 111, 94, 0.14), transparent 60%),
    radial-gradient(800px 320px at -10% 110%, rgba(196, 92, 50, 0.1), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  margin: 0 0 0.7rem;
}

.hero h1 {
  font-size: clamp(2.15rem, 4.4vw, 3.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 0.55em;
  color: var(--ink);
}

.hero .lead {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 1.7rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow);
}

.hero-panel .mark-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.hero-panel .mark-row img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
}

.hero-panel strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-panel span.quiet {
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.hero-points li {
  display: grid;
  grid-template-columns: 1.4rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hero-points li::before {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-soft);
}

/* ---------- Sections ---------- */
.section {
  padding: 4.75rem 0;
  scroll-margin-top: 5.5rem;
}

#inicio {
  scroll-margin-top: 0;
}

.section-alt {
  background: var(--section);
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.intro {
  font-size: 1.08rem;
  max-width: 42rem;
  color: var(--muted);
  margin-bottom: 2.1rem;
}

/* ---------- Servicios ---------- */
.servicios-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.servicio {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem 1.45rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--sage);
}

.servicio h3 {
  font-size: 1.22rem;
  margin-bottom: 0.4em;
}

.servicio p {
  color: var(--muted);
  font-size: 0.98rem;
}

.servicio:last-child {
  grid-column: 1 / -1;
}

.nota-editable {
  margin-top: 1.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Cómo funciona ---------- */
.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  counter-reset: paso;
}

.paso {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.paso .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent);
  display: block;
  line-height: 1;
  margin-bottom: 0.7rem;
  letter-spacing: -0.03em;
}

.paso h3 {
  font-size: 1.15rem;
  margin-bottom: 0.4em;
}

.paso p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---------- Planes ---------- */
.planes-aviso {
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: 12px;
  padding: 0.85rem 1.1rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1.6rem;
  max-width: 46rem;
}

.planes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.plan.destacado {
  border-color: color-mix(in srgb, var(--ink) 35%, var(--line));
  box-shadow: 0 18px 40px rgba(26, 46, 40, 0.1);
  position: relative;
}

.badge {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
}

.plan h3 {
  font-size: 1.4rem;
  margin: 0;
}

.plan .horas,
.plan .precio {
  margin: 0;
}

.plan .horas {
  color: var(--muted);
  font-size: 0.98rem;
}

.plan .precio {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.1;
}

.plan .precio small {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-top: 0.25rem;
}

.plan ul {
  margin: 0.3rem 0 0.8rem;
  padding: 0 0 0 1.1rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  flex: 1;
}

.plan li + li {
  margin-top: 0.35rem;
}

/* ---------- Sobre Karla ---------- */
.sobre-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 3rem;
  align-items: start;
}

.retrato {
  margin: 0;
}

.retrato img {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 50%;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
  background: var(--section);
}

.retrato figcaption {
  margin-top: 0.9rem;
  font-size: 0.92rem;
  color: var(--muted);
  max-width: 16rem;
}

.trayectoria {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  border-left: 2px solid var(--line);
}

.trayectoria li {
  padding: 0 0 1.35rem 1.3rem;
  position: relative;
}

.trayectoria li:last-child {
  padding-bottom: 0;
}

.trayectoria li::before {
  content: "";
  position: absolute;
  left: -0.42rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}

.section-alt .trayectoria li::before {
  box-shadow: 0 0 0 4px var(--section);
}

.trayectoria .cuando {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.15rem;
}

.trayectoria h3 {
  font-size: 1.12rem;
  margin: 0 0 0.2em;
}

.trayectoria p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.formacion {
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

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

/* ---------- Testimonio ---------- */
.testimonio {
  max-width: 46rem;
}

.testimonio blockquote {
  margin: 0;
  padding: 0;
  border: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  font-weight: 500;
  font-style: italic;
  line-height: 1.45;
  color: var(--ink);
}

.testimonio blockquote p {
  margin: 0;
}

.testimonio figcaption {
  margin-top: 1.15rem;
  font-style: normal;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 600;
}

.testimonio cite {
  font-style: normal;
  color: var(--ink);
}

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 0.7rem;
  max-width: 48rem;
}

.faq-list details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1rem 1.2rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--sage);
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 1.2rem 1.15rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Contacto ---------- */
.contacto-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list .value {
  color: var(--ink);
  font-weight: 700;
  font-size: 1.12rem;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent-ink);
}

.contacto-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.social {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  background: var(--paper);
  font-size: 0.92rem;
}

.social a:hover {
  border-color: var(--ink);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #c5d0cb;
  padding: 1.6rem 0;
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.site-footer p {
  margin: 0;
}

.site-footer strong {
  font-family: var(--font-serif);
  font-weight: 600;
  color: #f3f5f2;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid,
  .sobre-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero {
    padding: 2.6rem 0 3.2rem;
  }

  .pasos,
  .planes-grid {
    grid-template-columns: 1fr 1fr;
  }

  .retrato img {
    max-width: 200px;
  }

  .nav-toggle {
    display: flex;
    z-index: 120;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1.25rem 1.2rem;
    display: none;
    box-shadow: var(--shadow);
  }

  #nav-toggle:checked ~ .nav {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav a,
  .nav a.cta {
    margin: 0;
    width: 100%;
    text-align: center;
    border-radius: 10px;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--max), calc(100% - 1.6rem));
  }

  .section {
    padding: 3.2rem 0;
  }

  .servicios-grid,
  .pasos,
  .planes-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }
}

@media (min-width: 961px) {
  .hero-panel {
    margin-left: auto;
    max-width: 26rem;
  }
}
