/* ==========================================================================
   LYR Soluciones y Desarrollo — Hoja de estilos principal
   ========================================================================== */

:root {
  --navy-900: #0a1f3d;
  --navy-800: #102a52;
  --navy-700: #183a6e;
  --blue-600: #2a5bd7;
  --blue-500: #3366ff;
  --blue-100: #e6edff;
  --blue-50:  #f3f6ff;
  --teal-500: #19b6a5;
  --ink-900:  #14213d;
  --ink-700:  #3b4a63;
  --ink-500:  #64748b;
  --line:     #e2e8f0;
  --surface:  #ffffff;
  --bg:       #f7f9fc;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(16, 42, 82, .06), 0 1px 3px rgba(16, 42, 82, .08);
  --shadow:    0 10px 30px -12px rgba(16, 42, 82, .25);
  --shadow-lg: 0 24px 60px -20px rgba(16, 42, 82, .35);

  --container: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", var(--font);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-700);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-600); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-800); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -.02em;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--navy-900);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

/* --------------------------------------------------------------------------
   Barra superior
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #c7d3ea;
  font-size: 13px;
}
.topbar .container {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar a { color: #c7d3ea; display: inline-flex; align-items: center; gap: 6px; }
.topbar a:hover { color: #fff; }
.topbar svg { width: 14px; height: 14px; }

/* --------------------------------------------------------------------------
   Encabezado y navegación
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand { display: flex; align-items: center; flex-shrink: 0; }

.nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.nav a {
  display: block;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--ink-700);
  transition: background .2s, color .2s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue-600); }
.nav a[aria-current="page"] { background: var(--blue-500); color: #fff; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  position: relative;
  transition: transform .25s, background .25s;
}
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   Espacios reservados para imágenes (placeholders)
   Reemplace cada <div class="img-slot"> por un <img> cuando tenga la imagen.
   -------------------------------------------------------------------------- */
.img-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 20px;
  text-align: center;
  color: var(--ink-500);
  background:
    repeating-linear-gradient(135deg, rgba(51, 102, 255, .045) 0 12px, transparent 12px 24px),
    var(--blue-50);
  border: 2px dashed #b9c8ef;
  border-radius: var(--radius);
  overflow: hidden;
}
.img-slot::before {
  content: "";
  width: 40px;
  height: 40px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d93c9' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.6'/%3E%3Cpath d='m21 15-5-5L5 21'/%3E%3C/svg%3E");
}
.img-slot__id {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: var(--blue-500);
  padding: 3px 10px;
  border-radius: 999px;
}
.img-slot__name { font-weight: 700; color: var(--ink-900); font-size: 15px; line-height: 1.3; }
.img-slot__meta { font-size: 12px; line-height: 1.4; }

.img-slot--logo   { aspect-ratio: auto; height: 52px; width: 190px; padding: 6px 10px; flex-direction: row; gap: 8px; border-radius: var(--radius-sm); }
.img-slot--logo::before { width: 22px; height: 22px; }
.img-slot--logo .img-slot__name { font-size: 12px; }
.img-slot--logo .img-slot__meta { display: none; }
.img-slot--wide   { aspect-ratio: 16 / 7; }
.img-slot--photo  { aspect-ratio: 3 / 2; }
.img-slot--card   { aspect-ratio: 4 / 3; }
.img-slot--square { aspect-ratio: 5 / 4; }
.img-slot--banner { aspect-ratio: 2 / 1; }

