:root {
  --lr-primary: #174a7e;
  --lr-primary-dark: #10385f;
  --lr-accent: #e6a23c;
  --lr-text: #203044;
  --lr-muted: #203450;
  --lr-border: #d7e0ea;
  --lr-bg: #73ffa6;
  --lr-card: #ffffff;
  --lr-danger: #b42318;
  --lr-success: #176b45;
  --lr-radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--lr-bg);
  color: var(--lr-text);
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.55;
}
.site-header {
  color: #fff;
  background: linear-gradient(125deg, var(--lr-primary-dark), var(--lr-primary));
  border-bottom: 5px solid var(--lr-accent);
}
.header-inner {
  width: min(1080px, calc(100% - 36px));
  margin: 0 auto;
  padding: 30px 0;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand-mark {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 15px;
  background: rgb(255 255 255 / 12%);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}
.eyebrow {
  margin: 0 0 4px;
  color: #d8e8f8;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.header-inner h1 { margin: 0; font-size: clamp(1.6rem, 4vw, 2.35rem); line-height: 1.2; }
.header-subtitle { margin: 8px 0 0; color: #e3edf7; }
.page-wrap { width: min(920px, calc(100% - 32px)); margin: 32px auto 48px; }
.intro { margin: 0 0 20px; }
.intro h2 { margin: 0 0 8px; color: var(--lr-primary-dark); font-size: 1.6rem; }
.intro p { margin: 7px 0; color: var(--lr-muted); }
.privacy-note {
  padding: 12px 15px;
  border-left: 4px solid var(--lr-accent);
  border-radius: 0 8px 8px 0;
  background: #fff8eb;
  color: #664b1d !important;
}
.required { color: #c33225; font-style: normal; font-weight: 800; }
.optional-tag { color: var(--lr-muted); font-size: .82rem; font-weight: 500; }
.form-section {
  margin: 18px 0;
  padding: clamp(18px, 3vw, 30px);
  border: 1px solid var(--lr-border);
  border-radius: var(--lr-radius);
  background: var(--lr-card);
  box-shadow: 0 5px 18px rgb(31 55 80 / 4%);
}
.section-heading { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 24px; }
.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 12px;
  color: #fff;
  background: var(--lr-primary);
  font-size: 1.1rem;
  font-weight: 800;
}
.section-heading h2 { margin: 0 0 4px; color: var(--lr-primary-dark); font-size: 1.25rem; }
.section-heading p { margin: 0; color: var(--lr-muted); font-size: .93rem; }
.field { min-width: 0; margin: 0 0 22px; }
.field:last-child { margin-bottom: 0; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
label, legend { color: #24384d; font-weight: 700; }
.field > label, .field > legend { display: block; margin-bottom: 8px; }
fieldset.field { min-width: 0; padding: 0; border: 0; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #cbd6e2;
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--lr-text);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: #2f6fa7;
  box-shadow: 0 0 0 3px rgb(47 111 167 / 15%);
}
input[readonly] { background: #f0f4f8 !important; color: #526579 !important; }
input:disabled, select:disabled { cursor: not-allowed; background: #f3f5f7 !important; }
.help { margin: 7px 0 0; color: var(--lr-muted); font-size: .87rem; font-weight: 400; }
.field-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
#contadorDescripcion { flex: 0 0 auto; color: var(--lr-muted); font-size: .85rem; }
.choice-list { display: grid; gap: 10px; margin-top: 12px; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border: 1px solid var(--lr-border);
  border-radius: 9px;
  background: #fbfcfe;
  font-weight: 500;
  cursor: pointer;
}
.choice input, .motivo-card input { margin-top: 4px; accent-color: var(--lr-primary); flex: 0 0 auto; }
.choice-inline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.motives { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.motivo-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--lr-border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.motivo-card:has(input:checked) { border-color: var(--lr-primary); background: #f0f6fc; }
.motivo-card strong { display: block; font-size: .94rem; }
.motivo-card small { display: block; margin-top: 3px; color: var(--lr-muted); font-weight: 400; line-height: 1.4; }
.subfield {
  margin-top: 14px;
  padding: 16px;
  border-radius: 10px;
  border: 1px dashed #aebed0;
  background: #f7faff;
}
.inline-error { margin: 10px 0 0; color: var(--lr-danger); font-size: .9rem; }
.alert { margin: 18px 0; padding: 14px 16px; border: 1px solid transparent; border-radius: 10px; }
.alert-error { color: #8d2119; background: #fff0ee; border-color: #f3c3be; }
.alert-success { color: #155d3d; background: #eaf8f0; border-color: #b5e2c8; }
.submit-area { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin: 22px 0; padding: 20px; border: 1px solid var(--lr-border); border-radius: var(--lr-radius); background: #fff; }
.submit-area .help { margin: 0; }
#btnEnviar {
  min-height: 48px;
  padding: 12px 22px;
  border: 0;
  border-radius: 10px;
  background: var(--lr-primary);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease;
}
#btnEnviar:hover { background: var(--lr-primary-dark); }
#btnEnviar:active { transform: translateY(1px); }
#btnEnviar:disabled { opacity: .65; cursor: wait; }
.page-footer { padding: 20px 0 0; color: var(--lr-muted); text-align: center; font-size: .88rem; }
.page-footer p { margin: 5px 0; }
[hidden] { display: none !important; }
@media (max-width: 650px) {
  .header-inner { align-items: flex-start; padding: 23px 0; gap: 13px; }
  .brand-mark { width: 52px; height: 52px; flex-basis: 52px; border-radius: 12px; font-size: 16px; }
  .page-wrap { width: min(100% - 22px, 920px); margin-top: 22px; }
  .field-grid, .motives { grid-template-columns: 1fr; }
  .choice-inline { grid-template-columns: 1fr; }
  .submit-area { align-items: stretch; flex-direction: column; }
  #btnEnviar { width: 100%; }
  .field-footer { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}


/* =====================================================
   MENSAJE FLOTANTE INFERIOR
===================================================== */

.mensaje-overlay {
    position: fixed;
    z-index: 999999;

    /* Ubicación inferior */
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);

    width: min(440px, calc(100% - 30px));

    display: flex;
    justify-content: center;

    pointer-events: none;

    animation: mensajeSubir 0.4s ease;
}

.mensaje-contenido {
    width: 100%;
    padding: 20px 24px 16px;

    text-align: center;

    background: #ffffff;
    border-radius: 14px;

    border: 1px solid var(--lr-border);
    border-left: 5px solid var(--lr-success);

    box-shadow: 0 8px 30px rgba(15, 35, 55, 0.22);

    pointer-events: auto;
}

.mensaje-error {
    border-left-color: var(--lr-danger);
}

.mensaje-icono {
    width: 43px;
    height: 43px;

    margin: 0 auto 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 25px;
    font-weight: 800;
}

.mensaje-exito .mensaje-icono {
    color: #ffffff;
    background: var(--lr-success);
}

.mensaje-error .mensaje-icono {
    color: #ffffff;
    background: var(--lr-danger);
}

.mensaje-contenido h3 {
    margin: 0 0 7px;
    color: var(--lr-primary-dark);
    font-size: 19px;
    font-weight: 800;
}

.mensaje-contenido p {
    margin: 0;
    color: var(--lr-text);
    font-size: 14px;
    line-height: 1.5;
}

.codigo-reclamo {
    margin-top: 13px;
    padding: 11px;

    background: #eff6ff;
    border: 1px dashed #2563eb;
    border-radius: 9px;
}

.codigo-reclamo span {
    display: block;
    margin-bottom: 5px;
    color: var(--lr-muted);
    font-size: 12px;
}

.codigo-reclamo strong {
    display: block;
    color: var(--lr-primary-dark);
    font-size: 19px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.mensaje-conservar {
    display: block;
    margin-top: 8px;
    color: var(--lr-muted);
    font-size: 11px;
}

.mensaje-progreso {
    height: 4px;
    margin-top: 15px;
    overflow: hidden;
    background: #e5e7eb;
    border-radius: 10px;
}

.mensaje-progreso-barra {
    width: 100%;
    height: 100%;
    background: var(--lr-success);
    transform-origin: left;
    animation: reducirBarra 3s linear forwards;
}

.mensaje-error .mensaje-progreso-barra {
    background: var(--lr-danger);
}

@keyframes reducirBarra {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@keyframes mensajeSubir {
    from {
        opacity: 0;
        transform: translate(-50%, 25px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

@media (max-width: 480px) {
    .mensaje-overlay {
        bottom: 15px;
        width: calc(100% - 24px);
    }

    .mensaje-contenido {
        padding: 17px 16px 13px;
    }

    .mensaje-contenido h3 {
        font-size: 17px;
    }

    .codigo-reclamo strong {
        font-size: 17px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mensaje-overlay,
    .mensaje-contenido,
    .mensaje-progreso-barra {
        animation: none !important;
    }
}


/* =====================================================
   AJUSTE LIGERO DEL TAMAÑO DE TEXTOS
   Mantiene el diseño y mejora la proporción visual
===================================================== */

/* TEXTO GENERAL */
body {
    font-size: 14px;
}

/* ENCABEZADO */
.header-inner h1 {
    font-size: clamp(1.5rem, 3.8vw, 2.15rem);
}

.header-subtitle {
    font-size: 14px;
}

.eyebrow {
    font-size: .72rem;
}

/* CONTENIDO PRINCIPAL */
.intro h2 {
    font-size: 1.5rem;
}

.intro p {
    font-size: .94rem;
}

.privacy-note {
    font-size: .93rem;
}

/* TÍTULOS DE SECCIONES */
.section-heading h2 {
    font-size: 1.18rem;
}

.section-heading p {
    font-size: .88rem;
}

.step-number {
    font-size: 1rem;
}

/* ETIQUETAS Y CAMPOS */
label,
legend {
    font-size: .94rem;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    font-size: 14px;
}

input::placeholder,
textarea::placeholder {
    font-size: 13px;
}

.help {
    font-size: .82rem;
}

.optional-tag {
    font-size: .78rem;
}

/* OPCIONES Y MOTIVOS */
.choice {
    font-size: .92rem;
}

.motivo-card strong {
    font-size: .89rem;
}

.motivo-card small {
    font-size: .83rem;
}

.inline-error {
    font-size: .85rem;
}

/* ALERTAS Y BOTÓN */
.alert {
    font-size: .93rem;
}

#btnEnviar {
    font-size: 14px;
}

/* PIE DE PÁGINA */
.page-footer {
    font-size: .83rem;
}

/* MENSAJE FLOTANTE */
.mensaje-contenido h3 {
    font-size: 18px;
}

.mensaje-contenido p {
    font-size: 13px;
}

.mensaje-icono {
    font-size: 23px;
}

.codigo-reclamo span {
    font-size: 11px;
}

.codigo-reclamo strong {
    font-size: 18px;
}

.mensaje-conservar {
    font-size: 10px;
}

/* AJUSTES PARA CELULARES */
@media (max-width: 650px) {
    .header-inner h1 {
        font-size: 1.4rem;
    }

    .intro h2 {
        font-size: 1.35rem;
    }

    .section-heading h2 {
        font-size: 1.12rem;
    }

    label,
    legend {
        font-size: .91rem;
    }

    .choice {
        font-size: .88rem;
    }

    .mensaje-contenido h3 {
        font-size: 16px;
    }
}
