/* =========================================
   ALLROUND GOTHIC – FUENTES
========================================= */

@font-face {
  font-family: "Allround Gothic";
  src: url("/fonts/allround-gothic/allroundgothic-book.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allround Gothic";
  src: url("/fonts/allround-gothic/allroundgothic-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allround Gothic";
  src: url("/fonts/allround-gothic/allroundgothic-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allround Gothic";
  src: url("/fonts/allround-gothic/allroundgothic-semi.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Allround Gothic";
  src: url("/fonts/allround-gothic/allroundgothic-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* =========================================
   ALLROUND GOTHIC – FUENTES
========================================= */

/* lato-100 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 100;
  src: url('/fonts/lato/lato-v25-latin-100.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-100italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 100;
  src: url('/fonts/lato/lato-v25-latin-100italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-300 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 300;
  src: url('/fonts/lato/lato-v25-latin-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-300italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 300;
  src: url('/fonts/lato/lato-v25-latin-300italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/lato/lato-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: url('/fonts/lato/lato-v25-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/lato/lato-v25-latin-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: url('/fonts/lato/lato-v25-latin-700italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: normal;
  font-weight: 900;
  src: url('/fonts/lato/lato-v25-latin-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Lato';
  font-style: italic;
  font-weight: 900;
  src: url('/fonts/lato/lato-v25-latin-900italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* =========================================
   ROOT
========================================= */

:root {
  --green-main: #69AD7E;
  --green-dark: #09757C;
  --teal: #00828C;
  --white: #FFFFFF;
  --text-dark: #0f172a;
  --text-error: #C0392B;
  --warning-color: #FF9103;
  --border-input: #00828C;
  --btn-bg: #62C7BE;
  --btn-text: #0C848A;
  --logo-underline: #007B83;
  --policy-text: #68AAB0;
  /* ESPECÍFICAS DEL MODAL */
  --modal-border-outer: #10BFBF; /* borde verde/teal exterior */
  --modal-header-bg: #E6F7F6; /* cabecera clara */
  --input-bg: #F3FAFA; /* fondo del input del modal */
  --input-border: #8BCED2; /* borde email */
  --placeholder-color: #CEE8E8; /* placeholder muy clarito */
  --captcha-border: #8BCED2; /* mismo borde para caja captcha */
  --font-primary: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-secundary: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  /*font-family: "Allround Gothic", "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;*/
  font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  background: var(--green-main);
  min-height: 100vh;
  display: flex;
  justify-content: center; /* solo horizontal */
  padding: 0;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}


/* Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.bg-svg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  object-fit: cover;
}

.page-wrapper {
  width: 100%;
  max-width: 1440px;
  padding: 80px 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
  z-index: 1;
}

.brand-panel {
  flex: 0 0 520px;
  color: var(--white);
}

.brand-logo {
  font-size: 142px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  margin: 0 0 12px;
  color: var(--white);
}

.brand-tagline-main {
  font-size: 52px;
  font-weight: 700;
  margin: 0;
  color: #007B83;
  letter-spacing: -2.29px;
  line-height: 1.05;
}

.brand-tagline-sub {
  font-size: 36px;
  margin: 0 0 12px;
  font-weight: 600;
  color: #40939B;
  letter-spacing: -1.53px;
  line-height: 1.05;
}

.brand-copy {
  font-size: 28px;
  font-weight: 400;
  max-width: 589px;
  color: #FFFFFF;
  letter-spacing: -1.14px;
  line-height: 1.25;
  margin: 0;
}

.login-panel {
  flex: 0 0 389px;
  margin-left: 48px;
  display: flex;
  justify-content: center;
  align-self: center; /* CLAVE */
}

.login-card {
  position: relative;
  width: 100%;
  max-width: 389px;
  background: var(--white);
  border-radius: 36px;
  padding: 32px 32px 28px;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.25);
}

.login-card-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: transparent;
  width: auto;
  height: auto;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--green-dark);
  padding: 4px;
}

.login-logo {
  text-align: center;
  margin-bottom: 32px;
  font-weight: 700;
  font-size: 22px;
}

.login-logo-svg {
  width: 100px;
  display: block;
  margin: 0 auto 32px;
}

.logo-word {
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

  .logo-word::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 65%;
    height: 3px;
    border-radius: 999px;
    background: var(--logo-underline);
  }

.logo-pro {
  color: var(--green-dark);
}

.logo-vee {
  color: var(--green-main);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  flex-shrink: 0;
  color: var(--green-dark);
  margin-top: 6px;
}

  .field-icon svg {
    width: 22px;
    height: 22px;
    display: block;
    fill: currentColor;
    stroke: none;
  }

.field-label {
  display: flex;
  flex-direction: column;
  flex: 1;
  font-size: 14px;
  color: #006A73;
  border-bottom: 2px solid var(--border-input);
  padding-bottom: 8px;
}

.field-label-text {
  margin-bottom: 4px;
  font-weight: 600;
}

.field-input-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.field-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: var(--text-dark);
  padding: 0;
}

.toggle-password {
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

  .toggle-password svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .toggle-password .icon-eye-off {
    display: none;
  }

  .toggle-password.is-visible .icon-eye {
    display: none;
  }

  .toggle-password.is-visible .icon-eye-off {
    display: block;
  }

.field-input::-ms-reveal,
.field-input::-ms-clear {
  display: none;
}

/* Olvidó contraseña */
.forgot-title {
  margin: -8px 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--green-dark);
  cursor: pointer;
  text-align: right;
}

/* Checkbox + textos */
.policy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  margin-top: 4px;
  color: var(--policy-text);
  text-align: left;
}

