/* Daniel Trujillo Rubio — sitio informativo
   Paleta tomada del logotipo del cliente (turquesa #29D9D9 + mandala gris) */

:root {
  --bg: #FBF9F6;
  --bg-2: #F4F0E9;
  --ink: #17292B;
  --ink-soft: #5C6E70;
  --line: #E4DED4;
  --teal: #0E6F74;
  --teal-dark: #0A4F53;
  --cyan: #29D9D9;
  --shadow: 0 1px 2px rgba(23, 41, 43, .04), 0 12px 32px -18px rgba(23, 41, 43, .28);
  --maxw: 1080px;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- tipografía ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(1.85rem, 4.2vw, 2.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.28rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 400;
  margin: 0 0 .9rem;
}
.lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 62ch; }

/* ---------- cabecera ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 246, .88);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 18px; height: 68px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand img { width: 34px; height: 34px; opacity: .85; }
.brand .name {
  font-size: .78rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--ink); line-height: 1.25; font-weight: 400;
}
.brand .role { display: block; font-size: .6rem; letter-spacing: .34em; color: var(--teal); }

.nav { display: none; gap: 26px; }
.nav a { color: var(--ink-soft); font-size: .86rem; letter-spacing: .04em; }
.nav a:hover { color: var(--teal); text-decoration: none; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 999px;
  font-size: .88rem; letter-spacing: .03em; font-weight: 400;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--teal); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: #fff; color: var(--teal-dark); }
.btn svg { width: 17px; height: 17px; flex: none; }
.top .btn { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 62px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(78% 60% at 78% 8%, rgba(41, 217, 217, .10), transparent 60%);
  pointer-events: none;
}
.hero .mandala {
  position: absolute; right: -22%; top: -16%;
  width: min(660px, 92%); opacity: .3; pointer-events: none;
  animation: spin 240s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero .wrap { position: relative; }
.hero h1 {
  font-size: clamp(2.15rem, 6.4vw, 3.6rem);
  max-width: 17ch; margin-bottom: .55em; font-weight: 300;
}
.hero h1 em { font-style: italic; color: var(--teal); }
.hero .lead { font-size: 1.12rem; max-width: 46ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---------- franja de datos ---------- */
.facts {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.facts .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; padding: 0 22px; align-items: end; }
.fact { padding: 22px 0; }
.fact b {
  display: block; font-family: var(--serif); font-size: 1.75rem;
  font-weight: 400; color: var(--teal); line-height: 1;
}
.fact span { font-size: .8rem; letter-spacing: .08em; color: var(--ink-soft); text-transform: uppercase; }

/* ---------- secciones ---------- */
section { padding: 72px 0; scroll-margin-top: 68px; }
.section-head { max-width: 60ch; margin-bottom: 38px; }

.cards { display: grid; gap: 18px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #D8E6E5; }
.card .num {
  font-family: var(--serif); font-size: .95rem; color: var(--cyan);
  letter-spacing: .1em; display: block; margin-bottom: 14px;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: .96rem; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 34px; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 7px 16px; font-size: .85rem;
}

/* ---------- formación 2026 ---------- */
.feature { background: var(--teal-dark); color: #EAF6F6; position: relative; overflow: hidden; }
.feature .mandala {
  position: absolute; left: -14%; bottom: -46%; width: min(560px, 80%);
  opacity: .16; pointer-events: none;
}
.feature .wrap { position: relative; }
.feature .eyebrow { color: var(--cyan); }
.feature h2 { color: #fff; }
.feature .lead { color: #B9D6D7; }
.feature .grid { display: grid; gap: 26px; margin-top: 34px; }
.dl { margin: 0; }
.dl div { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.dl div:first-child { border-top: 0; }
.dl dt {
  font-size: .7rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 4px;
}
.dl dd { margin: 0; color: #E7F4F4; font-size: .98rem; }
.feature .sub {
  font-family: var(--serif); font-style: italic; font-size: 1.12rem;
  color: var(--cyan); margin: -6px 0 16px;
}
.feature .afiche {
  width: 100%; border-radius: 14px; margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .8);
}
.feature .note {
  border: 1px solid rgba(41, 217, 217, .35); border-radius: 14px;
  padding: 24px; background: rgba(41, 217, 217, .07);
}
.feature .note p { color: #CFE9E9; font-size: .95rem; }

/* ---------- quién soy ---------- */
.about { background: var(--bg-2); }
.about .grid { display: grid; gap: 34px; }
.portrait { display: flex; align-items: center; gap: 18px; margin-bottom: 26px; }
.portrait img {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  object-position: 50% 30%;
  filter: grayscale(1) contrast(1.04); border: 1px solid var(--line);
}
.portrait .who strong { display: block; font-weight: 400; font-size: 1.05rem; }
.portrait .who span { font-size: .82rem; color: var(--ink-soft); letter-spacing: .04em; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.timeline li { position: relative; padding: 0 0 20px 24px; }
.timeline li::before {
  content: ""; position: absolute; left: -4.5px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--cyan);
}
.timeline b { display: block; font-weight: 400; font-size: .78rem; letter-spacing: .14em; color: var(--teal); text-transform: uppercase; }
.timeline span { color: var(--ink-soft); font-size: .96rem; }

.pill-list { list-style: none; margin: 0; padding: 0; }
.pill-list li { padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; color: var(--ink-soft); }
.pill-list li:last-child { border-bottom: 0; }

/* ---------- cita ---------- */
.quote { text-align: center; }
.quote blockquote {
  margin: 0 auto; max-width: 20ch;
  font-family: var(--serif); font-weight: 300; font-style: italic;
  font-size: clamp(1.5rem, 4.4vw, 2.2rem); line-height: 1.3;
}
.quote cite {
  display: block; margin-top: 22px; font-style: normal;
  font-size: .74rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- contacto ---------- */
.contact { background: #fff; border-top: 1px solid var(--line); }
.contact .grid { display: grid; gap: 34px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: 3px; }
.contact-list b { display: block; font-weight: 400; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }
.contact-list a, .contact-list span { font-size: 1rem; color: var(--ink); }

.social { display: flex; gap: 10px; margin-top: 26px; }
.social a {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--ink-soft);
}
.social a:hover { border-color: var(--teal); color: var(--teal); }
.social svg { width: 17px; height: 17px; }

/* ---------- pie ---------- */
footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 30px 0; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; }
footer small { color: var(--ink-soft); font-size: .8rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(14, 111, 116, .6);
}
.wa-float:hover { background: var(--teal-dark); }
.wa-float svg { width: 26px; height: 26px; }

/* ---------- escritorio ---------- */
@media (min-width: 720px) {
  body { font-size: 18px; }
  .facts .wrap { grid-template-columns: repeat(4, 1fr); gap: 26px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .feature .grid { grid-template-columns: 1.15fr .85fr; align-items: start; gap: 44px; }
  .about .grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .contact .grid { grid-template-columns: 1fr 1fr; gap: 56px; }
  .quote blockquote { max-width: 26ch; }
  section { padding: 96px 0; }
  .hero { padding: 108px 0 88px; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .top .btn { display: inline-flex; }
  .wa-float { display: none; }
}
