/* Portada institucional de Farosoft (views/company.php). Misma paleta que FaroServer. */
:root {
  --bg: #f6f8fc; --bg2: #ffffff; --fg: #0d1526; --muted: #5b6577; --line: #e3e8f0; --card: #ffffff;
  --accent: #1f6ff9; --gold: #f2b93b; --alt: #eef2f9;
  --shadow: 0 18px 50px rgba(13, 21, 38, .10); --shadow-lg: 0 30px 80px rgba(13, 21, 38, .18);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #0a111e; --bg2: #101a2e; --fg: #e8edf6; --muted: #98a4ba; --line: #1f2b44; --card: #121d33;
  --accent: #4f8dff; --alt: #0d1627;
  --shadow: 0 18px 50px rgba(0, 0, 0, .40); --shadow-lg: 0 30px 80px rgba(0, 0, 0, .55);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); color: var(--fg); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .45em; letter-spacing: -.02em; }
h2 { font-size: clamp(28px, 4.2vw, 44px); text-align: center; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.eyebrow.center { text-align: center; }
.sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 48px; font-size: 18px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 11px; font: inherit; font-weight: 600; line-height: 1.2; cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .12s, background .12s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { background: var(--bg2); color: var(--fg); border-color: var(--line); }
.btn-ghost:hover { border-color: color-mix(in srgb, var(--fg) 25%, var(--line)); }
.btn-lg { padding: 14px 24px; font-size: 16.5px; border-radius: 13px; }

/* Cabecera */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.links { display: flex; gap: 24px; color: var(--muted); font-weight: 500; font-size: 15px; }
.links a:hover { color: var(--fg); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg2); color: var(--fg); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.lang-menu { position: relative; margin: 0; }
.lang-menu summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: .9rem; background: var(--bg2); border: 1px solid var(--line); }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu .flag { width: 20px; height: 14px; flex-shrink: 0; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.18); border-radius: 2.5px; }
.lang-menu ul { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); margin: 0; padding: 6px; list-style: none; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; animation: pop .18s ease; }
.lang-menu li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; font-weight: 500; font-size: .95rem; }
.lang-menu li a:hover { background: color-mix(in srgb, var(--fg) 6%, transparent); }
.lang-menu li a.on { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }

/* Portada */
.hero { position: relative; padding: 96px 0 40px; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(900px 480px at 50% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); }
@keyframes sweep { to { transform: rotate(360deg); } }
.hero-inner { text-align: center; max-width: 880px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 68px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--gold), #ff9d3b 55%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 700px; margin: 0 auto 32px; }
.cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.stack { position: relative; height: clamp(260px, 44vw, 520px); margin: 64px auto 24px; max-width: 1000px; }
.stack-shot { position: absolute; width: 72%; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: var(--card); transition: transform .35s ease; }
.stack-shot > img { display: block; width: 100%; height: auto; }
.stack-shot.s0 { left: 0; top: 0; transform: rotate(-2.5deg); }
.stack-shot.s1 { right: 0; top: 18%; transform: rotate(2deg); z-index: 1; }
.stack-shot:hover { transform: rotate(0) translateY(-6px); z-index: 2; }
.stack-label { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 7px; border-radius: 99px; font-weight: 700; font-size: 14px; background: color-mix(in srgb, var(--card) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line); }
.stack-label img { width: 22px; height: 22px; border-radius: 6px; }


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

/* Productos */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product { --p: var(--accent); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--p) 45%, var(--line)); }
.product-shot { display: block; padding: 28px 28px 0; background: linear-gradient(160deg, color-mix(in srgb, var(--p) 22%, transparent), color-mix(in srgb, var(--p) 4%, transparent)); border-bottom: 1px solid var(--line); }
.product-shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9.6; object-fit: cover; object-position: top left; border-radius: 10px 10px 0 0; box-shadow: 0 -4px 30px rgba(0,0,0,.18); }
.product-body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.product header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product-icon { border-radius: 13px; flex-shrink: 0; }
.product h3 { font-size: 24px; margin: 0; }
.product .tag { margin: 2px 0 0; color: var(--muted); font-size: 14px; font-weight: 500; }
.product .desc { color: var(--muted); font-size: 16px; }
.points { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 8px; }
.points li { position: relative; padding-left: 26px; font-size: 15px; }
.points li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: color-mix(in srgb, var(--p) 18%, transparent);
  box-shadow: inset 0 0 0 5px color-mix(in srgb, var(--p) 18%, transparent); }
