/* Fuentes auto-hospedadas */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/manrope-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/manrope-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/manrope-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/spacegrotesk-700.woff2') format('woff2');
}

:root {
  --slm-bg: #F6F8FB;
  --slm-surface: #FFFFFF;
  --slm-ink: #131826;
  --slm-accent: #0B5FFF;
  --slm-highlight: #FF6B35;
  --slm-border: #E4E9F2;
  --slm-space-sm: 8px;
  --slm-space-md: 20px;
  --slm-space-lg: 48px;
  --slm-space-xl: 96px;
}

:where(h1, h2, h3, h4, h5, h6) {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  color: var(--slm-ink);
  letter-spacing: -0.01em;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--slm-bg);
  color: var(--slm-ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  line-height: 1.6;
}

a { color: var(--slm-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ============ HEADER ============ */
.main-header-bar, .ast-primary-header-bar {
  background-color: var(--slm-surface);
  border-bottom: 1px solid var(--slm-border);
}

.site-title, .site-title a, .ast-site-title a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  color: var(--slm-ink) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.main-header-menu .menu-item > a,
.main-navigation .menu-item > a,
.ast-header-navigation-content a {
  color: var(--slm-ink);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
}

.main-header-menu .menu-item > a:hover,
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a,
.main-navigation .menu-item > a:hover {
  color: var(--slm-accent) !important;
}

.main-header-menu .sub-menu {
  border-radius: 12px;
  border: 1px solid var(--slm-border);
  box-shadow: 0 12px 32px -8px rgba(11, 95, 255, 0.18);
}

/* ============ LAYOUT WIDTH ============ */
.ast-container { max-width: 1180px; }
.site-content .entry-content { max-width: 100%; }

/* ============ HERO (wrapped by functions.php filter) ============ */
.slm-hero {
  position: relative;
  overflow: hidden;
  background: var(--slm-surface);
  border-bottom: 1px solid var(--slm-border);
  margin-bottom: var(--slm-space-lg);
}

.slm-hero-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: var(--slm-space-xl) 20px var(--slm-space-lg);
  display: grid;
  grid-template-columns: minmax(0, 620px) 1fr;
  gap: var(--slm-space-lg);
  align-items: center;
}

.slm-hero-text {
  position: relative;
  z-index: 2;
}

.slm-hero-text > p:first-child {
  font-size: 14px;
  color: #5B6478;
  margin-bottom: var(--slm-space-md);
}
.slm-hero-text > p:first-child a { color: #5B6478; }
.slm-hero-text > p:first-child a:hover { color: var(--slm-accent); }

.slm-hero-text h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.08;
  margin: 0 0 var(--slm-space-md);
  max-width: 14ch;
}

.slm-hero-text > p:nth-of-type(2) {
  font-size: 18px;
  line-height: 1.55;
  color: #3B4257;
  max-width: 52ch;
  margin-bottom: var(--slm-space-md);
}

.slm-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--slm-accent);
  color: #fff !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  border-radius: 10px;
  text-decoration: none !important;
  box-shadow: 0 10px 24px -8px rgba(11, 95, 255, 0.45);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.slm-hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -8px rgba(11, 95, 255, 0.55);
}

.slm-hero-shapes {
  position: relative;
  height: 100%;
  min-height: 260px;
  z-index: 1;
}
.slm-shape { position: absolute; }
.slm-shape-ring {
  width: 300px; height: 300px;
  top: 50%; left: 50%;
  transform: translate(-40%, -55%);
}
.slm-shape-dot {
  width: 46px; height: 46px;
  top: 18%; left: 66%;
  opacity: 0.9;
}
.slm-shape-tri {
  width: 90px; height: 78px;
  bottom: 12%; left: 58%;
  opacity: 0.35;
}

@media (max-width: 900px) {
  .slm-hero-inner { grid-template-columns: 1fr; padding-top: var(--slm-space-lg); }
  .slm-hero-shapes { display: none; }
  .slm-hero-text h1 { max-width: none; }
}

/* ============ HOME HERO (native columns block, not the filter) ============ */
.home .entry-content > .wp-block-group:first-child {
  position: relative;
  overflow: hidden;
}
.home .entry-content > .wp-block-group:first-child::before {
  content: "";
  position: absolute;
  width: 340px; height: 340px;
  border-radius: 50%;
  border: 2px solid var(--slm-accent);
  opacity: 0.16;
  top: -80px; right: -60px;
  pointer-events: none;
}
.home .entry-content > .wp-block-group:first-child::after {
  content: "";
  position: absolute;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--slm-highlight);
  opacity: 0.85;
  bottom: 30px; right: 18%;
  pointer-events: none;
}

/* ============ CONTENT TYPOGRAPHY ============ */
.entry-content p { margin-bottom: 1.2em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content ul li, .entry-content ol li { margin-bottom: 0.5em; }
.entry-content h2 { margin-top: 1.6em; font-size: clamp(24px, 2.6vw, 30px); }
.entry-content h3 { font-size: 19px; }

/* ============ Related links card group ============ */
.entry-content .wp-block-group.has-background {
  border-radius: 16px;
  border: 1px solid var(--slm-border);
  padding: var(--slm-space-lg) var(--slm-space-lg) !important;
}
.entry-content .wp-block-group.has-background h2 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: var(--slm-space-md);
}
.entry-content .wp-block-group.has-background ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding-left: 0;
  margin: 0;
}
.entry-content .wp-block-group.has-background ul.wp-block-list li {
  list-style: none;
  margin: 0;
}
.entry-content .wp-block-group.has-background ul.wp-block-list li a {
  display: block;
  background: var(--slm-surface);
  border: 1px solid var(--slm-border);
  border-radius: 12px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--slm-ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.entry-content .wp-block-group.has-background ul.wp-block-list li a:hover {
  border-color: var(--slm-accent);
  box-shadow: 0 10px 20px -10px rgba(11, 95, 255, 0.35);
  transform: translateY(-2px);
  text-decoration: none;
}

.entry-content .wp-block-group[style*="131826"] a:not(.wp-block-button__link) { color: #fff; }

/* ============ BUTTONS ============ */
.wp-block-button__link {
  border-radius: 10px !important;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  padding: 12px 24px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px -8px rgba(11, 95, 255, 0.4);
  text-decoration: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: var(--slm-accent);
  color: #fff !important;
  text-decoration: none;
}

/* ============ FOOTER ============ */
.site-footer, .ast-small-footer, .footer-widget-area, .ast-builder-footer-grid {
  background-color: var(--slm-ink);
  color: #C4CBDC;
}
.site-footer a, .ast-small-footer a { color: #fff; }
.site-footer a:hover, .ast-small-footer a:hover { color: var(--slm-accent); }
.ast-small-footer-wrap { padding: var(--slm-space-md) 0; font-family: 'Manrope', sans-serif; font-size: 14px; }

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .entry-content { padding: 0 20px; }
  .slm-hero-inner { padding-left: 20px; padding-right: 20px; }
}
