/* === MORAIRATOP — Sistema de diseño compartido === */

:root {
  --color-bone:      #FBF6E9;
  --color-paper:     #F2EAD3;
  --color-sand:      #E8DDC0;
  --color-stone:     #C9BB99;
  --color-charcoal:  #1F1B14;
  --color-graphite:  #4A4232;
  --color-pebble:    #7E7560;
  --color-sea:       #0F3A4D;
  --color-sea-dark:  #082530;
  --color-terracotta:#C45A3F;
  --color-terracotta-dark:#9A4128;
  --color-olive:     #5E6F3B;
  --color-ochre:     #B8893C;
  --color-stamp:     #B23A28;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --font-hand:    'Caveat', cursive;

  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem;
  --s-5: 1.5rem; --s-6: 2rem;  --s-7: 3rem;   --s-8: 4rem;
  --s-9: 6rem;   --s-10: 9rem;  --s-11: 12rem;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--color-charcoal);
  background: var(--color-bone);
  -webkit-font-smoothing: antialiased;
  background-image:
    url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.12   0 0 0 0 0.10   0 0 0 0 0.08   0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

img { max-width: 100%; display: block; }
a { color: var(--color-sea); text-decoration: none; transition: color .2s; }
a:hover { color: var(--color-sea-dark); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  letter-spacing: -.025em;
  line-height: .95;
  color: var(--color-charcoal);
  margin: 0;
}

p { margin: 0 0 1em; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 var(--s-5); }
.container--narrow { max-width: 880px; }

/* === ELEMENTOS GRÁFICOS === */
.handline {
  position: relative;
  display: inline-block;
}
.handline::after {
  content: "";
  position: absolute;
  left: -2%;
  bottom: -.18em;
  width: 104%;
  height: .35em;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'><path d='M2 8 Q 50 2, 100 7 T 198 4' stroke='%23C45A3F' stroke-width='2.5' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  z-index: -1;
}

.handcircle {
  position: relative;
  display: inline-block;
  padding: 0 .15em;
}
.handcircle::before {
  content: "";
  position: absolute;
  inset: -.25em -.5em;
  border: 2px solid var(--color-stamp);
  border-radius: 50%;
  transform: rotate(-3deg) scaleX(1.15);
  opacity: .85;
}

.handnote {
  font-family: var(--font-hand);
  font-size: 1.45rem;
  color: var(--color-stamp);
  line-height: 1.15;
  transform: rotate(-2deg);
  display: inline-block;
}

.stamp {
  display: inline-block;
  padding: 8px 18px;
  border: 2.5px solid var(--color-stamp);
  border-radius: 4px;
  color: var(--color-stamp);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .25em;
  text-transform: uppercase;
  transform: rotate(-7deg);
  opacity: .82;
  background: rgba(178, 58, 40, .04);
  position: relative;
}
.stamp::before, .stamp::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid var(--color-stamp);
  border-radius: 2px;
  pointer-events: none;
}

.thread {
  display: block;
  width: 100%;
  height: 12px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12' preserveAspectRatio='none'><path d='M0 6 Q 200 1, 400 7 T 800 5 T 1200 6' stroke='%23C9BB99' stroke-width='1.5' fill='none'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  margin: var(--s-9) 0;
}

/* === HEADER === */
.mor-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--color-bone);
  border-bottom: 1px solid var(--color-stone);
}
.mor-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  gap: var(--s-5);
}
.mor-logo {
  display: flex; align-items: baseline; gap: 10px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 80;
  font-weight: 500;
  font-size: 26px;
  color: var(--color-charcoal);
  letter-spacing: -.03em;
  line-height: 1;
}
.mor-logo .ampersand {
  font-family: var(--font-hand);
  font-size: 22px;
  color: var(--color-stamp);
  font-weight: 500;
  transform: rotate(-5deg) translateY(-2px);
  display: inline-block;
}
.mor-logo small {
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--color-pebble);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.mor-nav {
  display: flex; gap: 30px;
  font-size: 14.5px; font-weight: 500;
}
.mor-nav a {
  color: var(--color-charcoal);
  padding: 6px 0;
  position: relative;
}
.mor-nav a:hover::after,
.mor-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 6px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'><path d='M2 4 Q 25 1, 50 3 T 98 3' stroke='%23C45A3F' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>");
  background-size: 100% 100%;
}
.mor-lang {
  display: flex; gap: 6px; font-size: 13px; color: var(--color-pebble);
  font-family: var(--font-body); font-weight: 500;
  letter-spacing: .1em;
}
.mor-lang a { color: var(--color-pebble); }
.mor-lang a.is-active { color: var(--color-charcoal); font-weight: 700; }
@media (max-width: 880px) { .mor-nav { display: none; } }

/* === BREADCRUMB === */
.breadcrumb {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--color-pebble);
  letter-spacing: .04em;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--color-stone);
}
.breadcrumb a { color: var(--color-pebble); }
.breadcrumb a:hover { color: var(--color-charcoal); }
.breadcrumb__sep {
  color: var(--color-stone);
  margin: 0 var(--s-3);
}
.breadcrumb__current { color: var(--color-charcoal); font-weight: 600; }

/* === CHAPTER HEAD (reutilizable) === */
.chapter__head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-7);
  align-items: end;
  margin-bottom: var(--s-8);
}
.chapter__num {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144;
  font-weight: 300;
  font-size: clamp(7rem, 14vw, 12rem);
  line-height: .8;
  color: var(--color-stone);
  letter-spacing: -.05em;
  user-select: none;
}
.chapter__title-block { padding-bottom: var(--s-3); }
.chapter__eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--s-3);
}
.chapter__title {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 100;
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: .95;
  margin: 0 0 var(--s-4);
}
.chapter__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 80, "WONK" 1, "opsz" 100;
  color: var(--color-terracotta);
}
.chapter__lead {
  font-size: 19px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 24;
  color: var(--color-graphite);
  max-width: 580px;
  line-height: 1.45;
  margin: 0;
}
@media (max-width: 880px) {
  .chapter__head { grid-template-columns: 1fr; gap: var(--s-3); }
}

