/*
Theme Name:  Nikolaos Portfolio
Description: Child theme de Astra — portafolio profesional de Nikolaos Gollini
Template:    astra
Version:     1.2.0
Text Domain: nikolaos-portfolio
*/

/* ═══════════════════════════════════════════════════════════
   1. VARIABLES
   ═══════════════════════════════════════════════════════════ */
:root {
  --np-primary:    #00C8F0;
  --np-secondary:  #FFE033;
  --np-bg:         #0D1B2A;
  --np-bg2:        #162032;
  --np-bg3:        #0A2540;
  --np-text:       #F8F9FA;
  --np-muted:      #CBD5E1;
  --np-sub:        #94A3B8;
  --np-card:       #1A2E45;
  --np-card-proj:  #0F2236;
  --np-shadow:     0 4px 24px rgba(0,200,240,0.15);
  --np-shadow-hv:  0 8px 36px rgba(0,200,240,0.32);
  --np-t:          0.28s ease;
}

/* ═══════════════════════════════════════════════════════════
   2. BASE
   ═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--np-bg) !important;
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
}

a             { color: var(--np-primary); transition: color var(--np-t); }
a:hover       { color: var(--np-secondary); }
p             { margin: 0 0 1em; }

/* ═══════════════════════════════════════════════════════════
   3. HEADER
   ═══════════════════════════════════════════════════════════ */
.site-header,
#masthead,
.ast-site-header-wrap,
.ast-primary-header-bar {
  background-color: var(--np-bg) !important;
  border-bottom: 1px solid rgba(0,200,240,0.15) !important;
}

.site-title a, .ast-site-identity a { color: var(--np-text) !important; }

.ast-nav-menu > li > a, .main-navigation a {
  color: var(--np-muted) !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  transition: color var(--np-t) !important;
}
.ast-nav-menu > li > a:hover,
.main-navigation a:hover,
.ast-nav-menu > li.current-menu-item > a { color: var(--np-primary) !important; }

/* Hamburger menu — móvil (Astra builder: SVG + font icon) */
html body .ast-button-wrap .menu-toggle,
html body .ast-button-wrap button.menu-toggle {
  color: var(--np-text) !important;
}
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg path,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg line,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg rect,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg polyline,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon svg circle {
  fill: var(--np-text) !important;
  stroke: var(--np-text) !important;
}
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset svg path,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset svg line,
html body .ast-button-wrap .menu-toggle .mobile-menu-toggle-icon .ahfb-svg-iconset svg rect {
  fill: var(--np-text) !important;
  stroke: var(--np-text) !important;
}

/* ═══════════════════════════════════════════════════════════
   4. OCULTAR TÍTULO DE PÁGINA (ID 29 = inicio)
   ═══════════════════════════════════════════════════════════ */
.page-id-29 .entry-title,
.page-id-29 .ast-page-single-title,
.page-id-29 .entry-header,
.home .entry-title { display: none !important; }

/* ═══════════════════════════════════════════════════════════
   5. HERO — DOT GRID + GRADIENTE + WAVE
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(1) {
  background:
    radial-gradient(rgba(0,200,240,0.09) 1px, transparent 1px),
    linear-gradient(155deg, #0A2540 0%, #0D1B2A 50%, #081722 100%) !important;
  background-size: 28px 28px, 100% 100% !important;
  background-position: 0 0, 0 0 !important;
  position: relative;
  overflow: visible !important;
}

/* Wave de transición hero → sobre-mí */
.elementor-top-section:nth-child(1)::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 100%; height: 70px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 70' preserveAspectRatio='none'%3E%3Cpath d='M0,35 C240,70 480,0 720,35 C960,70 1200,0 1440,35 L1440,70 L0,70 Z' fill='%230A2540'/%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 10;
}

/* ═══════════════════════════════════════════════════════════
   6. FOTO PLACEHOLDER
   ═══════════════════════════════════════════════════════════ */
.np-photo-circle {
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 3px solid var(--np-primary);
  background: var(--np-card);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  margin: 0 auto;
  box-shadow: 0 0 50px rgba(0,200,240,0.22), 0 0 100px rgba(0,200,240,0.08);
  animation: np-pulse 3.5s ease-in-out infinite;
  position: relative;
}

