/* =========================================
   Base & sistema de diseño (verde pastel)
   ========================================= */
:root{
  --bg: #f6f8f9;
  --text: #1f2937;
  --muted: #6b7280;

  --mint-25:  #f3fbf7;
  --mint-50:  #e9f7f0;
  --mint-100: #d6f0e4;
  --mint-200: #bfe8d6;
  --mint-400: #4dd3a7;
  --mint-500: #22c55e;
  --mint-600: #16a34a;

  --card-bg: #ffffff;
  --card-border: #e5e7eb;

  --radius-lg: 14px;
  --radius-md: 12px;
  --radius-sm: 10px;

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

*{ box-sizing: border-box; }
html, body{ height:100%; }
html{ background: var(--bg); }
body{
  margin:0;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

/* =========================================
   Layout & tarjetas (SIN sombras)
   ========================================= */
.container{
  max-width: 760px;
  margin: clamp(16px, 4vw, 48px) auto;
  padding: clamp(12px, 3vw, 24px);
}

.card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3.5vw, 36px);
  box-shadow: none;            /* ← sin sombra */
}

/* Mensaje de gracias */
.mensaje{
  background: var(--mint-100);
  border: 2px solid var(--mint-200);
}

/* =========================================
   Tipografía
   ========================================= */
.title{
  margin: 0 0 8px 0;
  font-weight: 700;
  font-size: clamp(20px, 3.2vw, 28px);
  color: #14532d;
  text-align: center;
}
.lead{
  margin: 0 0 18px 0;
  font-size: clamp(14px, 2.7vw, 16px);
  color: var(--muted);
  text-align: center;
  text-wrap: balance;
}
a{ color:#0ea5e9; }
a.link, .checkbox a, .cookie-text .cookie-a{ text-decoration: underline; }

/* =========================================
   Formularios (SIN sombras ni “saltos”)
   ========================================= */
label{
  display:block;
  margin: 14px 0 6px;
  font-weight: 600;
  font-size: 14px;
  color:#374151;
}

/* inputs/textarea/select: sin sombras, foco por outline */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
textarea,
select{
  width:100%;
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: var(--radius-md);
  padding: 12px 12px;
  font-size: 16px;
  transition: border-color .2s, background .2s, color .2s; /* sin box-shadow */
  box-shadow: none;          /* ← sin sombra */
}

input[type="file"]{
  padding: 10px;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg, var(--mint-100), #fff) border-box;
  border: 1px solid transparent;
}

input:focus,
textarea:focus,
select:focus{
  outline: 2px solid var(--mint-400);   /* ← outline accesible */
  outline-offset: 2px;
  border-color: var(--mint-400);
}

/* fieldsets compactos */
fieldset{
  margin: 16px 0 0;
  padding: 0;
  border: none;
}
legend{
  font-weight: 700;
  color:#374151;
  margin-bottom: 6px;
}
.stack label{ margin: 6px 0; font-weight: 500; color:#111827; }

/* Campo extra para "Otros" */
.otros-extra{
  margin-top: 8px;
  padding-left: 26px; /* alineado con las casillas de la lista */
}

/* =========================================
   Checkboxes (estables, sin desplazamientos)
   ========================================= */
input[type="checkbox"]{
  accent-color: var(--mint-500);
}

.stack label,
.checkbox{
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;                 /* fijo */
  border-radius: 8px;               /* fijo */
  border: 1px solid transparent;    /* borde reservado, no “salta” */
  line-height: 1.4;
}

.stack label:hover,
.checkbox:hover{
  background: var(--mint-25);       /* solo color, sin tocar medidas */
  border-color: transparent;
}

.stack input[type="checkbox"],
.checkbox input[type="checkbox"]{
  width: 18px; height: 18px;
  flex: 0 0 18px;                   /* reserva fija */
  margin: 0;
  border-radius: 6px;
}

.stack input[type="checkbox"]:focus-visible{
  outline: 2px solid var(--mint-400);
  outline-offset: 2px;
}

/* opcional: enfatiza el texto al estar marcado, sin mover nada */
.stack input[type="checkbox"]:checked + *{
  color: #0f3d2b;
}

/* =========================================
   Botones (SIN sombras)
   ========================================= */
.btn-primary, button[type="submit"]{
  margin-top: 20px;
  width:100%;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(180deg, var(--mint-500), var(--mint-600));
  box-shadow: none;                  /* ← sin sombra */
  transition: filter .2s ease, transform .06s ease;
}
.btn-primary:hover{ filter: saturate(1.04) brightness(1.01); }
.btn-primary:active{ transform: translateY(1px); }

/* =========================================
   Casilla de privacidad + reCAPTCHA
   ========================================= */
.checkbox{ margin-top: 14px; font-size: 14px; }
.recaptcha-wrap{ margin-top: 14px; display:flex; justify-content:center; }

/* =========================================
   Header de formulario: logo centrado
   ========================================= */
.form-logo{
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}
.form-logo img{
  width: clamp(200px, 22vw, 320px);
  height: auto;
  display:block;
}

/* =========================================
   Página de gracias
   ========================================= */
.centered{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.mensaje h1{
  margin: 0 0 10px 0;
  font-size: clamp(22px, 4vw, 30px);
  color:#14532d;
  text-align:center;
}
.mensaje p{
  color: var(--muted);
  font-size: clamp(14px, 2.8vw, 18px);
  text-align:center;
}

/* =========================================
   Banner Cookies (sin sombras)
   ========================================= */
#cookie-banner{
  position: fixed; inset: auto 0 0 0; z-index: 9999;
  background: #0f172a;
  color: #f8fafc;
  padding: 16px;
  border-top: 1px solid #111827;
  box-shadow: none;                  /* ← sin sombra */
}
.cookie-box{ max-width: 1100px; margin: 0 auto; display: grid; gap: 10px; }
.cookie-text{ font-size: 14px; line-height: 1.55; }
.cookie-text .cookie-a{ color:#93c5fd; text-decoration: underline; }
.cookie-link{
  background: none; border: 1px solid transparent;
  color:#93c5fd; cursor: pointer; padding: 2px 6px; border-radius: 8px;
  text-decoration: underline;
}
.cookie-accept{
  background: var(--mint-500); color:#fff; border: 1px solid transparent;
  padding: 8px 12px; border-radius: 10px; cursor: pointer; font-weight: 700; margin-left: 8px;
}
.cookie-accept:hover{ background: var(--mint-600); }
.cookie-settings{
  background:#111827; border: 1px solid #374151;
  border-radius: 12px; padding: 12px;
}
.cookie-toggle{ display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; }
.cookie-actions{ display:flex; gap:8px; }
.cookie-btn{
  background:#2563eb; color:#fff; border:1px solid transparent; border-radius:10px;
  padding:8px 12px; cursor:pointer; box-shadow:none;
}
.cookie-btn.ghost{ background:transparent; border:1px solid #93c5fd; color:#93c5fd; }

@media (min-width: 760px){
  .cookie-box{ grid-template-columns: 1fr auto; align-items: center; }
}

/* =========================================
   Accesibilidad & motion (sin box-shadow)
   ========================================= */
:focus-visible{
  outline: 2px solid var(--mint-400);
  outline-offset: 2px;
  box-shadow: none;                 /* ← sin sombra */
}

@media (prefers-reduced-motion: reduce){
  *{ transition: none !important; }
}
