/* FINANZAS EMPRESARIALES — ledger corporativo Asunción */
:root {
  --midnight: #061018;
  --ink: #0E1C28;
  --glacier: #F0F3F5;
  --glacier-deep: #E2E8EC;
  --teal: #0A8F8C;
  --teal-deep: #076E6C;
  --steel: #5B6B78;
  --line: #C9D2D8;
  --white: #fff;
  --max: 1120px;
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--glacier);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0 0 .4em;
  color: var(--ink);
  letter-spacing: -.02em;
}
p { margin: 0 0 1rem; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(240, 243, 245, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 0;
}
.logo img { width: min(220px, 58vw); height: auto; }
.nav-toggle {
  display: none; border: 1px solid var(--line); background: var(--white);
  font-family: var(--font-body); font-size: .9rem; padding: .45rem .8rem; cursor: pointer;
  color: var(--ink);
}
.nav-list {
  display: flex; flex-wrap: wrap; gap: .15rem 1.1rem; list-style: none;
  margin: 0; padding: 0; align-items: center;
}
.nav-list a {
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
}
.nav-list a:hover { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: var(--white) !important;
  padding: .45rem .9rem; text-decoration: none !important;
}
.nav-cta:hover { background: var(--teal-deep); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .75rem 1.25rem; font-family: var(--font-body); font-size: .95rem;
  font-weight: 600; text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-deep); color: var(--white); }
.btn-outline {
  background: transparent; border-color: currentColor; color: inherit;
}
.btn-outline:hover { background: rgba(10, 143, 140, .12); }
.hero .btn-outline { color: var(--white); border-color: rgba(255,255,255,.55); }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }

/* Hero — full-bleed composition */
.hero {
  position: relative; min-height: min(92vh, 820px);
  display: grid; align-items: end;
  color: var(--white); overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img,
.hero-media svg {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,16,24,.35) 0%, rgba(6,16,24,.78) 55%, rgba(6,16,24,.92) 100%);
}
.hero-content {
  position: relative; z-index: 1;
  padding: 5rem 0 3.5rem;
  animation: rise .9s ease-out both;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.6rem);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.03em;
  margin: 0 0 1rem;
  max-width: 14ch;
}
.hero-brand span {
  display: block;
  color: var(--teal);
  font-size: .55em;
  letter-spacing: .08em;
  font-weight: 700;
  margin-bottom: .35rem;
}
.hero h1 {
  color: rgba(255,255,255,.88);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.45;
  max-width: 34ch;
  margin: 0 0 1.6rem;
  letter-spacing: 0;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Sections */
.section { padding: 4rem 0; }
.section-head { max-width: 42rem; margin-bottom: 2rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.35rem); }
.section-head p { color: var(--steel); margin: 0; }
.band-ink {
  background: var(--ink);
  color: rgba(255,255,255,.88);
}
.band-ink h2, .band-ink h3 { color: var(--white); }
.band-ink p { color: rgba(255,255,255,.72); }
.band-deep { background: var(--glacier-deep); }

/* Services — asymmetric strip, not cards */
.services-ledger {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.service-row {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
  animation: rise .7s ease-out both;
}
.service-row:nth-child(2) { animation-delay: .08s; }
.service-row:nth-child(3) { animation-delay: .16s; }
.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal);
}
.service-row h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.service-row p { margin: 0; color: var(--steel); font-size: .95rem; }

/* Product grid / ledger */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem 1.25rem;
}
.product {
  display: flex; flex-direction: column; gap: .35rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1rem;
}
.product-media {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--glacier-deep);
  margin-bottom: .5rem;
}
.product-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.product:hover .product-media img { transform: scale(1.04); }
.product h3 { font-size: 1.05rem; }
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--teal-deep);
  margin: 0;
}
.desc { font-size: .9rem; color: var(--steel); margin: 0; }
.more-link {
  display: inline-block; margin-top: 1.75rem;
  font-weight: 600; text-decoration: none;
  color: var(--ink); border-bottom: 2px solid var(--teal);
}