/* Anillo punteado exterior */
.np-photo-circle::before {
  content: '';
  position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1px dashed rgba(0,200,240,0.28);
  animation: np-spin 14s linear infinite;
}

.np-photo-label {
  color: var(--np-sub);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  margin-top: 18px;
  text-align: center;
}

@keyframes np-pulse {
  0%,100% { box-shadow: 0 0 50px rgba(0,200,240,0.22), 0 0 100px rgba(0,200,240,0.08); }
  50%      { box-shadow: 0 0 70px rgba(0,200,240,0.36), 0 0 130px rgba(0,200,240,0.14); }
}
@keyframes np-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ═══════════════════════════════════════════════════════════
   7. SECCIÓN "SOBRE MÍ" — DATA PATTERN
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(2) {
  background-color: var(--np-bg3) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Ccircle cx='10' cy='10' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='40' cy='10' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='70' cy='10' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='10' cy='40' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='40' cy='40' r='2'   fill='%2300C8F0' fill-opacity='0.12'/%3E%3Ccircle cx='70' cy='40' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='10' cy='70' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='40' cy='70' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Ccircle cx='70' cy='70' r='1.2' fill='%2300C8F0' fill-opacity='0.07'/%3E%3Cline x1='10' y1='10' x2='40' y2='40' stroke='%2300C8F0' stroke-opacity='0.04' stroke-width='0.6'/%3E%3Cline x1='70' y1='10' x2='40' y2='40' stroke='%2300C8F0' stroke-opacity='0.04' stroke-width='0.6'/%3E%3Cline x1='10' y1='70' x2='40' y2='40' stroke='%2300C8F0' stroke-opacity='0.04' stroke-width='0.6'/%3E%3Cline x1='70' y1='70' x2='40' y2='40' stroke='%2300C8F0' stroke-opacity='0.04' stroke-width='0.6'/%3E%3C/svg%3E") !important;
  background-size: 80px 80px !important;
}

/* Icon bullets */
.np-bullets {
  list-style: none;
  padding: 0; margin: 0;
}
.np-bullets li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: var(--np-muted);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.np-bullets li:last-child { border-bottom: none; }
.np-bullet-icon { font-size: 24px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════
   8. CARDS FEATURES — FLEX STRETCH + NÚMEROS DECORATIVOS
   nth-child(4) = s4_feat_cards
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(4) .elementor-row {
  display: flex !important;
  align-items: stretch !important;
}
.elementor-top-section:nth-child(4) .elementor-column {
  display: flex !important; flex-direction: column !important;
}
.elementor-top-section:nth-child(4) .elementor-column-wrap,
.elementor-top-section:nth-child(4) .elementor-widget-wrap {
  flex: 1 !important; display: flex !important; flex-direction: column !important;
}
.elementor-top-section:nth-child(4) .elementor-column-wrap {
  background-color: var(--np-card) !important;
  border-left: 3px solid var(--np-primary) !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: var(--np-shadow) !important;
  position: relative; overflow: hidden;
  transition: box-shadow var(--np-t), border-color var(--np-t), transform var(--np-t) !important;
}
.elementor-top-section:nth-child(4) .elementor-column:hover .elementor-column-wrap {
  box-shadow: var(--np-shadow-hv) !important;
  border-color: #40DFFF !important;
  transform: translateY(-4px) !important;
}

/* Alinear H3s a misma altura base */
.elementor-top-section:nth-child(4) .elementor-widget-heading {
  min-height: 60px;
  display: flex !important; align-items: flex-start !important;
}

/* ── Números decorativos 01 / 02 / 03 ── */
.elementor-top-section:nth-child(4) .elementor-column-wrap::before {
  position: absolute;
  bottom: -16px; right: 8px;
  font-size: 130px; font-weight: 900;
  font-family: 'Inter', sans-serif;
  color: rgba(255,255,255,0.04);
  line-height: 1;
  pointer-events: none; user-select: none;
  z-index: 0;
}
.elementor-top-section:nth-child(4) .elementor-column:nth-child(1) .elementor-column-wrap::before { content: '01'; }
.elementor-top-section:nth-child(4) .elementor-column:nth-child(2) .elementor-column-wrap::before { content: '02'; }
.elementor-top-section:nth-child(4) .elementor-column:nth-child(3) .elementor-column-wrap::before { content: '03'; }

/* Contenido por encima del número */
.elementor-top-section:nth-child(4) .elementor-widget-wrap { position: relative; z-index: 1; }

/* ═══════════════════════════════════════════════════════════
   9. BLOG CARDS  (nth-child 6 = s6_blog_cards)
   ═══════════════════════════════════════════════════════════ */

/* Grid del shortcode [nk_blog_featured] */
.np-blog-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px;
  width: 100%;
  box-sizing: border-box;
}

