/* Prototipo local de wireframes — landcoreos.com (no es código de producción) */
:root {
  --ink: #1d2733;
  --ink-2: #5b6673;
  --ink-3: #8a94a0;
  --navy: #2e455c;
  --teal: #21d0b2;
  --teal-ink: #0f8f7a;
  --bg: #ffffff;
  --bg-soft: #f5f6f8;
  --line: #e4e7eb;
  --tile: #ffffff;
  --radius-lg: 28px;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(20, 30, 45, .04), 0 8px 24px rgba(20, 30, 45, .06);
  --shadow-hover: 0 2px 4px rgba(20, 30, 45, .05), 0 16px 40px rgba(20, 30, 45, .10);
  --max: 1200px;
  --gutter: 24px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo img { height: 24px; width: auto; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; font-size: 14px; }
.login { color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.login:hover { color: var(--ink); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; margin-right: -8px; cursor: pointer; color: var(--ink); }

/* Menú desplegable de servicios (escritorio) */
.dd { position: relative; }
.dd-trigger span { font-size: 10px; margin-left: 2px; }
.dd-panel {
  position: absolute; left: -20px; top: calc(100% + 18px); width: 380px; padding: 10px;
  background: #fff; border-radius: 18px; box-shadow: 0 20px 50px rgba(20,30,45,.14), 0 0 0 1px rgba(0,0,0,.04);
  display: grid; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 20px; }
.dd:hover .dd-panel, .dd:focus-within .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-panel a { display: grid; gap: 2px; padding: 10px 12px; border-radius: 12px; }
.dd-panel a:hover { background: var(--bg-soft); }
.dd-panel strong { color: var(--ink); font-weight: 600; font-size: 14px; }
.dd-panel span { color: var(--ink-2); font-size: 13px; }

.dd-panel .dd-more { border-top: 1px solid var(--line); border-radius: 0 0 12px 12px; margin-top: 4px; }

/* Versión D: botones y avisos de dato pendiente */
.btn-off { color: var(--ink-3); box-shadow: inset 0 0 0 1px #dfe3e8; cursor: not-allowed; background: #fafbfc; }
.flag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; font-weight: 500; color: #8a5a00; background: #fff6e0; border-radius: 8px; padding: 4px 9px; }
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #f0b429; flex: none; }
body.hide-status .flag { display: none; }

/* Menú móvil */
.m-menu { border-top: 1px solid var(--line); background: #fff; padding: 8px var(--gutter) 24px; max-height: calc(100vh - 52px); overflow-y: auto; }
.m-menu[hidden] { display: none; }
.m-menu a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--ink); }
.m-menu .m-svc { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.m-menu .m-svc span { color: var(--ink-3); font-weight: 400; }
.m-label { margin: 18px 0 2px; font-size: 12px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: .05em; }
.m-menu .btn { margin-top: 20px; width: 100%; border: 0; justify-content: center; color: #fff; }
body.menu-open { overflow: hidden; }
@media (min-width: 861px) { .m-menu { display: none !important; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 22px; border-radius: 999px;
  font-size: 15px; font-weight: 500; transition: background .2s, color .2s, box-shadow .2s;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #253a4f; }
.btn-ghost { color: var(--navy); box-shadow: inset 0 0 0 1px #cfd6de; }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--navy); }
.btn-sm { height: 34px; padding: 0 16px; font-size: 13px; }
.link-arrow { color: var(--teal-ink); font-weight: 500; font-size: 15px; display: inline-flex; gap: 4px; }
.link-arrow::after { content: "›"; font-size: 18px; line-height: 1; transform: translateY(-1px); transition: transform .2s; }
.link-arrow:hover::after { transform: translate(3px, -1px); }

/* ---------- Tipografía ---------- */
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--teal-ink); margin: 0 0 10px; }
h1, h2, h3 { letter-spacing: -0.022em; margin: 0; }
.h1 { font-size: clamp(36px, 5.2vw, 64px); line-height: 1.04; font-weight: 600; }
.h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.1; font-weight: 600; }
.h3 { font-size: 22px; line-height: 1.2; font-weight: 600; }
.lead { font-size: clamp(17px, 1.6vw, 21px); color: var(--ink-2); margin: 14px 0 0; max-width: 40em; }
.muted { color: var(--ink-2); }

/* ---------- Medios: real autorizado vs. pendiente ---------- */
.media { position: relative; overflow: hidden; margin: 0; background: #eef0f3; }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 24px; text-align: center; color: var(--ink-3); font-size: 13px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.55) 25%, transparent 25%, transparent 50%, rgba(255,255,255,.55) 50%, rgba(255,255,255,.55) 75%, transparent 75%) 0 0 / 18px 18px,
    #eceff2;
}
.ph strong { color: var(--ink-2); font-weight: 600; font-size: 14px; }
.ph svg { width: 34px; height: 34px; opacity: .55; margin-bottom: 4px; }
.status {
  position: absolute; left: 14px; top: 14px; z-index: 2;
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 3px rgba(0,0,0,.08);
  display: inline-flex; align-items: center; gap: 6px;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.status.real { color: #0d6e5e; }
.status.real::before { background: var(--teal); }
.status.pend { color: #8a5a00; }
.status.pend::before { background: #f0b429; }
body.hide-status .status { display: none; }

/* ---------- Pie de página ---------- */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 32px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.footer-cols h4 { margin: 0 0 12px; font-size: 13px; color: var(--ink); font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-cols a:hover { color: var(--ink); text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- Animación discreta ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .media img, .card, .tile { transition: none !important; }
}

/* ---------- Móvil ---------- */
@media (max-width: 860px) {
  :root { --gutter: 16px; }
  .nav, .header-actions .login, .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .header-actions { gap: 4px; }
  .site-header .wrap { height: 52px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
}

/* El atributo hidden siempre oculta, aunque la clase defina display (p. ej. .form en modo inactivo). */
[hidden] { display: none !important; }