.policy-main {
  font-weight: 600;
  color: #006A73;
}

.policy a {
  color: var(--policy-text);
  font-size: 12px;
  text-decoration: none;
}

.login-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  margin-top: 10px;
}

.btn {
  padding: 14px 0;
  font-size: 14px;
  font-weight: 600;
  border-radius: 0;
  border: none;
  cursor: pointer;
  background: var(--btn-bg);
  color: var(--btn-text);
}

.footer-links {
  text-align: center;
  font-size: 12px;
  color: var(--policy-text);
  margin-top: 16px;
}

  .footer-links a {
    color: var(--policy-text);
    text-decoration: none;
    display: block;
    margin-top: 4px;
  }

/* NUEVO: ajustar centrado en pantallas tipo tablet (entre 993px y 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
  .page-wrapper {
    justify-content: center;
    padding: 0 40px;
  }
}

/* Responsive original */
@media (max-width: 992px) {
  body {
    padding: 24px 16px;
  }

  .page-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 24px 16px 40px;
  }

  .brand-panel {
    order: 2;
    flex-basis: auto;
    text-align: center;
  }

  .login-panel {
    order: 1;
    margin-left: 0;
    margin-bottom: 32px;
    width: 100%;
    max-width: 389px;
  }
}

@media (max-width: 640px) {
  .brand-logo {
    font-size: 72px;
  }

  .brand-tagline-main {
    font-size: 32px;
  }

  .brand-tagline-sub {
    font-size: 28px;
  }

  .brand-copy {
    font-size: 18px;
  }

  .login-card {
    padding: 24px 20px 20px;
    border-radius: 24px;
  }
}

/* ============================
   MODAL RECUPERAR CONTRASEÑA
============================ */

/* Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* CONTENEDOR EXTERIOR (BORDE VERDE GRUESO) */
.recover-modal {
  background: #0FC8C8;
  width: 520px;
  max-width: 95%;
  padding: 32px; /* ← antes era 18px | AHORA igual a maqueta */
  border-radius: 28px; /* leve, no tan redondeado */
  box-shadow: 0 22px 45px rgba(0,0,0,0.25);
  position: relative;
}

/* BOTÓN CERRAR — EXACTAMENTE COMO LA MAQUETA */
/* BOTÓN CERRAR – AHORA SÍ EN LA ESQUINA EXACTA */
.btn-close-modal {
  position: absolute;
  top: 8px; /* baja ligeramente */
  right: 8px; /* izquierda ligeramente */
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #0FC8C8;
  background: #ffffff;
  color: #0FC8C8;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  line-height: 1;
  padding-top: 0px;
}

/* CAJA BLANCA INTERIOR – AHORA NO INTERFIERE CON EL BOTÓN */
.recover-inner {
  background: #ffffff;
  border-radius: 26px; /* ← antes 35px, demasiado grande */
  overflow: hidden;
}

