/* facturadesign.com — global design system */
:root {
  --ink: #1B3A4B;
  --teal: #2E6171;
  --sky: #4DA8DA;
  --mint: #A8DADC;
  --cream: #F1FAEE;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(27, 58, 75, 0.12);
  --shadow-hover: 0 18px 50px rgba(27, 58, 75, 0.18);
  --radius-card: 12px;
  --radius-pill: 50px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--sky);
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

.site-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(241, 250, 238, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(46, 97, 113, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.logo:hover { color: var(--teal); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--white);
  border-radius: var(--radius-card);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }

.nav-main {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.25rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-main a {
  font-size: 0.875rem;
  color: var(--ink);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav-main a:hover,
.nav-main a[aria-current="page"] {
  border-bottom-color: var(--sky);
  color: var(--teal);
}

.header-cta {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-main {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 0;
    border-top: 1px solid rgba(46, 97, 113, 0.15);
  }
  .site-header.is-open .nav-main { display: flex; }
  .header-inner { flex-wrap: wrap; }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--sky));
  box-shadow: 0 4px 20px rgba(77, 168, 218, 0.35);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--white);
}

.btn--ghost {
  background: var(--white);
  color: var(--teal);
  border: 2px solid var(--mint);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--sky);
  color: var(--ink);
}

.btn--small {
  padding: 0.5rem 1.2rem;
  font-size: 0.8rem;
}

/* ——— Cards ——— */
.card {
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__img-wrap {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card__img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(27, 58, 75, 0.45));
  pointer-events: none;
}

.card__body {
  padding: 1.25rem 1.35rem 1.4rem;
}

.tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.lang-note {
  font-size: 0.85rem;
  color: var(--teal);
  font-weight: 500;
}

/* ——— Sections ——— */
.section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section--alt {
  background: var(--white);
}

.section__head {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0 0 0.75rem;
}

/* ——— Breadcrumb ——— */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--teal);
  margin-bottom: 1rem;
}

.breadcrumb a { color: var(--teal); }
.breadcrumb span { color: var(--ink); opacity: 0.7; }

/* ——— Hero variants ——— */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  min-height: min(85vh, 720px);
}

.hero-split__visual {
  position: relative;
}

.hero-split__visual img {
  width: 100%;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  min-height: 320px;
  object-fit: cover;
}

.hero-split__pattern {
  position: absolute;
  inset: -12% -8% auto auto;
  width: 55%;
  height: 45%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='40' fill='none' stroke='%234DA8DA' stroke-width='0.5' opacity='0.35'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='%232E6171' stroke-width='0.5' opacity='0.3'/%3E%3C/svg%3E") center/contain no-repeat;
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 900px) {
  .hero-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.hero-full {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  overflow: hidden;
}

.hero-full__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-full__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.hero-full__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(241, 250, 238, 0.95), rgba(168, 218, 220, 0.85));
  z-index: 1;
}

.hero-full__inner {
  position: relative;
  z-index: 2;
  max-width: 40rem;
}

.hero-banner {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: linear-gradient(120deg, var(--ink) 0%, var(--teal) 50%, var(--sky) 100%);
  color: var(--cream);
}

.hero-banner h1,
.hero-banner .breadcrumb a,
.hero-banner .breadcrumb span {
  color: var(--cream);
}

.hero-banner .breadcrumb span { opacity: 0.85; }

.hero-minimal {
  padding: clamp(2rem, 4vw, 3rem) 0 1rem;
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}

.hero-minimal h1 {
  margin-bottom: 0.5rem;
}

.animate-headline {
  background: linear-gradient(90deg, var(--ink), var(--teal), var(--sky));
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* ——— Stats ——— */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.stat-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  text-align: center;
}

.stat-card__num {
  font-family: var(--font-head);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}

.stat-card__label {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  color: var(--ink);
  opacity: 0.85;
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 400px) {
  .stats-row { grid-template-columns: 1fr; }
}

/* ——— FAQ ——— */
.faq-item {
  border-bottom: 1px solid rgba(46, 97, 113, 0.15);
}

.faq-trigger {
  width: 100%;
  text-align: left;
  padding: 1rem 0;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-trigger::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--sky);
  flex-shrink: 0;
}

.faq-item.is-open .faq-trigger::after {
  content: "−";
}

.faq-panel {
  display: none;
  padding: 0 0 1.25rem;
  font-size: 0.95rem;
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* ——— Forms ——— */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row--2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 600px) {
  .form-row--2 { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--teal);
}

input, textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(46, 97, 113, 0.25);
  border-radius: var(--radius-card);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--sky);
  box-shadow: 0 0 0 3px rgba(77, 168, 218, 0.2);
}

input.is-invalid, textarea.is-invalid {
  border-color: #c0392b;
}

.field-error {
  font-size: 0.75rem;
  color: #c0392b;
  margin-top: 0.25rem;
  display: none;
}

.field-error.is-visible { display: block; }