/* ── Card base ── */
.np-blog-card {
  background: linear-gradient(160deg, #0C1F33 0%, #091A2B 100%);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0,200,240,0.13);
  box-shadow: 0 4px 24px rgba(0,0,0,0.32);
  transition: border-color 0.32s ease, transform 0.32s ease, box-shadow 0.32s ease;
  display: flex; flex-direction: column;
}
.np-blog-card:hover {
  border-color: rgba(0,200,240,0.55);
  transform: translateY(-8px);
  box-shadow: 0 20px 52px rgba(0,200,240,0.13), 0 4px 16px rgba(0,0,0,0.4);
}

/* ── Top accent bar (aparece en hover) ── */
.np-blog-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00C8F0 0%, #FFE033 100%);
  border-radius: 14px 14px 0 0;
  z-index: 3; opacity: 0;
  transition: opacity 0.3s ease;
}
.np-blog-card:hover::before { opacity: 1; }

/* ── Image area ── */
.np-blog-img {
  height: 195px;
  display: block;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}
/* Gradient overlay */
.np-blog-img::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(6,14,26,0.92) 0%, transparent 100%);
  pointer-events: none; z-index: 1;
}
/* Background element (enables zoom on hover) */
.np-blog-img-bg {
  position: absolute; inset: 0;
  background: linear-gradient(145deg, #122438 0%, #0D1E30 55%, #091A26 100%);
  background-size: cover;
  background-position: center;
  transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94);
}
.np-blog-card:hover .np-blog-img-bg { transform: scale(1.07); }

