/* ============ Tokens ============ */
:root {
  --primary: #685AFF;
  --primary-hover: #5548e0;
  --bg: #08091A;
  --bg-alt: #0D0F2A;
  --text: #F5F4FA;
  --text-dim: #A6A6C2;
  --text-mute: #9C9CB8;
  --border: #ffffff4d;
}

::-webkit-scrollbar {width: 7px; height: 5px;}
::-webkit-scrollbar-thumb {background: var(--primary);-webkit-transition: .3s;transition: .3s;border-radius: 3px;}
::-webkit-scrollbar-track {border-radius: 0px;}
::-moz-selection {background: var(--dark);color: #ffffff;}
::selection {background: var(--primary);color: var(--white);}

/* ============ Base / reset ============ */
html { scroll-behavior: auto; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: 'DM Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
* { box-sizing: border-box; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #A99BFF; }
::selection { background: rgba(104, 90, 255, 0.30); }
input, textarea, button { font-family: inherit; }
body.dk-no-scroll { overflow: hidden; }

@keyframes dkPulse { 0%, 100% { opacity: 1 } 50% { opacity: .35 } }
dark-veil-bg:not(:defined) { display: none; }

/* ============ Layout helpers ============ */
.dk-page { position: relative; width: 100%; background: var(--bg); overflow: hidden; isolation: isolate; }
.dk-container { max-width: 1200px; margin: 0 auto; }

/* dark-veil-bg is a raw custom element (not an x-import-wrapped one), and React
   does not translate `class`/`className` to the `class` attribute for custom
   elements the way it does for built-in tags — only `style` gets applied
   correctly. Its positioning must stay inline; see dark-veil-bg.js's own header
   comment for the same constraint. */

/* ============ Header ============ */
.dk-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom: 1px solid transparent; transition: background .4s ease, backdrop-filter .4s ease, border-color .4s ease; }
.dk-header.is-scrolled { background: rgba(8, 9, 26, 0.72); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-bottom-color: rgba(255, 255, 255, 0.08); }
.dk-nav { max-width: 1200px; margin: 0 auto; padding: 34px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; transition: padding .4s ease; }
.dk-header.is-scrolled .dk-nav { padding-top: 18px; padding-bottom: 18px; }

.dk-brand { display: flex; align-items: baseline; gap: 5px; font-family: 'Syne', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.4px; color: var(--text); }
.dk-brand-sm { font-size: 17px; }
.dk-brand-dot { width: 7px; height: 7px; background: var(--primary); display: block; }
.dk-brand-dot-sm { width: 6px; height: 6px; }
.dk-pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text); animation: dkPulse 2.6s ease-in-out infinite; }

/* ============ Buttons ============ */
.dk-btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; border-radius: 100px; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .35s, color .35s, border-color .35s; }
.dk-btn-sm { font-size: 14px; padding: 11px 20px; }
.dk-btn-md { font-size: 16px; padding: 18px 32px; }
.dk-btn-lg { font-size: 17px; padding: 20px 38px; gap: 12px; }

.dk-btn-primary { background: var(--primary); color: #fff; }
.dk-btn-primary:hover { transform: translateY(-2px); background: var(--primary-hover); }
.dk-btn-lg.dk-btn-primary:hover { transform: translateY(-3px); }

.dk-btn-outline { background: transparent; color: var(--text); border-color: var(--text); }
.dk-btn-outline:hover { background: var(--primary); color: #fff; }

/* ============ Hero ============ */
.dk-hero { position: relative; z-index: 1; max-width: 840px; margin: 0 auto; padding: 200px 48px 150px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dk-eyebrow { font-size: 14.5px; letter-spacing: 0.5px; color: var(--white); margin-bottom: 36px; }
.dk-hero-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(42px, 6.4vw, 84px); line-height: 0.98; letter-spacing: -3px; margin: 0 0 32px; color: var(--text); }
.dk-hero-title-dot { display: inline-block; width: 13px; height: 13px; background: var(--primary); margin-left: 12px; }
.dk-hero-desc { font-size: 20px; line-height: 1.5; font-weight: 300; color: var(--text-dim); margin: 0 0 44px; max-width: 46ch; text-wrap: pretty; }

/* ============ Shared section heading ============ */
.dk-h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.06; letter-spacing: -1.9px; margin: 0; color: var(--text); text-align: center; }

/* ============ Problemas ============ */
.dk-problems { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.08); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.dk-problems-pad { padding: 100px 48px; }
.dk-problems-title { margin-bottom: 48px; text-align: center; }
.dk-probs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 64px; margin: auto; }
.dk-prob-item { display: flex; align-items: baseline; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.10); }
.dk-prob-check { color: var(--primary); font-size: 17px; line-height: 1; }
.dk-prob-text { font-size: 19px; letter-spacing: -0.6px; line-height: 1.3; margin: 0; color: var(--text); }
.dk-problems-quote {
    font-family: 'Syne', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.32;
    color: #A99BFF;
    margin: 56px 0 0;
    /* max-width: 26ch; */
    border:1px solid var(--primary);
    width: 100%;
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    color: white;
    corner-shape: scoop;
}
/* ============ Casos / Nuestros clientes ============ */
.dk-casos-pad { padding: 110px 48px;     backdrop-filter: blur(30px);}
.dk-casos-title { margin-bottom: 56px; }
.dk-clients-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dk-client-item {
  display: flex; align-items: center; justify-content: center;
  padding: 44px 20px;
  font-family: 'Syne', sans-serif;
  letter-spacing: -0.5px; text-align: center; color: var(--text-dim);
  border-left: 1px solid var(--border);
  transition: color .3s;
  font-size: 1.2rem;
}
.dk-client-item:first-child { border-left: none; }
.dk-client-item:hover { color: var(--text); }

