:root{
  --accent: #160a8b;   /* corporativo */
  --bg: #ffffff;
  --text: #232c63;
  --muted: #546258;
  --border: #d9e2db;
  --danger: #c62828;
  --max: 1100px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body{
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* HERO full-viewport */
.hero{
  min-height: 100vh;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 viewport */
}

/* Columna vídeo */
.hero-media{
  position: relative;
  background: #160a8b;
  overflow: hidden;
}

.media-center{
  height: 100%;
  width: 100%;
  display: flex;                 /* antes era grid */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;                     /* separación real */
  padding: clamp(16px, 2vw, 28px);
}


.video-shell{
  width: min(960px, 100%);
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-shell video,
.video-shell iframe{
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  object-fit: cover;
}

/* Columna formulario (centrado real) */
.hero-form{
  display: grid;
  place-items: center;
  padding: 0;              /* el aire va en form-wrap */
  background: #ffffff;
}

.form-wrap{
  width: 100%;
  max-width: 760px;        /* ajusta si quieres más/menos */
  padding: clamp(18px, 3vw, 56px);
}

/* Logo */
.form-logo{
  display: flex;
  justify-content: center;
  margin: 10px 0 20px;
}
.logoLandingVideo{
  width: 300px !important;
  height: auto;
  display: block;
  margin: 0 0 10px;
}

/* Cabecera formulario */
.kicker{
  color: var(--accent);
  font-weight: 700;
  letter-spacing: .2px;
  font-size: 13px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1{
  margin: 0 0 10px;
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.3px;
}

.lead{
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 15px;
}

/* ===== Formulario (nuevo, para evitar apelotonamiento y 100% width) ===== */
.franq-form{ width: 100%; }

.franq-fieldset{
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.franq-legend{
  display: block;
  width: 100%;
  font-weight: 800;
  font-size: 20px;
  margin: 0 0 18px 0;
  padding: 0;
}

.franq-divider{
  border: 0;
  border-top: 1px solid var(--border);
  margin: 22px 0;
}

.franq-field{
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.franq-field label{
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 0;
}

/* Inputs/select/textarea al 100% siempre */
.franq-field input,
.franq-field select,
.franq-field textarea,
.franq-field .form-control{
  width: 100% !important;
  display: block;
  padding: 14px 14px;
  font-size: 15px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  outline: none;
  min-height: 48px;
}

.franq-field input:focus,
.franq-field select:focus,
.franq-field textarea:focus{
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(27,107,42,.12);
}

.franq-grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 22px;
  margin-top: 6px;
}

.franq-consent{
  margin-top: 14px;
}

.franq-consent label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.franq-consent a{
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.franq-actions{
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.franq-submit{
  background: var(--accent);
  color: #fff;
  border: 0;
  padding: 14px 22px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  min-width: 320px;
}

.franq-submit:hover{ background: #232c63; }

/* Franja corporativa 100% ancho */
.band{
  width: 100%;
  background: var(--accent);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.band span{
  max-width: 900px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 700;
  line-height: 1.3;
}

/* Enlace dentro de la franja verde */
.band a{
  color: #232c63 !important;
  font-weight: 800;
  text-decoration: none;
  position: relative;
  padding: 3px 6px 6px 8px;
  border-radius: 6px;
  background: #fff;
  transition: all .2s ease;
}

.band a:hover{
  background: #232c63;
  color:#fff !important;
}

.band a:visited{
  color: #fff;
}

.media-cta{
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.media-cta .btn{
  min-width: 220px;
  text-align: center;
}


/* Sección centrada max 1100 (2 columnas 50/50) */
.content{
  width: 100%;
  padding: 48px 16px;
}

.content-inner{
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.content h2{
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.2px;
}

.content p{
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}

/* Separación en lista de beneficios */
.benefits-list{
  margin: 14px 0 0;
  padding-left: 18px; /* mantiene bullets ordenados */
}

.benefits-list li{
  margin-bottom: 12px;  /* ↑ separación */
  line-height: 1.6;
  color: var(--muted);
}

/* Imagen derecha 100% ancho y responsive */
.content-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px; /* opcional, quítalo si no quieres */
  object-fit: cover;
}

/* Ajuste de “altura visual” para que no quede enana */
.content-media{
  align-self: start;
}

.franq-actions {
  display: flex;
  flex-wrap: wrap; /* permite salto de línea */
  gap: 10px;
}

.franq-actions .form-message {
  flex-basis: 100%;   /* fuerza a ir debajo */
  width: 100%;
}

/* Errores de campo */
.is-invalid {
  border: 1px solid #d92d20 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, 0.15);
}

.field-error {
  margin: 6px 0 0;
  font-size: 0.875rem;
  color: #d92d20;
  line-height: 1.2;
}

/* Mensajes globales del formulario */
.form-message {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.form-message[data-type="info"] {
  background: #eff8ff;
  border-color: #b2ddff;
  color: #175cd3;
}

.form-message[data-type="success"] {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.form-message[data-type="error"] {
  background: #fef3f2;
  border-color: #fecdca;
  color: #b42318;
}

.imagen50landing {
  max-height: 98vh;   /* Nunca más alta que la pantalla */
  width: auto;         /* Mantiene proporción */
  max-width: 98%;     /* Evita desbordamiento horizontal */
  display: block;
  margin: 0 auto;      /* Centrado opcional */
  object-fit: contain; /* Asegura que se vea completa */
}

.campoOpcional {color:#8a8a8a; text-transform: lowercase; font-size: 14px;}

/* Responsive */
@media (max-width: 980px){
  .hero{
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-media{ min-height: 26vh; }
  .content-inner{ grid-template-columns: 1fr; }
  .franq-grid-2{ grid-template-columns: 1fr; }
  .franq-submit{ width: 100%; min-width: 0; }
}


/* Base: que el vídeo no “pinte” barras del contenedor */
.video-shell{
  position: relative;
  overflow: hidden;
  background: transparent;
}

/* Desktop: no se altera (se queda como lo tengas) */
@media (min-width: 769px){
  .video-shell iframe,
  .video-shell video{
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
  }
}

