/* ── Estilos propios del libro de reclamaciones ── */

.lr-page {
  padding: 96px 5vw 80px;
  background: var(--gray-50);
  min-height: 100vh;
}

.lr-inner {
  max-width: 900px;
  margin: 0 auto;
}

/* Hero banner */
.lr-hero {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 36px 40px 32px;
  margin-bottom: 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.lr-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange), var(--blue));
}

.lr-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-border);
  border-radius: 99px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.lr-badge svg {
  width: 13px;
  height: 13px;
}

.lr-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 10px;
}

.lr-title span {
  color: var(--blue);
}

.lr-subtitle {
  color: var(--text-mid);
  font-size: 0.97rem;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 640px;
}

.lr-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.lr-meta-card {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.lr-meta-card span {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 4px;
}

.lr-meta-card strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

/* Form card */
.lr-form-card {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.lr-form-header {
  padding: 24px 36px;
  border-bottom: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 14px;
}

.lr-form-header-ico {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--blue-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lr-form-header-ico svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.lr-form-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.lr-form-header p {
  color: var(--text-light);
  font-size: 0.84rem;
  margin: 0;
}

.lr-form-body {
  padding: 32px 36px;
}

/* Sección numerada */
.lr-section {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.3s;
}

.lr-section:last-of-type {
  margin-bottom: 0;
}

.lr-section:focus-within {
  border-color: var(--blue-border);
}

.lr-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.lr-step {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--orange);
  color: var(--white);
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(240, 124, 26, 0.3);
}

.lr-section-head h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0 0 3px;
  line-height: 1.2;
}

.lr-section-head p {
  color: var(--text-light);
  font-size: 0.83rem;
  margin: 0;
  line-height: 1.5;
}

/* Grid de campos */
.frow {
  display: grid;
  gap: 14px;
}

.frow-2 {
  grid-template-columns: 1fr 1fr;
}

.frow-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.frow-4 {
  grid-template-columns: repeat(4, 1fr);
}

.frow-1 {
  grid-template-columns: 1fr;
}

.frow+.frow {
  margin-top: 14px;
}

.fgroup {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flabel {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gray-800);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flabel-opt {
  font-weight: 400;
  color: var(--text-light);
  text-transform: none;
  letter-spacing: 0;
}

.finput,
.fselect {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-family: 'Outfit', sans-serif;
  font-size: 0.88rem;
  color: var(--text-main);
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
  appearance: none;
}

.finput::placeholder {
  color: var(--text-light);
}

.finput:focus,
.fselect:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(15, 108, 178, 0.09);
  background: var(--white);
}

.finput.invalid,
.fselect.invalid {
  border-color: #e53e3e;
  box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.07);
}

textarea.finput {
  resize: vertical;
  min-height: 110px;
  padding-top: 11px;
}

/* Select arrow */
.fselect-wrap {
  position: relative;
}

.fselect-wrap::after {
  content: '';
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--text-light);
  pointer-events: none;
}

.ferr {
  font-size: 0.72rem;
  color: #e53e3e;
  font-weight: 500;
  display: none;
}

.ferr.show {
  display: block;
}

/* Tip */
.lr-tip {
  margin-top: 16px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: var(--orange-soft);
  border: 1.5px solid var(--orange-border);
  color: #7a4a0a;
  font-size: 0.83rem;
  line-height: 1.65;
  display: flex;
  gap: 9px;
  align-items: flex-start;
}

.lr-tip svg {
  width: 15px;
  height: 15px;
  color: var(--orange);
  flex-shrink: 0;
  margin-top: 1px;
}

/* Acciones */
.lr-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid var(--gray-100);
  margin-top: 28px;
}

.btn-lr-submit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  background: var(--blue);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.93rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-lr-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}

.btn-lr-submit:hover::before {
  transform: scaleX(1);
}

.btn-lr-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(240, 124, 26, 0.28);
}

.btn-lr-submit>* {
  position: relative;
  z-index: 1;
}

.btn-lr-submit svg {
  width: 15px;
  height: 15px;
}

.btn-lr-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-lr-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: 'Outfit', sans-serif;
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.btn-lr-back:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-soft);
}

.btn-lr-back svg {
  width: 15px;
  height: 15px;
}

.lr-legal {
  margin-top: 20px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.8rem;
  line-height: 1.65;
}

/* Mensaje de respuesta */
.fmsg {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.87rem;
  font-weight: 500;
  display: none;
  margin-top: 16px;
}

.fmsg.ok {
  background: rgba(72, 187, 120, 0.07);
  border: 1.5px solid rgba(72, 187, 120, 0.28);
  color: #22543d;
  display: block;
}

.fmsg.err {
  background: rgba(229, 62, 62, 0.06);
  border: 1.5px solid rgba(229, 62, 62, 0.22);
  color: #c53030;
  display: block;
}

/* Footer */
.lr-footer {
  padding: 20px 5vw 32px;
  text-align: center;
  color: var(--text-light);
  font-size: 0.78rem;
  border-top: 1px solid var(--gray-200);
  background: var(--white);
}

/* Responsive */
@media (max-width: 768px) {
  .lr-page {
    padding: 86px 4vw 60px;
  }

  .lr-hero {
    padding: 24px 20px 20px;
  }

  .lr-meta {
    grid-template-columns: 1fr;
  }

  .lr-form-header {
    padding: 20px;
  }

  .lr-form-body {
    padding: 20px;
  }

  .lr-section {
    padding: 20px 16px;
  }

  .frow-2,
  .frow-3,
  .frow-4 {
    grid-template-columns: 1fr;
  }

  .lr-actions {
    flex-direction: column;
  }

  .btn-lr-submit,
  .btn-lr-back {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .lr-title {
    font-size: 1.7rem;
  }

  .lr-form-body {
    padding: 16px;
  }
}