/* Hub Blue Editorial - shared design system for content pages.
   Scope: inner pages only (resume 429, portfolio 555, contacto 608, repositorio 891, sobre-mi 1028).
   The theme shell (header, nav, home) is untouched.
   Cache busting is by filename (LiteSpeed strips ?ver): bump -vN on every change. */

:root {
  --cm-ink: #2F3540;
  --cm-body: #46505C;
  --cm-muted: #5D6B7A;
  --cm-accent: #2E7EA6;
  --cm-bright: #6EC1E4;
  --cm-surface: #F6F9FC;
  --cm-border: #E3ECF3;
  --cm-shadow: 0 6px 24px rgba(47, 74, 110, .08);
  --cm-radius: 12px;
}

/* ---------- Typography ---------- */
:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container p,
:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container li {
  font-family: Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cm-body);
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container strong {
  color: var(--cm-ink);
  font-weight: 600;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container :is(h2, h3, h4) {
  font-family: Poppins, sans-serif;
  color: var(--cm-ink);
  line-height: 1.2;
  font-weight: 600;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container h2 {
  font-size: 28px;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container h3 {
  font-size: 21px;
  position: relative;
  padding-bottom: 10px;
  margin: 40px 0 18px;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container h3::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: var(--cm-bright);
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container h4 {
  font-size: 17px;
  margin: 22px 0 4px;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container h5 {
  font-family: Poppins, sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--cm-muted);
  margin: 0 0 10px;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container a:not(.cm-btn) {
  color: var(--cm-accent);
  text-decoration: none;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container a:not(.cm-btn):hover {
  text-decoration: underline;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container hr {
  border: 0;
  border-top: 1px solid var(--cm-border);
  margin: 36px 0;
}

:is(.page-id-429, .page-id-555, .page-id-608, .page-id-891, .page-id-1028) .elementor-widget-container blockquote {
  background: var(--cm-surface);
  border-left: 3px solid var(--cm-bright);
  border-radius: 0 var(--cm-radius) var(--cm-radius) 0;
  padding: 18px 22px;
  margin: 28px 0;
  color: var(--cm-ink);
}

/* ---------- Cards and utilities (new markup) ---------- */
.cm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
}

@media (max-width: 767px) {
  .cm-grid { grid-template-columns: 1fr; }
}

.cm-card {
  background: #FFFFFF;
  border: 1px solid var(--cm-border);
  border-radius: var(--cm-radius);
  box-shadow: var(--cm-shadow);
  padding: 20px 22px;
}

.cm-card h4 { margin: 0 0 6px !important; }
.cm-card p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.65 !important; }

.cm-btn {
  display: inline-block;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 10px;
  background: var(--cm-accent);
  color: #FFFFFF !important;
  text-decoration: none !important;
  transition: background-color .15s ease;
}

.cm-btn:hover { background: #256B88; }

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

.cm-btn--ghost:hover { background: var(--cm-surface); }

.cm-fh {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.cm-fh img { flex: 0 0 auto; }
.cm-fh > div { flex: 1 1 300px; }
.cm-fh h4 { margin-top: 0 !important; }
.cm-fh p:last-child { margin-top: 14px !important; }

/* ---------- Resume: skill bars and timeline ---------- */
.page-id-429 .progress {
  height: 8px;
  background: var(--cm-surface);
  border-radius: 999px;
  box-shadow: none;
  margin-bottom: 18px;
}

.page-id-429 .progress-bar {
  background: linear-gradient(135deg, #6EC1E4, #4FA8D1);
  border-radius: 999px;
}

.page-id-429 .progress-bar-label {
  font-family: Poppins, sans-serif;
  font-size: 12px;
  color: var(--cm-muted);
}

.page-id-429 .elementor-widget-container h4 { margin-bottom: 2px; }

/* Timeline entries print role and company as adjacent nodes; add the separator */
.page-id-429 .elementor-widget-container h4 > span::after {
  content: " \00B7  ";
  color: var(--cm-bright);
  font-weight: 600;
}

/* ---------- Contact: channels and form ---------- */
.page-id-608 .contact-details h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 2px;
}

.page-id-608 .contact-details p { font-size: 15px; }

.page-id-608 .contact-icon { color: var(--cm-accent); }

.page-id-608 .wpcf7 input[type="text"],
.page-id-608 .wpcf7 input[type="email"],
.page-id-608 .wpcf7 textarea {
  width: 100%;
  font-family: Roboto, sans-serif;
  font-size: 15px;
  color: var(--cm-ink);
  background: #FFFFFF;
  border: 1px solid var(--cm-border);
  border-radius: 10px;
  padding: 12px 14px;
  box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.page-id-608 .wpcf7 input:focus,
.page-id-608 .wpcf7 textarea:focus {
  outline: none;
  border-color: var(--cm-bright);
  box-shadow: 0 0 0 3px rgba(110, 193, 228, .25);
}

.page-id-608 .wpcf7 input[type="submit"] {
  font-family: Poppins, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  background: var(--cm-accent);
  border: 0;
  border-radius: 10px;
  padding: 12px 28px;
  cursor: pointer;
  transition: background-color .15s ease;
}

.page-id-608 .wpcf7 input[type="submit"]:hover { background: #256B88; }

.page-id-608 .elementor-widget-lc-contact .col-md-6,
.page-id-608 .elementor-widget-lc-contact .col-md-12,
.page-id-608 .elementor-widget-lc-contact #contactForm {
  flex: 0 0 100%;
  width: 100% !important;
  max-width: 680px;
}

/* Retratos circulares */
.elementor-element-85f8eaf img,
.elementor-element-cafe001 img {
  border-radius: 50% !important;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  -webkit-mask-image: none !important;
  mask-image: none !important;
}

/* Botones GitHub/npm de las tarjetas de bibliotecas: al sistema */
.page-id-891 .hub-link,
.page-id-891 .hub-link-gh,
.page-id-891 .hub-link-npm {
  background: #FFFFFF !important;
  border: 1px solid var(--cm-accent);
  color: var(--cm-accent) !important;
  border-radius: 10px;
}

.page-id-891 .hub-link:hover {
  background: var(--cm-accent) !important;
  color: #FFFFFF !important;
  text-decoration: none !important;
}

.page-id-608 .elementor-widget-lc-contact .contact-details,
.page-id-608 .elementor-widget-lc-contact .contact-icon,
.page-id-608 .elementor-widget-lc-contact .block-title:empty {
  display: none;
}
