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

:root {
  --sun: #ffb400;
  --sun-dark: #f59e0b;
  --ink: #0f172a;
  --ink-soft: #475569;
  --sky: #0ea5e9;
  --bg: #ffffff;
  --line: #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

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

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

/* ---------- Navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.logo-sun { width: 30px; height: 30px; color: var(--sun-dark); }
.nav-links { display: flex; gap: 22px; font-weight: 600; }
.nav-links a { color: var(--ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--sky); }
.nav-call {
  background: var(--sun); color: #3b2f00; font-weight: 700;
  padding: 9px 16px; border-radius: 999px;
}
.nav-call:hover { background: var(--sun-dark); }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; min-height: 88vh; display: flex; align-items: center;
  background: url("assets/hero.svg") center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,23,42,.88), rgba(14,165,233,.45)); }
.hero-content { position: relative; padding: 60px 0; }
.eyebrow { letter-spacing: 2px; text-transform: uppercase; font-size: .82rem; font-weight: 700; color: var(--sun); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.08; margin: 14px 0 18px; }
.hero h1 span { color: var(--sun); }
.hero-sub { max-width: 560px; font-size: 1.1rem; color: rgba(255,255,255,.9); margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 700; transition: transform .15s, box-shadow .15s; border: none; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun); color: #3b2f00; }
.btn-primary:hover { background: var(--sun-dark); box-shadow: 0 8px 20px rgba(245,158,11,.35); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-block { width: 100%; }

.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.8rem; color: var(--sun); }
.hero-stats span { color: rgba(255,255,255,.85); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); margin-top: 6px; }

/* ---------- Services ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 4px 14px rgba(15,23,42,.06); transition: transform .2s, box-shadow .2s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 14px 30px rgba(15,23,42,.12); }
.card-img { height: 190px; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.08); }
.card h3 { padding: 18px 20px 4px; font-size: 1.15rem; }
.card p { padding: 0 20px 22px; color: var(--ink-soft); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.gallery img { width: 100%; height: 240px; object-fit: cover; border-radius: 12px; transition: transform .3s, filter .3s; }
.gallery img:hover { transform: scale(1.03); filter: brightness(1.05); }

/* ---------- Nosotros ---------- */
.nosotros-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center; }
.nosotros-img img { border-radius: 18px; width: 100%; object-fit: cover; box-shadow: 0 18px 40px rgba(15,23,42,.18); }
.nosotros-text h2 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 10px 0 16px; }
.nosotros-text p { color: var(--ink-soft); margin-bottom: 16px; }
.checklist { list-style: none; margin: 18px 0 26px; display: grid; gap: 10px; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: "✔"; position: absolute; left: 0; color: var(--sun-dark); font-weight: 800; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info { display: grid; gap: 22px; align-content: start; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon { font-size: 1.5rem; background: rgba(255,180,0,.12); border-radius: 10px; width: 46px; height: 46px; display: grid; place-items: center; flex-shrink: 0; }
.info-item strong { display: block; margin-bottom: 2px; }
.info-item a { color: var(--sky); }
.info-item span:not(.info-icon) { color: rgba(255,255,255,.85); }

.social { display: flex; gap: 12px; margin-top: 8px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); transition: background .2s, transform .2s; }
.social-btn svg { width: 20px; height: 20px; }
.social-btn:hover { background: var(--sun); color: #3b2f00; transform: translateY(-3px); }

.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.06); color: #fff; font: inherit;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form select { color: #fff; }
.contact-form select option { color: var(--ink); }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline: 2px solid var(--sun); border-color: transparent; }
.form-msg { text-align: center; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: #4ade80; }
.form-msg.err { color: #f87171; }

/* ---------- Footer ---------- */
.footer { background: #0b1120; color: rgba(255,255,255,.7); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; flex-wrap: wrap; gap: 10px; }
.footer a { color: var(--sun); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nosotros-grid, .contact-grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}
@media (max-width: 480px) {
  .hero-stats { gap: 24px; }
}