:root {
  --bg: #f1f3f5;
  --panel: #f6f7f8;
  --navy: #1e3559;
  --navy-deep: #112a44;
  --orange: #f28a4a;
  --orange-strong: #ee7440;
  --text: #182b40;
  --muted: #5b6876;
  --line: rgba(17, 42, 68, 0.16);
  --shadow: 0 18px 44px rgba(17, 42, 68, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: #efefef;
  color: var(--text);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea {
  font: inherit;
}

.page-shell {
  width: min(1440px, calc(100% - 30px));
  margin: 20px auto;
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid var(--line);
  border-radius: 0;
  padding: 10px 24px 30px;
  position: relative;
}

.page-shell::before,
.page-shell::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--navy);
  top: 10px;
}

.page-shell::before {
  left: 10px;
  border-right: none;
  border-bottom: none;
}

.page-shell::after {
  right: 10px;
  border-left: none;
  border-bottom: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 80px;
  padding: 12px 8px 0;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--navy) 0%, #213d63 100%);
  color: white;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 14px 28px rgba(17, 42, 68, 0.16);
}

.brand-tag {
  color: var(--navy);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.admin-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 42, 68, 0.12);
  background: rgba(17, 42, 68, 0.04);
  color: var(--navy);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 800;
  transition: all 0.2s ease;
}

.admin-login:hover {
  transform: translateY(-1px);
  background: rgba(242, 138, 74, 0.08);
  border-color: rgba(242, 138, 74, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--navy);
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0.85;
}

.main-nav a:hover {
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.5rem;
  text-decoration: none;
  font-weight: 700;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0.8rem;
  border: 1px solid rgba(17, 42, 68, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.switch-track {
  position: relative;
  width: 42px;
  height: 22px;
  border-radius: 999px;
  background: rgba(17, 42, 68, 0.12);
  display: inline-flex;
  align-items: center;
  padding: 4px;
}

.switch-thumb {
  position: absolute;
  left: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-strong) 100%);
  box-shadow: 0 6px 12px rgba(242, 138, 74, 0.25);
  transition: transform 0.25s ease;
}

.lang-toggle.is-es .switch-thumb {
  transform: translateX(20px);
}

.switch-text {
  font-size: 0.7rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-strong) 100%);
  color: white;
  box-shadow: 0 16px 26px rgba(242, 138, 74, 0.2);
}

.btn-secondary {
  background: rgba(17, 42, 68, 0.04);
  color: var(--navy);
  border: 1px solid rgba(17, 42, 68, 0.12);
}

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 34px 10px 20px;
}

.hero-copy {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 340px;
}

.hero-text-wrap {
  display: grid;
  gap: 16px;
  max-width: 420px;
}

.eyebrow {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.7;
}

.hero-copy h1 {
  display: flex;
  flex-direction: column;
  max-width: 340px;
  margin: 0;
}

.hero-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.btn-secondary {
  background: rgba(17, 42, 68, 0.05);
  color: var(--navy);
  border: 1px solid rgba(17, 42, 68, 0.12);
  box-shadow: none;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hero-proof span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 42, 68, 0.05);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.line {
  display: block;
  font-size: clamp(2.4rem, 2.8vw, 4.1rem);
  line-height: 0.94;
  letter-spacing: -0.08em;
  font-weight: 900;
  text-transform: uppercase;
}

.line-blue {
  color: var(--navy);
}

.line-orange {
  color: var(--orange);
}

.hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.logo-panel {
  width: min(100%, 540px);
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0.1));
  border: 1px solid rgba(17, 42, 68, 0.08);
  border-radius: 32px;
  padding: 12px 16px 6px;
  box-shadow: 0 26px 44px rgba(17, 42, 68, 0.08);
}

.logo-panel img {
  width: min(100%, 470px);
  filter: drop-shadow(0 22px 30px rgba(17, 42, 68, 0.08));
}

.signature {
  margin-top: 18px;
  color: var(--navy);
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 2.2vw, 3rem);
  font-style: italic;
  letter-spacing: 0.02em;
}

