/* LYNCARED — layout tipo referencia clara (Mileto-like), colores marca navy + cian */
:root {
  --navy-950: #061320;
  --navy-900: #0a1f38;
  --navy-800: #112a50;
  --cyan-400: #00bfff;
  --cyan-500: #0099cc;
  --surface: #e8eef6;
  --surface-muted: #c4d0de;
  --surface-band: #b8c5d5;
  --surface-card: #f4f7fb;
  --surface-header: #eef2f8;
  --text: #112a50;
  --text-muted: #5c6b80;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 14px rgba(17, 42, 80, 0.08);
  --shadow-md: 0 12px 40px rgba(17, 42, 80, 0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 64px;
  --max: 1140px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --focus: 2px solid var(--cyan-400);
  --focus-offset: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.theme-lyncared {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface-muted);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--cyan-500);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-800);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus);
  outline-offset: var(--focus-offset);
}

.visually-hidden {
  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 {
  position: absolute;
  left: var(--space-3);
  top: -100px;
  padding: var(--space-2) var(--space-3);
  background: var(--navy-800);
  color: #fff;
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
}

.skip-link:focus {
  top: var(--space-3);
}

.container {
  width: min(100% - var(--space-4) * 2, var(--max));
  margin-inline: auto;
}

.container--narrow {
  max-width: 800px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-header);
  box-shadow: var(--shadow-sm);
}

.top-bar {
  background: var(--navy-900);
  color: #fff;
  font-size: 0.875rem;
}

.top-bar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding-block: var(--space-2);
}

.top-bar__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.top-bar__link:hover {
  color: var(--cyan-400);
}

.top-bar__meta {
  color: rgba(255, 255, 255, 0.75);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.brand__logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: min(280px, 78vw);
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 768px) {
  .brand__logo {
    height: 64px;
    max-width: min(300px, 40vw);
  }
}

.brand__fallback {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand__name {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  color: var(--navy-800);
}

.brand__tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-header);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 22px;
  margin-inline: auto;
  background: var(--navy-800);
  border-radius: 2px;
}

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  top: 118px;
  padding: var(--space-3);
  transform: translateY(-8px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.nav__list {
  list-style: none;
  margin: 0;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  background: var(--surface-header);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.nav__list a {
  display: block;
  padding: var(--space-2) var(--space-3);
  color: var(--navy-800);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-sm);
}

.nav__list a:hover {
  background: var(--surface-muted);
  color: var(--cyan-500);
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav {
    position: static;
    padding: 0;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav__list {
    flex-direction: row;
    align-items: center;
    gap: var(--space-1);
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .nav__list a {
    padding: var(--space-2) var(--space-2);
    font-size: 0.8rem;
  }
}

/* Sections */
.section {
  padding-block: var(--space-6);
}

.section--band {
  padding-block: var(--space-7);
}

.section--hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: min(82vh, 720px);
  padding-block: clamp(3.5rem, 10vh, 5.5rem);
  background-color: #1a2838;
  border-bottom: 0;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: var(--space-5);
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
  }
}

.hero__content {
  min-width: 0;
}

.hero__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  pointer-events: none;
}

.section--muted {
  background: var(--surface-band);
}

.section--white {
  background: var(--surface);
}

.section--cta {
  background: linear-gradient(145deg, var(--navy-900) 0%, var(--navy-800) 50%, #0d2847 100%);
  color: #fff;
  padding-block: var(--space-7);
}

.section-kicker {
  margin: 0 0 var(--space-2);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-500);
}

.section-kicker--center {
  text-align: center;
}

.section-kicker--on-dark {
  color: var(--cyan-400);
}

.section__lead {
  margin: 0 0 var(--space-5);
  text-align: left;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section__lead--center {
  text-align: center;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.section__head {
  margin-bottom: var(--space-5);
}

.section__head--left {
  text-align: left;
  max-width: 40rem;
}

.section__head--left .section__intro {
  text-align: left;
}

.section__title-block {
  margin: 0 0 var(--space-2);
  font-size: clamp(1.85rem, 4.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-800);
  line-height: 1.12;
}

.section__title-block--on-dark {
  color: #fff;
}

.section__intro {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.08rem;
  line-height: 1.55;
}

.section__intro--on-dark {
  color: rgba(255, 255, 255, 0.82);
}

/* Hero: foto visible (tipo referencia clara); velo suave para contraste del texto a la izquierda */
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
      100deg,
      rgba(6, 19, 32, 0.82) 0%,
      rgba(6, 19, 32, 0.5) 38%,
      rgba(6, 19, 32, 0.22) 62%,
      rgba(6, 19, 32, 0.35) 100%
    ),
    linear-gradient(180deg, rgba(6, 19, 32, 0.2) 0%, transparent 35%, rgba(6, 19, 32, 0.45) 100%);
  pointer-events: none;
}

.hero__visual {
  position: relative;
  padding: var(--space-5);
  min-height: 200px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(6, 19, 32, 0.35);
}

.hero__glow {
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(0, 191, 255, 0.28), transparent 55%);
  pointer-events: none;
}

.hero__card-title {
  position: relative;
  margin: 0;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero__card-sub {
  position: relative;
  margin: var(--space-2) 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-400);
}

.hero__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2.25rem, 6vw, 3.35rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #fff;
  text-transform: none;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45), 0 4px 28px rgba(0, 0, 0, 0.4);
}

.hero__lead {
  margin: 0 0 var(--space-4);
  color: rgba(255, 255, 255, 0.95);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  line-height: 1.62;
  max-width: 36rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5), 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* Por qué confiar — jerarquía clara */
.pillars__header {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
  margin-bottom: var(--space-6);
}

.pillars__eyebrow {
  margin: 0 0 var(--space-2);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan-500);
}

