:root {
  --navy: #193F66;
  --navy-deep: #10283F;
  --blue: #6AA8D7;
  --blue-tint: #EAF2FA;
  --bg: #FFFFFF;
  --bg-alt: #F5F7FA;
  --text: #17222D;
  --text-muted: #56626D;
  --border: #DFE5EB;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--navy-deep);
  margin: 0;
}

a { color: inherit; }

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand-logo {
  width: 150px;
  height: auto;
}

.header-cta {
  display: none;
}

@media (min-width: 640px) {
  .header-cta { display: inline-flex; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-cta {
  background: var(--navy);
  color: #ffffff;
}
.btn-cta:hover { background: var(--navy-deep); }

.btn-ghost {
  border-color: var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-ghost:hover { background: var(--blue-tint); }

.btn-lg { padding: 15px 30px; font-size: 16px; }

/* Hero */
.hero {
  padding: 72px 0 64px;
  background: var(--bg);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; gap: 56px; }
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 14px;
  letter-spacing: 0.02em;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.15;
  max-width: 15ch;
}

.hero-lead {
  margin: 22px 0 30px;
  max-width: 46ch;
  font-size: 17px;
  color: var(--text-muted);
}

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

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero-illustration {
  width: 100%;
  max-width: 320px;
}

.hero-coverage {
  width: 100%;
  max-width: 320px;
  padding: 18px 20px;
  border-left: 3px solid var(--blue);
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.hero-coverage .hero-card-label {
  display: block;
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 8px;
}

.hero-coverage .hero-card-title {
  font-family: var(--font-display);
  font-size: 18px;
  margin: 0 0 6px;
  line-height: 1.35;
  color: var(--navy-deep);
}

.hero-coverage .hero-card-sub {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0;
}

/* Section headings */
.tramites, .sobre, .contacto {
  padding: 64px 0;
}

.tramites { background: var(--bg-alt); }
.sobre { background: var(--bg); }
.contacto { background: var(--navy-deep); color: #ffffff; }

.tramites h2, .sobre h2 {
  font-size: clamp(26px, 3vw, 34px);
  max-width: 20ch;
}

.contacto h2 {
  font-size: clamp(26px, 3vw, 34px);
  color: #ffffff;
}

.section-lead {
  color: var(--text-muted);
  margin: 14px 0 36px;
  max-width: 56ch;
  font-size: 16px;
}

.contacto .section-lead { color: #C7D9EA; }

/* Tramites list */
.tramites-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}

.tramites-list li {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
}

.tramite-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--blue-tint);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tramite-name {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 16px;
}

.tramite-desc {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* Sobre */
.sobre-inner { max-width: 680px; }
.sobre-role {
  margin: 6px 0 18px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}
.sobre-role-formal {
  font-weight: 400;
  color: var(--text-muted);
}
.sobre p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 60ch;
}
.sobre p + p { margin-top: 16px; }

/* Contacto */
.contacto-inner { text-align: left; max-width: 560px; }
.contacto .btn-cta { background: var(--blue); color: var(--navy-deep); }
.contacto .btn-cta:hover { background: #83B7DD; }
.contacto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.btn-ghost-light {
  border-color: rgba(255,255,255,0.4);
  color: #ffffff;
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.08); }

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: #C7D9EA;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-logo {
  width: 80px;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer-inner p {
  margin: 0;
  font-size: 13.5px;
}

.footer-inner p a {
  color: #C7D9EA;
  text-decoration: underline;
}

/* Focus visibility */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
