@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@700;800&family=Public+Sans:wght@400;500;600;700&display=swap');

/* ==========================================================================
   WebEscolar - Landing de Contacto (v2)
   Archivo: fase1_etapa1_contacto_landing_v2.css
   Autor: Inovaweb / WebEscolar
   Objetivo:
   - UI moderna, accesible y responsive (mobile-first).
   - Mejores prácticas de landing: jerarquía, confianza, CTA claro.
   - Compatibilidad con tu posteo a Vtiger o a email.php.
   ========================================================================== */

:root{
  /* Paleta institucional (memoria del proyecto) */
  --we-blue: #1C2F67;
  --we-wine: #A02A38;
  --we-purple: #41293A;
  --we-gray-50: #F7F8FA;
  --we-gray-100: #F0F0F2;
  --we-gray-200: #DEE4E3;
  --we-text: #1B1B1D;
  --we-muted: #5D616A;

  --we-card: #FFFFFF;
  --we-shadow: 0 18px 45px rgba(17, 24, 39, 0.10);

  --we-radius-xl: 22px;
  --we-radius-lg: 16px;
  --we-radius-md: 12px;
  --we-radius-sm: 10px;

  --we-focus: rgba(28, 47, 103, 0.30);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  color: var(--we-text);
  background: radial-gradient(1200px 600px at 10% 10%, rgba(28,47,103,0.07), transparent 55%),
              radial-gradient(900px 500px at 90% 20%, rgba(160,42,56,0.06), transparent 45%),
              var(--we-gray-50);
}

/* Layout principal */
.we-page{
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 28px 18px;
}

.we-shell{
  width: 100%;
  max-width: 1100px;
  background: var(--we-card);
  border-radius: var(--we-radius-xl);
  box-shadow: var(--we-shadow);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
}

/* Columna visual */
.we-visual{
  padding: 26px 22px 22px 22px;
  background:
    linear-gradient(135deg, rgba(28,47,103,0.08), rgba(160,42,56,0.05));
  border-bottom: 1px solid rgba(0,0,0,0.06);
  display: grid;
  gap: 14px;
  align-content: start;
}

