/* Cerrajería Miami Platja — mobile-first, system fonts */
:root {
  --bg: #0f1419;
  --bg-card: #1a222d;
  --surface: #243040;
  --text: #e8edf2;
  --text-muted: #9fb0c3;
  --accent: #c9a227;
  --accent-dim: #a68520;
  --border: rgba(255, 255, 255, 0.08);
  --focus: #6eb3ff;
  --radius: 12px;
  --max: 72rem;
  --space: clamp(1rem, 4vw, 2rem);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  z-index: 1000;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
}

.skip-link:focus {
  left: 0.5rem;
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: #e0c04a;
}

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

.container {
  width: min(100% - var(--space) * 2, var(--max));
  margin-inline: auto;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-decoration: none;
  color: var(--text);
}

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

.brand-name {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand-tag {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.nav-main ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.nav-main a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-main a:hover {
  color: var(--accent);
}

.lang-switch {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.85rem;
}

.lang-switch a {
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px solid transparent;
}

.lang-switch a[aria-current="true"] {
  color: var(--bg);
  background: var(--accent);
  font-weight: 600;
}

.lang-switch a:not([aria-current="true"]):hover {
  border-color: var(--border);
  color: var(--text);
}

.cta-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: var(--bg) !important;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  font-size: 0.95rem;
}

.cta-phone:hover {
  background: #e0c04a;
  color: var(--bg) !important;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 1rem;
  }

  .nav-main.is-open {
    display: flex;
  }

  /* Legal/minimal headers without hamburger */
  .site-header.no-menu-toggle .nav-toggle {
    display: none;
  }

  .site-header.no-menu-toggle .nav-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-bottom: 0;
    width: auto;
    flex: 1;
    min-width: 0;
  }

  .site-header.no-menu-toggle .header-inner {
    flex-wrap: wrap;
  }

  .nav-main ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .cta-phone {
    justify-content: center;
  }
}

/* Hero */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0;
  background: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 162, 39, 0.12), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-lead {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.hero-card h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  color: var(--accent);
}

.hero-card dl {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.hero-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.hero-card dd {
  margin: 0.15rem 0 0;
  font-size: 0.95rem;
}

/* Sections */
section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

section:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2rem;
  color: var(--text-muted);
  max-width: 60ch;
}

/* Services grid */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  height: 100%;
}

.service-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  color: var(--text);
}

.service-card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Zone list */
.zone-columns {
  columns: 1;
  gap: 2rem;
}

@media (min-width: 640px) {
  .zone-columns {
    columns: 2;
  }
}

.zone-columns ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--text-muted);
}

.zone-columns li {
  margin-bottom: 0.35rem;
}

/* Process */
.steps {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}

@media (min-width: 700px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  padding-top: 2.5rem;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1.25rem;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--accent);
  color: var(--bg);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* FAQ */
.faq-list {
  max-width: 48rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
}

.faq-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contact / map */
.contact-block {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .contact-block {
    grid-template-columns: 1fr 1.2fr;
    align-items: start;
  }
}

.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  aspect-ratio: 16 / 10;
  min-height: 240px;
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.contact-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-box p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.contact-box address {
  font-style: normal;
  margin-bottom: 1rem;
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  background: var(--bg-card);
}

.footer-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.site-footer h2 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.site-footer p,
.site-footer address {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.4rem;
}

.footer-links a {
  font-size: 0.9rem;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
}

/* Legal pages */
.legal-main {
  padding: 2rem 0 4rem;
}

.legal-main h1 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin: 2rem 0 0.75rem;
  color: var(--accent);
}

.legal-main p,
.legal-main li {
  color: var(--text-muted);
  max-width: 65ch;
}

.legal-main ul {
  padding-left: 1.25rem;
}

.back-home {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-weight: 600;
}
