/* =========================
   RESET / BASE
========================= */

:root {
  --bg: #ffffff;
  --text: #0f172a;
  --text-soft: #5b6475;
  --line: rgba(15, 23, 42, 0.08);

  --brand: #1f5eff;
  --brand-dark: #1147d8;
  --brand-deep: #0e2f88;
  --navy: #0b1736;

  --white: #ffffff;
  --surface: #ffffff;
  --surface-dark: #0f1f4a;
  --surface-soft: #f4f7ff;

  --success: #10b981;
  --warning: #f59e0b;

  --shadow-sm: 0 10px 30px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 24px 60px rgba(16, 24, 40, 0.14);
  --shadow-lg: 0 32px 80px rgba(15, 23, 42, 0.18);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  --container: 1200px;

  --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.25s ease;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: var(--text);
}

.section-head p {
  margin: 0;
  max-width: 700px;
  color: var(--text-soft);
  font-size: 1.03rem;
}

.text-link {
  font-weight: 700;
  color: var(--brand);
}

.text-link:hover {
  color: var(--brand-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--white);
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #edf3ff;
  color: var(--brand-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.24);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.44);
}

/* =========================
   HERO
========================= */

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.06), transparent 28%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,0.05), transparent 24%),
    linear-gradient(135deg, #123fbe 0%, #0f3aa9 45%, #0a2f84 100%);
  color: var(--white);
  padding: 34px 0 88px;
}

.home-hero::after {
  display: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 110px;
  background: linear-gradient(to bottom, rgba(255,255,255,0) 0%, #ffffff 100%);
  pointer-events: none;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 560px);
  gap: 54px;
  align-items: center;
  min-height: 680px;
}

.home-hero__content {
  max-width: 620px;
}

.home-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255,255,255,0.78);
}

.home-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: rgba(255,255,255,0.7);
  display: block;
}

.home-hero h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 6vw, 5.2rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
  font-weight: 800;
  color: #ffffff;
}

.home-hero__lead {
  font-size: 1.12rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.82);
  max-width: 58ch;
  margin-bottom: 30px;
}

.home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.home-hero__meta span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.11);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.92);
  font-size: 0.92rem;
  font-weight: 600;
}

.home-hero__visual {
  position: relative;
}

.hero-photo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: rgba(255,255,255,0.08);
}

.hero-photo-card img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}

.hero-float {
  position: absolute;
  left: -40px;
  bottom: 28px;
  width: min(280px, 85%);
  background: rgba(255,255,255,0.96);
  color: var(--text);
  border-radius: 22px;
  box-shadow: 0 24px 50px rgba(9, 21, 55, 0.22);
  padding: 22px;
}

.hero-float strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: #0f172a;
}

.hero-float p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-soft);
}

/* =========================
   TRUST STRIP
========================= */

.home-trust-strip {
  margin-top: -24px;
  position: relative;
  z-index: 5;
}

.trust-strip {
  background: var(--white);
  border: 1px solid rgba(31, 94, 255, 0.08);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.trust-strip__item {
  padding: 26px 24px;
  border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.trust-strip__item:last-child {
  border-right: 0;
}

.trust-strip__item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.08rem;
  color: var(--text);
}

.trust-strip__item span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* =========================
   SERVICES
========================= */

.home-services {
  padding-top: 92px;
}

.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 94, 255, 0.18);
}

.service-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eef4ff;
  color: var(--brand);
  font-weight: 800;
  margin-bottom: 18px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.2;
  color: var(--text);
}

.service-card p {
  margin: 0 0 16px;
  color: var(--text-soft);
}

/* =========================
   WHY US
========================= */

.home-why {
  background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 34px;
  align-items: start;
}

.why-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
}

.why-copy p {
  color: var(--text-soft);
  max-width: 64ch;
}

.why-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.why-point {
  background: var(--white);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.why-point strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1rem;
}