/* HEADER */
.recover-header {
  background: #E8F7F6;
  padding: 22px 32px 14px;
  text-align: center;
}

.recover-logo {
  width: 160px;
}

/* CUERPO */
.recover-body {
  padding: 42px 40px 40px;
}

.recover-text {
  font-size: 15px;
  line-height: 1.45;
  color: #5db2b7;
  margin-bottom: 26px;
}

/* INPUT E-MAIL */
.recover-input-box {
  display: flex;
  align-items: center;
  height: 48px;
  background: #F3FAFA;
  border: 2px solid #8BCED2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}

.recover-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  padding: 0 18px;
  font-size: 16px;
  color: #0f172a;
}

  .recover-input::placeholder {
    color: #CEE8E8;
  }

.recover-input-icon {
  width: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.45);
}

/* CAPTCHA */
.recover-captcha-title {
  font-size: 15px;
  font-weight: 700;
  color: #09757C;
  margin-bottom: 12px;
  margin-top: 12px;
}

.recover-captcha-box {
  padding: 0 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 30px;
}

.recover-captcha-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.recover-captcha-check {
  width: 30px;
  height: 30px;
  accent-color: #8BCED2;
}

.recover-captcha-left label {
  font-size: 15px;
  color: #5db2b7;
}

.recover-captcha-icon {
  width: 58px;
}

/* BOTÓN ENVIAR */
.btn-recover-submit {
  width: 100%;
  padding: 16px;
  background: #62C7BE;
  color: #0C848A;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
}

  .btn-recover-submit:hover {
    filter: brightness(0.92);
  }

/* ============================
   MODAL OTP (ESTILO FINAL)
============================ */

/* FONDO OSCURO TRANSLÚCIDO */
.otp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(3px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* BOTÓN CERRAR — AJUSTADO PARA QUEDAR CERCA */
.otp-close-btn {
  position: absolute;
  top: 20px; /* ANTES 40px — AHORA MÁS CERCA */
  right: 30px; /* ANTES 80px — AHORA POSICIÓN REALISTA */
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #0FC8C8;
  color: #0FC8C8;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10000;
}

/* MODAL TRANSPARENTE COMPLETO */
.otp-modal {
  width: 480px;
  max-width: 90%;
  padding: 45px 40px;
  border-radius: 26px;
  background: rgba(255,255,255,0.10); /* UNIFORME */
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  text-align: center;
}

/* TÍTULO BLANCO */
.otp-title {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
}

/* TEXTO BLANCO */
.otp-text {
  font-size: 15px;
  color: #ffffff;
  margin-bottom: 28px;
  line-height: 1.45;
}

/* INPUT GROUP */
.otp-input-group {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 35px;
}

/* INPUT */
.otp-input {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border: 2px solid #8BCED2;
  border-radius: 12px;
  text-align: center;
  font-size: 24px;
  font-weight: 700;
  color: #0C848A;
  outline: none;
  text-transform: uppercase; /* SIEMPRE MAYÚSCULA */
}

  /* FOCUS */
  .otp-input:focus {
    border-color: #0FC8C8;
  }

/* BOTÓN SIGUIENTE */
.otp-btn-submit {
  width: 100%;
  padding: 16px;
  background: #62C7BE;
  color: white;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  cursor: pointer;
}

  .otp-btn-submit:hover {
    filter: brightness(0.93);
  }

/* ============================
   MODAL NUEVA CONTRASEÑA
============================ */

.modal-newpass {
  width: 480px;
  max-width: 90%;
  padding: 45px 40px;
  border-radius: 26px;
  background: rgba(255,255,255,0.10);
  border: 2px solid rgba(255,255,255,0.35);
  box-shadow: 0 18px 45px rgba(0,0,0,0.25);
  text-align: center;
}

/* Campos */
.newpass-field {
  text-align: left;
  margin-bottom: 26px;
}

  .newpass-field label {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
  }

.newpass-input-box {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 2px solid #8BCED2;
  border-radius: 10px;
  height: 48px;
  padding: 0 12px;
}

.newpass-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 16px;
  color: #0C848A;
}