.dk-container.resultados{
  background-color: var(--primary);
  border-radius: 10px;
  margin: 0px 20px;
}
.dk-container.resultados .dk-case-block p{color:white;}

@media (max-width: 699px) {
  .dk-client-item { border-left: none; border-top: 1px solid var(--border); }
  .dk-client-item:nth-child(-n+2) { border-top: none; }
  .dk-client-item:nth-child(2n) { border-left: 1px solid var(--border); }
}

/* ============ Qué hacemos (sin background) ============ */
.dk-hacemos { position: relative; z-index: 1; }
.dk-hacemos-pad { padding: 110px 48px; }
.dk-hacemos-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.dk-hacemos-title { margin-bottom: 22px; text-align: left;}
.dk-hacemos-desc { font-size: 18.5px; line-height: 1.55; font-weight: 300; color: var(--text-dim); margin: 0; max-width: 30ch; }
.dk-hacemos-item { display: flex; align-items: baseline; gap: 20px; padding: 24px 0; border-top: 1px solid var(--border); transition: padding-left .4s cubic-bezier(.2, .8, .2, 1); }
.dk-hacemos-item:hover { padding-left: 12px; }
.dk-hacemos-item-last { border-bottom: 1px solid var(--border); }
.dk-hacemos-dot { width: 7px; height: 7px; background: var(--primary); flex: none; transform: translateY(-3px); }
.dk-hacemos-item-title { font-family: 'Syne', sans-serif; font-size: clamp(21px, 2.2vw, 28px); font-weight: 600; letter-spacing: -1px; margin: 0; color: var(--text); }

/* ============ Contacto ============ */
.dk-contacto-pad { padding: 160px 48px 150px; text-align: center; }
.dk-contacto-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(40px, 6.4vw, 86px); line-height: 0.96; letter-spacing: -3.6px; margin: 0 auto 34px; max-width: 22ch; color: var(--text); }
.dk-contacto-desc { font-size: 20px; line-height: 1.55; font-weight: 300; color: var(--text-dim); margin: 0 auto 48px; max-width: 46ch; text-wrap: pretty; }

/* ============ Footer ============ */
.dk-footer { position: relative; z-index: 1; border-top: 1px solid var(--border); }
.dk-footer-inner { padding: 36px 48px; display: flex; align-items: center; justify-content: center; gap: 28px; flex-wrap: wrap; }
@media (min-width:992px) { 
  .dk-footer-inner{justify-content: space-between;}
}
.dk-footer-links { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; font-size: 14.5px; }
.dk-footer-link { color: var(--text-dim); transition: color .3s; }
.dk-footer-link:hover { color: var(--text); }
.dk-footer-copy { font-size: 14px; color: #6E6E8C; }

/* ============ Modal: agendar reunión (Google Calendar) ============ */
.dk-modal-overlay { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 26, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 24px; }
.dk-modal-panel { position: relative; width: 100%; max-width: 720px; height: min(80vh, 760px); background: #fff; border: 1px solid var(--border); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55); }
.dk-modal-close { position: absolute; top: 14px; right: 14px; z-index: 1; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.08); color: var(--text); font-size: 20px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.dk-modal-close:hover { background: rgba(255, 255, 255, 0.16); }
.dk-modal-iframe { width: 100%; height: 100%; border: none; display: block; }
.dk-modal-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; padding: 40px; gap: 12px; color: var(--text-dim); }
.dk-modal-placeholder strong { color: var(--text); font-family: 'Syne', sans-serif; font-size: 19px; }
.dk-modal-loader { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; background: #fff; }
.dk-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(104, 90, 255, 0.15); border-top-color: var(--primary); animation: dkSpin .8s linear infinite; }
@keyframes dkSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .dk-spinner { animation: none; } }