/* === CALLOUT (avisos) === */
.callout {
  background: var(--color-paper);
  border-left: 3px solid var(--color-ochre);
  padding: var(--s-5);
  margin: var(--s-6) 0;
  border-radius: 0 4px 4px 0;
}
.callout--tip { border-left-color: var(--color-olive); }
.callout--carlos { border-left-color: var(--color-sea); }
.callout__title {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-terracotta);
  margin-bottom: var(--s-2);
}
.callout--tip .callout__title { color: var(--color-olive); }
.callout--carlos .callout__title { color: var(--color-sea); }
.callout p {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 24;
  font-size: 18px;
  color: var(--color-charcoal);
  margin: 0;
  line-height: 1.5;
}

/* === DATA BOX (caja datos rápidos) === */
.data-box {
  background: var(--color-bone);
  border: 1px solid var(--color-stone);
  border-radius: 2px;
  padding: var(--s-5) var(--s-6);
  position: relative;
}
.data-box::before {
  content: "DATOS";
  position: absolute;
  top: -10px;
  left: var(--s-5);
  background: var(--color-bone);
  padding: 0 10px;
  font-family: var(--font-body);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .25em;
  color: var(--color-pebble);
}
.data-box__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
  font-size: 26px;
  font-weight: 500;
  margin: 0 0 var(--s-5);
}
.data-box dl {
  margin: 0;
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 12px var(--s-4);
  font-size: 15px;
}
.data-box dt {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-pebble);
  padding-top: 4px;
}
.data-box dd {
  margin: 0;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 24;
  font-size: 17px;
  font-weight: 500;
  color: var(--color-charcoal);
  font-variant-numeric: tabular-nums;
}
.data-box dd.is-yes { color: var(--color-olive); }
.data-box dd.is-no { color: var(--color-stamp); }

/* === BUTTONS === */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 26px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: .04em;
  border-radius: 2px;
  text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
  border: 0;
  cursor: pointer;
}
.btn--primary { background: var(--color-charcoal); color: var(--color-bone); }
.btn--primary:hover { background: var(--color-sea); color: var(--color-bone); }
.btn--booking { background: var(--color-terracotta); color: var(--color-bone); }
.btn--booking:hover { background: var(--color-terracotta-dark); color: var(--color-bone); }
.btn--ghost {
  background: transparent;
  color: var(--color-charcoal);
  border: 1px solid var(--color-charcoal);
}
.btn--ghost:hover { background: var(--color-charcoal); color: var(--color-bone); }

/* === MINI BIO CARLOS (sidebar / inline) === */
.mini-carlos {
  display: flex; gap: var(--s-4);
  padding: var(--s-5);
  border: 1px solid var(--color-stone);
  border-radius: 2px;
  background: var(--color-bone);
  align-items: flex-start;
}
.mini-carlos__photo {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sand), var(--color-stone));
  flex-shrink: 0;
  position: relative;
}
.mini-carlos__photo::after {
  content: 'C';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-size: 28px;
  color: var(--color-graphite);
  font-style: italic;
}
.mini-carlos__name {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 80, "opsz" 24;
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 4px;
}
.mini-carlos__role {
  font-size: 12.5px;
  color: var(--color-pebble);
  margin: 0 0 var(--s-3);
  line-height: 1.4;
}
.mini-carlos__link {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-terracotta);
}

/* === ADSENSE PLACEHOLDER === */
.adsense {
  background: repeating-linear-gradient(
    135deg,
    rgba(0,0,0,.025),
    rgba(0,0,0,.025) 10px,
    rgba(0,0,0,.05) 10px,
    rgba(0,0,0,.05) 20px
  );
  border: 1px dashed var(--color-stone);
  border-radius: 2px;
  padding: var(--s-7) var(--s-4);
  text-align: center;
  color: var(--color-pebble);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
}
.adsense::before { content: "Publicidad"; display: block; margin-bottom: 4px; color: var(--color-pebble); opacity: .6; font-size: 9px; }

/* === COLOFÓN FOOTER === */
.colophon {
  padding: var(--s-10) 0 var(--s-7);
  background: var(--color-bone);
  border-top: 1px solid var(--color-stone);
  text-align: center;
}
.colophon__mark {
  display: inline-block;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 80;
  font-size: 56px;
  line-height: 1;
  font-weight: 400;
  margin-bottom: var(--s-4);
}
.colophon__mark .ampersand {
  font-family: var(--font-hand);
  color: var(--color-stamp);
  font-size: 50px;
  display: inline-block;
  transform: rotate(-3deg);
}
.colophon__text {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 50, "opsz" 24;
  font-style: italic;
  font-size: 18px;
  color: var(--color-graphite);
  max-width: 620px;
  margin: 0 auto var(--s-7);
  line-height: 1.5;
}
.colophon__nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px var(--s-5);
  margin: 0 auto var(--s-6);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
}
.colophon__nav a { color: var(--color-graphite); }
.colophon__nav a:hover { color: var(--color-charcoal); }
.colophon__sep { color: var(--color-stone); }
.colophon__bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--color-stone);
  font-family: var(--font-body);
  font-size: 11.5px;
  color: var(--color-pebble);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.colophon__bottom strong { color: var(--color-charcoal); }