/* Botón ver/ocultar contraseña */
.toggle-password-new {
  border: none;
  background: transparent;
  cursor: pointer;
  color: #0C848A;
  display: flex;
  align-items: center;
}

  .toggle-password-new svg {
    stroke: currentColor;
    fill: none;
  }

  .toggle-password-new .icon-eye-off {
    display: none;
  }

  .toggle-password-new.active .icon-eye {
    display: none;
  }

  .toggle-password-new.active .icon-eye-off {
    display: block;
  }

/* ======================================
   FORMULARIO DE REGISTRO (AJUSTADO)
====================================== */

.page-wrapper {
  display: flex;
  justify-content: center;
}

/* Contenedor principal */
.register-panel {
  display: flex;
  justify-content: center;
  padding: 100px 20px 60px;
}

/* Tarjeta */
.register-card {
  background: rgba(255,255,255,0.92);
  width: 100%;
  max-width: 1000px;
  padding: 55px 65px;
  border-radius: 30px;
  box-shadow: 0 22px 48px rgba(0,0,0,0.20);
  margin: 0 auto;
}

/* Logo */
.register-logo {
  text-align: center;
  margin-bottom: 25px;
}

.register-logo-img {
  width: 260px;
  max-width: 70%;
}

/* Títulos */
.register-title {
  font-size: 28px;
  font-weight: 800;
  color: #0C848A;
  text-align: center;
  margin-bottom: 10px;
}

.register-subtitle {
  text-align: center;
  color: #5db2b7;
  margin-bottom: 35px;
  font-size: 15px;
}

/* Secciones */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: #0C848A;
  margin: 25px 0 12px;
}

/* Grilla */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px 30px;
}

.form-label {
  font-size: 14px;
  font-weight: 600;
  color: #0C848A;
  display: flex;
  flex-direction: column;
}

/* Inputs */
.form-input {
  margin-top: 6px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 2px solid #8BCED2;
  background: #fff;
  font-size: 15px;
  outline: none;
  width: 100%;
}

  .form-input:focus {
    border-color: #0FC8C8;
  }

/* Contraseñas */
.password-wrapper {
  position: relative;
}

.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-4px);
  border: none;
  background: none;
  cursor: pointer;
  font-size: 16px;
}

/* Botones */
.form-actions {
  margin-top: 35px;
}

.btn-register {
  width: 100%;
  padding: 15px;
  background: #0FC8C8;
  border-radius: 10px;
  color: white;
  font-weight: 700;
  font-size: 17px;
  border: none;
  cursor: pointer;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 14px;
  color: #0C848A;
  font-weight: 600;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {

  .register-panel {
    padding-top: 60px;
  }

  .register-card {
    padding: 35px 25px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-label.full {
    grid-column: span 1;
  }
}

/* Pantallas grandes */
@media (min-width: 1400px) {
  .register-card {
    max-width: 1200px;
    padding: 70px 90px;
  }
}


/* =========================================
   VALIDACIÓN FRONTEND (FINAL CORRECTA)
========================================= */

.field-label.has-error {
  border-bottom-color: var(--text-error);
}

  .field-label.has-error .field-label-text {
    color: var(--text-error);
  }

/* El error ya NO es parte del flex */
.field-error {
  margin: 0 0 0 40px; /* alinea con el inicio del input */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-error);
}


/* =========================================
   VALIDACIÓN BACKEND (MINIMAL Y CORRECTA)
========================================= */

/* Lista limpia */
.validation-summary-errors ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Mensaje */
.validation-summary-errors li {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-error);
  padding-left: 14px;
  position: relative;
}

  /* Indicador simple (no contenedor extra) */
  .validation-summary-errors li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--text-error);
  }

/* ==================================================
   OVERRIDE TEMA BASE (QUITAR MORADO)
================================================== */

/* Botones */
.btn,
.btn:focus,
.btn:active,
.btn:hover,
.btn:focus-visible {
  background: var(--btn-bg) !important;
  color: var(--btn-text) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Eliminar highlight móvil */
button,
a {
  -webkit-tap-highlight-color: transparent;
}

  /* Quitar focus ring del tema */
  button:focus-visible,
  a:focus-visible,
  input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }

/* ==================================================
   RECOVER ERROR
================================================== */

