:root{
  --bg: #dcd9c0;
  --edge: #77ab4c;
  --text: #222;
  --maxw: 920px;
  --gutter: clamp(16px, 3vw, 28px);
  --edge-w: 14px; /* ancho del marco */
}

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

html, body {
  height: 100%;
  margin: 0;
}

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  position: relative;
  overflow-x: hidden; /* 🔹 evita scroll horizontal */
}

/* ==== Marco completo (arriba, abajo, izquierda, derecha) ==== */
.side-edge{
  position: fixed;
  background: var(--edge);
  z-index: 0;
}
.left-edge, .right-edge {
  top: 0;
  bottom: 0;
  width: var(--edge-w);
}
.left-edge { left: 0; }
.right-edge { right: 0; }

.top-edge, .bottom-edge {
  left: 0;
  right: 0;
  height: var(--edge-w);
}
.top-edge { top: 0; }
.bottom-edge { bottom: 0; }

/* ==== Contenido centrado encima del marco ==== */

.wrap{
  position: relative;
  z-index: 1;
  max-width: min(var(--maxw), calc(100vw - 2*(var(--gutter) + var(--edge-w))));
  margin: 0 auto;

  /* padding superior e inferior + márgenes de seguridad */
  padding: calc(var(--edge-w) + clamp(28px, 5vw, 56px)) 
           calc(var(--gutter) + var(--edge-w));

  text-align: center;
  box-sizing: border-box;
  padding-top: var(--edge-w);    /* o 14px si no usas variables */
  padding-bottom: var(--edge-w); /* o 14px */
}

/* Tipografías */
/* Titular principal */
.title{
  font-weight: 900; /* Montserrat Black */
  font-size: clamp(36px, 7vw, 64px);
  margin: 0.5em 0;
  line-height: 1.1;
  text-transform: uppercase;
}
/* Logo cesta en cabecera */

.text-blue{
  color: #153356;
  display: block; /* cada parte en su línea */
}

.text-green{
  color: #77ab4c;
  display: block;
}
.logo-cesta{
  display: block;
  margin: 2.5rem auto 1.5rem auto; /* 🔹 margen arriba, auto a los lados, abajo */
  width: min(280px, 80%);
  height: auto;
}
/* Subtítulo */

.subtitle{
  font-weight: 700;
  font-size: clamp(12px, 1.8vw, 18px); /* antes 14px–20px */
  color: #153356;
  margin: 0.5em auto 2rem auto;
  max-width: 60ch;
  line-height: 1.3;
  text-align: center;
}

.title{
  font-weight: 900; /* Montserrat Black */
  font-size: clamp(28px, 6vw, 52px); /* antes 36px–64px */
  margin: 0.5em 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.lead{
  font-weight: 400;
  font-size: clamp(16px, 2.6vw, 20px);
  margin: 0 auto 2rem auto;
  max-width: 60ch;
}

/* Imagen central */
.center-block{
  margin: 1rem auto 2rem auto;
}
.main-image{
  display: block;
  margin: 0 auto;
  width: min(260px, 70%); /* antes 450px, 100% */
  height: auto;
}

/* Logos */
.logos{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 48px);
  flex-wrap: wrap;
  margin: 0 auto 2rem auto;
}
.logo{
  display: block;
  width: min(160px, 40vw); /* antes 285px, 42vw */
  height: auto;
}
.footer-text{
  font-family: "Montserrat", sans-serif;
  font-weight: 700; /* Bold */
  font-size: clamp(16px, 2.2vw, 22px); /* más grande que subtítulo */
  color: #153356;
  margin: 1.5rem auto 0 auto;
  max-width: 60ch;
  line-height: 1.4;
  text-align: center;
}

/* Texto pequeño inferior */
.fineprint{
  font-size: 12px;
  opacity: 0.85;
  max-width: 80ch;
  margin: 0 auto;
}
/* El marco verde siempre por encima, sin bloquear clics */
.side-edge{
  z-index: 9999;
  pointer-events: none;
}

