/* Tokens — del sistema visual aprobado en Claude Design (brain+leaf line-art + Hero navy full-bleed) */
:root {
  --navy: #084B82;
  --navy-light: #0A5A9C;
  --green: #25AE7A;
  --cream: #FAF8F4;
  --ink: #171410;
  --muted: #5A534A;
  --muted-on-cream: #3D3730;
  --border: #DDD5C8;
  --alt-bg: #F1ECE3;
  --on-navy-dim: #C9D9EA;
  --on-navy-lead: #E4ECF4;
  --font-display: 'Lora', Georgia, serif;
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--green); }
*:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--green); color: var(--ink); }

@keyframes rise { from { opacity: 0; transform: translateY(.45em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes leafPop { 0% { opacity: 0; transform: scale(.1) rotate(-40deg); } 70% { opacity: 1; transform: scale(1.15) rotate(6deg); } 100% { opacity: 1; transform: none; } }
@keyframes drawNavy { to { stroke-dashoffset: 0; fill-opacity: 1; } }
@keyframes drawGreen { to { stroke-dashoffset: 0; fill-opacity: 1; transform: none; } }
@keyframes drawDivider { to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

.wrap { max-width: 1280px; margin: 0 auto; padding-left: clamp(20px, 4vw, 40px); padding-right: clamp(20px, 4vw, 40px); box-sizing: border-box; }

.eyebrow {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
}
.eyebrow img { height: 14px; width: auto; }
.hero .eyebrow { color: var(--on-navy-dim); }

/* ===== HERO (navy full-bleed) ===== */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}

.hero-art {
  position: absolute;
  right: -14%;
  bottom: -30%;
  width: min(1100px, 110vw);
  aspect-ratio: 300 / 282;
  pointer-events: none;
  opacity: .16;
}
.hero-art svg { width: 100%; height: 100%; overflow: visible; }
.hero-art path[fill="#084B82"] {
  fill: var(--cream); stroke: var(--cream); stroke-width: 1.1;
  stroke-dasharray: 2200; stroke-dashoffset: 2200; fill-opacity: 0;
  animation: drawNavy 3.2s cubic-bezier(.55,0,.25,1) .3s forwards, fade .1s linear .3s forwards;
}
.hero-art path[fill="#25AE7A"] {
  fill: var(--green); stroke: var(--green); stroke-width: 1.4;
  stroke-dasharray: 700; stroke-dashoffset: 700; fill-opacity: 0;
  transform-box: fill-box; transform-origin: 0% 100%; transform: scale(.2) rotate(-25deg);
  animation: drawGreen 1.4s cubic-bezier(.3,.8,.3,1) 2.6s forwards;
}

.nav {
  position: relative;
  z-index: 2;
  padding-top: 24px;
  padding-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  animation: fade .8s ease both;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 52px; width: auto; }
.brand-word { height: 34px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--green); }

.nav-cta {
  text-decoration: none !important;
  border: 1.5px solid var(--cream);
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 600;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--cream); color: var(--navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--cream); display: block; }

.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(72px, 10vw, 136px);
}

.hero-eyebrow {
  margin: 0 0 28px;
  font-size: 14px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--on-navy-dim);
  animation: rise .7s .1s cubic-bezier(.2,.7,.2,1) both;
}

h1.hero-title {
  margin: 0;
  max-width: 1000px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(48px, 7.4vw, 92px);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: balance;
  color: var(--cream);
}
.hero-title span { display: inline-block; animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.hero-title .word-leaf { white-space: nowrap; }
.hero-title .word-leaf img { display: inline-block; height: .42em; width: auto; margin-left: .08em; vertical-align: baseline; transform-origin: 10% 90%; animation: leafPop .9s 1.5s cubic-bezier(.3,.8,.3,1) both; }

.hero-cols {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(40px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
  align-items: flex-start;
}

.hero-lead-col {
  flex: 1 1 340px;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: rise .8s .95s cubic-bezier(.2,.7,.2,1) both;
}
.hero-lead-col p { margin: 0; font-size: 17px; line-height: 27px; color: var(--on-navy-lead); text-wrap: pretty; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  padding: 17px 28px;
  border-radius: 999px;
  font-size: 16px;
  transition: background .2s ease, color .2s ease, transform .2s ease, border-color .15s ease;
}
.btn-primary { background: var(--green); color: var(--ink); }
.btn-primary:hover { background: var(--cream); color: var(--navy); transform: translateY(-2px); }
.btn-link { font-weight: 600; font-size: 16px; padding: 8px 0; text-decoration: underline; text-underline-offset: 6px; color: var(--cream); }
.btn-link:hover { color: var(--green); }

.hero-quote {
  flex: 1 1 420px;
  max-width: 580px;
  margin: 0 0 0 auto;
  padding: 4px 0 0 32px;
  border-left: 1.5px solid var(--green);
  animation: rise .9s 1.15s cubic-bezier(.2,.7,.2,1) both;
}
.hero-quote p { margin: 0; font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: clamp(21px, 2vw, 25px); line-height: 1.5; color: var(--cream); text-wrap: pretty; }
.hero-quote footer { margin-top: 20px; font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--on-navy-dim); }

/* ===== Divider (hand-drawn line motif) ===== */
.divider { padding: 40px 0 0; }
.divider svg { display: block; width: 100%; height: 56px; overflow: visible; }
.divider path {
  fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  animation: drawDivider 2.4s cubic-bezier(.4,0,.2,1) .2s both;
}
.divider-alt { transform: translateY(-28px); }

/* ===== Section shells ===== */
.section-shell { padding: clamp(64px, 8vw, 112px) 0; display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); }
.section-head-row { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end; justify-content: space-between; }
.section-head-col { flex: 1 1 520px; max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.section-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -.02em; color: var(--navy); text-wrap: balance; }