/* Error debajo del input: mismo ancho del input-box */
.recover-error {
  display: block;
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-error);
}

/* Si tu input-box tiene margin-bottom grande, mejor controlarlo */
.recover-input-box {
  margin-bottom: 0; /* importante para que el error no quede “perdido” */
}

  /* Cuando hay error, deja el separador correcto */
  .recover-input-box.has-error {
    border-color: var(--text-error);
  }

    .recover-input-box.has-error + .recover-error {
      margin-bottom: 18px; /* separa del bloque captcha */
    }

.recover-captcha-error {
  display: block;
  width: 100%;
  margin-top: 8px;
  margin-bottom: 18px; /* separa del botón */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-error);
  text-align: left;
}

/* ==================================================
   OTP ERROR
================================================== */

/* Error OTP */
.otp-error {
  margin-top: 14px;
  margin-bottom: 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--warning-color);
  text-align: center;
}

/* ===== GRID DEL FORMULARIO ===== */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.register-field-error {
  margin: 0 0 0 0; /* alinea con el inicio del input */
  font-size: 12px;
  font-weight: 600;
  color: var(--text-error);
}

.field-validation-error {
  color: var(--text-error);
}

/* Tablet */
@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop */
@media (min-width: 1200px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.form-label.full {
  grid-column: 1 / -1;
}

@media (min-width: 768px) {
  .form-label.full {
    grid-column: auto;
  }
}

@media (min-width: 1200px) {
  .form-label.full {
    grid-column: auto;
  }
}

/* ============================
   BOTÓN CERRAR REGISTER
============================ */

.register-card {
  position: relative; /* clave */
}

.register-card-close {
  position: absolute;
  top: 18px;
  right: 22px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--green-dark);
  padding: 4px;
  z-index: 10;
}

  .register-card-close:hover {
    opacity: 0.7;
  }

/* =========================================
   TERMS CONSENT GROUP
   ESTABLE – NO EMPUJA HACIA ARRIBA
========================================= */

/* Contenedor general */
.terms-group {
  margin-top: 12px;
  font-size: 12px;
}

/* Header clickable */
.terms-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

/* Título */
.terms-title {
  font-size: 12px;
  font-weight: 700;
  color: #006A73;
}

/* Flecha */
.terms-chevron {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
  transition: transform 0.25s ease;
}

/* Rotación colapsado */
.terms-group.collapsed .terms-chevron {
  transform: rotate(-90deg);
}

/* CUERPO: crecimiento solo hacia abajo */
.terms-body {
  margin-top: 8px;
  overflow: hidden;
  max-height: 1000px; /* suficiente para crecer */
  transition: max-height 0.25s ease, margin-top 0.25s ease;
}

/* Estado colapsado */
.terms-group.collapsed .terms-body {
  max-height: 0;
  margin-top: 0;
}

/* Acciones */
.terms-actions {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
}

.terms-action {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--policy-text);
}

  .terms-action:hover {
    text-decoration: underline;
  }

.terms-separator {
  color: rgba(0, 0, 0, 0.35);
}

/* Lista */
.terms-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Item */
.terms-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--policy-text);
  line-height: 1.35;
}

/* Checkbox */
.terms-checkbox {
  margin-top: 2px;
  accent-color: var(--green-dark);
}

/* Texto */
.terms-text {
  flex: 1;
}

/* Link ver */
.terms-link {
  margin-left: 6px;
  color: var(--policy-text);
  text-decoration: underline;
  cursor: pointer;
  font-weight: 600;
}

/* Error */
.terms-error {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-error);
}

.documento-addon {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.documento-addon-input {
  flex: 1 1 auto;
  min-width: 0;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.documento-addon-btn {
  flex: 0 0 52px;
  width: 52px;
  min-width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  margin-top: 6px;
  cursor: pointer;
  background: #fff;
  color: #0f8b94;
  border: 2px solid #52c7cf;
  border-top-left-radius: none;
  border-top-right-radius: 12px;
  border-bottom-right-radius: 12px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

  .documento-addon-btn:hover {
    background: #f2fbfc;
  }

  .documento-addon-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(82, 199, 207, 0.18);
  }

  .documento-addon-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
  }

.documento-addon-icon {
  width: 20px;
  height: 20px;
  display: block;
}
