/* ==========================================================================
   LocalPlaza.Co — Landing de expectativa
   Estilos sin dependencias externas.
   ========================================================================== */

/* ---------- 1. Variables ---------- */
:root {
  /* Identidad corporativa */
  --indigo: #7360DF;
  --magenta: #FB6BB5;
  --turquoise: #67D6C5;

  /* Derivados para texto y fondos (contraste AA) */
  --indigo-deep: #5543C2;     /* texto índigo sobre blanco */
  --ink: #1B1640;             /* texto principal */
  --ink-soft: #4A4566;        /* texto secundario */
  --night: #16122E;           /* fondos oscuros */
  --night-2: #221B47;
  --paper: #FFFFFF;
  --mist: #F7F5FF;            /* fondo claro con matiz índigo */
  --line: #E4E0F5;
  --error: #B42345;
  --success: #12705F;

  --gradient-brand: linear-gradient(100deg, var(--magenta) 0%, var(--indigo) 52%, var(--turquoise) 100%);
  --gradient-text: linear-gradient(100deg, #FF8DC8 0%, #A99BFF 50%, #7FE6D6 100%);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 72px;
  --shadow: 0 18px 50px -20px rgba(43, 30, 120, .35);
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--indigo);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .6em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--indigo-deep); }

:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: 6px;
}
.section--dark :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible { outline-color: var(--turquoise); }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: .75rem 1.25rem;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- 3. Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .75rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(115, 96, 223, .8);
}
.btn--primary:hover { background: var(--indigo-deep); }

.btn--ghost {
  background: rgba(255, 255, 255, .08);
  color: #fff;
  border-color: rgba(255, 255, 255, .55);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .16); }

.btn--sm { min-height: 42px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn--lg { min-height: 54px; padding: .9rem 1.75rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

/* ---------- 4. Encabezado ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(22, 18, 46, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px -12px rgba(0, 0, 0, .5);
}

.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* lpc-logo-horizontal.png es un lienzo transparente de 1600×400. Se muestra la
   franja x 80–1560, y 30–390 (1480×360): contiene el logotipo completo y todo
   su halo, así que no aparecen bordes cortados. --h es la altura visible. */
.brand { display: inline-block; text-decoration: none; }
.brand__crop {
  --h: 52px;
  display: block;
  height: var(--h);
  width: calc(var(--h) * 1480 / 360);
  overflow: hidden;
}
.brand__crop img {
  width: calc(var(--h) * 1600 / 360);
  max-width: none;
  height: auto;
  margin: calc(var(--h) * -30 / 360) 0 0 calc(var(--h) * -80 / 360);
}
.brand__crop--lg { --h: 64px; }

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav__list { display: flex; gap: 1.75rem; }
.site-nav__list a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: .4rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s ease;
}
.site-nav__list a:hover { border-color: var(--magenta); }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 14px;
  background: rgba(22, 18, 46, .5);
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 50%;
  width: 22px; height: 2px;
  margin-left: -11px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle__bars { top: 50%; margin-top: -1px; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bars::before { top: -7px; }
.nav-toggle__bars::after { top: 7px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 5rem;
  color: #fff;
  background: var(--night);
  isolation: isolate;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; z-index: -1; }

/* Alternativa visual: degradado de marca + icono, visible mientras carga o si falla */
.hero__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 8vw;
  background:
    radial-gradient(60% 70% at 85% 30%, rgba(251, 107, 181, .45), transparent 70%),
    radial-gradient(55% 60% at 70% 90%, rgba(103, 214, 197, .35), transparent 70%),
    radial-gradient(70% 80% at 20% 20%, rgba(115, 96, 223, .55), transparent 70%),
    var(--night);
}
.hero__fallback img {
  width: min(38vw, 420px);
  height: auto;            /* respeta la proporción 1:1 del PNG frente al atributo height="500" */
  object-fit: contain;
  opacity: .9;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45));
}

.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .8s ease;
}
.hero__media[data-state="ready"] .hero__video { opacity: 1; }
.hero__media[data-state="error"] .hero__video { display: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(22, 18, 46, .88) 0%, rgba(22, 18, 46, .62) 45%, rgba(22, 18, 46, .15) 100%),
    linear-gradient(0deg, rgba(22, 18, 46, .75) 0%, transparent 35%),
    linear-gradient(180deg, rgba(22, 18, 46, .6) 0%, transparent 22%);
}

