/* CVplantilla — design system
   DNA: #0057ff accent, #00215b navy, #f0f3f5 panels, Rubik, soft 10px radii
*/

:root {
  --accent: #0057ff;
  --accent-dark: #003aab;
  --navy: #00215b;
  --bg: #ffffff;
  --bg-soft: #f0f3f5;
  --text: #1a1a1a;
  --text-muted: #5a6270;
  --border: #dde3ea;
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 2px 12px rgba(0, 33, 91, 0.08);
  --font: "Rubik", Helvetica, Arial, sans-serif;
  --container: 1120px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--accent-dark);
}

h1, h2, h3, h4 {
  line-height: 1.25;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }

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

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 16px;
}

.site-logo img {
  height: 22px;
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav__list a {
  display: block;
  padding: 8px 14px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
}

.site-nav__list a:hover,
.site-nav__list a.is-active {
  color: var(--accent);
  background: rgba(0, 87, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.nav-cta {
  margin-left: 8px;
  padding: 10px 18px !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: var(--accent-dark) !important;
  color: #fff !important;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 87, 255, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid currentColor;
}

.btn-ghost:hover {
  background: rgba(0, 87, 255, 0.06);
  color: var(--accent-dark);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  color: var(--accent);
}

/* —— Hero —— */
.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(240, 243, 245, 0.92) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(0, 87, 255, 0.06) 100%),
    radial-gradient(ellipse at 90% 10%, rgba(0, 87, 255, 0.1), transparent 50%);
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero__eyebrow {
  color: var(--accent-dark);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.hero__lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 36em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.5rem;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 1.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero__trust img {
  height: 28px;
  width: auto;
}

.hero__visual {
  position: relative;
}

.hero__visual img {
  border-radius: 15px;
  box-shadow: var(--shadow);
  width: 100%;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 18% -8% -8% 40%;
  background: rgba(0, 87, 255, 0.08);
  border-radius: var(--radius);
  z-index: -1;
}

/* —— Sections —— */
.section {
  padding: 64px 0;
}

.section--soft {
  background: var(--bg-soft);
}

.section--navy {
  background: var(--navy);
  color: #fff;
}

.section--navy h2,
.section--navy h3 {
  color: #fff;
}

.section__intro {
  max-width: 40em;
  margin-bottom: 2rem;
}

.section__intro p {
  color: var(--text-muted);
}

.section--navy .section__intro p {
  color: rgba(255, 255, 255, 0.78);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px 22px;
  border: 1px solid transparent;
}

.section--soft .feature-card {
  background: #fff;
  box-shadow: none;
}

.feature-card h3 {
  margin-top: 0.4rem;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
  font-size: 0.95rem;
}

.feature-card__icon {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.split img {
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.testimonial {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 22px 20px;
}

.section--soft .testimonial {
  background: #fff;
}

.testimonial p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.testimonial__name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0;
}

.testimonial__role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0;
}

.cta-band {
  text-align: center;
  padding: 48px 24px;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  max-width: 32em;
  margin: 0 auto 1.25rem;
}

/* —— Page header / content —— */
.page-header {
  padding: 40px 0 12px;
}

.page-header h1 {
  margin-bottom: 0.35em;
}

.page-header p {
  color: var(--text-muted);
  max-width: 40em;
}

.page-body {
  padding: 12px 0 64px;
}

.romlicontainer {
  max-width: 760px;
}

.romlicontainer > *:first-child {
  margin-top: 0;
}

.romlicontainer h2,
.romlicontainer h3 {
  margin-top: 1.6em;
}

.romlicontainer ul,
.romlicontainer ol {
  padding-left: 1.25rem;
  margin: 0 0 1rem;
}

.romlicontainer li {
  margin-bottom: 0.35rem;
}

.romlicontainer img {
  border-radius: var(--radius-sm);
  margin: 1rem 0;
}

.romlicontainer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.romlicontainer blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.romlicontainer {
  overflow-wrap: anywhere;
}

.romlicontainer .table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.25rem 0;
}

.romlicontainer table {
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.92rem;
  width: 100%;
  min-width: 520px;
}

.romlicontainer th,
.romlicontainer td {
  border: 1px solid var(--border);
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  word-break: break-word;
}

.romlicontainer th {
  background: var(--bg-soft);
  color: var(--navy);
  font-weight: 600;
}

.romlicontainer tr:nth-child(even) td {
  background: rgba(240, 243, 245, 0.45);
}

/* —— Blog catalog layout —— */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 32px;
  align-items: start;
  padding-bottom: 64px;
}

.blog-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 16px);
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  padding: 18px 16px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.blog-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.blog-sidebar p {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

.blog-sidebar a {
  color: var(--navy);
}

.blog-sidebar a:hover {
  color: var(--accent);
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding-top: 56px;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.85);
}

.site-footer a:hover {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
  padding-bottom: 40px;
}

.footer-brand img {
  height: 22px;
  width: auto;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.92rem;
  margin: 0;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  font-size: 0.9rem;
}

.footer-sitewide {
  padding: 16px 0 8px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

/* —— Utils —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.prose-wide {
  max-width: 860px;
}

.content-list {
  display: grid;
  gap: 12px;
  margin: 1.5rem 0;
}

.content-list li {
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  list-style: none;
}

.content-list {
  list-style: none;
  padding: 0;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .hero__grid,
  .split,
  .feature-grid,
  .testimonials,
  .blog-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero {
    padding: 36px 0 44px;
  }

  .section {
    padding: 48px 0;
  }
}

@media (max-width: 600px) {
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