.form-success {
  display: none;
  padding: 1rem;
  background: rgba(168, 218, 220, 0.4);
  border-radius: var(--radius-card);
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-success.is-visible { display: block; }

/* ——— Map ——— */
.map-embed {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 280px;
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ——— Masonry gallery ——— */
.masonry {
  column-count: 3;
  column-gap: 1rem;
}

.masonry__item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.masonry__item img {
  width: 100%;
  vertical-align: middle;
}

@media (max-width: 900px) {
  .masonry { column-count: 2; }
}

@media (max-width: 500px) {
  .masonry { column-count: 1; }
}

/* ——— Tabs ——— */
.tabs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill);
  border: 2px solid var(--mint);
  background: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink);
  transition: all 0.2s ease;
}

.tab-btn:hover, .tab-btn.is-active {
  background: linear-gradient(135deg, var(--teal), var(--sky));
  color: var(--white);
  border-color: transparent;
}

.tab-panel { display: none; }
.tab-panel.is-active { display: block; }

/* ——— Charts (CSS bars) ——— */
.chart-block {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.chart-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.chart-row__label {
  width: 8rem;
  flex-shrink: 0;
  font-size: 0.8rem;
}

.chart-row__bar {
  flex: 1;
  height: 10px;
  background: rgba(168, 218, 220, 0.5);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.chart-row__fill {
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), var(--sky));
  transition: width 1s ease;
}

/* ——— Team grid ——— */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; }
}

.team-card img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
}

.team-card .card__body { padding-top: 1rem; }

/* ——— Article ——— */
.article-hero img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.article-meta {
  font-size: 0.85rem;
  color: var(--teal);
  margin: 1rem 0;
}

.article-body {
  max-width: 40rem;
}

.article-body h2 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-size: 1.35rem;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 2rem 0;
}

.share-row a {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--mint);
  font-size: 0.8rem;
  color: var(--ink);
}

.share-row a:hover {
  border-color: var(--sky);
}

/* ——— Comments layout ——— */
.comment {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(46, 97, 113, 0.12);
}

.comment__author {
  font-weight: 600;
  font-family: var(--font-head);
}

/* ——— Footer ——— */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding: 3rem 0 2rem;
  margin-top: auto;
}

.site-footer a {
  color: var(--mint);
}

.site-footer a:hover {
  color: var(--sky);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-list li { margin-bottom: 0.5rem; }

.footer-trust {
  font-size: 0.9rem;
  opacity: 0.9;
  max-width: 28rem;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(241, 250, 238, 0.15);
  font-size: 0.85rem;
  opacity: 0.85;
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-row a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* ——— Cookie banner ——— */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: 1rem;
  background: var(--ink);
  color: var(--cream);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.cookie-banner.is-visible {
  transform: translateY(0);
}

.cookie-banner__inner {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 0.9rem;
}

.cookie-banner a {
  color: var(--mint);
  text-decoration: underline;
}

/* ——— Utilities ——— */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr; }
}

.sidebar-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2.5rem;
}

@media (max-width: 900px) {
  .sidebar-layout { grid-template-columns: 1fr; }
}

.sidebar-box {
  background: var(--white);
  padding: 1.25rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 5.5rem;
}

.sidebar-box h3 {
  margin-top: 0;
  font-size: 1rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.35rem 0.75rem;
  background: var(--mint);
  color: var(--ink);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.trust-badge {
  padding: 0.75rem 1.25rem;
  background: var(--white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
}

.timeline {
  border-left: 3px solid var(--sky);
  padding-left: 1.5rem;
  margin-left: 0.5rem;
}

.timeline__item {
  position: relative;
  padding-bottom: 1.5rem;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.35rem;
  width: 12px;
  height: 12px;
  background: var(--teal);
  border-radius: 50%;
  border: 2px solid var(--cream);
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 700px) {
  .before-after { grid-template-columns: 1fr; }
}

.ba-box {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  background: var(--white);
  box-shadow: var(--shadow);
}

.ba-box--before {
  border-top: 4px solid var(--mint);
}

.ba-box--after {
  border-top: 4px solid var(--sky);
}

.pre-footer {
  background: linear-gradient(135deg, var(--teal), var(--ink));
  color: var(--cream);
  padding: 2.5rem 0;
  margin-top: 0;
}

.pre-footer h2 { color: var(--cream); }
.pre-footer a.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: var(--cream);
  border-color: rgba(255, 255, 255, 0.4);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  font-size: 0.75rem;
  text-align: center;
}

.cal-cell {
  padding: 0.4rem;
  background: var(--white);
  border-radius: 6px;
}

.cal-cell--event {
  background: var(--mint);
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

table.legal-table,
table.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin: 1rem 0 1.5rem;
}

table.legal-table th,
table.legal-table td,
table.cookie-table th,
table.cookie-table td {
  border: 1px solid rgba(46, 97, 113, 0.2);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
}

table.legal-table th,
table.cookie-table th {
  background: var(--mint);
  font-family: var(--font-head);
}

.legal-page h2 {
  margin-top: 2.5rem;
  font-size: 1.2rem;
}

.legal-page h2:first-of-type {
  margin-top: 1rem;
}

.pdf-cta {
  background: linear-gradient(135deg, rgba(77, 168, 218, 0.15), rgba(168, 218, 220, 0.4));
  padding: 1.5rem;
  border-radius: var(--radius-card);
  margin: 2rem 0;
  border: 1px solid var(--mint);
}