.why-point span {
  display: block;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.why-panel {
  background: linear-gradient(180deg, #1a56f4 0%, #0f3fd0 100%);
  color: #fff;
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.why-panel h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  line-height: 1.1;
}

.why-panel p {
  color: rgba(255,255,255,0.82);
  margin-bottom: 18px;
}

.why-panel ul {
  list-style: none;
  display: grid;
  gap: 12px;
}

.why-panel li {
  position: relative;
  padding-left: 20px;
  color: rgba(255,255,255,0.9);
}

.why-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  transform: translateY(-50%);
}

/* =========================
   REVIEWS
========================= */

.home-reviews {
  background: #fff;
}

.reviews-wrapper {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.review-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.review-card__stars {
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: #ffb800;
}

.review-card p {
  margin: 0 0 18px;
  color: #475467;
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-card__author strong {
  font-size: 0.98rem;
  color: var(--text);
}

.review-card__author span {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* =========================
   LANGUAGES / DOCUMENTS
========================= */

.simple-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.simple-card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.simple-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(31, 94, 255, 0.18);
}

.simple-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.25;
}

.simple-card p {
  margin: 0 0 14px;
  color: var(--text-soft);
}

/* =========================
   CTA FINAL
========================= */

.home-cta {
  padding-bottom: 110px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #091633 0%, #0f2a66 55%, #1a56f4 100%);
  color: #fff;
  border-radius: 30px;
  padding: 42px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.cta-box::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -80px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.cta-box__content {
  position: relative;
  z-index: 2;
}

.cta-box__content h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 800;
  color: #fff;
}

.cta-box__content p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,0.84);
}

