
/*Hoja de Estilos CSS Landing Page ionic-colors.com*/
/*AUTOR: Iñaki Cantalapiedra*/
/*EMPRESA: Mig Jimenez, S.L.*/
/*VERSIÓN: 2.0*/
/*FECHA: 28/01/2026*/

/* ====== RESET / TIPOGRAFÍA ====== */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}
body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

/* ====== LAYOUT PRINCIPAL ====== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
}
.col--left {
  background: #4e378d;
  color: #fff;
}
.col--right {
  background: #ffffff;
  color: #121212;
  position: relative;
}

/* ====== DIV 1.1 + DIV 2.1 ====== */
.panel-center {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.panel-center::before {
  content: "";
  position: absolute;
  inset: 0;
  background-position: bottom right;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0.25;
  z-index: 0;
  image-rendering:smooth;
}
.panel--ammo::before  { background-image: url('../img/div-ammologo-bg.png'); }
.panel--ionic::before { background-image: url('../img/div-ioniclogo-bg.png'); background-position: bottom left; }

.panel__content {
  position: relative;
  z-index: 1;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* ====== LOGOS ====== */
.logo {
  display: block;
  width: clamp(280px, 34vw, 612px);
  height: auto;
}

/* ====== BOTONES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  height: 80px;
  padding: 0 18px;
  font-family: "Arial Narrow", Arial, "Helvetica Neue", Helvetica, sans-serif;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: #ffffff;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn--ammo  { background-image: url('../img/boton-ammo-bg.png'); }
.btn--ionic { background-image: url('../img/boton-ionic-bg.png'); }

/* ====== FORMULARIO (ESCRITORIO) ====== */
.form-area {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  margin: 0;

  background: linear-gradient(
    to right,
    rgba(0,0,0,0) 0%,
    rgba(0,0,0,0.32) 50%,
    rgba(0,0,0,0) 100%
  );

  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 10px 28px;
  z-index: 2;
}

.form-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 28px;
}

.form-left {
  width: 40%;
}

.form-left h2 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  color: #111;
}

.form-left .note {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: #222;
}

.form-right {
  width: 60%;
}

.form-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.field { flex: 1; }

/* Campo email */
.input {
  width: 100%;
  height: 44px;
  padding: 0 12px;

  border-radius: 8px;
  border: 1px solid #cfd6e4;
  outline: none;

  background: #ffffffdd;
  font-size: 14px;
  color: #111;

  transition: border-color .15s ease, box-shadow .15s ease;
}

.input:focus {
  border-color: #4e378d;
  box-shadow: 0 0 0 3px rgba(78,55,141,0.25);
}

/* Botón submit */
.submit {
  height: 44px;
  padding: 0 18px;
  white-space: nowrap;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  min-width: 120px;
  background: #4e378d;
  color: #fff;

  font-family: "Arial Narrow", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;

  transition: opacity 0.15s ease, transform 0.15s ease;
}

.submit:hover {
  background: #6a4ccf;
  transform: translateY(-1px);
}

/* Área de estado */
.status {
  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #222;
}

/* ====== CONSENTIMIENTO (visual igual a .status) ====== */
.consent-block {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin-top: 14px;
  text-align: center;
  font-size: 14px;
  color: #222;
}

.consent-block input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4e378d;
  cursor: pointer;
}

/* ====== ERRORES / ÉXITO ====== */
.form-error {
  color: #cc0000;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
}

.form-success {
  color: #0a7a0a;
  font-weight: 700;
  font-size: 15px;
  text-align: center;
  margin-top: 10px;
}

/* ====== ACCESIBILIDAD ====== */
.sr-only {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.honeypot {
  position: absolute;
  left: -5000px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ====== RESPONSIVE ====== */
@media (max-width: 900px) {

  .split {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .col--right { order: 1; }
  .col--left  { order: 2; }

  .col {
    justify-content: flex-start;
    padding: 20px 0;
  }

  .panel-center {
    margin: 0 5vw;
  }

  .logo {
    width: clamp(220px, 56vw, 420px);
  }

  /* Botones móvil */
  .btn {
    min-width: 160px;
    height: 66px;
    font-size: 12px;
  }

  /* Form en flujo */
  .form-area {
    position: static;
    margin: 16px 5vw 24px;

    background: linear-gradient(
      to bottom,
      rgba(0,0,0,0) 0%,
      rgba(0,0,0,0.32) 45%,
      rgba(0,0,0,0) 100%
    );

    padding: 22px 20px;
  }

  .form-inner {
    flex-direction: column;
    gap: 16px;
  }

  .form-left,
  .form-right {
    width: 100%;
  }

  .form-left h2,
  .form-left .note {
    text-align: center;
  }

  .form-row {
    flex-direction: column;
    gap: 14px;
    width: 100%;
  }

  .field,
  .input,
  .submit {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .submit {
    font-size: 18px;
    height: 46px;
    padding: 0 14px;
    white-space: nowrap;
  }

  .consent-block {
    flex-wrap: wrap;
    justify-content: center;
  }
}
