:root {
  --warn: #f5a623;
  --warn-dark: #e07e00;
  --ink: #1b1b1f;
  --muted: #6b6b72;
  --line: #e8e8ec;
  --bg: #ffffff;
  --bg-soft: #f6f6f8;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(20, 20, 30, .08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Sora", sans-serif; line-height: 1.15; letter-spacing: -.02em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.15rem; }

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

.container { width: min(1160px, 92%); margin: 0 auto; }

/* Topbar */
.topbar { background: var(--ink); color: #cfcfd6; font-size: .82rem; }
.topbar-inner { display: flex; justify-content: space-between; padding: .55rem 0; }
.topbar a { color: var(--warn); font-weight: 600; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding: .9rem 0; }

.brand { display: flex; align-items: center; gap: .6rem; font-family: "Sora"; font-weight: 800; font-size: 1.35rem; }
.brand-mark { color: var(--warn); display: inline-flex; }
.brand-text span { color: var(--warn-dark); }

.nav { display: flex; gap: 1.4rem; }
.nav a { font-weight: 500; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: "Sora"; font-weight: 600; font-size: .92rem;
  padding: .68rem 1.25rem; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: all .2s;
}
.btn-primary { background: var(--warn); color: #1b1b1f; }
.btn-primary:hover { background: var(--warn-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-lg { padding: .9rem 1.6rem; font-size: 1rem; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* Hero */
.hero { position: relative; color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; background-size: cover; background-position: center;
  background-image:
    linear-gradient(rgba(16,16,24,.78), rgba(16,16,24,.82)),
    url("https://images.unsplash.com/photo-1504328345606-18bbc8c9d7d1?auto=format&fit=crop&w=1800&q=80");
}
.hero-inner { padding: clamp(5rem, 12vw, 8rem) 0 clamp(4rem, 9vw, 6rem); }
.chips { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--warn); background: rgba(245,166,35,.12); border: 1px solid rgba(245,166,35,.35); padding: .45rem 1rem; border-radius: 999px; margin-bottom: 1.4rem; }
.hero h1 { font-size: clamp(2.2rem, 5.6vw, 3.8rem); font-weight: 800; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--warn); }
.hero-sub { color: #d6d6de; max-width: 52ch; margin: 1.3rem 0 2rem; font-size: 1.08rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.5rem; margin-top: 3.2rem; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: "Sora"; font-size: 1.7rem; color: var(--warn); }
.hero-stats span { color: #c9c9d2; font-size: .85rem; }

/* Sections */
.section { padding: clamp(4rem, 8vw, 5.5rem) 0; }
.section-servicios, .section-empresa { background: var(--bg-soft); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head p { color: var(--muted); margin-top: .7rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--warn-dark); }

/* Filters + grid */
.filters { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: 2rem; }
.chip { background: var(--bg); border: 1px solid var(--line); color: var(--muted); padding: .5rem 1.1rem; border-radius: 999px; cursor: pointer; font-weight: 500; font-size: .9rem; transition: .2s; }
.chip:hover { border-color: var(--warn); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 4/3; background-size: cover; background-position: center; background-color: #e6e6ea; }
.card-body { padding: 1rem 1.1rem 1.2rem; }
.card-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--warn-dark); margin-bottom: .35rem; }
.card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.card p { color: var(--muted); font-size: .9rem; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: .9rem; }
.card-price { font-family: "Sora"; font-weight: 700; font-size: 1.1rem; }
.card-btn { background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: .5rem .9rem; font-weight: 600; font-size: .82rem; cursor: pointer; transition: .2s; }
.card-btn:hover { background: var(--warn-dark); }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; }
.services article { background: var(--bg); border: 1px solid var(--line); padding: 1.8rem 1.5rem; border-radius: var(--radius); transition: .25s; }
.services article:hover { box-shadow: var(--shadow); }
.svc-ico { font-size: 1.8rem; display: inline-block; margin-bottom: .8rem; }
.services h3 { margin-bottom: .4rem; }
.services p { color: var(--muted); font-size: .95rem; }

/* Branches */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; }
.branch { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.branch-map { height: 170px; background-size: cover; background-position: center; }
.branch-map { background-image: url("https://images.unsplash.com/photo-1503736334956-4c8f8e92946d?auto=format&fit=crop&w=800&q=60"); }
.branch-map-b { background-image: url("https://images.unsplash.com/photo-1477959858617-67f85cf4f1df?auto=format&fit=crop&w=800&q=60"); }
.branch-map-c { background-image: url("https://images.unsplash.com/photo-1449824913935-59a10b8d2000?auto=format&fit=crop&w=800&q=60"); }
.branch-body { padding: 1.2rem 1.2rem 1.4rem; }
.branch h3 { margin-bottom: .3rem; }
.addr { font-weight: 500; }
.branch .sub { color: var(--muted); font-size: .9rem; margin-top: .3rem; }
.branch .sub a { color: var(--warn-dark); font-weight: 600; }

/* About */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.about-media { border-radius: var(--radius); min-height: 340px; background-size: cover; background-position: center; background-image: url("https://images.unsplash.com/photo-1500382017468-9049fed747ef?auto=format&fit=crop&w=1000&q=70"); box-shadow: var(--shadow); }
.about-body h2 { margin: .6rem 0 1rem; }
.about-body > p { color: var(--muted); margin-bottom: 1.4rem; }
.credenciales { list-style: none; columns: 1; }
.credenciales li { padding: .65rem 0; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.credenciales strong { color: var(--ink); }
.socials { display: flex; align-items: center; gap: .6rem; margin-top: 1.5rem; }
.socials span { font-weight: 600; margin-right: .2rem; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: .2s; }
.socials a:hover { background: var(--ink); color: var(--warn); border-color: var(--ink); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3rem; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: 2.4rem; background: var(--bg); box-shadow: var(--shadow); }
.contact-info h2 { margin: .5rem 0 1rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.4rem; }
.contact-info ul { list-style: none; }
.contact-info li { padding: .6rem 0; border-top: 1px solid var(--line); font-size: .97rem; color: var(--muted); }
.contact-info strong { color: var(--ink); }

.form { display: flex; flex-direction: column; gap: 1rem; }
.form label { display: flex; flex-direction: column; gap: .35rem; font-size: .88rem; font-weight: 600; }
.form input, .form textarea {
  font-family: inherit; font-size: .95rem; padding: .75rem .95rem;
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); transition: border .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--warn); background: #fff; }
.form .btn { margin-top: .3rem; }
.form-msg { font-size: .9rem; font-weight: 600; }
.form-msg.ok { color: #2e8b57; }
.form-msg.err { color: #d0342c; }

/* Footer */
.footer { background: var(--ink); color: #cfcfd6; padding: 3rem 0 2rem; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer .brand-text { color: #fff; }
.footer-brand p { font-size: .9rem; margin-top: .7rem; color: #9a9aa3; }
.footer-links { display: flex; flex-direction: column; gap: .55rem; }
.footer-links span { color: #fff; font-family: "Sora"; font-weight: 600; margin-bottom: .3rem; }
.footer-links a { color: #9a9aa3; font-size: .92rem; transition: .2s; }
.footer-links a:hover { color: var(--warn); }
.footer-legal { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.5rem; padding-top: 1.2rem; display: flex; justify-content: space-between; font-size: .82rem; color: #7a7a84; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 22px; right: 22px; width: 58px; height: 58px; z-index: 40;
  background: #25d366; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(37,211,102,.4); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 80%); background: #fff;
    flex-direction: column; padding: 5rem 2rem; gap: 1.4rem; transform: translateX(100%); transition: transform .3s;
    box-shadow: -10px 0 30px rgba(0,0,0,.12);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.1rem; }
  .nav-toggle { display: block; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 49; }
  .about, .contact { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .topbar-inner span { display: none; }
}