.cta-box__action {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.cta-box__action .btn-primary {
  background: #fff;
  color: var(--brand);
}

/* =========================
   QUOTE FORM
========================= */

#quote-form {
  scroll-margin-top: 90px;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  font: inherit;
  transition: 0.2s ease;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(31, 94, 255, 0.55);
  box-shadow: 0 0 0 4px rgba(31, 94, 255, 0.12);
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1180px) {
  .home-hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 34px;
  }

  .home-hero__content {
    max-width: 760px;
  }

  .home-hero__visual {
    max-width: 760px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-strip__item:nth-child(2) {
    border-right: 0;
  }

  .trust-strip__item:nth-child(-n+2) {
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .service-cards,
  .reviews-grid,
  .simple-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  .section {
    padding: 72px 0;
  }

  .home-hero {
    padding: 24px 0 64px;
  }

  .home-hero h1 {
    font-size: clamp(2.6rem, 9vw, 4rem);
  }

  .home-hero__lead {
    font-size: 1rem;
  }

  .home-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .home-hero__actions .btn {
    width: 100%;
  }

  .hero-photo-card img {
    height: 420px;
  }

  .hero-float {
    position: static;
    width: 100%;
    margin-top: 16px;
  }

  .trust-strip,
  .service-cards,
  .reviews-grid,
  .simple-grid,
  .why-points {
    grid-template-columns: 1fr;
  }

  .trust-strip__item {
    border-right: 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }

  .trust-strip__item:last-child {
    border-bottom: 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box {
    padding: 30px 24px;
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-box__action {
    width: 100%;
  }

  .cta-box__action .btn {
    width: 100%;
  }
}



















/* =========================
   HEADER
========================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.header-bar {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
}

.header-left {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #0f172a;
}

.brand-logo {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
  white-space: nowrap;
}

.brand-text small {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  line-height: 1.3;
  color: #667085;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 420px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  color: #334155;
  font-size: 0.96rem;
  font-weight: 600;
}

.main-nav a:hover {
  background: rgba(31, 94, 255, 0.08);
  color: #1f5eff;
}

.header-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.btn-header {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f5eff 0%, #1147d8 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 14px 28px rgba(31, 94, 255, 0.18);
}

.btn-header:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(31, 94, 255, 0.24);
}

/* =========================
   HEADER RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .header-bar {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px 0;
  }

  .header-left,
  .header-right {
    display: flex;
    justify-content: center;
  }

  .brand {
    justify-content: center;
  }

  .brand-text {
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
  }

  .brand-text small {
    max-width: none;
    white-space: normal;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: relative;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #ffffff;
  }

  .header-bar {
    min-height: auto;
    gap: 12px;
    padding: 14px 0;
  }

  .brand {
    gap: 12px;
    align-items: center;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
  }

  .brand-text strong {
    font-size: 0.95rem;
    white-space: normal;
  }

  .brand-text small {
    font-size: 0.78rem;
  }

  .main-nav {
    gap: 6px;
  }

  .main-nav a {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .header-right {
    width: 100%;
  }

  .btn-header {
    width: 100%;
  }
}













/* =========================
   FOOTER
========================= */

.site-footer {
  position: relative;
  background: #0b1736;
  color: rgba(255, 255, 255, 0.86);
  margin-top: 96px;
  padding: 0;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.site-footer::after {
  content: "";
  position: absolute;
  bottom: -90px;
  left: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(31, 94, 255, 0.18);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 2;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(0, 1fr);
  gap: 54px;
  padding: 64px 0 38px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  min-width: 0;
}

.footer-brand__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 18px;
  color: inherit;
}

.footer-brand__link:hover {
  color: inherit;
  opacity: 0.96;
}

.footer-brand__logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 6px;
}

.footer-brand__text h4 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
}

.footer-brand__text p {
  margin: 0;
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.98rem;
  line-height: 1.75;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 34px;
}

.footer-col h5 {
  margin: 0 0 16px;
  font-size: 0.95rem;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.98rem;
  line-height: 1.5;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-contact a {
  word-break: break-word;
}

.footer-bottom {
  padding: 18px 0 28px;
}

.footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
}

/* =========================
   FOOTER RESPONSIVE
========================= */

@media (max-width: 1024px) {
  .footer-top {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .site-footer {
    margin-top: 72px;
  }

  .footer-top {
    padding: 48px 0 28px;
    gap: 28px;
  }

  .footer-brand__link {
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-col h5 {
    margin-bottom: 12px;
  }

  .footer-bottom {
    padding: 16px 0 24px;
  }
}








/* =========================
   ADMIN
========================= */

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
  background: linear-gradient(180deg, #eff4ff 0%, #f8fbff 100%);
}

.login-card,
.admin-card,
.table-card,
.rich-card,
.card {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

.login-card {
  width: min(100%, 460px);
  padding: 32px;
}

.notice {
  padding: 14px 16px;
  border-radius: 14px;
  margin: 16px 0;
  font-weight: 600;
}

.notice-error {
  background: #fff1f2;
  color: #b42318;
  border: 1px solid #fecdd3;
}

.field,
.admin-form > div {
  display: grid;
  gap: 8px;
}

.field + .field,
.admin-form > div + div {
  margin-top: 14px;
}

.field label,
.admin-form label {
  font-weight: 700;
  color: #0f172a;
}

.field input,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid #d7deea;
  border-radius: 14px;
  min-height: 48px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.admin-form textarea {
  min-height: 170px;
  resize: vertical;
}

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  background: #f6f8fc;
}

.admin-sidebar {
  background: linear-gradient(180deg, #0b1736 0%, #132756 100%);
  color: rgba(255,255,255,0.84);
  padding: 26px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-brand {
  padding: 12px 10px 18px;
}

.admin-brand strong {
  display: block;
  color: #fff;
  font-size: 1.15rem;
}

.admin-brand__eyebrow,
.admin-nav-title {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.54);
  margin-bottom: 10px;
}

.admin-nav-group {
  display: grid;
  gap: 6px;
}

.admin-sidebar a {
  display: block;
  color: rgba(255,255,255,0.8);
  padding: 11px 12px;
  border-radius: 14px;
  font-weight: 600;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.admin-sidebar__footer {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.admin-main {
  padding: 28px;
}

.admin-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 22px;
}

.admin-head h1 {
  margin: 0 0 6px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.admin-card,
.table-card {
  padding: 22px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.admin-form > div {
  margin-top: 0 !important;
}

.admin-form .full {
  grid-column: 1 / -1;
}

.checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  padding: 0;
}

.muted {
  color: #64748b;
}

table {
  width: 100%;
  border-collapse: collapse;
}

table th,
table td {
  text-align: left;
  padding: 14px 10px;
  border-bottom: 1px solid #e8edf5;
  vertical-align: top;
}

table th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #64748b;
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-main {
    padding: 20px;
  }

  .admin-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .admin-head {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }

  .table-card {
    overflow-x: auto;
  }
}

/* =========================
   DETALLES SEO + IA ADMIN
========================= */

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 104px 0 76px;
  color: #fff;
  background: radial-gradient(circle at 82% 18%, rgba(31,94,255,0.44), transparent 28%), linear-gradient(135deg, #0b1736 0%, #132756 58%, #0f1f4a 100%);
}

.detail-hero--language {
  background: radial-gradient(circle at 78% 24%, rgba(16,185,129,0.28), transparent 30%), linear-gradient(135deg, #0b1736 0%, #11265b 54%, #12364d 100%);
}

.detail-hero--document {
  background: radial-gradient(circle at 80% 20%, rgba(245,158,11,0.28), transparent 31%), linear-gradient(135deg, #0b1736 0%, #20235e 56%, #34204b 100%);
}

.detail-hero--locality {
  background: radial-gradient(circle at 80% 20%, rgba(99,102,241,0.34), transparent 31%), linear-gradient(135deg, #0b1736 0%, #172554 58%, #16213f 100%);
}

.detail-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.55fr);
  gap: 52px;
  align-items: center;
}

.detail-hero h1 {
  max-width: 820px;
  margin: 16px 0 22px;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.detail-hero .home-hero__lead {
  color: rgba(255,255,255,0.78);
}

.detail-hero__panel {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 28px;
  background: rgba(255,255,255,0.10);
  box-shadow: 0 30px 70px rgba(0,0,0,0.22);
  backdrop-filter: blur(14px);
}

.detail-hero__panel strong {
  display: block;
  color: #fff;
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.detail-hero__panel p,
.detail-hero__panel li {
  color: rgba(255,255,255,0.78);
}

.detail-hero__panel ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.detail-strip {
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.rich-card--detail {
  padding: 36px;
}

.rich-card--detail h2 {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.03em;
}

.rich-card--detail h2:first-child {
  margin-top: 0;
}

.rich-card--detail h3 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 1.12rem;
}

.rich-card--detail ul,
.rich-card--detail ol {
  padding-left: 22px;
  color: var(--text-soft);
}

.detail-aside {
  padding: 24px;
}

.detail-aside ul {
  padding-left: 20px;
  color: var(--text-soft);
}

.detail-flow {
  background: linear-gradient(180deg, #fff 0%, #f7f9ff 100%);
}

.document-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.document-steps > div {
  padding: 24px;
  background: #fff;
  border: 1px solid rgba(15,23,42,0.08);
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
}

.document-steps span,
.mini-stat span {
  display: block;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.document-steps strong,
.mini-stat strong {
  display: block;
  color: var(--text);
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.mini-stat {
  margin-top: 20px;
  padding: 18px;
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
}

.ai-fill-box {
  padding: 18px;
  border: 1px dashed #b8c5dd;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.ai-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 960px) {
  .detail-hero__grid,
  .document-steps {
    grid-template-columns: 1fr;
  }

  .detail-hero {
    padding: 80px 0 60px;
  }
}

/* Editor visual para campos HTML del panel */
.html-editor {
  border: 1px solid #d7deeb;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
}

.html-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid #e5eaf3;
  background: #f8fafc;
}

.html-editor__btn {
  border: 1px solid #cfd8e8;
  background: #fff;
  color: #0f172a;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.html-editor__btn:hover {
  background: #eef4ff;
  border-color: #9fb4d8;
}

.html-editor__btn--source {
  margin-left: auto;
  color: #0b5cff;
}

.html-editor__editable {
  min-height: 320px;
  padding: 18px;
  outline: none;
  line-height: 1.65;
  color: #0f172a;
}

.html-editor__editable:focus {
  box-shadow: inset 0 0 0 2px rgba(11,92,255,0.18);
}

textarea.html-editor__source {
  width: 100%;
  min-height: 320px;
  border-radius: 0 0 16px 16px;
  border: 1px solid #d7deeb;
  border-top: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  line-height: 1.55;
  padding: 16px;
}

.html-editor__editable h1,
.html-editor__editable h2,
.html-editor__editable h3 {
  margin: 1em 0 0.45em;
  line-height: 1.2;
  color: #0f172a;
}

.html-editor__editable h1 { font-size: 2rem; }
.html-editor__editable h2 { font-size: 1.55rem; }
.html-editor__editable h3 { font-size: 1.25rem; }
.html-editor__editable p { margin: 0 0 1em; }
.html-editor__editable ul,
.html-editor__editable ol { padding-left: 1.4rem; margin: 0 0 1em; }
.html-editor__editable a { color: #0b5cff; text-decoration: underline; }


.alert {
  padding: 14px 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  font-weight: 700;
}

.alert-success {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.alert-error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.link-button {
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.table-card code {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 4px 7px;
  color: #0f172a;
  font-size: 0.92em;
}

/* Blog importado desde WordPress */
.blog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:24px}
.blog-card{background:#fff;border:1px solid #e7edf7;border-radius:24px;overflow:hidden;box-shadow:0 18px 50px rgba(15,23,42,.08)}
.blog-card img{width:100%;height:210px;object-fit:cover;display:block;background:#eef3fb}
.blog-card__body{padding:24px}
.blog-card__body h2{font-size:1.25rem;line-height:1.3;margin:6px 0 12px}
.blog-card__body h2 a{color:#0f1f45;text-decoration:none}
.blog-card__body p{color:#536179}
.blog-date{font-size:.88rem;color:#64748b;margin:0 0 8px}
.text-link{font-weight:800;color:#0b5cff;text-decoration:none}
.narrow{max-width:980px;margin:0 auto}
.blog-post-head{max-width:920px}
.blog-featured{width:100%;max-height:460px;object-fit:cover;border-radius:28px;margin-bottom:24px;box-shadow:0 20px 60px rgba(15,23,42,.12)}
.blog-content{font-size:1.05rem;line-height:1.8}
.blog-content img{max-width:100%;height:auto;border-radius:18px;margin:18px 0}
.blog-content h2,.blog-content h3,.blog-content h4{margin-top:1.7em;color:#0f1f45}
.blog-content a{color:#0b5cff;font-weight:700}
.back-link{margin-top:24px}
.check-row{display:flex!important;align-items:center;gap:10px;font-weight:700;color:#172033}
.check-row input{width:auto!important}
.alert.danger{background:#fff1f2;border:1px solid #fecdd3;color:#9f1239}

/* Blog premium layout */
.breadcrumbs{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:18px;color:#64748b;font-size:.92rem}
.breadcrumbs a{color:#42526b;text-decoration:none;font-weight:700}.breadcrumbs a:hover{color:#0b5cff}.breadcrumbs span{color:#94a3b8}
.blog-list-hero,.blog-post-hero{background:radial-gradient(circle at 12% 20%,rgba(11,92,255,.10),transparent 35%),linear-gradient(180deg,#f8fbff 0%,#fff 100%);border-bottom:1px solid #edf2f9;padding:70px 0 52px}
.blog-list-hero__inner{max-width:820px;text-align:center}.blog-list-hero h1,.blog-post-hero h1{font-size:clamp(2.15rem,4vw,4rem);line-height:1.08;letter-spacing:-.045em;color:#07142f;margin:10px 0 18px}.blog-list-hero p,.blog-post-excerpt{font-size:1.13rem;line-height:1.75;color:#536179}
.blog-post-hero__grid{display:grid;grid-template-columns:minmax(0,1fr) 440px;gap:48px;align-items:center}.blog-post-hero__copy{max-width:820px}.blog-post-hero__image{margin:0}.blog-post-hero__image img{width:100%;height:360px;object-fit:cover;border-radius:32px;box-shadow:0 28px 80px rgba(15,23,42,.16);border:1px solid rgba(15,23,42,.08)}
.blog-meta-row{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0;color:#536179;font-weight:700}.blog-meta-row span{display:inline-flex;align-items:center;gap:8px;background:#fff;border:1px solid #e8eef7;border-radius:999px;padding:8px 13px;box-shadow:0 10px 30px rgba(15,23,42,.05)}
.blog-share{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.blog-share span{font-weight:800;color:#0f1f45}.blog-share a{display:inline-flex;align-items:center;justify-content:center;border:1px solid #dce6f5;background:#fff;border-radius:999px;padding:10px 15px;text-decoration:none;color:#0f1f45;font-weight:800;box-shadow:0 12px 24px rgba(15,23,42,.06);transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}.blog-share a:hover{transform:translateY(-2px);border-color:#0b5cff;box-shadow:0 16px 34px rgba(11,92,255,.12);color:#0b5cff}.blog-share--hero{margin-top:24px}
.blog-layout{display:grid;grid-template-columns:minmax(0,760px) 340px;gap:42px;align-items:start}.blog-main{min-width:0}.blog-article{background:#fff;border:1px solid #e6edf7;border-radius:30px;box-shadow:0 22px 70px rgba(15,23,42,.08);padding:clamp(24px,4vw,52px);font-size:1.08rem;line-height:1.88;color:#0f1f45;overflow:hidden}.blog-article>*:first-child{margin-top:0}.blog-article h2{font-size:clamp(1.7rem,2.4vw,2.35rem);line-height:1.2;margin:2.1em 0 .7em;color:#07142f;letter-spacing:-.03em}.blog-article h3{font-size:clamp(1.35rem,2vw,1.75rem);line-height:1.25;margin:1.8em 0 .65em;color:#07142f}.blog-article h4{font-size:1.15rem;margin:1.5em 0 .55em;color:#07142f}.blog-article p{margin:0 0 1.25em}.blog-article a{color:#0b5cff;font-weight:800;text-decoration-thickness:2px;text-underline-offset:3px}.blog-article ul,.blog-article ol{padding-left:1.35em;margin:0 0 1.4em}.blog-article li{margin:.55em 0}.blog-article img{max-width:100%;height:auto;border-radius:22px;margin:24px 0;box-shadow:0 16px 40px rgba(15,23,42,.10)}.blog-article blockquote{margin:30px 0;padding:26px 28px;border-left:5px solid #0b5cff;background:#f4f8ff;border-radius:20px;color:#0f1f45;font-weight:700}.blog-article table{width:100%;border-collapse:collapse;margin:30px 0;border-radius:18px;overflow:hidden}.blog-article th,.blog-article td{border:1px solid #dce6f5;padding:14px;text-align:left}.blog-article th{background:#f4f8ff;color:#07142f}
.blog-sidebar{position:sticky;top:96px;display:grid;gap:22px}.sidebar-card{background:#fff;border:1px solid #e6edf7;border-radius:28px;padding:26px;box-shadow:0 18px 54px rgba(15,23,42,.08)}.sidebar-card h2{font-size:1.28rem;line-height:1.25;margin:6px 0 12px;color:#07142f}.sidebar-card p{color:#536179;line-height:1.65}.cta-card{background:linear-gradient(160deg,#07142f 0%,#12306b 100%);color:#fff}.cta-card h2,.cta-card p,.cta-card .eyebrow{color:#fff}.cta-card .btn{width:100%;justify-content:center;margin-top:10px;background:#fff;color:#0b5cff}.latest-list{display:grid;gap:16px}.latest-item{display:grid;grid-template-columns:78px 1fr;gap:13px;text-decoration:none;color:#0f1f45;align-items:center}.latest-item img{width:78px;height:68px;object-fit:cover;border-radius:16px;background:#eef3fb}.latest-item strong{display:block;font-size:.95rem;line-height:1.35}.latest-item small{display:block;margin-top:6px;color:#64748b}.latest-item:hover strong{color:#0b5cff}
.blog-bottom-share{margin-top:26px;background:#f8fbff;border:1px solid #e6edf7;border-radius:28px;padding:28px;box-shadow:0 16px 44px rgba(15,23,42,.06)}.blog-bottom-share h2{font-size:1.45rem;margin:0 0 8px;color:#07142f}.blog-bottom-share p{margin:0 0 16px;color:#536179}
.blog-feature-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:0;overflow:hidden;background:#fff;border:1px solid #e6edf7;border-radius:34px;box-shadow:0 24px 80px rgba(15,23,42,.10);margin-bottom:34px}.blog-feature-card__image img{width:100%;height:100%;min-height:360px;object-fit:cover;display:block}.blog-feature-card__body{padding:clamp(28px,4vw,52px);display:flex;flex-direction:column;justify-content:center}.blog-feature-card__body h2{font-size:clamp(1.9rem,3vw,3rem);line-height:1.12;letter-spacing:-.04em;margin:8px 0 16px}.blog-feature-card__body h2 a{color:#07142f;text-decoration:none}.blog-feature-card__body p{color:#536179;line-height:1.75;margin-bottom:22px}.blog-grid--list{margin-top:16px}.blog-card{transition:transform .18s ease,box-shadow .18s ease}.blog-card:hover{transform:translateY(-4px);box-shadow:0 22px 70px rgba(15,23,42,.12)}
@media (max-width: 980px){.blog-post-hero__grid,.blog-layout,.blog-feature-card{grid-template-columns:1fr}.blog-post-hero__image img{height:auto;max-height:420px}.blog-sidebar{position:static}.blog-list-hero,.blog-post-hero{padding:48px 0 34px}}
@media (max-width: 640px){.blog-article{border-radius:22px;padding:22px}.blog-share a{padding:9px 12px}.latest-item{grid-template-columns:64px 1fr}.latest-item img{width:64px;height:58px}.blog-list-hero h1,.blog-post-hero h1{font-size:2.05rem}}