/* ===== Sobre mí ===== */
.about-cols { display: flex; flex-wrap: wrap; gap: clamp(40px, 6vw, 96px); align-items: flex-start; }
.about-photo-col { flex: 1 1 380px; max-width: 480px; position: relative; }

.avatar-placeholder {
  aspect-ratio: 4/5;
  border-radius: 240px 240px 4px 4px;
  background: var(--border) repeating-linear-gradient(135deg, rgba(8,75,130,.09) 0 1px, transparent 1px 11px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 32px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.photo-frame {
  aspect-ratio: 1/1;
  border-radius: 180px 180px 16px 16px;
  background: var(--border) repeating-linear-gradient(135deg, rgba(8,75,130,.09) 0 1px, transparent 1px 11px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 4vw, 32px);
}

.photo-portrait {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: 140px 140px 8px 8px;
  box-shadow: 0 16px 36px rgba(8,24,41,.18);
}

.about-text-col { flex: 1 1 440px; display: flex; flex-direction: column; gap: 40px; }
.about-lead { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.2vw, 27px); line-height: 1.5; font-weight: 500; color: var(--ink); text-wrap: pretty; }

.facts-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  border-top: 2px solid var(--navy);
}
.fact { padding: 24px 24px 24px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.fact dt { font-size: 14px; color: var(--muted); }
.fact dd { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }

.credentials-cols { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 96px); }
.credentials-col { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; }
.credentials-col h3 { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 24px; line-height: 32px; color: var(--navy); }

.credentials-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.credentials-list li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--border); }
.credentials-list img { flex: none; width: 18px; height: 14px; margin-top: 4px; }
.credentials-list .cred-title { font-size: 17px; font-weight: 600; line-height: 1.45; }
.credentials-list .cred-note { font-size: 15px; line-height: 1.55; color: var(--muted); }
.credentials-list div { display: flex; flex-direction: column; gap: 6px; }

.credentials-compact { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); column-gap: 28px; }
.credentials-compact li { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 15px; line-height: 1.5; }
.credentials-compact img { flex: none; width: 13px; height: 10px; margin-top: 6px; }

/* ===== Servicios ===== */
.section-alt { background: var(--alt-bg); position: relative; }
.servicios-sub { flex: 0 1 340px; margin: 0; font-size: 17px; line-height: 27px; color: var(--muted-on-cream); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 2px;
  background: var(--border);
  border: 2px solid var(--border);
}

.service-card {
  background: var(--cream);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 280px;
  transition: background .3s;
}
.service-card:hover { background: #fff; }
.service-card-top { display: flex; justify-content: space-between; align-items: flex-start; }
.service-glyph {
  width: 112px; height: 84px;
  background-image: url("../img/motif-mark.svg");
  background-repeat: no-repeat;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
  mask-image: radial-gradient(ellipse at center, #000 45%, transparent 72%);
}
.service-num { font-family: var(--font-display); font-size: 18px; font-style: italic; color: var(--navy); }
.service-card h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; color: var(--navy); }
.service-card p { margin: 0; font-size: 16px; line-height: 26px; color: var(--muted-on-cream); }

.service-cta {
  background: var(--navy);
  color: var(--cream);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 280px;
  text-decoration: none;
  transition: background .3s;
}
.service-cta:hover { background: var(--navy-light); color: var(--cream); }
.service-cta .modalidad { font-size: 16px; line-height: 26px; color: var(--on-navy-lead); }
.service-cta .modalidad strong { color: var(--cream); }
.service-cta-label { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: var(--font-display); font-weight: 700; font-size: 28px; line-height: 1.15; }
.service-cta-arrow { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--green); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-body); font-size: 22px; }

/* ===== Testimonios ===== */
.testimonios-wrap { display: flex; flex-wrap: wrap; gap: 48px clamp(40px, 6vw, 96px); }
.testimonios-intro { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 16px; }

.google-badge {
  margin-top: 12px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  text-decoration: none;
  transition: border-color .2s;
}
.google-badge:hover { border-color: var(--navy); color: var(--navy); }
.google-badge .stars { color: var(--navy); letter-spacing: 2px; }

