/* ============================================================
   Cerrajería Austria — estilos compartidos
   Variables de marca, reset base, tipografía,
   componentes reutilizables, header/nav/footer.
   ============================================================ */

:root {
  /* Colores de marca */
  --ink: #161616;
  --ink-soft: #2a2a2a;
  --bg: #ffffff;
  --bg-soft: #f7f4ee;
  --text: #1a1a1a;
  --text-muted: #6b6b6b;
  --border: #e6e2d8;
  --yellow: #f5d300;
  --yellow-dark: #e0c100;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;

  /* Tipografía */
  --font-display: "Nunito", "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-body: "Nunito", "Mulish", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 999px;

  /* Sombras */
  --shadow-card: 0 10px 30px -15px rgba(0, 0, 0, 0.18);
  --shadow-cta: 0 8px 24px -10px rgba(245, 211, 0, 0.55);
  --shadow-float: 0 10px 25px -10px rgba(0, 0, 0, 0.35);

  /* Espaciados de página */
  --container: 1200px;
  --container-narrow: 1100px;
}

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

* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul { list-style: none; padding: 0; }

/* ===== Tipografía global ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.75rem, 4.2vw, 3rem); }
h3 { font-size: clamp(1.1rem, 2.4vw, 1.25rem); }

p { line-height: 1.65; }

/* ===== Layout helpers ===== */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 1024px) {
  .container { padding-inline: 1.5rem; }
}

.section { padding-block: 3.5rem; }
@media (min-width: 1024px) { .section { padding-block: 5rem; } }

.section--tinted { background: var(--bg-soft); }

.section-title {
  font-size: clamp(1.75rem, 4.2vw, 3rem);
}

.section-rule {
  width: 64px; height: 4px;
  background: var(--yellow);
  border-radius: var(--radius-full);
  margin-top: 1.75rem;
}

/* ===== Botones / CTAs ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.95rem 1.5rem;
  font-weight: 800;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: filter 0.2s, transform 0.2s;
  text-align: center;
}
.btn:hover { filter: brightness(0.95); }
.btn:active { transform: translateY(1px); }

.btn--yellow {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: var(--shadow-cta);
}

.btn--green {
  background: var(--whatsapp);
  color: #fff;
}
.btn--green:hover { filter: brightness(1.05); }

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

.btn-icon {
  width: 1.1rem; height: 1.1rem;
  flex: 0 0 auto;
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  color: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
  letter-spacing: -0.01em;
}
.brand__mark {
  width: 38px; height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--yellow);
  color: var(--ink);
}
.brand__mark svg { width: 20px; height: 20px; }
.brand__accent { color: var(--yellow); }

.nav { display: none; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  padding: 0.5rem 0.25rem;
  transition: color 0.2s;
}
.nav__link:hover { color: var(--yellow); }

.header-cta {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.9rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-sm);
  min-height: 40px;
}
.header-cta svg { width: 16px; height: 16px; }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  color: #fff;
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile menu panel */
.nav-mobile {
  display: none;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.is-open { display: block; }
.nav-mobile__list {
  display: flex; flex-direction: column;
  padding: 0.5rem 1.25rem 1rem;
}
.nav-mobile__link {
  display: block;
  padding: 0.9rem 0;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile__link:last-child { border-bottom: 0; }

@media (min-width: 768px) {
  .header-cta { display: inline-flex; }
}
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: 1.75rem; }
  .nav-toggle { display: none; }
  .nav-mobile { display: none !important; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.8);
  padding-block: 2rem;
}
.site-footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  font-size: 0.9rem;
}
.site-footer .brand { font-size: 0.95rem; }
.site-footer .brand__mark { width: 32px; height: 32px; }
.site-footer .brand__mark svg { width: 16px; height: 16px; }

@media (min-width: 768px) {
  .site-footer__inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ===== Floating WhatsApp ===== */
.fab-whatsapp {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 50;
  width: 56px; height: 56px;
  border-radius: var(--radius-full);
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-float);
  transition: transform 0.2s;
}
.fab-whatsapp:hover { transform: scale(1.05); }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ===== Accesibilidad / utilidades ===== */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