.hero-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.qr-box {
  position: relative;
  width: 165px;
  height: 165px;
  background: white;
  border: 10px solid var(--navy);
  border-radius: 12px;
  box-shadow: inset 0 0 0 8px rgba(17, 42, 68, 0.05);
}

.qr {
  position: absolute;
  display: block;
  background: var(--navy);
  border-radius: 4px;
}

.qr-a {
  left: 20px;
  top: 20px;
  width: 16px;
  height: 16px;
  box-shadow: 24px 0 0 var(--navy), 48px 0 0 var(--navy), 0 24px 0 var(--navy), 24px 24px 0 var(--navy), 48px 24px 0 var(--navy), 72px 0 0 var(--navy), 72px 24px 0 var(--navy), 96px 0 0 var(--navy), 96px 24px 0 var(--navy), 24px 48px 0 var(--navy), 48px 48px 0 var(--navy);
}

.qr-b {
  right: 20px;
  top: 28px;
  width: 10px;
  height: 10px;
  box-shadow: 0 28px 0 var(--navy), 0 56px 0 var(--navy), 28px 28px 0 var(--navy), 28px 56px 0 var(--navy), 56px 0 0 var(--navy), 56px 28px 0 var(--navy);
}

.qr-c {
  left: 72px;
  bottom: 22px;
  width: 12px;
  height: 12px;
  box-shadow: -28px 0 0 var(--navy), -56px 0 0 var(--navy), 0 -28px 0 var(--navy), 0 -56px 0 var(--navy), -28px -28px 0 var(--navy), -56px -28px 0 var(--navy), -28px -56px 0 var(--navy), 28px 0 0 var(--navy), 56px 0 0 var(--navy), 28px -28px 0 var(--navy), 56px -28px 0 var(--navy);
}

.qr-d {
  left: 94px;
  top: 84px;
  width: 12px;
  height: 12px;
  box-shadow: 24px 0 0 var(--navy), 48px 0 0 var(--navy), 0 -24px 0 var(--navy), 24px -24px 0 var(--navy), 48px -24px 0 var(--navy), 0 24px 0 var(--navy);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
  width: min(100%, 330px);
}

.mini-btn {
  border: none;
  border-radius: 14px;
  padding: 0.9rem 0.6rem;
  background: linear-gradient(180deg, var(--orange) 0%, var(--orange-strong) 100%);
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 18px 24px rgba(242, 138, 74, 0.15);
}

.contact-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}

.contact-inline a,
.contact-inline span {
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.contact-inline a:nth-child(2) {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 600;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  padding: 22px 8px 0;
  margin-top: 8px;
}

.trust-item {
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(255,255,255,0.18));
  border: 1px solid rgba(17, 42, 68, 0.08);
  border-radius: 16px;
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.7rem;
  text-transform: uppercase;
  box-shadow: 0 14px 22px rgba(17, 42, 68, 0.04);
}

.section {
  padding: 70px 0 0;
}

.container {
  width: min(1200px, calc(100% - 24px));
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  align-items: start;
}

.kicker {
  margin: 0 0 12px;
  color: var(--orange-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-copy h2,
.section-header h2,
.contact-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 3vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.06em;
}

.about-copy p,
.contact-copy p {
  margin: 18px 0 0;
  line-height: 1.8;
  color: var(--muted);
  font-size: 1.02rem;
}

.values {
  display: grid;
  gap: 16px;
}

.values article {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(17, 42, 68, 0.08);
  border-radius: 18px;
  padding: 18px 18px 14px;
  box-shadow: var(--shadow);
}

.values span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(242, 138, 74, 0.18), rgba(17, 42, 68, 0.06));
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.values h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.2rem;
}

.values p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.services-grid,
.process-grid,
.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 26px;
}

.service-card,
.process-step,
.result-card {
  background: rgba(255,255,255,0.52);
  border: 1px solid rgba(17, 42, 68, 0.08);
  border-radius: 22px;
  padding: 24px 18px;
  box-shadow: var(--shadow);
}