/* Placeholders únicos por posición (home: nth-child, blog archive: nth-of-type) */
.np-blog-grid .np-blog-card:nth-child(3n+1) .np-blog-img-bg--placeholder {
  background:
    radial-gradient(ellipse 65% 55% at 25% 45%, rgba(0,200,240,0.18) 0%, transparent 65%),
    radial-gradient(ellipse 45% 65% at 75% 65%, rgba(0,200,240,0.06) 0%, transparent 65%),
    linear-gradient(145deg, #0B2540 0%, #0D2540 55%, #071828 100%);
}
.np-blog-grid .np-blog-card:nth-child(3n+2) .np-blog-img-bg--placeholder {
  background:
    radial-gradient(ellipse 65% 55% at 65% 40%, rgba(124,58,237,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 45% 65% at 25% 65%, rgba(0,200,240,0.09) 0%, transparent 65%),
    linear-gradient(145deg, #110E38 0%, #1A1448 55%, #0B0C28 100%);
}
.np-blog-grid .np-blog-card:nth-child(3n+3) .np-blog-img-bg--placeholder {
  background:
    radial-gradient(ellipse 65% 55% at 40% 50%, rgba(16,185,129,0.15) 0%, transparent 65%),
    radial-gradient(ellipse 45% 65% at 72% 38%, rgba(0,200,240,0.08) 0%, transparent 65%),
    linear-gradient(145deg, #082520 0%, #0A2E28 55%, #061818 100%);
}
/* Íconos decorativos en placeholder */
.np-blog-placeholder-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1; opacity: 0.18;
  pointer-events: none;
}

/* Category badge */
.np-blog-cat {
  position: absolute; bottom: 14px; left: 16px; z-index: 2;
  font-size: 10px; font-weight: 700;
  color: #06111E;
  text-transform: uppercase; letter-spacing: 0.13em;
  background: linear-gradient(90deg, #00C8F0 0%, #3DDAFF 100%);
  padding: 4px 13px; border-radius: 20px;
  font-family: 'Inter', sans-serif;
  box-shadow: 0 2px 14px rgba(0,200,240,0.5);
  white-space: nowrap;
}

/* ── Body ── */
.np-blog-body {
  padding: 22px 24px 24px;
  flex: 1; display: flex; flex-direction: column; gap: 12px;
}
.np-blog-body h3 {
  margin: 0;
  font-size: 17px; font-weight: 700; line-height: 1.42;
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
}
.np-blog-body h3 a {
  color: #EEF4FA;
  text-decoration: none;
  transition: color 0.25s ease;
}
.np-blog-card:hover .np-blog-body h3 a { color: #00C8F0; }
.np-blog-excerpt {
  font-size: 14px; line-height: 1.7;
  color: #6A8090;
  font-family: 'Inter', sans-serif;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.np-blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.07);
}
.np-blog-body time {
  font-size: 11px; font-weight: 600;
  color: #3E5565;
  font-family: 'Inter', sans-serif;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.np-blog-link {
  font-size: 13px; font-weight: 700;
  color: #00C8F0 !important;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  transition: color 0.25s ease;
  display: flex; align-items: center; gap: 3px;
}
.np-blog-link:hover { color: #FFE033 !important; }

/* ── Paginación ── */
.np-blog-pagination {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; margin-top: 48px; flex-wrap: wrap;
}
.np-blog-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0,200,240,0.18);
  border-radius: 8px;
  color: var(--np-muted) !important;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: all 0.22s ease;
}
.np-blog-pagination .page-numbers:hover {
  background: rgba(0,200,240,0.1);
  border-color: var(--np-primary);
  color: var(--np-primary) !important;
}
.np-blog-pagination .page-numbers.current {
  background: var(--np-primary);
  border-color: var(--np-primary);
  color: #06111E !important;
  font-weight: 700;
}
.np-blog-pagination .page-numbers.dots {
  border-color: transparent; background: transparent;
}

/* ── "Ver todos" button ── */
.np-blog-cta {
  text-align: center;
  margin-top: 40px;
}
.np-blog-all {
  display: inline-block;
  color: #00C8F0 !important;
  font-family: 'Inter', sans-serif;
  font-size: 14px; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid rgba(0,200,240,0.38);
  padding: 11px 34px; border-radius: 8px;
  transition: all 0.25s ease;
  letter-spacing: 0.02em;
}
.np-blog-all:hover {
  background: rgba(0,200,240,0.1);
  border-color: #00C8F0;
  box-shadow: 0 4px 22px rgba(0,200,240,0.2);
}

/* ═══════════════════════════════════════════════════════════
   10. PROYECTOS CARDS  (nth-child 8 = s8_proj_cards)
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(8) .elementor-row {
  display: flex !important; align-items: stretch !important;
}
.elementor-top-section:nth-child(8) .elementor-column {
  display: flex !important; flex-direction: column !important;
}
.elementor-top-section:nth-child(8) .elementor-column-wrap {
  flex: 1 !important; display: flex !important; flex-direction: column !important;
  background-color: var(--np-card-proj) !important;
  border-left: 3px solid var(--np-primary) !important;
  border-radius: 0 8px 8px 0 !important;
  box-shadow: var(--np-shadow) !important;
  transition: box-shadow var(--np-t), border-color var(--np-t), transform var(--np-t) !important;
}
.elementor-top-section:nth-child(8) .elementor-column:hover .elementor-column-wrap {
  box-shadow: var(--np-shadow-hv) !important;
  border-color: #40DFFF !important;
  transform: translateY(-4px) !important;
}

/* ═══════════════════════════════════════════════════════════
   11. CTA FINAL  (nth-child 9 = s9_cta)
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(9) {
  background: linear-gradient(135deg, #00C8F0 0%, #0099C0 100%) !important;
  position: relative; overflow: hidden;
}
.elementor-top-section:nth-child(9)::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(13,27,42,0.20) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none; z-index: 0;
}
.elementor-top-section:nth-child(9) .elementor-container {
  position: relative; z-index: 1;
}

/* CTA heading — evitar corte de palabras en móvil */
.elementor-top-section:nth-child(9) .elementor-heading-title {
  hyphens: none !important;
  overflow-wrap: normal !important;
  word-break: keep-all !important;
}

/* ═══════════════════════════════════════════════════════════
   12. DECORACIÓN: BARRA SEPARADORA ENTRE SECCIONES
   ═══════════════════════════════════════════════════════════ */
.elementor-top-section:nth-child(3),
.elementor-top-section:nth-child(5),
.elementor-top-section:nth-child(7) {
  position: relative;
}
.elementor-top-section:nth-child(3)::before,
.elementor-top-section:nth-child(5)::before,
.elementor-top-section:nth-child(7)::before {
  content: '';
  display: block;
  width: 56px; height: 3px;
  background: linear-gradient(90deg, var(--np-primary), var(--np-secondary));
  border-radius: 2px;
  margin: 0 auto;
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
}

/* ═══════════════════════════════════════════════════════════
   13. ANIMACIONES SCROLL — CSS-only (animation-timeline)
   ═══════════════════════════════════════════════════════════ */
@keyframes np-fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

@supports (animation-timeline: scroll()) {
  .elementor-top-section:nth-child(n+2):not(:nth-child(9)) {
    animation: np-fade-up 0.65s cubic-bezier(0.22,1,0.36,1) both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }

  /* Cards con stagger visual */
  .elementor-top-section:nth-child(4) .elementor-column:nth-child(2),
  .elementor-top-section:nth-child(8) .elementor-column:nth-child(2) {
    animation-delay: 80ms;
  }
  .elementor-top-section:nth-child(4) .elementor-column:nth-child(3) {
    animation-delay: 160ms;
  }
}

/* ═══════════════════════════════════════════════════════════
   14. BOTONES
   ═══════════════════════════════════════════════════════════ */
.elementor-button.elementor-size-md {
  padding: 13px 30px !important;
  font-weight: 600 !important;
  letter-spacing: 0.025em !important;
  transition: all var(--np-t) !important;
}
.elementor-button.elementor-size-md:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.28) !important;
}

/* ═══════════════════════════════════════════════════════════
   15. FOOTER
   ═══════════════════════════════════════════════════════════ */
.site-footer, #colophon, .ast-small-footer {
  background-color: var(--np-bg) !important;
  border-top: 1px solid rgba(0,200,240,0.15) !important;
  color: var(--np-sub) !important;
}
.ast-small-footer a { color: var(--np-primary) !important; }

/* ═══════════════════════════════════════════════════════════
   16. PÁGINA DE PROYECTOS (page-id-34)
   ═══════════════════════════════════════════════════════════ */

/* Badge de contexto */
.np-proj-badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--np-primary);
  background: rgba(0,200,240,0.08);
  border: 1px solid rgba(0,200,240,0.25);
  padding: 6px 18px; border-radius: 20px;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* Stats hero */
