:root {
  --orange: #D96D32;
  --orange-dark: #B65322;
  --ink: #0A1C4D;
  --ink-2: #26355A;
  --cream: #FFF8F2;
  --warm: #FFF0E5;
  --line: rgba(10, 28, 77, .10);
  --white: #FFFFFF;
  --shadow: 0 28px 70px rgba(67, 36, 13, .14);
  --radius: 30px;
  --container: 1220px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  transition: background .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.site-header.scrolled {
  background: rgba(255,255,255,.9);
  box-shadow: 0 12px 36px rgba(10,28,77,.08);
  backdrop-filter: blur(18px);
}
.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1.4px;
  color: #fff;
}
.site-header.scrolled .brand { color: var(--orange); }
.brand-mark {
  width: 42px;
  height: 34px;
  display: grid;
  gap: 3px;
}
.brand-mark i {
  display: block;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 8px 2px 2px 8px;
  position: relative;
}
.brand-mark i:nth-child(2) { width: 82%; }
.brand-mark i:nth-child(3) { width: 90%; }
.brand-mark i::after {
  content: "";
  position: absolute;
  right: 5px;
  top: 1px;
  width: 12px;
  height: 2px;
  background: currentColor;
  border-radius: 99px;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: rgba(255,255,255,.88); font-size: 14px; font-weight: 700; }
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a { color: var(--ink-2); }
.site-header.scrolled .main-nav a:hover { color: var(--orange); }
.nav-cta {
  padding: 11px 17px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.55);
}
.site-header.scrolled .nav-cta { background: var(--orange); color: #fff !important; border-color: var(--orange); }
.menu-toggle { display: none; border: 0; background: transparent; width: 42px; height: 42px; padding: 8px; }
.menu-toggle span { display: block; height: 2px; margin: 6px 0; background: currentColor; border-radius: 3px; }

.section-orange {
  background: var(--orange);
  color: #fff;
}
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  padding: 140px 0 90px;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero::before {
  width: 560px; height: 560px; right: -240px; top: -260px;
  border: 110px solid rgba(255,255,255,.07);
}
.hero::after {
  width: 430px; height: 430px; left: -260px; bottom: -290px;
  border: 90px solid rgba(255,255,255,.05);
}
.hero-grid {
  display: grid;
  grid-template-columns: .9fr 1.25fr;
  gap: 54px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow.light { color: rgba(255,255,255,.75); }
.hero h1 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 88px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 400;
  max-width: 760px;
}
.hero h1 strong { font-weight: 800; }
.hero-lead {
  margin: 28px 0 0;
  max-width: 610px;
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,.84);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--orange); box-shadow: 0 14px 30px rgba(80,34,5,.18); }
.btn-ghost { border: 1px solid rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 14px 30px rgba(233,101,24,.22); }
.btn-outline { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-pills span {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.16);
  font-size: 12px;
  font-weight: 700;
}
.hero-visual { min-width: 0; }
.device-stack {
  position: relative;
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  filter: drop-shadow(0 34px 38px rgba(77,34,10,.28));
}
.device-stack::before {
  content: "";
  position: absolute;
  inset: 9% 7% 7%;
  background: rgba(255,255,255,.18);
  filter: blur(45px);
  border-radius: 30px;
  z-index: -1;
}
.device-stack img { border-radius: 28px; }
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  animation: float 2.2s ease-in-out infinite;
}
@keyframes float { 50% { transform: translate(-50%, 6px); } }

