/*
Theme Name: Xperience Digital — Business Experience
Theme URI: https://xperienceperu.com/
Author: Xperience Digital
Description: Landing corporativo responsive para Xperience Digital. Incluye versión clásica PHP y equivalentes Block Theme HTML/patrones.
Version: 1.0.0
Text Domain: xperience-digital
License: GPL-2.0-or-later
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700;800&display=swap');

:root {
  --xd-dark: #1D1D16;
  --xd-blue: #009FE3;
  --xd-turq: #23B7C5;
  --xd-white: #FFFFFF;
  --xd-light: #F4F6F8;
  --xd-text: #262626;
  --xd-muted: #667085;
  --xd-border: rgba(29,29,22,.10);
  --xd-radius: 22px;
  --xd-shadow: 0 16px 45px rgba(29,29,22,.08);
  --xd-container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  color: var(--xd-text);
  background: var(--xd-white);
  line-height: 1.65;
  font-size: 16px;
}
body, button, input, textarea, select { font-family: 'Montserrat', sans-serif; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.xd-container { width: min(calc(100% - 40px), var(--xd-container)); margin-inline: auto; }
.xd-hero, .xd-section { scroll-margin-top: 96px; }
.xd-section { padding: 96px 0; }
.xd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--xd-blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.xd-eyebrow::before { content: ''; width: 24px; height: 2px; background: currentColor; }
.xd-title {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: 1.06;
  letter-spacing: -.045em;
  font-weight: 800;
}
.xd-section-title { max-width: 780px; }
.xd-lead { max-width: 760px; margin: 20px 0 0; color: var(--xd-muted); font-size: 18px; }
.xd-accent { color: var(--xd-blue); }

/* Header (sticky: transparente/oscuro sobre el hero -> compacto y claro al hacer scroll) */
.xd-header {
  position: fixed;
  top: 0;
  inset-inline: 0;
  z-index: 100;
  background: transparent;
  transition: background .35s ease, box-shadow .35s ease;
}
.xd-header.is-scrolled {
  background: rgba(255,255,255,.97);
  box-shadow: 0 10px 30px rgba(29,29,22,.08);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  backdrop-filter: saturate(180%) blur(10px);
}
.xd-header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height .35s ease;
}
.xd-header.is-scrolled .xd-header-inner { min-height: 64px; }

.xd-logo-link { display: inline-flex; }
.xd-logo-wrap { position: relative; display: inline-flex; }
.xd-logo { display: block; width: 156px; height: auto; transition: opacity .25s ease, width .35s ease; }
.xd-logo-color { position: absolute; inset: 0; opacity: 0; }
.xd-header.is-scrolled .xd-logo { width: 132px; }
.xd-header.is-scrolled .xd-logo-white { opacity: 0; }
.xd-header.is-scrolled .xd-logo-color { opacity: 1; }

.xd-nav { display: flex; align-items: center; gap: 26px; color: rgba(255,255,255,.82); font-size: 13px; font-weight: 600; transition: color .35s ease; }
.xd-header.is-scrolled .xd-nav { color: rgba(29,29,22,.72); }
.xd-nav a:not(.xd-nav-cta) { position: relative; padding-bottom: 4px; transition: color .2s ease; }
.xd-nav a:not(.xd-nav-cta)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.xd-nav a:not(.xd-nav-cta):hover,
.xd-nav a:not(.xd-nav-cta):focus-visible,
.xd-nav a:not(.xd-nav-cta).is-active { color: #fff; }
.xd-header.is-scrolled .xd-nav a:not(.xd-nav-cta):hover,
.xd-header.is-scrolled .xd-nav a:not(.xd-nav-cta):focus-visible,
.xd-header.is-scrolled .xd-nav a:not(.xd-nav-cta).is-active { color: var(--xd-dark); }
.xd-nav a:not(.xd-nav-cta):hover::after,
.xd-nav a:not(.xd-nav-cta):focus-visible::after,
.xd-nav a:not(.xd-nav-cta).is-active::after { transform: scaleX(1); }

.xd-nav-cta {
  background: var(--xd-blue);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(0,159,227,.35);
  transition: background .2s ease, transform .2s ease, box-shadow .2s ease;
}
.xd-nav-cta:hover, .xd-nav-cta:focus-visible { background: #008ac5; color: #fff; transform: translateY(-1px); }

.xd-menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 24px; line-height: 1; cursor: pointer; transition: color .35s ease; }
.xd-header.is-scrolled .xd-menu-toggle { color: var(--xd-dark); }

/* Hero */
.xd-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 82% 30%, rgba(0,159,227,.20), transparent 30%),
    radial-gradient(circle at 70% 75%, rgba(35,183,197,.13), transparent 26%),
    var(--xd-dark);
}
.xd-hero::after {
  content: '';
  position: absolute;
  width: 520px; height: 520px;
  right: -160px; bottom: -240px;
  border: 1px solid rgba(0,159,227,.22);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(0,159,227,.025), 0 0 0 160px rgba(35,183,197,.02);
}
.xd-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 70px; align-items: center; }
.xd-hero-copy { max-width: 820px; }
.xd-hero .xd-eyebrow { color: var(--xd-turq); }
.xd-hero h1 { font-size: clamp(48px, 7vw, 86px); max-width: 900px; }
.xd-hero-subtitle { margin: 24px 0 0; font-size: clamp(18px,2vw,25px); font-weight: 700; }
.xd-hero-text { max-width: 690px; margin: 18px 0 0; color: rgba(255,255,255,.72); font-size: 17px; }
.xd-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.xd-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 21px; border-radius: 999px; border: 1px solid transparent; font-size: 13px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.xd-btn:hover, .xd-btn:focus-visible { transform: translateY(-2px); }
.xd-btn-primary { color: #fff; background: var(--xd-blue); }
.xd-btn-primary:hover, .xd-btn-primary:focus-visible { background: #008ac5; }
.xd-btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }
.xd-btn-ghost:hover, .xd-btn-ghost:focus-visible { border-color: rgba(255,255,255,.5); }
.xd-proof { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.xd-proof-item { padding: 16px 17px; border: 1px solid rgba(255,255,255,.10); border-radius: 16px; background: rgba(255,255,255,.035); color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.xd-proof-item strong { display: block; margin-bottom: 3px; color: #fff; font-size: 14px; }

/* Differentiator */
.xd-light { background: var(--xd-light); }
.xd-diff-grid { display: grid; grid-template-columns: minmax(0,1.1fr) minmax(320px,.9fr); gap: 70px; align-items: center; }
.xd-quote { margin: 28px 0 0; padding: 25px 0 25px 26px; border-left: 3px solid var(--xd-blue); font-size: 24px; line-height: 1.3; font-weight: 700; }
.xd-pillars { display: grid; gap: 14px; }
.xd-pillar { padding: 24px; background: #fff; border: 1px solid var(--xd-border); border-radius: var(--xd-radius); box-shadow: 0 10px 30px rgba(29,29,22,.035); }
.xd-pillar-num { color: var(--xd-blue); font-weight: 800; font-size: 12px; }
.xd-pillar h3 { margin: 6px 0 5px; font-size: 19px; }
.xd-pillar p { margin: 0; color: var(--xd-muted); font-size: 14px; }
.xd-ai { margin-top: 24px; padding: 24px; border-radius: var(--xd-radius); background: var(--xd-dark); color: #fff; }
.xd-ai h3 { margin: 0 0 7px; font-size: 17px; }
.xd-ai p { margin: 0; color: rgba(255,255,255,.68); font-size: 13px; }

/* Ecosystem */
.xd-solutions-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 40px; }
.xd-solutions-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.xd-card { position: relative; min-height: 470px; padding: 28px; display: flex; flex-direction: column; border: 1px solid var(--xd-border); border-radius: var(--xd-radius); background: #fff; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.xd-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--xd-blue); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
.xd-card:hover, .xd-card:focus-within { transform: translateY(-7px); border-color: rgba(0,159,227,.22); box-shadow: var(--xd-shadow); }
.xd-card:hover::before, .xd-card:focus-within::before { transform: scaleX(1); }
.xd-card-number { font-size: 12px; color: var(--xd-blue); font-weight: 800; }
.xd-card h3 { margin: 22px 0 12px; font-size: 24px; line-height: 1.15; }
.xd-card p { margin: 0; color: var(--xd-muted); font-size: 14px; }
.xd-list { margin: 24px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.xd-list li { position: relative; padding-left: 17px; color: #454545; font-size: 12px; }
.xd-list li::before { content: ''; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--xd-turq); }
.xd-benefit { margin-top: auto; padding-top: 24px; color: var(--xd-dark); font-size: 12px; font-weight: 800; }
.xd-problem { margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--xd-light); color: var(--xd-muted); font-size: 11px; }

/* Methodology */
.xd-method { background: var(--xd-dark); color: #fff; }
.xd-method .xd-eyebrow { color: var(--xd-turq); }
.xd-method .xd-lead { color: rgba(255,255,255,.62); }
.xd-method-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); margin-top: 46px; border-top: 1px solid rgba(255,255,255,.12); }
.xd-step { min-height: 310px; padding: 28px 24px 24px 0; border-right: 1px solid rgba(255,255,255,.12); }
.xd-step:not(:first-child) { padding-left: 24px; }
.xd-step:last-child { border-right: 0; }
.xd-step-num { color: var(--xd-blue); font-size: 12px; font-weight: 800; }
.xd-step h3 { margin: 12px 0 7px; font-size: 22px; }
.xd-question { color: var(--xd-turq); font-size: 12px; font-weight: 700; }
.xd-step p { color: rgba(255,255,255,.63); font-size: 13px; }
.xd-step ul { padding: 0; margin: 18px 0 0; list-style: none; }
.xd-step li { margin: 6px 0; color: rgba(255,255,255,.78); font-size: 11px; }
.xd-step li::before { content: '→'; margin-right: 7px; color: var(--xd-blue); }

/* Impact */
.xd-impact-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: start; }
.xd-impact-list { display: grid; gap: 12px; }
.xd-impact-item { padding: 20px; border: 1px solid var(--xd-border); border-radius: 16px; background: #fff; }
.xd-impact-item small { display: block; margin-bottom: 4px; color: var(--xd-blue); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.xd-impact-item strong { font-size: 14px; }
.xd-impact-item p { margin: 5px 0 0; color: var(--xd-muted); font-size: 12px; }
.xd-impact-note { margin-top: 24px; padding: 18px 20px; border-radius: 16px; background: var(--xd-light); color: var(--xd-muted); font-size: 11px; }
.xd-claims { margin-top: 32px; display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.xd-claim { padding: 22px; border-radius: 18px; background: var(--xd-dark); color: #fff; }
.xd-claim-number { color: var(--xd-blue); font-size: 34px; font-weight: 800; line-height: 1; }
.xd-claim p { margin: 9px 0 0; font-size: 11px; color: rgba(255,255,255,.66); }
.xd-footnote { margin-top: 10px; color: var(--xd-muted); font-size: 9px; line-height: 1.5; }

/* CTA */
.xd-cta { position: relative; overflow: hidden; background: var(--xd-dark); color: #fff; }
.xd-cta::before { content: ''; position: absolute; width: 500px; height: 500px; right: -200px; top: -220px; border-radius: 50%; border: 1px solid rgba(35,183,197,.22); }
.xd-cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 50px; }
.xd-cta .xd-title { max-width: 750px; }
.xd-cta-copy { max-width: 720px; }
.xd-contact { margin-top: 18px; color: rgba(255,255,255,.64); font-size: 12px; }
.xd-contact a { color: #fff; }

/* Footer */
.xd-footer { padding: 30px 0; background: #12120f; color: rgba(255,255,255,.55); font-size: 11px; }
.xd-footer-inner { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.xd-footer img { width: 125px; opacity: .9; }

/* WordPress */
.wp-site-blocks > * { margin-block-start: 0; }
.alignwide { width: min(calc(100% - 40px), 1280px); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; margin: 0; padding: 12px 16px; clip: auto; background: #fff; color: var(--xd-dark); border-radius: 8px; }

@media (max-width: 1000px) {
  .xd-hero-grid, .xd-diff-grid, .xd-impact-grid { grid-template-columns: 1fr; gap: 42px; }
  .xd-hero { min-height: 820px; }
  .xd-solutions-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .xd-method-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .xd-step:nth-child(2) { border-right: 0; }
  .xd-step:nth-child(3), .xd-step:nth-child(4) { border-top: 1px solid rgba(255,255,255,.12); }
  .xd-cta-inner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 720px) {
  .xd-container { width: min(calc(100% - 28px), var(--xd-container)); }
  .xd-section { padding: 70px 0; }
  .xd-header-inner { min-height: 72px; }
  .xd-nav { display: none; }
  .xd-menu-toggle { display: block; }
  .xd-nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 14px;
    right: 14px;
    margin-top: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px;
    background: #1D1D16;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    box-shadow: 0 24px 50px rgba(0,0,0,.28);
    color: rgba(255,255,255,.88);
  }
  .xd-nav.is-open a:not(.xd-nav-cta) { padding: 10px 8px; }
  .xd-nav.is-open a:not(.xd-nav-cta)::after { content: none; }
  .xd-nav.is-open .xd-nav-cta { margin-top: 6px; text-align: center; }
  /* El panel es siempre oscuro (abierto sobre header transparente u header ya "is-scrolled"),
     así que su texto se fuerza a claro para no perder contraste sobre ese fondo. */
  .xd-header.is-scrolled .xd-nav.is-open,
  .xd-header.is-scrolled .xd-nav.is-open a:not(.xd-nav-cta),
  .xd-header.is-scrolled .xd-nav.is-open a:not(.xd-nav-cta).is-active {
    color: rgba(255,255,255,.88);
  }
  .xd-header.is-scrolled .xd-nav.is-open a:not(.xd-nav-cta):hover,
  .xd-header.is-scrolled .xd-nav.is-open a:not(.xd-nav-cta):focus-visible {
    color: #fff;
  }
  .xd-hero { min-height: auto; padding: 130px 0 70px; }
  .xd-hero h1 { font-size: clamp(42px, 13vw, 64px); }
  .xd-proof, .xd-solutions-grid, .xd-method-grid, .xd-claims { grid-template-columns: 1fr; }
  .xd-card { min-height: auto; }
  .xd-step { min-height: auto; border-right: 0; border-top: 1px solid rgba(255,255,255,.12); padding: 26px 0 !important; }
  .xd-step:first-child { border-top: 0; }
  .xd-solutions-head { display: block; }
  .xd-solutions-head .xd-lead { margin-top: 14px; }
  .xd-footer-inner { align-items: flex-start; flex-direction: column; }
  .xd-actions .xd-btn { width: 100%; }
}

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