/* ===== CERRAJERPRO — Cerrajería | Demo LuKami-Studio ===== */

:root {
  --bg: #0b1220;
  --bg-soft: #101a2c;
  --surface: #16233a;
  --text: #eef2f8;
  --text-muted: #9aa8bd;
  --steel: #7c93b3;
  --accent: #2f7dfa;
  --accent-2: #ffb020;
  --line: rgba(238, 242, 248, 0.1);
  --font-display: 'Sora', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 14px;
  --container: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 1.5rem; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  font-weight: 700;
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--accent-2); }

.section { padding: 5.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.8rem); }
.section-head p { color: var(--text-muted); margin-top: 0.9rem; font-size: 1.05rem; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); background: #1f6ce0; }
.btn-call { background: var(--accent-2); color: #1a1408; }
.btn-call:hover { transform: translateY(-2px); background: #ffc04d; }
.btn-outline { border-color: rgba(238,242,248,0.28); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-demo-disabled { opacity: 0.55; cursor: not-allowed; }
.btn-demo-disabled:hover { transform: none; }

.demo-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.6rem; font-style: italic; }

/* ===== TOP BAR (emergencia) ===== */
.topbar {
  background: var(--accent-2);
  color: #1a1408;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.55rem 1rem;
}
.topbar a { text-decoration: underline; }

/* ===== NAVBAR ===== */
#navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 1.2rem 0;
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
#navbar.scrolled {
  background: rgba(11, 18, 32, 0.92);
  backdrop-filter: blur(10px);
  padding: 0.8rem 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.01em;
}
.nav-logo i { color: var(--accent-2); }
.nav-links { display: flex; align-items: center; gap: 2.2rem; font-size: 0.92rem; font-weight: 600; }
.nav-links a:not(.btn) { color: var(--text-muted); transition: color 0.2s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 210;
  padding: 0.4rem;
}
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: all 0.3s ease; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 190;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  font-size: 1.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  transform: translateY(-100%);
  opacity: 0; visibility: hidden;
  transition: transform 0.4s ease, opacity 0.4s ease, visibility 0.4s;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; visibility: visible; }

/* ===== HERO ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.05);
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(11,18,32,0.97) 0%, rgba(11,18,32,0.85) 45%, rgba(11,18,32,0.5) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 660px; }
.hero h1 { font-size: clamp(2.4rem, 5.8vw, 4.2rem); margin-bottom: 1.3rem; }
.hero h1 span { color: var(--accent-2); }
.hero p { font-size: 1.1rem; color: var(--text-muted); max-width: 500px; margin-bottom: 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.hero-trust { display: flex; gap: 2.2rem; margin-top: 3.2rem; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; color: var(--text-muted); }
.hero-trust-item i { color: var(--accent-2); font-size: 1.1rem; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.5rem 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 2.2rem; font-weight: 800; color: var(--accent-2); }
.stat-label { color: var(--text-muted); font-size: 0.85rem; margin-top: 0.3rem; }

/* ===== SERVICIOS ===== */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.service-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.service-card:hover { transform: translateY(-5px); border-color: rgba(47,125,250,0.4); }
.service-img { aspect-ratio: 4/3; overflow: hidden; }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img img { transform: scale(1.08); }
.service-body { padding: 1.3rem 1.3rem 1.5rem; }
.service-body h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.service-body p { color: var(--text-muted); font-size: 0.88rem; }
.service-tag {
  display: inline-block;
  margin-top: 0.8rem;
  font-size: 0.72rem;
  padding: 0.25rem 0.65rem;
  border-radius: 100px;
  background: rgba(47,125,250,0.14);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* ===== POR QUE ELEGIRNOS ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text p { color: var(--text-muted); margin-bottom: 1.2rem; }
.trust-list { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.trust-item { display: flex; gap: 1rem; align-items: flex-start; }
.trust-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  background: rgba(47,125,250,0.14);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.trust-item strong { display: block; font-size: 0.98rem; }
.trust-item span { color: var(--text-muted); font-size: 0.88rem; }

/* ===== PROCESO ===== */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.8rem; position: relative; }
.process-step { text-align: center; position: relative; }
.process-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  margin: 0 auto 1.2rem;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.process-step p { color: var(--text-muted); font-size: 0.88rem; }

/* ===== TESTIMONIALS ===== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.testimonial-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; }
.stars { color: var(--accent-2); letter-spacing: 0.15em; margin-bottom: 1rem; }
.testimonial-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.8rem; }
.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(47,125,250,0.18);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-family: var(--font-display);
}
.author-name { font-weight: 700; font-size: 0.9rem; }
.author-role { color: var(--text-muted); font-size: 0.78rem; }

/* ===== CONTACTO / RESERVA ===== */
.cta-section { position: relative; }
.cta-bg {
  position: absolute; inset: 0;
  background-image: url('../img/cta-bg.jpg');
  background-size: cover;
  background-position: center;
}
.cta-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(11,18,32,0.95) 0%, rgba(47,125,250,0.4) 100%);
}
.cta-inner { position: relative; z-index: 2; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.5rem;
}
.contact-card h3 { margin-bottom: 1.5rem; font-size: 1.3rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.4rem; }
.info-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(47,125,250,0.14);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.info-row strong { display: block; font-size: 0.95rem; }
.info-row span { color: var(--text-muted); font-size: 0.88rem; }

.call-banner {
  background: var(--accent-2);
  color: #1a1408;
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  margin-bottom: 1.4rem;
}
.call-banner .call-number { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; display: block; margin: 0.3rem 0; }

.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.85rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.form-group textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* ===== FOOTER ===== */
footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-logo i { color: var(--accent-2); }
.footer-col p { color: var(--text-muted); font-size: 0.9rem; }
.footer-col h4 { font-size: 0.85rem; margin-bottom: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--steel); }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col ul a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--accent-2); }
.social-row { display: flex; gap: 0.7rem; margin-top: 1.2rem; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.social-row a:hover { border-color: var(--accent-2); color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.8rem;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.demo-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  background: rgba(255,176,32,0.12);
  color: var(--accent-2);
  font-size: 0.75rem;
  font-weight: 700;
}
.made-by-lukami {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  border-radius: 100px;
  border: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.made-by-lukami img { border-radius: 4px; display: block; }
.made-by-lukami:hover { color: var(--text); border-color: rgba(47,125,250,0.4); }

/* ===== ANIMATIONS ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
[data-reveal].visible { opacity: 1; transform: translateY(0); }
section[id] { scroll-margin-top: 90px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-img { max-width: 420px; margin: 0 auto; }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .services-grid, .process-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 1.4rem; }
}
