/*
  base.css
  Split from styles.css (source-of-truth provided by you)
*/

:root{
  --bg: #f7f7f7;
  --page-bg: #f4f7ee; /* ✅ fondo unificado (lo aplicamos SOLO en desktop) */
  --surface: #ffffff;
  --ink: #222222;
  --muted: rgba(34,34,34,.65);
  --line: rgba(34,34,34,.12);

  --teal: #0fb7a6;
  --ocean: #2f7de8;
  --coral: #ff6b6b;
  --sand: #f1c27b;

  --shadow: 0 18px 46px rgba(0,0,0,.10);
  --shadow-soft: 0 10px 26px rgba(0,0,0,.08);
  --shadow-hero: 0 12px 18px rgba(0,0,0,.10); /* 12 + 18 = ~30px de “alcance” */
  --shadow-tight: 0 10px 18px rgba(0,0,0,.08);
  
  --radius: 18px;
  --container: 1120px;

  --gutter: 28px;

  /* Topbar height (JS refines this at runtime) */
  --topbar-h: 64px;

  --font-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

body{
  margin: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  letter-spacing: 0;

  background:
    radial-gradient(900px 520px at 12% -10%, rgba(15,183,166,.14), transparent 55%),
    radial-gradient(820px 520px at 92% 10%, rgba(47,125,232,.12), transparent 55%),
    radial-gradient(780px 520px at 40% 120%, rgba(241,194,123,.22), transparent 55%),
    linear-gradient(180deg, #fbf7f1 0%, #ffffff 35%, #fbf7f1 100%);

  padding-bottom: 88px;
}

a{ color: inherit; text-decoration: none; }
.muted{ color: var(--muted); }
.small{ font-size: .92rem; }

.link{
  text-decoration: underline;
  text-underline-offset: 3px;
  color: rgba(47,125,232,.95);
}
.link:hover{ opacity: .9; }

.link-underline{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
.link-underline:hover,
.link-underline:focus-visible{
  text-decoration-thickness: 2px;
}

#experience .muted a{
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}
#experience .muted a:hover,
#experience .muted a:focus-visible{
  text-decoration-thickness: 2px;
}

.container{
  width: min(var(--container), calc(100% - (var(--gutter) * 2)));
  margin: 0 auto;
}

/* Clamp non-.container blocks to the site max width on desktop (keeps mobile full-bleed) */
.desktopClamp{
  width: 100%;
}

@media (min-width: 861px){
  .desktopClamp{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
  }
}





/* Clamp non-.container blocks to the site max width on desktop (keeps mobile full-bleed) */
.desktopClamp{
  width: 100%;
}

@media (min-width: 861px){
  .desktopClamp{
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-left: auto;
    margin-right: auto;
  }
}
/* Focus accesible */
:focus-visible{
  outline: 3px solid rgba(15,183,166,.38);
  outline-offset: 2px;
  border-radius: 12px;
}
