/* CA Construcciones — Global styles */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&family=Manrope:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg: #0a0a0c;
  --bg-2: #101013;
  --surface: #16161a;
  --surface-2: #1d1d22;
  --border: #26262c;
  --border-2: #34343c;
  --text: #f6f5f1;
  --muted: #8e8e96;
  --muted-2: #5c5c63;
  --accent: #f0a830;
  --accent-2: #ffc861;
  --accent-deep: #b87810;
  --danger: #e25c46;
  --success: #4ec988;
  --info: #6aa3ff;
  --font-display: 'Bricolage Grotesque', 'Manrope', sans-serif;
  --font-body: 'Manrope', sans-serif;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow-lg: 0 30px 80px -20px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
  --shadow-glow: 0 0 60px rgba(240, 168, 48, 0.25);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(240,168,48,0.08), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(100,140,200,0.05), transparent 50%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--accent); color: #000; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }

/* Utility */
.container { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 760px) { .container { padding: 0 24px; } }
@media (max-width: 640px) { .container { padding: 0 20px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  transition: all .25s cubic-bezier(.2,.7,.2,1);
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn:hover { background: var(--surface-2); border-color: var(--border-2); transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #1a1305;
  border: none;
  box-shadow: 0 8px 24px -8px rgba(240,168,48,0.5), inset 0 1px 0 rgba(255,255,255,0.4);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -8px rgba(240,168,48,0.6); }
.btn-ghost { background: transparent; border-color: var(--border-2); }
.btn-sm { padding: 9px 16px; font-size: 13px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  font-size: 12px; font-weight: 500;
  color: var(--muted);
}
.chip.accent { background: rgba(240,168,48,0.1); border-color: rgba(240,168,48,0.3); color: var(--accent-2); }
.chip.success { background: rgba(78,201,136,0.1); border-color: rgba(78,201,136,0.3); color: var(--success); }
.chip.info { background: rgba(106,163,255,0.1); border-color: rgba(106,163,255,0.3); color: var(--info); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .3s ease;
}
.card:hover { border-color: var(--border-2); }

input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all .2s ease;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(240,168,48,0.15);
}
label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 7px;
}

/* Grain overlay */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: 0.04;
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
}

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(28px); transition: all .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-up { transition-delay: 0.05s; }
.stagger > * { opacity: 0; transform: translateY(20px); transition: all .7s cubic-bezier(.2,.7,.2,1); }
.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0.05s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.12s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.19s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.26s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.33s; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }
.stagger.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 0.47s; }
.stagger.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 0.54s; }

/* Brand mark */
.brand {
  display: inline-flex; align-items: center; gap: 12px;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(circle at 30% 30%, #4a4a4f, #14141a 70%);
  display: grid; place-items: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 4px 12px rgba(0,0,0,0.4);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text .top { font-family: var(--font-display); font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.brand-text .sub { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
