:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --ink: #152238;
  --muted: #5b6b83;
  --brand: #f7b500;
  --brand-dark: #d89a00;
  --sun: #ffd447;
  --teal: #0a66c2;
  --wa: #25d366;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(21, 34, 56, .12);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ===== Barra superior ===== */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8edf4;
}
.topbar-inner {
  width: min(1100px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; }
.brand-logo {
  width: 38px; height: 38px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 10px; box-shadow: var(--shadow);
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-text span { color: var(--brand-dark); }

.nav-links { display: flex; gap: 26px; font-weight: 600; font-size: .95rem; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(247, 181, 0, .4); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border: 2px solid var(--brand); }
.btn-ghost:hover { background: rgba(247, 181, 0, .12); }
.btn-whatsapp { background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(37, 211, 102, .35); }
.btn-whatsapp:hover { filter: brightness(.95); }
.btn-block { width: 100%; text-align: center; }

.menu-toggle { display: none; background: none; border: none; font-size: 1.6rem; color: var(--ink); cursor: pointer; }

/* ===== Hero ===== */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(247, 181, 0, .18), transparent 60%),
    linear-gradient(180deg, #fbfcfe, #f0f4fa);
  padding: 90px 0 100px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block; background: rgba(247, 181, 0, .16); color: #b07800;
  padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .85rem;
  letter-spacing: .02em;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.08; margin: 20px 0 18px; }
.hl { color: var(--brand-dark); }
.hero-sub { max-width: 640px; margin: 0 auto 30px; color: var(--muted); font-size: 1.15rem; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-badges { margin-top: 34px; display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.hero-badges span { font-weight: 600; font-size: .92rem; color: var(--ink); }

/* ===== Secciones ===== */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); }
.section-contact { background: linear-gradient(180deg, #fbfcfe, #eef3fb); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.eyebrow { color: var(--brand-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 10px 0 14px; }
.section-head p { color: var(--muted); }

/* ---- Features ---- */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; }
.feature {
  background: #fff; border: 1px solid #eef2f8; border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s;
}
.feature:hover { transform: translateY(-4px); }
.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature h3 { margin-bottom: 8px; font-size: 1.15rem; }
.feature p { color: var(--muted); font-size: .95rem; }

/* ---- Cards --- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s;
}
.card:hover { transform: translateY(-4px); }
.card-img { height: 200px; background-size: cover; background-position: center; }
.card-img-1 {
  background: linear-gradient(135deg, #ffd447, #f7b500) no-repeat center/cover,
    radial-gradient(circle at 50% 50%, #f7b500, #d89a00);
}
.card-img-2 {
  background: linear-gradient(135deg, #5ec8f7, #0a66c2) no-repeat center/cover,
    radial-gradient(circle at 50% 50%, #0a66c2, #064a8f);
}
.card-img-3 {
  background: linear-gradient(135deg, #7fd492, #2e9c5a) no-repeat center/cover,
    radial-gradient(circle at 50% 50%, #2e9c5a, #1c6b3c);
}
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { color: var(--muted); font-size: .95rem; }

/* ---- Galería ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; box-shadow: var(--shadow);
}
.gallery-item .g-img {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  transition: transform .4s;
}
.gallery-item:hover .g-img { transform: scale(1.06); }
.gallery-item .g-tag {
  position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55);
  color: #fff; font-size: .82rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.g-p1 { background: linear-gradient(135deg, #2b2b2b, #565656), radial-gradient(circle at 30% 30%, #f7b500, transparent 60%); background-blend-mode: overlay; }
.g-p2 { background: linear-gradient(135deg, #274472, #5b8bd4); }
.g-p3 { background: linear-gradient(135deg, #d89a00, #ffe08a); }
.g-p4 { background: linear-gradient(135deg, #3a4a5a, #8495a8); }
.g-p5 { background: linear-gradient(135deg, #1d7a46, #7fd492); }
.g-p6 { background: linear-gradient(135deg, #4a2c2a, #a8705a); }
.g-p7 { background: linear-gradient(135deg, #373737, #9c9c9c); }
.g-p8 { background: linear-gradient(135deg, #062f6b, #2e7ac4); }

/* ---- Estado de carga de imágenes ---- */
.img-loading {
  display: grid; place-items: center; width: 100%; height: 100%;
  background: linear-gradient(135deg, #eef2f8, #f8fafc); color: var(--muted);
  font-weight: 600; font-size: .9rem;
}
.spinner {
  width: 30px; height: 30px; margin-bottom: 8px;
  border: 3px solid #dfe6f0; border-top-color: var(--brand);
  border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Transporte ---- */
.transport { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 22px; }
.transport-item {
  background: #fff; border-radius: var(--radius); padding: 26px 18px;
  text-align: center; box-shadow: var(--shadow); border: 1px solid #eef2f8;
  transition: transform .2s;
}
.transport-item:hover { transform: translateY(-4px); }
.transport-logo {
  width: 64px; height: 64px; margin: 0 auto 12px; display: grid; place-items: center;
  border-radius: 14px; background: var(--bg-alt); font-weight: 800; font-size: 1.4rem;
  color: #fff;
}
.t1 { background: #e11d2a; } .t2 { background: #0a66c2; } .t3 { background: #2e9c5a; }
.t4 { background: #7b2d8b; } .t5 { background: #f7941e; } .t6 { background: #152238; }
.transport-item h4 { font-size: 1rem; margin-bottom: 4px; }
.transport-item p { color: var(--muted); font-size: .85rem; }

/* ---- Contacto ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.info-row { display: flex; flex-direction: column; padding: 14px 18px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); }
.info-key { font-size: .78rem; font-weight: 800; color: var(--brand-dark); text-transform: uppercase; letter-spacing: .08em; }
.info-val { font-weight: 600; font-size: 1.05rem; }

.socials { display: flex; gap: 12px; margin-top: 8px; }
.socials a {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
  color: #fff; box-shadow: var(--shadow); transition: transform .2s; font-weight: 700;
}
.socials a:hover { transform: translateY(-3px); }
.s-facebook { background: #1877f2; }
.s-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.s-whatsapp { background: #25d366; }
.s-tiktok { background: #111; }

.contact-form {
  display: flex; flex-direction: column; gap: 14px; background: #fff;
  padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 13px 15px; border: 1px solid #dfe6f0; border-radius: 10px;
  font: inherit; font-size: .95rem; color: var(--ink); background: #fbfcfe;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
}

.form-msg { text-align: center; font-weight: 600; color: #2e9c5a; }

/* ---- Footer ---- */
.footer { background: #152238; color: #cdd6e4; text-align: center; padding: 40px 0; }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 800; font-size: 1.2rem; color: #fff; margin-bottom: 12px; }
.footer-meta { font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset: 74px 0 auto 0; background: #fff; flex-direction: column;
    padding: 20px 8%; gap: 18px; border-bottom: 1px solid #eef2f8;
    transform: translateY(-130%); transition: transform .25s; box-shadow: var(--shadow);
  }
  .nav-links.open { transform: translateY(0); }
  .top-wa { display: none; }
  .menu-toggle { display: block; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 72px; }
  .section { padding: 56px 0; }
}