/* --------------------------------------------------------------------------
   Hero (inicio) y encabezados de página
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(51, 102, 255, .35), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(25, 182, 165, .22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #dbe5f7;
  padding: 88px 0 96px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: .35em;
}
.hero__lead { font-size: 1.15rem; max-width: 34ch; color: #c7d3ea; }
.hero .img-slot { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .28); color: #b4c3e0; }
.hero .img-slot__name { color: #fff; }
.hero .img-slot::before { filter: brightness(1.6); }
.hero__partner { margin-top: 28px; max-width: 240px; }
.hero__partner .img-slot { aspect-ratio: 2 / 1; padding: 12px; }
.hero__partner .img-slot::before { width: 28px; height: 28px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal-500);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; border-radius: 2px; }

.page-header {
  background:
    radial-gradient(800px 300px at 90% 0%, rgba(51, 102, 255, .35), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  padding: 64px 0 56px;
  color: #c7d3ea;
}
.page-header h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); margin: 0; }
.breadcrumb { font-size: 14px; margin-bottom: 10px; }
.breadcrumb a { color: #9fb3d9; }
.breadcrumb a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Secciones
   -------------------------------------------------------------------------- */
.section { padding: 80px 0; }
.section--alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--tight { padding: 56px 0; }

.section-head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split--reverse > :first-child { order: 2; }

.lead-text { font-size: 1.125rem; color: var(--ink-700); }

/* Tarjetas */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cdd8f3; }

.service {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px;
}
.service h3 { font-size: 1.05rem; margin: 0; }
.service__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
}
.service__icon svg { width: 24px; height: 24px; }

/* Bloque de texto destacado */
.callout {
  position: relative;
  background: linear-gradient(135deg, var(--blue-600), var(--navy-700));
  color: #e6edff;
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.callout::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}
.callout p { font-size: 1.2rem; line-height: 1.55; margin: 0; position: relative; z-index: 1; }
.callout strong { color: #fff; }

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--blue-50);
  border: 1px solid #d3defb;
  border-left: 4px solid var(--blue-500);
  border-radius: var(--radius);
  padding: 20px 24px;
  color: var(--ink-900);
}
.note p { margin: 0; }
.note svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--blue-600); margin-top: 2px; }

.badge-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--navy-800);
  background: #e7f8f5;
  border: 1px solid #bfeae4;
  padding: 10px 18px;
  border-radius: 999px;
}
.badge-line svg { width: 18px; height: 18px; color: var(--teal-500); }

/* --------------------------------------------------------------------------
   Contacto
   -------------------------------------------------------------------------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.contact-item__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--blue-100);
  color: var(--blue-600);
}
.contact-item__icon svg { width: 22px; height: 22px; }
.contact-item__label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-500);
  margin-bottom: 2px;
}
.contact-item p { margin: 0; color: var(--ink-900); }
.contact-item a { font-weight: 600; word-break: break-word; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  background: var(--blue-500);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(51, 102, 255, .7);
  transition: transform .2s, background .2s;
}
.btn:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Pie de página
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: #9fb3d9;
  font-size: 14px;
  padding: 48px 0 0;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-grid p { margin: 0 0 6px; }
.footer-grid a { color: #dbe5f7; }
.footer-grid a:hover { color: #fff; }
.footer-title { color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 16px; margin-bottom: 10px; }
.footer-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 20px 0 24px;
  font-size: 13px;
}
.footer-bottom a { color: #7f93bb; font-size: 12px; }
.footer-bottom a:hover { color: #fff; }

/* --------------------------------------------------------------------------
   Animación de entrada
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* --------------------------------------------------------------------------
   Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
  }
  .nav-open .nav { display: block; }
  .nav ul { flex-direction: column; padding: 12px 16px 16px; gap: 2px; }
  .nav a { border-radius: var(--radius-sm); padding: 12px 14px; }

  .hero { padding: 56px 0 64px; }
  .hero .container,
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .callout { padding: 28px 24px; }
  .callout p { font-size: 1.05rem; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; gap: 6px 18px; }
  .img-slot--logo { width: 150px; }
}

/* Evita desbordes horizontales en columnas de grid */
.split > *,
.grid-3 > *,
.grid-4 > *,
.hero .container > * { min-width: 0; }
.img-slot__id { white-space: nowrap; }
.img-slot__meta { overflow-wrap: anywhere; }