.points li::after { content: ""; position: absolute; left: 5px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--p); }
.product footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }
.price { font-weight: 600; font-size: 14.5px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-product { background: var(--p); color: #fff; box-shadow: 0 8px 20px color-mix(in srgb, var(--p) 32%, transparent); }
.soon { grid-column: 1 / -1; display: flex; align-items: center; gap: 18px; padding: 24px 28px; border-radius: 18px; border: 1.5px dashed var(--line); color: var(--muted); }
.soon h3 { color: var(--fg); font-size: 18px; margin: 0 0 2px; }
.soon p { margin: 0; }
.soon-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--gold); flex-shrink: 0; box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); animation: blink 2.4s ease-out infinite; }
@keyframes blink { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--gold) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 14px transparent; } }

/* Principios */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.principles article { padding: 26px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.principles .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 18px; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.principles .ic svg { width: 23px; height: 23px; }
.principles h3 { font-size: 18px; }
.principles p { color: var(--muted); font-size: 15px; margin: 0; }

/* Nosotros */
.about { display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.about h2 { text-align: left; }
.about-text p:not(.eyebrow) { color: var(--muted); font-size: 17.5px; }
.about-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 26px; padding: 56px 32px 40px; text-align: center; color: #e8edf6;
  background: radial-gradient(120% 90% at 50% 0%, #17326e, #0a1328 70%); box-shadow: var(--shadow-lg); }
.about-beam { position: absolute; z-index: -1; left: 50%; top: 88px; width: 900px; height: 900px; margin: -450px 0 0 -450px;
  background: conic-gradient(from 60deg, transparent 0deg, rgba(255, 217, 102, .28) 14deg, transparent 34deg, transparent 180deg, rgba(255, 217, 102, .18) 194deg, transparent 214deg);
  animation: sweep 12s linear infinite; }
.about-card img { filter: drop-shadow(0 12px 30px rgba(0,0,0,.45)); }
.coords { margin: 26px 0 4px; font-variant-numeric: tabular-nums; letter-spacing: .08em; font-size: 14px; color: #ffd966; font-weight: 600; }
.city { margin: 0; font-size: 20px; font-weight: 700; }

/* Contacto */
.contact { text-align: center; padding: 64px 32px; border-radius: 26px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  background-image: radial-gradient(600px 240px at 50% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%); }
.contact .sub { margin-bottom: 30px; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 56px 0 28px; background: var(--alt); }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand p { color: var(--muted); margin: 10px 0 0; max-width: 300px; font-size: 14.5px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.footer-cols a { display: block; font-size: 14.5px; margin-bottom: 8px; }
.footer-cols a:hover, .footer-langs a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.footer-langs a.on { color: var(--fg); font-weight: 600; }

/* Banner de cookies (consent.js) */
.cookie-banner[hidden] { display: none; }
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 70; margin: 0 auto; max-width: 720px; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .25s ease; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.45; }
.cookie-banner a { color: var(--accent); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cookie-actions .btn.small { padding: 7px 13px; font-size: 13px; }

/* Aparición al hacer scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-stagger.in > * { opacity: 1; transform: none; }
.stack.reveal.in .s0 { transform: rotate(-2.5deg); }
@media (prefers-reduced-motion: reduce) {
  .about-beam, .soon-dot { animation: none; }
  .reveal, .reveal-stagger > * { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 980px) {
  .principles { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .products { grid-template-columns: 1fr; }
  .lang-menu summary .code { display: none; }
  .lang-menu ul { position: fixed; left: 16px; right: 16px; top: 64px; min-width: 0; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-top: 64px; }
  .section { padding: 72px 0; }
  .stack { height: 62vw; margin-top: 44px; }
  .stack-shot { width: 82%; }
  .stack-label { font-size: 12px; left: 8px; bottom: 8px; }
  .principles { grid-template-columns: 1fr; }
  .product-shot { padding: 18px 18px 0; }
  .product-body { padding: 22px 20px; }
  .product footer { flex-direction: column; align-items: stretch; }
  .actions .btn { flex: 1; }
  .soon { padding: 20px; }
  .contact { padding: 44px 20px; }
  .footer-cols { gap: 36px; }
  .cookie-banner { flex-direction: column; align-items: stretch; left: 10px; right: 10px; bottom: 10px; }
  .cookie-actions { justify-content: flex-end; }
}