.we-brand{
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.we-logo{
  height: 42px;
  width: auto;
}

.we-hero{
  width: 100%;
  max-width: 520px;
  justify-self: center;
  border-radius: var(--we-radius-lg);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(0,0,0,0.06);
  padding: 12px;
}

.we-copy h1{
  margin: 6px 0 4px 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.we-copy p{
  margin: 0;
  color: var(--we-muted);
  font-size: 14px;
  line-height: 1.5;
}

.we-badges{
  list-style: none;
  padding: 0;
  margin: 12px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.we-badges li{
  font-size: 12px;
  color: rgba(28,47,103,0.95);
  background: rgba(28,47,103,0.08);
  border: 1px solid rgba(28,47,103,0.12);
  padding: 8px 10px;
  border-radius: 999px;
}

/* Columna form */
.we-form{
  padding: 26px 22px 24px 22px;
}

.we-form__header h2{
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.we-form__header p{
  margin: 8px 0 0 0;
  color: var(--we-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* Form */
form{ margin-top: 18px; }

.we-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.we-field label{
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 0 0 6px 0;
  color: rgba(0,0,0,0.80);
}

.we-field input,
.we-field textarea{
  width: 100%;
  font: inherit;
  padding: 12px 12px;
  border-radius: var(--we-radius-md);
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
  outline: none;
  transition: box-shadow 160ms ease, border-color 160ms ease;
}

.we-field textarea{
  resize: vertical;
  min-height: 120px;
}

.we-field input:focus,
.we-field textarea:focus{
  border-color: rgba(28,47,103,0.45);
  box-shadow: 0 0 0 4px var(--we-focus);
}

.we-field input::placeholder,
.we-field textarea::placeholder{
  color: rgba(0,0,0,0.35);
}

.we-help{
  display: block;
  min-height: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--we-wine);
}

.we-hint{
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
}

/* Checks */
.we-checks{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--we-radius-md);
  border: 1px solid rgba(0,0,0,0.14);
  background: #fff;
}

.we-check{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(0,0,0,0.78);
  user-select: none;
}

.we-check input{
  width: 18px;
  height: 18px;
  accent-color: var(--we-blue);
}

/* Acciones */
.we-actions{
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.we-btn{
  width: 100%;
  border: 0;
  border-radius: 999px;
  padding: 14px 18px;
  background: var(--we-blue);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
  box-shadow: 0 14px 28px rgba(28,47,103,0.18);
}
.we-btn:hover{ transform: translateY(-1px); }
.we-btn:active{ transform: translateY(0); }
.we-btn[disabled]{ opacity: 0.65; cursor: not-allowed; transform: none; }

.we-btn__spinner{
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: rgba(255,255,255,1);
  display: none;
  animation: weSpin 900ms linear infinite;
}
.we-btn.is-loading .we-btn__spinner{ display: inline-block; }
@keyframes weSpin{ to { transform: rotate(360deg); } }

.we-legal{
  margin: 0;
  font-size: 12px;
  color: rgba(0,0,0,0.45);
  line-height: 1.5;
}
.we-status{
  margin: 0;
  font-size: 13px;
  color: rgba(0,0,0,0.70);
  min-height: 20px;
}

/* Honey-pot oculto */
.we-hp{
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Desktop */
@media (min-width: 920px){
  .we-shell{
    grid-template-columns: 0.95fr 1.05fr;
  }
  .we-visual{
    border-bottom: none;
    border-right: 1px solid rgba(0,0,0,0.06);
    padding: 30px 26px;
  }
  .we-form{
    padding: 30px 28px;
  }
  .we-copy h1{ font-size: 26px; }
  .we-grid{
    grid-template-columns: 1fr 1fr;
  }
  .we-field--full{
    grid-column: 1 / -1;
  }
  .we-checks{
    grid-template-columns: 1fr 1fr;
  }
}

/* Small devices */
@media (max-width: 360px){
  .we-copy h1{ font-size: 20px; }
}


/* ==========================================================================
   ALINEACIÓN AL SITIO CORPORATIVO — WebEscolar (2026-07-22)
   Solo estilo. NO se modificó el HTML: formulario, campos ocultos de Vtiger,
   honey-pot y reCAPTCHA quedan exactamente como estaban.
   El logo NO se altera (panel claro, colores originales).
   ========================================================================== */

body{
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #fff;
}

/* Títulos con la tipografía del sitio */
.we-copy h1,
.we-form__header h2{
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-weight: 800;
  color: var(--we-blue);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.we-copy h1{ font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.we-form__header h2{ font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

/* Contenedor: mismo radio y borde que las tarjetas del sitio */
.we-shell{
  border: 1px solid var(--we-gray-200);
  border-radius: 20px;
  box-shadow: 0 24px 60px -28px rgba(28,47,103,.28);
}

/* Panel visual: gris de sección del sitio, con filete de marca arriba.
   Se mantiene CLARO a propósito para que el logo conserve sus colores. */
.we-visual{
  background: var(--we-gray-100);
  border-bottom: 1px solid var(--we-gray-200);
  position: relative;
}
.we-visual::before{
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--we-blue), var(--we-purple), var(--we-wine));
}
.we-hero{
  background: #fff;
  border: 1px solid var(--we-gray-200);
}

/* Distintivos: guinda de marca, como los sobretítulos del sitio */
.we-badges li{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--we-wine);
  background: #fff;
  border: 1px solid var(--we-gray-200);
}

/* Campos: bordes y radio del sitio */
.we-field label{
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--we-blue);
}
.we-field input,
.we-field textarea,
.we-checks{
  border: 1px solid var(--we-gray-200);
  border-radius: 11px;
}
.we-field input:focus,
.we-field textarea:focus{
  border-color: var(--we-blue);
  box-shadow: 0 0 0 3px rgba(28,47,103,.14);
}
.we-check input{ accent-color: var(--we-wine); }

/* Botón: guinda de marca, igual que los CTA del sitio */
.we-btn{
  font-family: "Plus Jakarta Sans", sans-serif;
  background: var(--we-wine);
  border-radius: 10px;
  padding: 14px 22px;
  box-shadow: 0 8px 22px -8px rgba(160,42,56,.6);
}
.we-btn:hover{ background: #7d1f2b; }

/* Texto secundario alineado al sitio */
.we-form__header p,
.we-copy p{ color: #5b6480; }
