/* ============================================================
   ALONE PROJECTS, S.L.  —  Sitio corporativo
   ============================================================ */

:root {
  --bg: #0b0f17;
  --bg-alt: #11182a;
  --surface: #ffffff;
  --surface-alt: #f6f8fb;
  --border: #e5e9f0;
  --text: #1a2235;
  --text-muted: #556070;
  --text-inv: #f5f7fb;
  --brand: #1f3a8a;
  --brand-2: #2b63d9;
  --accent: #c9a86a;
  --danger: #c33434;
  --ok: #1f8a4c;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 4px 6px -1px rgba(16, 24, 40, 0.08), 0 2px 4px -2px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 20px 25px -5px rgba(16, 24, 40, 0.10), 0 8px 10px -6px rgba(16, 24, 40, 0.06);
  --maxw: 1180px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Fraunces", "Playfair Display", Georgia, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }

a {
  color: var(--brand-2);
  text-decoration: none;
  transition: color .15s ease;
}

a:hover { color: var(--brand); text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Topbar ---------- */
.topbar {
  background: var(--bg);
  color: #d9e0ee;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 16px;
  flex-wrap: wrap;
}
.topbar a { color: #d9e0ee; }
.topbar a:hover { color: #fff; }
.topbar-meta { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar-meta span { opacity: .85; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .3px;
}
.brand:hover { text-decoration: none; color: var(--brand); }
.brand-mark {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 700;
  font-family: var(--font-serif);
  font-size: 16px;
  letter-spacing: .5px;
}
.brand-text small {
  display: block;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
}
.nav a:hover { background: var(--surface-alt); text-decoration: none; }
.nav a.active {
  color: var(--brand);
  background: rgba(31, 58, 138, 0.08);
}
.nav .cta {
  margin-left: 10px;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
}
.nav .cta:hover { background: var(--brand-2); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  padding: 8px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  margin: 4px 0;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(43, 99, 217, 0.18), transparent 60%),
    radial-gradient(900px 400px at 10% 110%, rgba(201, 168, 106, 0.12), transparent 60%),
    linear-gradient(180deg, #0b0f17 0%, #121a2d 100%);
  color: var(--text-inv);
  padding: 90px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  font-weight: 600;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 20px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
.hero p.lead {
  font-size: 18px;
  color: #c9d2e3;
  max-width: 540px;
  margin: 0 0 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 18px;
  font-size: 20px;
  color: #fff;
}
.hero-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.hero-card dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent);
  margin-bottom: 2px;
}
.hero-card dd {
  margin: 0;
  color: #e6ebf5;
  font-size: 15px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .1s ease, background .15s ease, color .15s ease, border-color .15s ease;
  font-family: inherit;
  line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-2); color: #fff; }

.btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-alt); color: var(--brand); }

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--surface-alt); }

.section-head {
  max-width: 720px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-head .eyebrow {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}
.section-head h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3.4vw, 2.4rem);
  margin: 0 0 14px;
  font-weight: 500;
  letter-spacing: -0.3px;
}
.section-head p {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d6def0;
}
.card .icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(31, 58, 138, 0.08);
  color: var(--brand);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  margin: 0 0 10px;
}
.card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 15px;
}

/* ---------- About / Content block ---------- */
.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.content-grid h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0 0 20px;
  font-weight: 500;
}
.content-grid p { color: var(--text-muted); font-size: 16px; }
.content-grid .eyebrow {
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
  display: block;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 10px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.stat .num {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--brand);
  font-weight: 600;
  line-height: 1;
}
.stat .label {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}
.contact-info ul {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
}
.contact-info li {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info li:last-child { border-bottom: none; }
.contact-info .icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(31, 58, 138, 0.08);
  color: var(--brand);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.contact-info strong {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

/* ---------- Form ---------- */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.field label .req { color: var(--danger); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea {
  min-height: 130px;
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-2);
  box-shadow: 0 0 0 3px rgba(43, 99, 217, 0.15);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0 20px;
  font-size: 14px;
  color: var(--text-muted);
}
.checkbox input {
  margin-top: 3px;
  width: 16px; height: 16px;
  accent-color: var(--brand);
  flex-shrink: 0;
}

.form-msg {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius);
  font-size: 14px;
  display: none;
}
.form-msg.ok {
  display: block;
  background: rgba(31, 138, 76, 0.1);
  color: var(--ok);
  border: 1px solid rgba(31, 138, 76, 0.3);
}
.form-msg.err {
  display: block;
  background: rgba(195, 52, 52, 0.08);
  color: var(--danger);
  border: 1px solid rgba(195, 52, 52, 0.3);
}

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, #0f2560 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  margin: 0 0 6px;
  font-size: 24px;
}
.cta-band p { margin: 0; color: #d7e0f5; }

/* ---------- Legal page ---------- */
.legal {
  padding: 70px 0 90px;
}
.legal-wrap {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  align-items: start;
}
.legal-aside {
  position: sticky;
  top: 90px;
  background: var(--surface-alt);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.legal-aside h4 {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 12px;
  font-weight: 700;
}
.legal-aside ul { list-style: none; padding: 0; margin: 0; }
.legal-aside li { padding: 6px 0; }
.legal-aside a { color: var(--text); font-size: 14px; }

.legal-content h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 500;
  margin: 0 0 10px;
}
.legal-content .meta {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  margin: 36px 0 12px;
  color: var(--brand);
}
.legal-content h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
  font-weight: 600;
}
.legal-content p, .legal-content li {
  color: #3a4559;
  font-size: 15.5px;
  line-height: 1.75;
}
.legal-content ul, .legal-content ol { padding-left: 22px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg);
  color: #c9d2e3;
  padding: 60px 0 0;
  margin-top: 80px;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 50px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
  font-size: 18px;
}
.footer-brand .brand-mark { width: 40px; height: 40px; font-size: 17px; }
.site-footer h5 {
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  margin: 0 0 16px;
  font-weight: 700;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer ul li { padding: 6px 0; }
.site-footer a { color: #c9d2e3; }
.site-footer a:hover { color: #fff; }

.footer-company-info {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 13.5px;
  line-height: 1.75;
}
.footer-company-info strong { color: #fff; display: block; margin-bottom: 6px; font-size: 14px; }
.footer-company-info .row { display: flex; gap: 8px; }
.footer-company-info .k { color: #8c99b3; min-width: 110px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #8c99b3;
}
.footer-bottom .legal-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  max-width: 580px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 20px 22px;
  z-index: 100;
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}
.cookie-banner .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner .btn { padding: 9px 16px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .content-grid, .contact-grid, .footer-grid, .legal-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .legal-aside { position: static; }
  .form-row { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  section { padding: 60px 0; }
  .hero { padding: 60px 0 70px; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 10px;
    gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav .cta { margin: 6px 0 0; text-align: center; }
  .header-inner { position: relative; }
  .cta-band { padding: 32px; text-align: center; justify-content: center; }
  .topbar .container { font-size: 12px; }
  .footer-bottom { justify-content: center; text-align: center; }
}
