/* ═══════════════════════════════════════════════
   LABORAL CHECK — Shared Styles
   OFIMATIC BAIX, S.L.
═══════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300&family=Playfair+Display:wght@400;500&display=swap');

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

:root {
  --ink: #0a0c14;
  --ink2: #10131f;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(255,255,255,0.1);
  --glass-hover: rgba(255,255,255,0.1);
  --accent: #4f8ef7;
  --accent2: #8b6ff7;
  --accent3: #3de8c0;
  --text: #e8eaf2;
  --muted: rgba(232,234,242,0.5);
  --muted2: rgba(232,234,242,0.3);
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--ink);
  color: var(--text);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── BACKGROUND ── */
.bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 80% 60% at 20% 10%, rgba(79,142,247,0.18) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 80% 80%, rgba(139,111,247,0.15) 0%, transparent 55%),
              radial-gradient(ellipse 50% 40% at 60% 30%, rgba(61,232,192,0.08) 0%, transparent 50%),
              var(--ink);
}
.grid-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.025;
  background-image: linear-gradient(rgba(255,255,255,1) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,1) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  background: rgba(10,12,20,0.6);
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  border-bottom: 1px solid var(--glass-border);
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  line-height: 1.2; text-decoration: none; color: var(--text);
}
.logo-text { display: flex; flex-direction: column; }
.logo-icon { width: 38px; height: 38px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.logo-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.logo-sup { color: var(--muted); font-weight: 300; font-size: 0.72rem; display: block; line-height: 1; }

nav ul { list-style: none; display: flex; gap: 32px; align-items: center; }
nav ul a {
  color: var(--muted); text-decoration: none; font-size: 0.875rem;
  font-weight: 400; transition: color .2s; padding: 4px 0;
  border-bottom: 2px solid transparent; transition: color .2s, border-color .2s;
}
nav ul a:hover, nav ul a.active { color: var(--text); border-bottom-color: var(--accent); }

.nav-cta {
  padding: 9px 22px; border-radius: 50px;
  background: var(--accent); color: #fff !important; text-decoration: none;
  font-size: 0.85rem; font-weight: 500;
  transition: opacity .2s, transform .2s;
  border: none; cursor: pointer; border-bottom: none !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

/* Hamburger */
.nav-hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 4px; background: none; border: none;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px; transition: all .3s;
}
.nav-mobile {
  display: none; position: fixed; top: 73px; left: 0; right: 0;
  background: rgba(10,12,20,0.97); backdrop-filter: blur(30px);
  border-bottom: 1px solid var(--glass-border); padding: 20px 24px 28px;
  flex-direction: column; gap: 4px; z-index: 99;
}
.nav-mobile a {
  color: var(--muted); text-decoration: none; font-size: 1rem;
  padding: 12px 0; border-bottom: 1px solid var(--glass-border);
  transition: color .2s;
}
.nav-mobile a:hover, .nav-mobile a.active { color: var(--text); }
.nav-mobile a:last-child { border-bottom: none; }
.nav-mobile .nav-cta {
  margin-top: 12px; text-align: center; display: block;
  padding: 13px 22px; border-radius: 50px;
}
.nav-mobile.open { display: flex; }

/* ── BUTTONS ── */
.btn-primary {
  padding: 15px 36px; border-radius: 50px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff; font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 500;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 8px 32px rgba(79,142,247,0.3);
  display: inline-block;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(79,142,247,0.45); }

.btn-secondary {
  padding: 15px 32px; border-radius: 50px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem; font-weight: 400; cursor: pointer; text-decoration: none;
  backdrop-filter: blur(12px);
  transition: background .2s, transform .2s;
  display: inline-block;
}
.btn-secondary:hover { background: var(--glass-hover); transform: translateY(-2px); }

/* ── GLASS ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

/* ── PAGE HEADER ── */
.page-header {
  padding: 160px 24px 80px; text-align: center; position: relative; z-index: 1;
}
.section-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent); font-weight: 500; margin-bottom: 16px; display: block;
}
h1.page-title {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 20px;
}
h1.page-title em { font-style: italic; color: var(--accent); }
.page-subtitle {
  font-size: 1.05rem; font-weight: 300; line-height: 1.75;
  color: var(--muted); max-width: 560px; margin: 0 auto;
}

/* ── SECTIONS ── */
section { position: relative; z-index: 1; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 80px 24px; }

h2.section-title {
  font-family: 'Playfair Display', serif; font-weight: 400;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.2;
  letter-spacing: -0.02em; margin-bottom: 16px;
}
p.section-desc { color: var(--muted); font-weight: 300; line-height: 1.75; font-size: 1rem; }

/* ── CARDS ── */
.card {
  padding: 36px 32px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px); transition: transform .3s, border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(79,142,247,0.3); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FOOTER ── */
footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--glass-border);
}
.footer-main {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding: 60px 48px 40px;
}
.footer-brand p {
  font-size: 0.85rem; color: var(--muted); font-weight: 300; line-height: 1.7;
  margin-top: 14px; max-width: 260px;
}
.footer-col h4 {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted2); font-weight: 500; margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.85rem; transition: color .2s; }
.footer-col ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 48px; border-top: 1px solid var(--glass-border);
  font-size: 0.75rem; color: var(--muted2);
}
.footer-bottom a { color: var(--muted2); text-decoration: none; }
.footer-bottom a:hover { color: var(--muted); }
.footer-badges { display: flex; gap: 12px; }
.badge-legal {
  padding: 4px 10px; border-radius: 20px; font-size: 0.68rem;
  border: 1px solid var(--glass-border); color: var(--muted2);
}

/* ── CTA BANNER ── */
.cta-banner {
  margin: 0 24px 80px; border-radius: 28px; padding: 60px 48px; text-align: center;
  background: rgba(79,142,247,0.06); border: 1px solid rgba(79,142,247,0.2);
  backdrop-filter: blur(30px); position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(79,142,247,0.5), transparent);
}
.cta-banner h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 400; margin-bottom: 14px; }
.cta-banner p { color: var(--muted); font-weight: 300; font-size: 1rem; margin-bottom: 36px; line-height: 1.7; max-width: 500px; margin-left: auto; margin-right: auto; }
.cta-banner .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── ANIMATIONS ── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 24px 28px; }
  nav { padding: 16px 20px; }
  nav ul { display: none; }
  .nav-hamburger { display: flex; }
}
@media (max-width: 600px) {
  .footer-main { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; padding: 16px 24px; }
  nav { padding: 14px 16px; }
  .cta-banner { padding: 40px 24px; margin: 0 12px 60px; }
}