.pillars__title {
  margin: 0 0 var(--space-3);
  font-size: clamp(2rem, 4.8vw, 2.85rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--navy-800);
}

.pillars__lead {
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.3rem);
  line-height: 1.55;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cards */
.card-raised {
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

/* Bento */
.bento {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .bento {
    grid-template-columns: repeat(3, 1fr);
  }
}

.bento__card {
  padding: var(--space-4) var(--space-4) var(--space-5);
}

.bento__title {
  margin: 0 0 var(--space-2);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.25;
}

.bento__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* Features */
.grid-3 {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature {
  padding: var(--space-4);
}

.feature__title {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy-800);
}

.feature__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.55;
}

/* Services */
.services {
  display: grid;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .services {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--navy-800);
}

.service p {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 1.04rem;
  line-height: 1.55;
  flex-grow: 1;
}

.service__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 700;
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--cyan-500);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.service__cta::after {
  content: "›";
  font-size: 1.2em;
  line-height: 1;
}

.service__cta:hover {
  color: var(--navy-800);
}

/* About */
.about {
  padding: var(--space-5);
}

.about__text {
  margin: 0;
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Contact */
.contact-card {
  max-width: 520px;
  margin-inline: 0;
  padding: var(--space-5);
  text-align: left;
}

.contact-card--prominent {
  margin-inline: auto;
  text-align: center;
  border: 2px solid rgba(0, 191, 255, 0.35);
  box-shadow: var(--shadow-md);
}

.contact-card__label {
  margin: 0 0 var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.section--cta .contact-card__label {
  color: var(--text-muted);
}

.contact-card__phone {
  display: inline-block;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--navy-800);
  text-decoration: none;
}

.contact-card__phone:hover {
  color: var(--cyan-500);
}

.contact-card__hint {
  margin: var(--space-3) 0 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px var(--space-4);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn--primary {
  background: linear-gradient(135deg, var(--cyan-400), var(--cyan-500));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(0, 153, 204, 0.35);
}

.btn--primary:hover {
  filter: brightness(1.05);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-800);
}

.btn--outline:hover {
  background: var(--navy-800);
  color: #fff;
}

.btn--outline-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.9);
}

.btn--outline-light:hover {
  background: #fff;
  color: var(--navy-800);
  border-color: #fff;
}

.btn--secondary {
  background: var(--surface-card);
  color: var(--navy-800);
  border-color: var(--border);
}

.btn--secondary:hover {
  border-color: var(--navy-800);
  color: var(--navy-800);
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn--ghost:hover {
  color: var(--navy-800);
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-block: var(--space-6);
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
}

.footer__grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__brand {
  margin: 0 0 var(--space-2);
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
}

.footer__tag {
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.footer__title {
  margin: 0 0 var(--space-2);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__links a,
.footer__links button.linklike {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.footer__links a:hover,
.footer__links button.linklike:hover {
  color: var(--cyan-400);
}

.footer__legal {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer__copy {
  margin: var(--space-4) auto 0;
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer__copy a {
  color: var(--cyan-400);
}

button.linklike {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--cyan-500);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-align: left;
}

.site-footer button.linklike {
  color: rgba(255, 255, 255, 0.9);
}

/* Cookie banner — sin pointer-events:none en el contenedor (evita clics perdidos) */
.cookie-banner {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: end center;
  padding: var(--space-3);
  background: rgba(17, 42, 80, 0.48);
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  position: relative;
  z-index: 1;
  width: min(100%, 540px);
  padding: var(--space-4);
  margin-bottom: var(--space-3);
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.cookie-banner__title {
  margin: 0 0 var(--space-2);
  font-size: 1.15rem;
  color: var(--navy-800);
}

.cookie-banner__text {
  margin: 0 0 var(--space-3);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cookie-banner__text a {
  font-weight: 600;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

.cookie-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: var(--space-3);
}

.cookie-modal[hidden] {
  display: none !important;
}

.cookie-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 42, 80, 0.55);
  cursor: pointer;
}

.cookie-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 480px);
  padding: var(--space-4);
  max-height: 90vh;
  overflow: auto;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  pointer-events: auto;
}

.cookie-modal__title {
  margin: 0 0 var(--space-3);
  font-size: 1.2rem;
  color: var(--navy-800);
}

.cookie-modal__list {
  list-style: none;
  margin: 0 0 var(--space-4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.cookie-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.cookie-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cookie-row strong {
  color: var(--navy-800);
}

.cookie-row__hint {
  margin: var(--space-1) 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cookie-row__badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cyan-500);
  white-space: nowrap;
}

.switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  cursor: pointer;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__ui {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: var(--surface-muted);
  border: 1px solid var(--border);
  transition: background 0.2s ease;
}

.switch__ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: transform 0.2s ease, background 0.2s ease;
}

.switch input:checked + .switch__ui {
  background: rgba(0, 191, 255, 0.2);
  border-color: var(--cyan-400);
}

.switch input:checked + .switch__ui::after {
  transform: translateX(20px);
  background: var(--cyan-400);
}

.switch input:focus-visible + .switch__ui {
  outline: var(--focus);
  outline-offset: 2px;
}

.cookie-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: flex-end;
}

/* Legal page */
.prose {
  color: var(--text);
  padding-bottom: var(--space-6);
}

.prose h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-top: 0;
  color: var(--navy-800);
}

.prose h2 {
  font-size: 1.15rem;
  margin-top: var(--space-5);
  color: var(--navy-800);
}

.prose p,
.prose li {
  color: var(--text-muted);
}

.prose a {
  color: var(--cyan-500);
  font-weight: 600;
}

.prose code {
  font-size: 0.9em;
  background: var(--surface-muted);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.back-link {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--cyan-500);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover {
  text-decoration: underline;
  color: var(--navy-800);
}
