:root {
  --ub-bg: #f8f7f4;
  --ub-text: #1f2328;
  --ub-muted: #6b7280;
  --ub-accent: #b08b57;
  --ub-accent-dark: #8f6e43;
  --ub-card: #ffffff;
  --ub-border: #e9e5dd;
  --ub-shadow: 0 8px 24px rgba(22, 26, 29, 0.06);
}

html, body {
  background: var(--ub-bg);
  color: var(--ub-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

h1,h2,h3,h4,h5,h6 {
  letter-spacing: .01em;
  line-height: 1.2;
  color: #111827;
}

p, li, span {
  color: var(--ub-text);
}

a {
  color: var(--ub-accent-dark);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

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

/* Contenedores y bloques comunes */
.container, .site-content, .content-area, .vc_row, .wpb_wrapper {
  max-width: 1200px;
}

section, .vc_row {
  margin-bottom: 1.25rem;
}

/* Cards genéricas para bloques de servicios/blog */
article, .post, .wpb_content_element, .vc_column-inner {
  border-radius: 12px;
}

.post, .blog-item, .vc_column-inner {
  background: var(--ub-card);
  border: 1px solid var(--ub-border);
  box-shadow: var(--ub-shadow);
}

/* Botones */
button,
input[type="submit"],
input[type="button"],
a.btn,
a.button,
.wpb_button {
  border-radius: 10px !important;
  border: 1px solid var(--ub-accent-dark) !important;
  background: var(--ub-accent) !important;
  color: #fff !important;
  padding: .65rem 1rem !important;
  font-weight: 600;
  transition: all .2s ease;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
a.btn:hover,
a.button:hover,
.wpb_button:hover {
  background: var(--ub-accent-dark) !important;
  transform: translateY(-1px);
}

/* Header / menú */
header, .site-header, .main-header, .navbar {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--ub-border);
}

header a, .site-header a, .navbar a, .menu a {
  color: #1f2937 !important;
  font-weight: 500;
}

header a:hover, .menu a:hover {
  color: var(--ub-accent-dark) !important;
}

/* Hero y slider roto: estilo de fallback para shortcodes visibles */
p:has(> code), p {
  word-wrap: break-word;
}

/* Si aparece texto de shortcode en home, lo hace menos agresivo visualmente */
body.home p:has(+ h2),
body.home p:first-child {
  font-size: .95rem;
}

/* Imágenes */
img {
  border-radius: 10px;
}

/* Footer */
footer, .site-footer {
  background: #111827 !important;
  color: #f3f4f6 !important;
  border-top: 1px solid rgba(255,255,255,.08);
}

footer p, footer a, .site-footer p, .site-footer a {
  color: #d1d5db !important;
}

/* Responsive */
@media (max-width: 992px) {
  .vc_row, .container, .site-content {
    padding-left: 14px;
    padding-right: 14px;
  }
}