.section { padding: 116px 0; }
.intro-grid {
  display: grid;
  grid-template-columns: 1.05fr .8fr;
  gap: 90px;
  align-items: end;
}
.section h2 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.05em;
}
.section h2 span { color: var(--orange); }
.intro-copy { font-size: 17px; line-height: 1.8; color: #60708E; }
.intro-copy p { margin: 0 0 14px; }
.wide-shot { margin-top: 56px; }
.wide-shot img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.roles-section { background: var(--cream); }
.section-heading { max-width: 840px; text-align: center; }
.section-heading p:last-child { color: #67748F; font-size: 17px; line-height: 1.7; max-width: 700px; margin: 22px auto 0; }
.role-grid { margin-top: 64px; display: grid; gap: 26px; }
.role-card {
  display: grid;
  grid-template-columns: .72fr 1.28fr;
  min-height: 460px;
  background: #fff;
  border: 1px solid rgba(10,28,77,.06);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(10,28,77,.06);
}
.role-card:nth-child(even) { grid-template-columns: 1.28fr .72fr; }
.role-card:nth-child(even) .role-copy { order: 2; }
.role-copy { padding: 54px; display: flex; flex-direction: column; justify-content: center; }
.role-number { font-weight: 800; font-size: 12px; color: var(--orange); letter-spacing: .12em; }
.role-copy h3 { margin: 8px 0 14px; font-size: 46px; line-height: 1; letter-spacing: -.04em; }
.role-tagline { margin: 0 0 14px !important; font-size: 21px !important; color: var(--ink) !important; font-weight: 800; line-height: 1.35 !important; }
.role-copy p:last-child { color: #68758E; line-height: 1.7; margin: 0; }
.role-media { min-width: 0; overflow: hidden; background: var(--orange); display: flex; align-items: center; }
.role-media img { width: 100%; height: 100%; object-fit: cover; }

.ecosystem { padding: 110px 0; }
.ecosystem-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; }
.ecosystem h2 { color: #fff; }
.ecosystem h2 strong { font-weight: 800; }
.ecosystem p { color: rgba(255,255,255,.78); font-size: 17px; line-height: 1.75; }
.feature-list { margin-top: 26px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 16px; }
.feature-list span { font-size: 14px; font-weight: 700; color: rgba(255,255,255,.92); }
.ecosystem-img { border-radius: 28px; box-shadow: 0 30px 65px rgba(67,31,9,.3); }

.customization { background: #fff; }
.custom-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 72px; align-items: center; }
.custom-media img { border-radius: 30px; box-shadow: var(--shadow); }
.custom-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.8; color: #64718A; }
.check-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.check-list li { position: relative; padding-left: 34px; font-weight: 700; line-height: 1.5; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--warm);
  color: var(--orange);
  font-size: 12px;
}

.quote-section { padding: 96px 0; }
.quote-wrap { text-align: center; max-width: 980px; }
.quote-kicker { margin: 0 0 18px; font-size: 14px; letter-spacing: .18em; font-weight: 800; opacity: .65; }
blockquote { margin: 0; font-size: clamp(42px, 5.6vw, 76px); line-height: 1.05; letter-spacing: -.05em; font-weight: 700; }

.contact-section { background: #FAFBFD; }
.contact-card {
  padding: 56px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(10,28,77,.06);
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: center;
}
.contact-card h2 { font-size: clamp(38px, 4vw, 60px); }
.contact-card p:not(.eyebrow) { color: #67748E; font-size: 17px; line-height: 1.7; max-width: 680px; }
.contact-actions { display: grid; gap: 12px; }

.footer { padding: 42px 0; background: #07173F; color: #fff; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.footer-brand { color: #fff; font-size: 24px; }
.footer p { margin: 0; color: rgba(255,255,255,.62); font-size: 13px; }
.footer-copy { text-align: right; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .75s ease, transform .75s ease; transition-delay: var(--delay, 0ms); }
.reveal.in-view { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .hero-grid, .intro-grid, .ecosystem-grid, .custom-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 900px; }
  .intro-grid { gap: 26px; }
  .role-card, .role-card:nth-child(even) { grid-template-columns: 1fr; }
  .role-card:nth-child(even) .role-copy { order: 0; }
  .role-media { min-height: 340px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, var(--container)); }
  .nav-wrap { min-height: 70px; }
  .brand { font-size: 25px; }
  .brand-mark { width: 35px; height: 29px; }
  .brand-mark i { height: 7px; }
  .menu-toggle { display: block; color: #fff; }
  .site-header.scrolled .menu-toggle { color: var(--ink); }
  .main-nav {
    position: absolute;
    top: 70px; left: 14px; right: 14px;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 24px 50px rgba(10,28,77,.16);
    transform: translateY(-10px) scale(.98);
    opacity: 0;
    pointer-events: none;
    transition: .2s ease;
  }
  .main-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .main-nav a, .site-header .main-nav a { color: var(--ink); padding: 12px 13px; border-radius: 12px; }
  .main-nav a:hover { background: #FFF4EC; color: var(--orange); }
  .nav-cta, .site-header.scrolled .nav-cta { background: var(--orange); color: #fff !important; text-align: center; }

  .hero { padding: 118px 0 70px; }
  .hero-grid { gap: 34px; }
  .hero h1 { font-size: clamp(45px, 13vw, 67px); }
  .hero-lead { font-size: 16px; }
  .hero-actions { display: grid; }
  .btn { width: 100%; }
  .device-stack { transform: none; }
  .scroll-cue { display: none; }

  .section { padding: 78px 0; }
  .section h2 { font-size: clamp(38px, 11vw, 56px); }
  .wide-shot { margin-top: 34px; }
  .wide-shot img, .custom-media img, .ecosystem-img { border-radius: 20px; }
  .role-grid { margin-top: 38px; }
  .role-card { border-radius: 24px; }
  .role-copy { padding: 32px 26px; }
  .role-copy h3 { font-size: 38px; }
  .role-media { min-height: 230px; }
  .ecosystem { padding: 76px 0; }
  .ecosystem-grid { gap: 38px; }
  .feature-list { grid-template-columns: 1fr; }
  .custom-grid { gap: 38px; }
  .quote-section { padding: 70px 0; }
  .contact-card { padding: 32px 24px; border-radius: 24px; }
  .contact-actions { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-copy { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Official ESCCORE identity — source artwork preserved without redrawing */
.brand { flex-shrink: 0; line-height: 0; }
.brand-logo { display: block; width: clamp(150px, 16vw, 205px); height: auto; }
.site-header:not(.scrolled) .brand-logo, .footer .brand-logo { filter: brightness(0) invert(1); }
.site-header.scrolled .brand-logo { filter: none; }
.footer .brand-logo { width: 185px; }
@media (max-width: 760px) { .brand-logo { width: 155px; } .footer .brand-logo { width: 175px; } }

/* Boton flotante: volver al inicio */
.back-to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 1100;
  width: 52px; height: 52px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: #D96D32; color: #fff;
  box-shadow: 0 8px 28px rgba(78,35,15,.23);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .25s ease, visibility .25s ease, transform .25s ease, background .25s ease;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: #b95020; transform: translateY(-4px); }
.back-to-top:focus-visible { outline: 3px solid #16224b; outline-offset: 3px; }
.back-to-top svg { width: 27px; height: 27px; }
@media (max-width: 760px) { .back-to-top { right: 16px; bottom: 18px; width: 46px; height: 46px; } }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }
