/* layout.css — tokens, grid & section structure */

/* Native cross-document view transitions between pages (index/precios/contacto).
   Zero-cost progressive enhancement: browsers without support ignore this
   at-rule entirely and just do a normal navigation. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}

:root {
  --dark: #0B0C0D;
  --dark-border: #1C1E20;
  --offwhite: #F7F8FA;
  --white: #FFFFFF;
  --accent: #2589E6;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: rgba(255, 255, 255, 0.62);
  --text-dark: #0B0C0D;
  --text-muted: rgba(11, 12, 13, 0.62);
  --border-light: rgba(11, 12, 13, 0.1);
  --border-dark: rgba(255, 255, 255, 0.12);

  --font-display: 'Archivo Black', sans-serif;
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --container: 1280px;
  --edge: clamp(1.25rem, 4vw, 2.5rem);
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-dark);
}

.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

section {
  padding-block: clamp(4rem, 8vw, 8rem);
  padding-inline: var(--edge);
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: var(--accent);
  z-index: 200;
  will-change: transform;
}

/* ---------- region splash ---------- */
.region-splash {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--dark);
}

.region-splash[hidden] { display: none; }
html.region-set .region-splash { display: none; }

.region-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--edge);
  border-bottom: 1px solid var(--dark-border);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.region-panel:last-child { border-bottom: none; }

@media (min-width: 800px) {
  .region-splash { flex-direction: row; }
  .region-panel { border-bottom: none; border-right: 1px solid var(--dark-border); align-items: center; text-align: center; }
  .region-panel:last-child { border-right: none; }
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--edge);
  height: 76px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
}

.site-header .logo img { height: 26px; width: auto; }

.site-nav { display: none; gap: 2rem; }

@media (min-width: 860px) {
  .site-nav { display: flex; }
}

.header-right { display: flex; align-items: center; gap: 1.25rem; }

/* ---------- mobile nav toggle ---------- */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 28px;
  height: 24px;
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-dark);
  transition: transform 0.3s var(--ease), opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 859px) {
  .site-nav.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 76px;
    inset-inline: 0;
    background: var(--white);
    padding: 1.5rem var(--edge) 2rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 16px 24px -12px rgba(11,12,13,.12);
    z-index: 25;
  }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: calc(76px + clamp(3rem, 8vw, 6rem));
  padding-bottom: 0;
  color: var(--text-on-dark);
}

.hero-aurora {
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
  background:
    radial-gradient(640px circle at 18% 22%, rgba(37, 137, 230, 0.28), transparent 62%),
    radial-gradient(520px circle at 88% 65%, rgba(37, 137, 230, 0.16), transparent 58%);
  animation: auroraDrift 20s ease-in-out infinite alternate;
}

@keyframes auroraDrift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3%, -4%) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora { animation: none; }
}

.hero-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.7s var(--ease);
  background: radial-gradient(560px circle at var(--gx, 72%) var(--gy, 38%), rgba(37, 137, 230, 0.28), transparent 62%);
  mix-blend-mode: screen;
}

@media (hover: none) {
  .hero-glow { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow { display: none; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--edge);
}

.hero-copy { max-width: 46rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.hero-pricing-hint {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
}

/* ---------- marquee ---------- */
.marquee-section {
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-top: 1px solid var(--dark-border);
  margin-top: clamp(3rem, 8vw, 6rem);
}

.marquee-track { display: flex; width: max-content; }

.marquee-content {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  padding-block: 1.1rem;
  padding-right: 2.5rem;
  animation: marquee 45s linear infinite;
}

.marquee-section:hover .marquee-content,
.marquee-section.is-paused .marquee-content {
  animation-play-state: paused;
}

/* ---------- system section ---------- */
.system-section { background: var(--offwhite); }

.system-head {
  max-width: 46rem;
  margin-bottom: clamp(2.5rem, 6vw, 4rem);
}

.system-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .system-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .system-grid.services-grid-6,
  .system-grid.sectors-grid,
  .system-grid.benefits-grid,
  .system-grid.value-grid { grid-template-columns: repeat(3, 1fr); }
}

.system-item {
  background: var(--offwhite);
  padding: clamp(1.75rem, 3vw, 2.5rem);
}

.sector-card {
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
}

.sector-photo {
  width: 64px;
  height: 64px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.sector-card-body { padding: 0; }
.sector-card-body p { margin-top: 0.6rem; }

.service-card {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s var(--ease);
}

.service-card:hover { background: var(--white); }
.service-card:active { transform: scale(0.99); }

.service-card.is-active {
  background: var(--white);
  box-shadow: 0 1px 0 0 var(--accent);
}

.service-hint {
  text-align: center;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.service-hint[hidden] { display: none; }

/* ---------- service detail panel ---------- */
.service-detail {
  max-width: var(--container);
  margin: clamp(1.5rem, 3vw, 2.25rem) auto 0;
}

.service-detail[hidden] { display: none; }

.service-detail-inner {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--accent);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.service-detail-head {
  margin-bottom: 1.25rem;
}

.service-detail-desc {
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46rem;
  margin-bottom: 2rem;
}

.service-detail-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 720px) {
  .service-detail-cols { grid-template-columns: 1.3fr 1fr; }
}

/* ---------- team section ---------- */
.team-section { background: var(--white); }

.team-head { max-width: 42rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

.team-teaser-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

@media (min-width: 900px) {
  .team-teaser-layout { grid-template-columns: 1.1fr 1fr; align-items: center; }
}

.team-teaser-body { max-width: 42rem; }
.team-teaser-body .link-arrow { display: inline-block; margin-top: 1.5rem; }

.team-teaser-quote {
  border: 1px solid var(--border-light);
  background: var(--offwhite);
  padding: clamp(2rem, 4vw, 2.75rem);
}

.team-teaser-quote p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text-dark);
}

.team-teaser-quote cite {
  display: block;
  margin-top: 1.1rem;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.team-card {
  border: 1px solid var(--border-light);
  padding: clamp(2rem, 4vw, 2.75rem);
}

.team-section > .link-arrow {
  display: inline-block;
  max-width: var(--container);
  margin: 2rem auto 0;
}

/* ---------- team page (dedicated) ---------- */
.team-section-full { background: var(--white); }

.team-grid-full {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .team-grid-full { grid-template-columns: repeat(2, 1fr); }
}

.team-card-lg {
  border: 1px solid var(--border-light);
  padding: clamp(2.25rem, 4vw, 3rem);
}

.team-card-lg p { color: var(--text-muted); line-height: 1.6; font-size: 0.98rem; margin-top: 0.85rem; }
.team-card-lg p:first-of-type { margin-top: 0; }

.team-combined-card {
  border: 1px solid var(--border-light);
  background: var(--white);
  padding: clamp(2.5rem, 5vw, 4rem);
  max-width: 44rem;
  margin-inline: auto;
  text-align: center;
}

.team-combined-photos {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.team-combined-photos .team-photo-lg {
  margin-bottom: 0;
  border: 4px solid var(--white);
  box-shadow: 0 0 0 1px var(--border-light);
}

.team-combined-card .team-role { margin-bottom: 1.25rem; }
.team-combined-card p { color: var(--text-muted); line-height: 1.65; font-size: 1rem; max-width: 36rem; margin-inline: auto; }

/* ---------- values section ---------- */
.values-section { background: var(--dark); color: var(--text-on-dark); }

.values-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 6vw, 4rem); }

.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-dark);
  border: 1px solid var(--border-dark);
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
}

.value-item { background: var(--dark); padding: clamp(1.75rem, 3vw, 2.5rem); }

.values-quote {
  max-width: 46rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--border-dark);
}

/* ---------- CTA section ---------- */
.cta-section {
  position: relative;
  overflow: hidden;
  background: var(--accent);
  color: var(--white);
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 42rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--white);
  padding: clamp(2.5rem, 5vw, 3.5rem) var(--edge);
}

.footer-inner {
  max-width: var(--container);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
}

.footer-links { display: flex; gap: 1.5rem; }

/* ---------- generic page hero (pricing / contact) ---------- */
.page-hero {
  padding-top: calc(76px + clamp(3rem, 7vw, 5rem));
  padding-bottom: clamp(2rem, 5vw, 3rem);
  max-width: 46rem;
}

/* ---------- trust strip (homepage) ---------- */
.trust-strip-section {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.trust-strip-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 720px) {
  .trust-strip-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .trust-strip-grid { grid-template-columns: repeat(4, 1fr); }
}

.trust-strip-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.trust-strip-mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--white);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-strip-item p { font-size: 0.95rem; color: var(--text-muted); }

/* ---------- pricing teaser (homepage) ---------- */
.pricing-teaser-section {
  background: var(--offwhite);
  text-align: center;
}

.pricing-teaser-section .pricing-grid,
.pricing-teaser-section .extras-grid { text-align: left; }

.pricing-teaser-head {
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.pricing-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .pricing-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1040px) {
  .pricing-teaser-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-teaser-item {
  background: var(--white);
  padding: clamp(1.5rem, 2.5vw, 2rem) 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.pricing-teaser-item.is-highlight { background: var(--dark); }

.pt-name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.pricing-teaser-item.is-highlight .pt-name { color: var(--text-on-dark-muted); }

.pt-price {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

.pricing-teaser-item.is-highlight .pt-price { color: var(--white); }

.pt-price i {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
}

.pricing-teaser-item.is-highlight .pt-price i { color: var(--text-on-dark-muted); }

.pt-price.pt-custom { color: var(--accent); font-size: clamp(1rem, 1.6vw, 1.2rem); }

.pt-desc {
  margin-top: 0.6rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.pricing-teaser-item.is-highlight .pt-desc { color: var(--text-on-dark-muted); }

/* ---------- pricing ---------- */
.pricing-section { padding-top: 1rem; }

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-note {
  margin-top: 2rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

/* ---------- extras / add-ons ---------- */
.extras-teaser-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-light);
  border: 1px solid var(--border-light);
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
  .extras-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .extras-teaser-grid { grid-template-columns: repeat(4, 1fr); }
}

.extras-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: var(--container);
  margin-inline: auto;
}

@media (min-width: 640px) {
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1100px) {
  .extras-grid { grid-template-columns: repeat(4, 1fr); }
}

.extras-grid .pricing-price { margin-bottom: 1.75rem; }

.pricing-card {
  position: relative;
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
}

.pricing-card.is-highlight {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.pricing-price {
  margin-block: 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.pricing-card .feature-list { margin-bottom: 2rem; flex-grow: 1; }

.pricing-card.is-highlight .feature-list li,
.pricing-card.is-highlight .pricing-desc { color: var(--text-on-dark-muted); }

.addons-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 2.75rem); }

.addons-grid { margin-top: 0; }
@media (min-width: 900px) {
  .addons-grid { grid-template-columns: repeat(3, 1fr); }
}

.faq-section { max-width: 46rem; }

/* ---------- legal pages (privacy / terms) ---------- */
.legal-section { max-width: 46rem; }

.legal-updated {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: clamp(2rem, 4vw, 2.75rem);
}

.legal-section h2 { margin-top: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.85rem; }
.legal-section h2:first-of-type { margin-top: 0; }
.legal-section p { color: var(--text-muted); line-height: 1.65; }
.legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.faq-list {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--border-light);
}

/* ---------- contact ---------- */
.contact-section { padding-top: 0; }

.whatsapp-cta-card {
  max-width: var(--container);
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  background: var(--dark);
  color: var(--white);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.whatsapp-cta-icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-cta-icon svg { width: 28px; height: 28px; }

.whatsapp-cta-text { flex: 1 1 260px; }
.whatsapp-cta-text h2 { margin-bottom: 0.5rem; }
.whatsapp-cta-text p { color: var(--text-on-dark-muted); line-height: 1.55; font-size: 0.95rem; }

.contact-wrap {
  max-width: var(--container);
  margin-inline: auto;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
}

@media (min-width: 900px) {
  .contact-wrap { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 32rem; }

.form-row { display: flex; flex-direction: column; gap: 0.5rem; }

.contact-direct {
  background: var(--offwhite);
  border: 1px solid var(--border-light);
  padding: clamp(1.75rem, 3vw, 2.25rem);
}

.contact-facts {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
