/* Luxe Solution — estilos del sitio
   Colores y tipografía tomados de "Luxe Solution Web v2" (Claude Design). */

:root {
  --purple: #2A1458;
  --purple-2: #3D1F7A;
  --purple-line: #4A2F7E;
  --purple-text: #C9BEE0;
  --violet: #5B3A9E;
  --violet-bg: #F4EEFB;
  --violet-line: #E6DAF5;
  --gold: #C9971C;
  --gold-2: #DDB04A;
  --gold-light: #E2B84A;
  --gold-dark: #8A6614;

  --ink: #15171C;
  --ink-2: #3A3F4A;
  --gray: #6B7280;
  --line: #E5E7EB;
  --line-2: #EFF1F4;
  --paper: #FFFFFF;
  --paper-2: #F7F8FA;

  --font-display: 'Sora', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;

  --radius: 10px;
  --radius-lg: 16px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--paper-2);
  font-family: var(--font-body);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--violet); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }

.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.stack-14, .stack-16, .stack-28, .stack-40, .stack-48 { display: flex; flex-direction: column; }
.stack-14 { gap: 14px; }
.stack-16 { gap: 16px; }
.stack-28 { gap: 28px; }
.stack-40 { gap: 40px; }
.stack-48 { gap: 48px; }

.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); }
.eyebrow-light { color: var(--gold-light); }

/* Botones */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: var(--radius);
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn-lg { font-size: 16px; padding: 14px 24px; }
.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-2); color: #fff; }
.btn-gold { background: var(--gold); color: var(--purple); }
.btn-gold:hover { background: var(--gold-2); color: var(--purple); }
.btn-outline-light { border: 1.5px solid #fff; color: #fff; }
.btn-outline-light:hover { background: var(--purple-2); color: #fff; }

/* Encabezado */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; display: block; }
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 1; }
.brand-sub { font-size: 9px; font-weight: 600; letter-spacing: .42em; color: var(--ink-2); }

.site-nav { display: flex; align-items: center; gap: 24px; font-size: 15px; font-weight: 500; }
.site-nav a:not(.btn) { color: var(--ink-2); }
.site-nav a:not(.btn):hover { color: var(--gold-dark); }
.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  cursor: pointer;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Hero */
.hero {
  background-color: var(--purple);
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 48px 48px;
  color: #fff;
}
.hero-inner { padding-top: 112px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 64px); line-height: 1.08; letter-spacing: -.02em; max-width: 880px; text-wrap: balance; }
.hero-lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; max-width: 640px; text-wrap: pretty; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* Secciones */
.section > .container { padding-top: 96px; padding-bottom: 96px; }
.section-white { background: var(--paper); }
.bordered-bottom { border-bottom: 1px solid var(--line); }
.bordered { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; border-top: 1px solid var(--line); padding-top: 24px; }
.value { display: flex; flex-direction: column; gap: 6px; }
.value-title { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.value-text { font-size: 15px; line-height: 1.5; color: var(--gray); }

/* Servicios */
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(21,23,28,.06), 0 1px 3px rgba(21,23,28,.08);
}
.service { padding: 28px; display: flex; flex-direction: column; gap: 18px; transition: transform .2s, box-shadow .2s; }
.service:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(42,20,88,.10); }
.service-num { font-family: var(--font-display); font-weight: 700; font-size: 14px; color: var(--gold-dark); }
.service h3 { font-size: 21px; line-height: 1.25; }
.service ul { margin: 0; padding: 18px 0 0; list-style: none; display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line-2); }
.service li { font-size: 15px; line-height: 1.45; color: var(--ink-2); }

/* Sectores */
.sectors-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; }
.sector { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 16px; }
.sector-label { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gray); }
.sector h3 { font-size: 26px; }
.sector p { font-size: 16px; line-height: 1.6; color: var(--ink-2); text-wrap: pretty; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.sector-public { background: var(--violet-bg); border-color: var(--violet-line); }
.sector-public .sector-label { color: var(--violet); }
.sector-public .chip { border-color: var(--violet-line); }

/* Clientes */
.clients-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 16px; }
.client { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 110px; padding: 16px; display: flex; align-items: center; justify-content: center; }
.client img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .2s, opacity .2s; }
.client:hover img { filter: none; opacity: 1; }

/* Contacto / pie */
.contact { background: var(--purple); color: #fff; }
.contact-inner { padding-top: 88px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 64px; }
.contact-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px 72px; align-items: start; }
.contact-copy { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.contact-copy p { font-size: 17px; line-height: 1.55; color: var(--line); }
.contact-direct { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--purple-line); font-size: 15px; color: var(--purple-text); }
.contact-direct a { color: var(--gold-light); font-weight: 600; font-size: 17px; word-break: break-all; }
.contact-direct a:hover { color: #fff; }

/* Formulario */
.contact-form { background: var(--paper); color: var(--ink); border-radius: var(--radius-lg); padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.optional { font-weight: 400; color: var(--gray); }
.field input, .field select, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--paper); border-color: var(--violet); box-shadow: 0 0 0 3px rgba(91,58,158,.15); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #C2410C; background: #FFF7F3; }
.field-error { font-size: 13px; color: #C2410C; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-submit { border: 0; cursor: pointer; font-family: inherit; align-self: flex-start; }
.form-submit:disabled { opacity: .6; cursor: wait; }
.form-status { font-size: 15px; line-height: 1.5; }
.form-status:empty { display: none; }
.form-status.is-success { color: #15803D; }
.form-status.is-error { color: #C2410C; }
.contact-bottom { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--purple-line); padding-top: 24px; font-size: 14px; color: var(--purple-text); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 28px; height: 28px; display: block; }
.footer-brand span { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #fff; }

/* Móvil */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px rgba(21,23,28,.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
  .nav-cta { margin: 16px 0 0; text-align: center; padding: 14px 18px; }

  .hero-inner { padding-top: 72px; padding-bottom: 80px; }
  .section > .container { padding-top: 72px; padding-bottom: 72px; }
  .sector { padding: 28px; }
  .contact-inner { padding-top: 64px; gap: 48px; }
}

@media (max-width: 480px) {
  .container { padding-left: 16px; padding-right: 16px; }
  .site-nav { padding-left: 16px; padding-right: 16px; }
  .actions .btn, .form-submit { width: 100%; text-align: center; }
  .contact-form { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Página 404 */
.page-404 { min-height: 100vh; display: flex; flex-direction: column; }
.page-404 .header-inner .btn { margin-left: auto; }
.notfound { flex: 1; display: flex; align-items: center; }
.notfound .hero-inner { width: 100%; }

/* Turnstile: invisible salvo que Cloudflare pida interacción.
   Mientras está oculto, el margen negativo anula el hueco del flex; al mostrarse recupera su espacio. */
.turnstile { margin-top: -18px; }
.turnstile.is-visible { margin-top: 0; }
.turnstile:empty { display: none; }