.service-number {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(242, 138, 74, 0.18);
  color: var(--navy);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-card h3,
.process-step h3 {
  margin: 18px 0 10px;
  font-size: 1.35rem;
  color: var(--navy);
}

.service-card p,
.process-step p {
  margin: 0;
  line-height: 1.8;
  color: var(--muted);
}

.process-step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr;
  gap: 26px;
  align-items: center;
}

.result-copy h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 2.8vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(140px, 1fr));
}

.result-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 160px;
}

.result-card strong {
  display: block;
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.result-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.6;
}

.testimonial {
  padding-top: 70px;
}

.testimonial-box {
  background: linear-gradient(135deg, rgba(17, 42, 68, 0.96), rgba(30, 53, 89, 0.92));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 26px;
  padding: 30px 24px;
  box-shadow: 0 24px 40px rgba(17, 42, 68, 0.15);
}

.testimonial-box .kicker {
  color: #f8b489;
}

.testimonial-box blockquote {
  margin: 0;
  color: white;
  font-size: clamp(1.4rem, 2vw, 2.2rem);
  line-height: 1.4;
  letter-spacing: -0.04em;
  font-weight: 600;
}

.author {
  display: inline-block;
  margin-top: 18px;
  color: rgba(255,255,255,0.8);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 50px;
}

.lead-form {
  display: grid;
  gap: 18px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
}

.forms-stack {
  display: grid;
  gap: 22px;
}

.form-card {
  background: rgba(255,255,255,0.88);
  border: 1px solid rgba(17, 42, 68, 0.1);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 18px 34px rgba(17, 42, 68, 0.06);
}

.form-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.form-card-header h3 {
  margin: 0;
  color: var(--navy);
  font-size: 1.45rem;
  font-weight: 800;
}

.form-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 42, 68, 0.08);
  color: var(--navy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-badge.orange {
  background: rgba(242, 138, 74, 0.12);
  color: var(--orange-strong);
}

.lead-form label {
  display: grid;
  gap: 9px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.02rem;
}

.lead-form label span {
  display: block;
  line-height: 1.4;
}

.lead-form input,
.lead-form textarea {
  display: block;
  width: 100%;
  min-height: 52px;
  border: 1px solid #d9e2ed;
  border-radius: 12px;
  background: #ffffff;
  padding: 0.95rem 1rem;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(17, 42, 68, 0.04);
  cursor: text;
}

.lead-form textarea {
  min-height: 120px;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  outline: none;
  border-color: rgba(242, 138, 74, 0.9);
  box-shadow: 0 0 0 4px rgba(242, 138, 74, 0.12);
}

.form-status {
  display: none;
  margin-bottom: 4px;
  padding: 0.8rem 0.95rem;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status.show {
  display: block;
}

.form-status.success {
  background: rgba(22, 163, 74, 0.1);
  color: #166534;
  border: 1px solid rgba(22, 163, 74, 0.2);
}

.form-status.error {
  background: rgba(220, 38, 38, 0.08);
  color: #991b1b;
  border: 1px solid rgba(220, 38, 38, 0.18);
}

.appointment-form {
  gap: 16px;
}

.appointment-form .split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.appointment-form .split-fields label {
  gap: 8px;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 20px;
  }

  .hero-copy {
    justify-content: center;
    min-height: auto;
  }

  .hero-copy h1 {
    margin: 0 auto;
    align-items: center;
  }

  .about-grid,
  .contact-grid,
  .services-grid,
  .process-grid,
  .result-grid,
  .stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-grid,
  .contact-grid,
  .result-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .page-shell {
    width: min(100% - 12px, 100%);
    margin: 12px auto;
    padding: 10px 12px 20px;
  }

  .topbar {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
  }

  .trust-strip,
  .services-grid,
  .process-grid,
  .mini-grid,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1 {
    max-width: 260px;
  }

  .hero-actions {
    justify-content: center;
  }

  .line {
    font-size: 2.4rem;
  }
}