/* About split */
.about-split {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 2.5rem;
  align-items: center;
}
.about-visual {
  min-height: 280px;
  border-left: 4px solid var(--teal);
  overflow: hidden;
  background: var(--ink);
}
.about-visual img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: .75rem; color: var(--steel); }
.contact-list strong { color: var(--ink); display: block; font-size: .85rem; }
.map-wrap {
  aspect-ratio: 16/11;
  overflow: hidden;
  border: 1px solid var(--line);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.form-grid { display: grid; gap: .85rem; }
.form-grid label { display: grid; gap: .3rem; font-size: .9rem; font-weight: 500; }
.form-grid input,
.form-grid textarea {
  font: inherit; padding: .7rem .8rem;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.form-grid input:focus,
.form-grid textarea:focus {
  outline: 2px solid var(--teal); outline-offset: 1px;
}
#formStatus { font-size: .9rem; color: var(--steel); min-height: 1.2em; }

/* Page hero (inner) */
.page-hero {
  padding: 2.5rem 0 1.5rem;
  background: var(--ink);
  color: var(--white);
}
.page-hero h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; max-width: 40rem; }

/* Catalog filters */
.cat-toolbar {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: 1.75rem;
}
.cat-toolbar button {
  font-family: var(--font-body); font-size: .85rem; font-weight: 500;
  padding: .4rem .75rem; border: 1px solid var(--line);
  background: var(--white); color: var(--ink); cursor: pointer;
}
.cat-toolbar button.is-active,
.cat-toolbar button:hover {
  background: var(--teal); color: var(--white); border-color: var(--teal);
}

/* Más información / FAQ */
.info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.info-item {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}
.info-item h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.info-item p {
  margin: 0 0 .65rem;
  color: var(--steel);
  font-size: .95rem;
  max-width: 48rem;
}
.info-item p:last-child { margin-bottom: 0; }
.info-links {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 600;
}
.info-links a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--teal);
}
.info-links a:hover { color: var(--teal); }

/* Términos — índice */
.legal-toc {
  background: var(--glacier-deep);
  padding: 1.25rem 1.35rem;
  margin: 1.5rem 0 2rem;
  border-left: 4px solid var(--teal);
}
.legal-toc p { margin: 0 0 .5rem; }
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  columns: 2;
  gap: 2rem;
  font-size: .9rem;
}
.legal-toc li { margin-bottom: .35rem; break-inside: avoid; }
.legal-toc a { text-decoration: none; color: var(--ink); }
.legal-toc a:hover { color: var(--teal); }
@media (max-width: 700px) {
  .legal-toc ol { columns: 1; }
}

/* Ads disclaimer + legal */
.ads-disclaimer {
  border-left: 4px solid var(--teal);
  padding: 16px 20px;
  margin: 32px 0;
  font-size: .86rem;
  background: var(--glacier-deep);
  color: var(--steel);
}
.ads-disclaimer a { color: var(--teal-deep); }
.legal-page { padding: 2.5rem 0 3.5rem; }
.legal-page h1 { font-size: clamp(1.5rem, 3vw, 2rem); }
.legal-page h2 { font-size: 1.15rem; margin-top: 1.75rem; }
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: .84rem; }
.legal-page th, .legal-page td {
  border: 1px solid var(--line); padding: 10px 12px; text-align: left;
}
.legal-page th { background: var(--glacier-deep); }

/* Footer */
.site-footer {
  background: var(--midnight);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0 1.5rem;
  font-size: .9rem;
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer a:hover { color: #7FD4D2; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.site-footer h2 {
  font-size: .8rem; letter-spacing: .08em; text-transform: uppercase;
  color: #7FD4D2; margin-bottom: .75rem;
}
.footer-legal {
  display: flex; flex-wrap: wrap; gap: .5rem 1rem;
  list-style: none; margin: 0; padding: 1.25rem 0 0;
  border-top: 1px solid rgba(255,255,255,.12);
}
.footer-copy { margin: 1rem 0 0; font-size: .82rem; opacity: .7; }

/* Cookie banner */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 100;
  background: var(--ink); color: rgba(255,255,255,.9);
  padding: 1rem; transform: translateY(110%);
  transition: transform .35s ease;
  box-shadow: 0 -8px 32px rgba(0,0,0,.25);
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-inner {
  width: min(100% - 1rem, var(--max));
  margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  justify-content: space-between;
}
.cookie-inner p { margin: 0; font-size: .88rem; max-width: 48rem; }
.cookie-inner a { color: #7FD4D2; }
.cookie-btns { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-btns .btn-outline { color: var(--white); border-color: rgba(255,255,255,.4); }
.cookie-btns .btn { padding: .55rem 1rem; font-size: .88rem; }

/* Motion: ledger line draw on scroll-ish via CSS */
.ledger-rule {
  height: 2px; width: 0; background: var(--teal);
  animation: draw 1.1s ease-out .3s forwards;
  margin-bottom: 1.25rem;
}
@keyframes draw { to { width: min(120px, 30vw); } }

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--glacier); border-bottom: 1px solid var(--line);
    padding: 1rem;
  }
  .nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: flex-start; gap: .75rem; }
  .about-split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: min(88vh, 700px); }
}