.np-proj-stats {
  display: flex; gap: 48px;
  margin-top: 52px; flex-wrap: wrap;
}
.np-proj-stat { display: flex; flex-direction: column; gap: 5px; }
.np-proj-stat-num {
  font-family: 'Inter', sans-serif;
  font-size: 44px; font-weight: 800;
  color: var(--np-primary); line-height: 1;
  letter-spacing: -0.03em;
}
.np-proj-stat-label {
  font-family: 'Inter', sans-serif;
  font-size: 13px; color: var(--np-sub); font-weight: 500;
}

/* Tabla de resultados */
.np-results-table {
  width: 100%; border-collapse: collapse;
  font-family: 'Inter', sans-serif;
}
.np-results-table thead tr {
  background: rgba(0,200,240,0.07);
  border-bottom: 2px solid rgba(0,200,240,0.22);
}
.np-results-table thead th {
  padding: 14px 20px;
  font-size: 11px; font-weight: 700;
  color: var(--np-primary);
  text-transform: uppercase; letter-spacing: 0.1em;
  text-align: left;
}
.np-results-table thead th:not(:first-child) { text-align: right; }
.np-results-table tbody tr {
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s ease;
}
.np-results-table tbody tr:hover { background: rgba(0,200,240,0.04); }
.np-results-table tbody td {
  padding: 13px 20px;
  font-size: 15px; color: var(--np-muted);
}
.np-results-table tbody td:not(:first-child) {
  text-align: right; font-weight: 600;
  color: var(--np-text);
  font-variant-numeric: tabular-nums;
}
/* Colores de error */
.np-err-pos  { color: #F59E0B !important; }
.np-err-neg  { color: #34D399 !important; }
.np-err-zero { color: var(--np-primary) !important; }
/* Fila ganador */
.np-row-winner td:first-child {
  font-weight: 700; color: var(--np-secondary);
}

/* Tags de metodología */
.np-method-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 20px;
}
.np-method-tag {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--np-bg);
  background: var(--np-primary);
  padding: 4px 14px; border-radius: 20px;
  letter-spacing: 0.04em;
}