.carousel { flex: 2 1 520px; display: flex; flex-direction: column; gap: 32px; }
.carousel-quote-mark { font-family: var(--font-display); font-weight: 700; font-size: 160px; line-height: .7; height: 72px; color: var(--green); }
.carousel-fig { margin: 0; display: flex; flex-direction: column; gap: 28px; min-height: 240px; }
.carousel-quote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 3.1vw, 38px); line-height: 1.32; letter-spacing: -.01em; color: var(--navy); text-wrap: pretty; animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
.carousel-author { font-size: 16px; font-weight: 600; color: var(--ink); }

.carousel-controls { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.carousel-dots { display: flex; gap: 8px; align-items: center; }
.carousel-dots button { width: 24px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; display: flex; align-items: center; transition: width .4s; }
.carousel-dots button span { display: block; width: 100%; height: 3px; border-radius: 2px; background: var(--border); transition: background .3s; }
.carousel-dots button.active { width: 56px; }
.carousel-dots button.active span { background: var(--navy); }

.carousel-nav { display: flex; gap: 12px; align-items: center; }
.carousel-counter { font-family: var(--font-display); font-style: italic; font-size: 16px; color: var(--muted); margin-right: 8px; }
.carousel-nav button.arrow {
  width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--navy);
  background: transparent; color: var(--navy); cursor: pointer; font-size: 20px;
  transition: background .2s, color .2s;
}
.carousel-nav button.arrow:hover { background: var(--navy); color: var(--cream); }

/* ===== Contacto ===== */
.contacto {
  position: relative;
  background: var(--navy);
  color: var(--cream);
  overflow: hidden;
}
.contacto-watermark { position: absolute; left: -180px; bottom: -220px; width: 720px; opacity: .07; pointer-events: none; }
.contacto-inner { position: relative; display: flex; flex-direction: column; gap: clamp(56px, 7vw, 88px); padding: clamp(72px, 9vw, 128px) 0; }
.contacto-cols { display: flex; flex-wrap: wrap; gap: 56px clamp(40px, 6vw, 96px); align-items: flex-start; }
.contacto-main { flex: 1 1 460px; display: flex; flex-direction: column; gap: 28px; }
.contacto-main .eyebrow { color: var(--on-navy-dim); }
.contacto-title { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(52px, 7.4vw, 96px); line-height: 1; letter-spacing: -.03em; color: var(--cream); }
.contacto-title img { display: inline-block; height: .4em; width: auto; margin-left: .08em; }
.contacto-main > p { margin: 0; max-width: 420px; font-size: 17px; line-height: 27px; color: var(--on-navy-lead); }

.contacto-list { flex: 1 1 400px; max-width: 520px; margin: 0; display: flex; flex-direction: column; }
.contacto-list > div { display: grid; grid-template-columns: minmax(110px, 150px) 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid rgba(250,248,244,.22); }
.contacto-list dt { font-size: 14px; line-height: 1.5; color: var(--on-navy-dim); }
.contacto-list dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.contacto-list a { color: var(--cream); text-decoration: underline; text-decoration-color: rgba(250,248,244,.4); }
.contacto-list a:hover { color: var(--green); }
.contacto-risk-note { display: block; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--on-navy-dim); }

.contact-form {
  display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: flex-end;
  padding-top: 40px; border-top: 1px solid rgba(250,248,244,.22);
}
.contact-form label { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; color: var(--on-navy-dim); }
.contact-form label.wide { flex: 2 1 320px; }
.contact-form input, .contact-form textarea {
  font: inherit; font-size: 17px; color: var(--cream); background: transparent;
  border: 0; border-bottom: 1.5px solid rgba(250,248,244,.5); padding: 10px 0; border-radius: 0;
  resize: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-bottom-color: var(--green); outline: none; }
.contact-form button[type="submit"] {
  font: inherit; font-weight: 600; font-size: 16px; color: var(--cream); background: transparent;
  border: 1.5px solid var(--cream); padding: 14px 26px; border-radius: 999px; cursor: pointer;
  transition: background .2s, color .2s;
}
.contact-form button[type="submit"]:hover { background: var(--cream); color: var(--navy); }
.form-note { flex-basis: 100%; margin: 0; font-size: .9rem; color: var(--green); }

/* ===== Footer ===== */
.site-footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 24px 40px; padding: 48px 0; font-size: 14px; line-height: 1.5; color: var(--muted);
}
.footer-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.footer-brand img:first-child { height: 44px; width: auto; }
.footer-brand img:last-child { height: 28px; width: auto; }
.site-footer p { margin: 0; max-width: 520px; }
.site-footer a { color: var(--navy); }

/* ===== Responsive ===== */
@media (max-width: 899px) {
  .nav-links { display: none; }
}
@media (min-width: 900px) {
  .nav-toggle { display: none !important; }
}
@media (max-width: 899px) {
  .nav-toggle { display: flex; }
  .nav-links.open {
    display: flex;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--navy-light);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem clamp(20px,4vw,40px) 1.5rem;
    gap: 1rem;
    z-index: 5;
  }
  .hero-quote { margin-left: 0; }
  .credentials-compact { columns: 1; grid-template-columns: 1fr; }
}
