/* global.css — SP Dietista (base + tokens + components) */

:root{
  --bg:#0b0b0b;
  --surface:#121212;
  --surface-2:#171717;
  --text:#f4f4f4;
  --muted:rgba(244,244,244,.72);
  --muted-2:rgba(244,244,244,.55);
  --border:rgba(244,244,244,.14);

  --accent:#C8CA37;
  --accent-2:rgba(200,202,55,.18);

  --shadow:0 18px 50px rgba(0,0,0,.45);
  --shadow-soft:0 10px 24px rgba(0,0,0,.35);

  --radius:18px;
  --radius-sm:12px;

  --container:1200px;
  --gutter:24px;

  --font:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;

  --h1: clamp(2.4rem, 4.2vw, 4.1rem);
  --h2:clamp(1.6rem,2.4vw,2.2rem);

  --line:1.55;
  --line-tight:1.15;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:var(--line);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

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

a{ color:inherit; text-decoration:none; }
a:hover{ opacity:.92; }

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

.u-accent{ color:var(--accent); }

:focus-visible{
  outline:2px solid rgba(200,202,55,.85);
  outline-offset:3px;
}

/* Skip link */
.skip-link{
  position:absolute;
  left:-999px;
  top:10px;
  background:var(--accent);
  color:#0b0b0b;
  padding:10px 12px;
  border-radius:10px;
  font-weight:800;
  z-index:9999;
}
.skip-link:focus{ left:12px; }

/* Buttons */
/* === Buttons: más clicables (borde + sombra verde) === */

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:.55rem;
  padding:.95rem 1.25rem;
  border-radius:999px;
  font-weight:800;
  letter-spacing:.02em;
  border:1px solid rgba(200,202,55,.45); /* borde verde visible */
  background:rgba(244,244,244,.02);
  transition:
    transform .15s ease,
    box-shadow .2s ease,
    background .2s ease,
    border-color .2s ease;
  cursor:pointer;
  white-space:nowrap;
}

.btn:hover{
  transform:translateY(-1px);
  background:rgba(200,202,55,.08); /* sombreado verde */
  border-color:rgba(200,202,55,.75);
  box-shadow:
    0 0 0 4px rgba(200,202,55,.10),
    0 18px 42px rgba(0,0,0,.45);
}

.btn:active{
  transform:translateY(1px);
}

/* Primario sigue siendo más fuerte */
.btn--primary{
  background:var(--accent);
  color:#0b0b0b;
  border-color:var(--accent);
  box-shadow:
    0 0 0 4px rgba(200,202,55,.12),
    0 14px 30px rgba(200,202,55,.25),
    0 12px 28px rgba(0,0,0,.45);
}

.btn--primary:hover{
  background:var(--accent);
  box-shadow:
    0 0 0 6px rgba(200,202,55,.18),
    0 20px 48px rgba(200,202,55,.28),
    0 20px 48px rgba(0,0,0,.55);
}

/* Ghost ya no es invisible */
.btn--ghost{
  background:rgba(244,244,244,.03);
  border-color:rgba(200,202,55,.35);
  color:var(--text);
}

.btn--ghost:hover{
  background:rgba(200,202,55,.10);
  border-color:rgba(200,202,55,.70);
}

/* Forms (base genérica para cuando hagáis contacto) */
.input,
.textarea{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  background:rgba(244,244,244,.04);
  border:1px solid rgba(244,244,244,.12);
  color:var(--text);
  font-weight:600;
}
.input::placeholder,
.textarea::placeholder{ color:rgba(244,244,244,.45); }
.textarea{ min-height:140px; resize:vertical; }

.form-row{ display:grid; gap:12px; }


/* ==============
   MODALS (Legal)
   ============== */

body.no-scroll{ overflow: hidden; }

.footer__modalBtn{
  background: transparent;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.modal{
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
}

.modal.is-open{ display: block; }

.modal__overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.72);
  backdrop-filter: blur(6px);
}

.modal__dialog{
  position: relative;
  width: min(860px, calc(100% - 2rem));
  margin: 6vh auto;
  background: #0f0f0f;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 20px 70px rgba(0,0,0,.6);
  overflow: hidden;
  transform: translateY(8px);
  animation: modalIn .18s ease-out forwards;
}

@keyframes modalIn{
  to{ transform: translateY(0); }
}

.modal__header{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}

.modal__title{
  margin: 0;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text);
}

.modal__close{
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  display: grid;
  place-items: center;
  transition: transform .15s ease, border-color .15s ease;
}

.modal__close:hover{
  transform: translateY(-1px);
  border-color: rgba(200,202,55,.35);
}

.modal__content{
  padding: 1.1rem 1.1rem 1.3rem;
  color: var(--muted);
  max-height: 70vh;
  overflow: auto;
}

.modal__content h4{
  margin: 1rem 0 .35rem;
  color: var(--text);
  font-weight: 800;
}

.modal__note{
  margin-top: 1rem;
  font-size: .85rem;
  color: var(--muted-2);
  border-left: 3px solid rgba(200,202,55,.35);
  padding-left: .75rem;
}