/* ============ Casos / tarjeta clickeable en home ============ */
.dk-client-item-linked { flex-direction: column; gap: 16px; cursor: pointer; transition: color .3s, background .3s; }
.dk-client-item-linked:hover { color: var(--text); background: rgba(255, 255, 255, 0.03); }
.dk-client-name { font-size: inherit; font-family: inherit; letter-spacing: inherit; }
.dk-client-cta { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--primary); }

/* ============ Páginas de caso de éxito ============ */
.dk-case-back { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; color: var(--text-dim); transition: color .3s; position: absolute; left: 60px; }
.dk-case-back:hover { color: var(--text); }

.dk-case-hero { position: relative; z-index: 1; max-width: 1200px; border: 1px dashed var(--border); backdrop-filter: blur(30px); margin: 100px 20px; border-radius: 10px; padding: 80px 48px 80px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.dk-case-hero .dk-eyebrow { margin-bottom: 20px; }
.dk-case-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(36px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -2.4px; margin: 0 0 20px; color: var(--text); }
.dk-case-tagline { font-size: 19px; line-height: 1.5; font-weight: 500; color: var(--text-dim); margin: 0 0 24px; max-width: 52ch; text-wrap: pretty; }
.dk-case-meta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.dk-case-tag { font-size: 13.5px; letter-spacing: 0.2px; color: var(--text-dim); border: 1px solid var(--text-dim); border-radius: 100px; padding: 7px 16px; }

.dk-case-section { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.dk-case-section-pad { padding: 72px 48px; }
.dk-case-h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; letter-spacing: -1.4px; margin: 0 0 28px; color: var(--text); text-align: left; }
.dk-case-block p { font-size: 17.5px; line-height: 1.6; font-weight: 300; color: var(--text-dim); margin: 0 0 20px; text-wrap: pretty; }
.dk-case-block p:last-child { margin-bottom: 0; }

.dk-case-subblock { max-width: 760px; padding: 24px 0; border-top: 1px solid var(--border); }
.dk-case-subblock:first-of-type { border-top: none; padding-top: 0; }
.dk-case-subblock h3 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 19.5px; letter-spacing: -0.5px; margin: 0 0 10px; color: var(--text); }
.dk-case-subblock p { font-size: 17px; line-height: 1.6; font-weight: 300; color: var(--text-dim); margin: 0; text-wrap: pretty; }

.dk-case-cross { display: inline-block; margin-top: 28px; font-size: 15px; color: var(--text-dim); transition: color .3s; }
.dk-case-cross:hover { color: var(--primary); }

/* Sobre el cliente: 8/4 */
.dk-case-about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 56px; align-items: center; }
.dk-case-about-card { border: 1px solid var(--border); border-radius: 16px; padding: 32px; }
.dk-case-logo-slot { display: block; width: 100%; height: 72px; margin: 0 0 26px; border-radius: 10px; background-color: white; min-height: 200px;padding: 40px; }
.dk-case-facts { display: flex; flex-direction: column; }
.dk-case-fact { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; border-top: 1px solid var(--border); padding-top: 14px; }
.dk-case-fact:first-child { border-top: none; padding-top: 0; }
.dk-case-fact-label { color: var(--text-mute); }
.dk-case-fact-value { color: var(--text); font-weight: 500; text-align: right; }

/* Necesidades: cards */
.dk-case-needs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.dk-case-need-card { border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.dk-case-need-card h3 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 18.5px; letter-spacing: -0.4px; margin: 0 0 10px; color: var(--text); }
.dk-case-need-card p { font-size: 15.5px; line-height: 1.55; font-weight: 300; color: var(--text-dim); margin: 0; }

/* Qué se hizo: punteo */
.dk-case-list-item { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); align-items: flex-start; }
.dk-case-list-item:first-child { border-top: none; padding-top: 0; }
.dk-case-list-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; margin-top: 9px; }
.dk-case-list-item h3 { font-family: 'Syne', sans-serif; font-weight: 600; font-size: 18px; letter-spacing: -0.4px; margin: 0 0 6px; color: var(--text); }
.dk-case-list-item p { font-size: 15.5px; line-height: 1.55; font-weight: 300; color: var(--text-dim); margin: 0; }

@media (max-width: 999px) {
  .dk-case-about-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 699px) {
  .dk-case-hero { padding: 50px 22px; }
  .dk-case-needs-grid { grid-template-columns: 1fr; }
}

@media (min-width: 699px) {
  .dk-case-hero{margin: 100px auto;}
  .dk-container.resultados{margin: auto;}
}