.hero__content { position: relative; }
.hero__content > * { max-width: 680px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .4rem 1rem;
  margin-bottom: 1.5rem;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: rgba(22, 18, 46, .45);
  backdrop-filter: blur(6px);
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--turquoise);
  box-shadow: 0 0 0 4px rgba(103, 214, 197, .25);
}

.hero__title {
  font-size: clamp(2.6rem, 7vw, 5.25rem);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.02;
  margin-bottom: 1.25rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .35);
}
.hero__title .text-gradient { text-shadow: none; }

.hero__lead {
  font-size: clamp(1.15rem, 2.1vw, 1.4rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 2.25rem;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Control accesible de reproducción: botón compacto solo con icono
   (área táctil de 44×44 px) */
.video-toggle {
  position: absolute;
  right: var(--gutter);
  bottom: 2rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  background: rgba(22, 18, 46, .45);
  backdrop-filter: blur(6px);
  color: #fff;
  cursor: pointer;
  opacity: .75;
  transition: opacity .2s ease, background-color .2s ease;
}
.video-toggle[hidden] { display: none; }
.video-toggle:hover,
.video-toggle:focus-visible { opacity: 1; background: rgba(22, 18, 46, .8); }
.video-toggle:focus-visible { border-radius: 50%; }
.video-toggle__icon {
  position: relative;
  width: 14px; height: 14px;
}
/* Icono de pausa (dos barras) */
.video-toggle__icon::before,
.video-toggle__icon::after {
  content: "";
  position: absolute;
  top: 1px;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.video-toggle__icon::before { left: 2px; }
.video-toggle__icon::after { left: 8px; }
/* Icono de reproducir (triángulo) */
.video-toggle[data-paused="true"] .video-toggle__icon::before {
  left: 3px; top: 0;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent currentColor;
}
.video-toggle[data-paused="true"] .video-toggle__icon::after { display: none; }

/* ---------- 6. Secciones ---------- */
.section { position: relative; padding: clamp(4.5rem, 10vw, 8rem) 0; }
.section--light { background: var(--mist); }
.section--dark { background: var(--night); color: #fff; }

.kicker {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--indigo-deep);
}
.kicker::before {
  content: "";
  display: inline-block;
  width: 28px; height: 3px;
  margin-right: .7rem;
  vertical-align: middle;
  border-radius: 3px;
  background: var(--gradient-brand);
}
.kicker--light { color: var(--turquoise); }

.section-title {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -.03em;
}

.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.6; }

/* Toldo: guiño visual al icono de la marca */
.awning {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  background: repeating-linear-gradient(90deg, var(--magenta) 0 40px, #fff 40px 80px);
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% 14px no-repeat,
    radial-gradient(circle 20px at 50% 0, #000 97%, transparent 100%) 0 14px / 40px 20px repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% 14px no-repeat,
    radial-gradient(circle 20px at 50% 0, #000 97%, transparent 100%) 0 14px / 40px 20px repeat-x;
  filter: drop-shadow(0 6px 6px rgba(43, 30, 120, .12));
}

/* ---------- 7. El proyecto ---------- */
.project__grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  margin-bottom: clamp(3rem, 7vw, 5rem);
}
.project__intro p:not(.kicker):not(.lead) { color: var(--ink-soft); }

.status-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border: 1px dashed #BDB3F0;
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: .98rem;
}
.status-note__badge {
  padding: .2rem .7rem;
  border-radius: 999px;
  background: #E9E5FF;
  color: var(--indigo-deep);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.project__art {
  position: relative;
  margin: 0;
  display: grid;
  place-items: center;
}
.project__halo {
  position: absolute;
  inset: 8% 6%;
  border-radius: 40% 60% 55% 45% / 50% 45% 55% 50%;
  background: var(--gradient-brand);
  opacity: .22;
  filter: blur(30px);
}
.project__art img {
  position: relative;
  width: min(100%, 380px);
  height: auto;            /* respeta la proporción 1:1 del PNG frente al atributo height="500" */
  object-fit: contain;
  filter: drop-shadow(0 30px 40px rgba(43, 30, 120, .25));
  animation: float 6s ease-in-out infinite;
}

.subhead {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.pillar {
  position: relative;
  padding: 2rem 1.75rem 1.75rem;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: var(--accent);
}
.pillar--indigo { --accent: var(--indigo); }
.pillar--magenta { --accent: var(--magenta); }
.pillar--turquoise { --accent: var(--turquoise); }
.pillar__num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: var(--night);
  font-weight: 800;
}
.pillar--indigo .pillar__num { color: #fff; }
.pillar__num img { width: 32px; height: 32px; object-fit: contain; }
.pillar h4 { font-size: 1.3rem; margin-bottom: .4rem; }
.pillar p { margin: 0; color: var(--ink-soft); }

.territory {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.territory__label {
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.territory__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem;
}
.territory__list li {
  padding: .45rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: .95rem;
}

/* ---------- 8. Para negocios ---------- */
.business { overflow: hidden; isolation: isolate; }
.business__glow {
  position: absolute;
  inset: -20% -10% auto auto;
  width: 60vw; height: 60vw;
  max-width: 760px; max-height: 760px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, rgba(251, 107, 181, .35), transparent 60%),
    radial-gradient(circle at 70% 70%, rgba(103, 214, 197, .25), transparent 60%),
    radial-gradient(circle at 50% 50%, rgba(115, 96, 223, .45), transparent 70%);
  filter: blur(40px);
}
.business__grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.business .lead { color: rgba(255, 255, 255, .85); margin-bottom: 2rem; }

.steps { display: grid; gap: 1rem; counter-reset: none; }
.step {
  display: flex;
  gap: 1.1rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.step__num {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.step h3 { font-size: 1.2rem; margin-bottom: .3rem; }
.step p { margin: 0; color: rgba(255, 255, 255, .8); }

/* ---------- 9. Contacto ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}
.contact__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
.contact__intro .lead { color: var(--ink-soft); }

/* Tarjeta de contacto por correo (versión informativa) */
.contact-card {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: calc(var(--radius) + 6px);
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.contact-card > p { color: var(--ink-soft); }
.contact-card .btn { margin-top: .5rem; }
.contact-card__label {
  margin-bottom: .25rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.contact-card__email {
  font-size: clamp(1.3rem, 3vw, 1.65rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}
.contact-card__email a { color: var(--indigo-deep); text-underline-offset: 4px; }
.contact-card__note { margin: 1.25rem 0 0; font-size: .92rem; }

/* ---------- 10. Pie de página ---------- */
.site-footer {
  background: var(--night);
  color: rgba(255, 255, 255, .8);
  padding: 4rem 0 2rem;
  border-top: 4px solid transparent;
  border-image: var(--gradient-brand) 1;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.site-footer__brand p { margin-top: 1rem; max-width: 34ch; }
.site-footer__title {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--turquoise);
  margin-bottom: 1rem;
}
.site-footer__nav li { margin-bottom: .5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__bottom { padding-top: 1.5rem; font-size: .9rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- 11. Animaciones ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

/* ---------- 12. Adaptable ---------- */
@media (max-width: 960px) {
  .project__grid,
  .business__grid,
  .contact__grid { grid-template-columns: 1fr; }
  .project__art { order: -1; }
  .project__art img { width: min(60%, 280px); }
  .pillars { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  /* Menú desplegable solo cuando JavaScript está disponible */
  .js .nav-toggle { display: block; }
  .js .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(22, 18, 46, .97);
    border-top: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6);
    display: none;
  }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav__list { flex-direction: column; gap: .25rem; }
  .js .site-nav__list a { display: block; padding: .75rem 0; font-size: 1.1rem; }

  /* Sin JavaScript: navegación visible y compacta */
  .no-js .site-header { position: absolute; height: auto; padding: .75rem 0; }
  .no-js .site-header__inner { flex-wrap: wrap; }
  .no-js .site-nav { flex-wrap: wrap; gap: 1rem; }
  .no-js .site-nav__list { gap: 1rem; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__crop { --h: 44px; }
  .hero { align-items: flex-end; padding-bottom: 6.5rem; }
  .hero__fallback { justify-content: center; align-items: flex-start; padding: calc(var(--header-h) + 2rem) 0 0; }
  .hero__fallback img { width: min(55vw, 240px); opacity: .55; }
  .hero__overlay {
    background:
      linear-gradient(0deg, rgba(22, 18, 46, .92) 0%, rgba(22, 18, 46, .7) 50%, rgba(22, 18, 46, .35) 100%);
  }
  .hero__actions .btn { width: 100%; }
  .video-toggle { bottom: 1.25rem; }
  .site-footer__grid { grid-template-columns: 1fr; }
}