/* Responsive proyectos */
@media (max-width: 768px) {
  .np-proj-stats { gap: 28px; margin-top: 36px; }
  .np-proj-stat-num { font-size: 34px; }
  .np-results-table thead th,
  .np-results-table tbody td { padding: 10px 12px; font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   17. PÁGINA DE BLOG (archivo de posts — page-id-36)
   ═══════════════════════════════════════════════════════════ */

/* Fondo y header */
.blog .site-content,
.archive .site-content { background: var(--np-bg) !important; }

/* Grid de posts en el archivo */
.blog .ast-archive-layout-1,
.blog .ast-grid-posts,
.blog .posts-container,
.blog .ast-row,
.archive .ast-archive-layout-1 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 28px !important;
  padding: 0 !important;
}

/* Ocultar la barra lateral si aparece */
.blog .ast-right-sidebar,
.blog .ast-left-sidebar { display: none !important; }
.blog .ast-primary-content-area,
.blog #primary { max-width: 100% !important; flex: 1 !important; }

/* Cada post en el archivo */
.blog article.ast-article-post,
.blog article.type-post,
.archive article.type-post {
  background: linear-gradient(160deg, #0C1F33 0%, #091A2B 100%) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(0,200,240,0.13) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.3) !important;
  transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease !important;
  margin: 0 !important;
}
.blog article.type-post:hover,
.archive article.type-post:hover {
  border-color: rgba(0,200,240,0.5) !important;
  transform: translateY(-6px) !important;
  box-shadow: 0 16px 48px rgba(0,200,240,0.13) !important;
}

/* Imagen destacada en el archivo */
.blog .ast-post-thumbnail-wrap,
.archive .ast-post-thumbnail-wrap {
  height: 185px;
  overflow: hidden;
  position: relative;
}
.blog .ast-post-thumbnail-wrap img,
.archive .ast-post-thumbnail-wrap img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.blog article:hover .ast-post-thumbnail-wrap img,
.archive article:hover .ast-post-thumbnail-wrap img {
  transform: scale(1.06);
}

/* Placeholder si no hay imagen */
.blog .ast-post-thumbnail-wrap:not(:has(img)),
.archive .ast-post-thumbnail-wrap:not(:has(img)) {
  background: radial-gradient(rgba(0,200,240,0.07) 1px, transparent 1px),
    linear-gradient(145deg, #122438 0%, #0D1E30 55%, #091A26 100%);
  background-size: 20px 20px, 100% 100%;
}

/* Cuerpo del post en el archivo */
.blog .entry-content-wrap,
.blog .ast-article-post .entry-header,
.blog .ast-article-post .entry-content,
.archive .entry-content-wrap {
  background: transparent !important;
  padding: 18px 22px 22px !important;
}

/* Título */
.blog .entry-title a,
.archive .entry-title a {
  color: #EEF2F7 !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}
.blog .entry-title a:hover,
.archive .entry-title a:hover { color: #00C8F0 !important; }

/* Meta (fecha, categoría) */
.blog .entry-meta,
.blog .posted-on,
.blog .ast-article-post .entry-meta,
.archive .entry-meta {
  color: #4E6070 !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  background: transparent !important;
  padding: 0 !important; margin: 6px 0 !important;
}
.blog .entry-meta a,
.archive .entry-meta a { color: #4E6070 !important; }

/* Excerpt */
.blog .entry-summary p,
.blog .entry-content p,
.archive .entry-summary p {
  color: #7A8FA0 !important;
  font-size: 14px !important; line-height: 1.65 !important;
  font-family: 'Inter', sans-serif !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* "Leer más" */
.blog .read-more a,
.blog .ast-read-more,
.blog .more-link,
.archive .more-link {
  color: #00C8F0 !important;
  font-size: 13px !important; font-weight: 600 !important;
  font-family: 'Inter', sans-serif !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}
.blog .more-link:hover,
.archive .more-link:hover { color: #FFE033 !important; }

/* Paginación */
.blog .pagination .page-numbers,
.archive .pagination .page-numbers {
  color: var(--np-muted) !important;
  background: var(--np-card) !important;
  border: 1px solid rgba(0,200,240,0.2) !important;
  border-radius: 6px !important; padding: 6px 14px !important;
}
.blog .pagination .current,
.archive .pagination .current {
  background: var(--np-primary) !important;
  color: var(--np-bg) !important;
  border-color: var(--np-primary) !important;
}

/* Título de la página de blog */
.blog .page-header .page-title,
.archive .page-header .page-title {
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 32px !important; font-weight: 700 !important;
}

/* ═══════════════════════════════════════════════════════════
   18. PÁGINA CONTACTO — Fluent Forms dark theme (page-id-38)
   ═══════════════════════════════════════════════════════════ */

/* Ocultar título de página */
.page-id-38 .entry-title,
.page-id-38 .entry-header { display: none !important; }

/* Info de contacto */
.np-contact-info { display: flex; flex-direction: column; gap: 28px; }
.np-contact-item { display: flex; align-items: flex-start; gap: 16px; }
.np-contact-icon { font-size: 22px; margin-top: 2px; }
.np-contact-label {
  display: block; font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: var(--np-sub); text-transform: uppercase;
  letter-spacing: 0.1em; margin-bottom: 5px;
}
.np-contact-value {
  font-family: 'Inter', sans-serif;
  font-size: 15px; font-weight: 600;
  color: var(--np-text) !important; text-decoration: none;
  transition: color 0.25s ease;
  word-break: break-all;
}
.np-contact-value:hover { color: var(--np-primary) !important; }
.np-contact-note {
  font-family: 'Inter', sans-serif;
  font-size: 14px; color: var(--np-sub); line-height: 1.7;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

/* Inputs / textarea / select */
.fluentform .ff-el-form-control {
  background: rgba(10,20,35,0.85) !important;
  border: 1px solid rgba(0,200,240,0.2) !important;
  border-radius: 8px !important;
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  padding: 12px 16px !important;
  transition: border-color 0.25s ease, box-shadow 0.25s ease !important;
  width: 100% !important;
}
.fluentform .ff-el-form-control:focus {
  border-color: var(--np-primary) !important;
  box-shadow: 0 0 0 3px rgba(0,200,240,0.12) !important;
  outline: none !important;
}
.fluentform .ff-el-form-control::placeholder { color: #7A9BB0 !important; }

/* Labels — especificidad máxima para ganar a cualquier CSS de plugin/tema */
html body .fluentform .ff-el-group .ff-el-input--label label,
html body .fluentform .ff-el-group label,
html body .fluentform label.ff-el-block-label,
html body .fluentform .ff-el-block-label,
html body .fluentform .ff-el-block-label span,
html body .fluentform .ff-el-input--label label {
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important; font-weight: 600 !important;
  letter-spacing: 0.03em !important;
}
.fluentform .ff-el-group { margin-bottom: 20px !important; }

/* Select — flecha custom */
.fluentform select.ff-el-form-control {
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2300C8F0' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 40px !important;
}
.fluentform select.ff-el-form-control option { background: #0D1B2A; color: var(--np-text); }

/* Botón submit */
.fluentform .ff-btn-submit {
  background: var(--np-primary) !important;
  color: var(--np-bg) !important;
  border: none !important;
  border-radius: 8px !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important; font-weight: 700 !important;
  padding: 13px 36px !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  letter-spacing: 0.02em !important;
}
.fluentform .ff-btn-submit:hover {
  background: #3DDAFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(0,200,240,0.3) !important;
}

/* Mensajes de error */
.fluentform .error.text-danger {
  color: #F87171 !important;
  font-size: 12px !important;
  font-family: 'Inter', sans-serif !important;
  margin-top: 4px !important;
}

/* Mensaje de éxito */
.fluentform .ff-message-success,
.ff-el-form-submitted .ff-message-success {
  background: rgba(0,200,240,0.07) !important;
  border: 1px solid rgba(0,200,240,0.28) !important;
  border-radius: 10px !important;
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
  padding: 22px 26px !important;
}

/* Override general — evitar negro por defecto en cualquier elemento del form */
.fluentform,
.fluentform .ff-el-group,
.fluentform .ff-t-container,
.fluentform .ff-t-cell,
.fluentform .ff-el-input--content,
.fluentform p {
  color: var(--np-text) !important;
}

/* Asterisco de requerido */
.fluentform .asterisk,
.fluentform label .asterisk,
.fluentform .ff-el-block-label .asterisk {
  color: var(--np-primary) !important;
}

/* Texto de ayuda */
.fluentform .ff-el-help-message {
  color: var(--np-sub) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
}

/* País — Choices.js dark theme */
.fluentform .choices .choices__inner {
  background: rgba(10,20,35,0.85) !important;
  border: 1px solid rgba(0,200,240,0.2) !important;
  border-radius: 8px !important;
  padding: 7px 40px 7px 12px !important;
  min-height: unset !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 15px !important;
}
.fluentform .choices .choices__list--single {
  padding: 0 !important;
}
.fluentform .choices .choices__list--single .choices__item {
  color: var(--np-text) !important;
}
.fluentform .choices .choices__placeholder {
  color: #7A9BB0 !important;
  opacity: 1 !important;
}
/* Flecha del dropdown */
.fluentform .choices[data-type*=select-one]::after {
  border-color: var(--np-primary) transparent transparent !important;
}
.fluentform .choices[data-type*=select-one].is-open::after {
  border-color: transparent transparent var(--np-primary) !important;
}
/* Lista desplegable */
.fluentform .choices .choices__list--dropdown {
  background: #0D1B2A !important;
  border: 1px solid rgba(0,200,240,0.25) !important;
  border-radius: 0 0 8px 8px !important;
  z-index: 99 !important;
}
.fluentform .choices .choices__list--dropdown .choices__item {
  color: var(--np-muted) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
  background: transparent !important;
}
.fluentform .choices .choices__list--dropdown .choices__item--selectable.is-highlighted {
  background: rgba(0,200,240,0.1) !important;
  color: var(--np-primary) !important;
}
/* Input de búsqueda dentro del dropdown */
.fluentform .choices .choices__input--cloned {
  background: transparent !important;
  color: var(--np-text) !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 14px !important;
}

/* Responsive contacto */
@media (max-width: 768px) {
  .np-contact-value { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   19. RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .elementor-top-section:nth-child(1) .elementor-column {
    width: 100% !important;
  }
  .np-photo-circle {
    width: 220px; height: 220px;
    margin-top: 40px;
  }

  /* Blog: 2 columnas en tablet */
  .np-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px;
  }

  /* Blog archivo: 2 columnas en tablet */
  .blog .ast-archive-layout-1,
  .blog .ast-grid-posts,
  .blog .posts-container,
  .blog .ast-row,
  .archive .ast-archive-layout-1 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  .elementor-top-section:nth-child(1)::after { height: 40px; }
  .np-photo-circle { width: 200px; height: 200px; }
  .ast-nav-menu { background-color: var(--np-bg2) !important; }

  /* Blog grid: 1 columna en móvil */
  .np-blog-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  /* Reducir padding lateral de secciones blog en móvil */
  .elementor-top-section:nth-child(5),
  .elementor-top-section:nth-child(6) {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Cards más compactas en móvil */
  .np-blog-img { height: 165px; }
  .np-blog-body { padding: 16px 18px 20px; gap: 8px; }
  .np-blog-body h3 { font-size: 15px; }
  .np-blog-excerpt { -webkit-line-clamp: 3; }

  /* Blog archivo: 1 columna en móvil */
  .blog .ast-archive-layout-1,
  .blog .ast-grid-posts,
  .blog .posts-container,
  .blog .ast-row,
  .archive .ast-archive-layout-1 {
    grid-template-columns: 1fr !important;
  }

  .elementor-top-section:nth-child(4) .elementor-row,
  .elementor-top-section:nth-child(8) .elementor-row {
    flex-wrap: wrap !important;
  }
  .elementor-top-section:nth-child(4) .elementor-column,
  .elementor-top-section:nth-child(8) .elementor-column {
    width: 100% !important;
  }
  .elementor-top-section:nth-child(4) .elementor-widget-heading {
    min-height: auto !important;
  }
  .elementor-top-section:nth-child(4) .elementor-column-wrap::before {
    font-size: 80px !important;
  }
}
