/*
Theme Name: WePublish
Theme URI: https://www.publitas.com
Author: Anton Smolik
Author URI: https://publitas.com
Description: WePublish — Self-Serve Digital Publishing theme. Interactive digital catalog landing page powered by WordPress.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: wepublish
Tags: one-page, marketing, landing-page, custom-colors, custom-logo
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
  --wp-red: #D4283A;
  --wp-red-dark: #B01E2E;
  --wp-red-bright: #FF3D50;
  --wp-navy: #0F1724;
  --wp-navy-light: #162033;
  --wp-navy-mid: #1C2844;
  --wp-gray-50: #F8F9FB;
  --wp-gray-100: #F0F2F5;
  --wp-gray-200: #E2E5EA;
  --wp-gray-300: #C8CDD5;
  --wp-gray-400: #8B95A5;
  --wp-gray-500: #5F6B7A;
  --wp-gray-700: #2D3748;
  --wp-white: #FFFFFF;
  --wp-green: #16A34A;
  --wp-amber: #F59E0B;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--wp-gray-700);
  background: var(--wp-white);
  -webkit-font-smoothing: antialiased;
}

/* ─── NAV ─────────────────────────────────────────────────────────────────── */
.wp-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--wp-gray-200);
}
.wp-nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.wp-nav-logo {
  font-family: 'Fraunces', serif; font-weight: 700; font-size: 22px;
  color: var(--wp-navy); letter-spacing: -0.5px; text-decoration: none;
}
.wp-nav-logo span { color: var(--wp-red); }
.wp-nav-links { display: flex; gap: 32px; align-items: center; }
.wp-nav-links a {
  font-size: 14px; font-weight: 500; color: #313438;
  text-decoration: none; transition: color 0.2s;
}
.wp-nav-links a:hover { color: var(--wp-navy); }
.wp-nav-cta {
  background: var(--wp-red); color: white; border: none;
  padding: 10px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none;
}
.wp-nav-cta:hover { background: var(--wp-red-dark); transform: translateY(-1px); }

/* ─── HERO ────────────────────────────────────────────────────────────────── */
.wp-hero {
  background: linear-gradient(168deg, var(--wp-gray-50) 0%, #FFF 40%, #FEF2F2 100%);
  padding: 80px 24px 64px; position: relative; overflow: hidden;
}
.wp-hero::before {
  content: ''; position: absolute; top: -120px; right: -120px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(212,40,58,0.06) 0%, transparent 70%);
  border-radius: 50%;
}
.wp-hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0px; align-items: center;
}
.wp-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,40,58,0.08); color: var(--wp-red);
  font-size: 13px; font-weight: 600; padding: 6px 14px;
  border-radius: 100px; margin-bottom: 20px;
}
.wp-hero h1 {
  font-family: 'Fraunces', serif; font-size: 48px; line-height: 1.12;
  font-weight: 700; color: var(--wp-navy); letter-spacing: -1px; margin-bottom: 20px;
}
.wp-hero h1 em { font-style: normal; color: var(--wp-red); }
.wp-hero-sub {
  font-size: 18px; line-height: 1.65; color: var(--wp-gray-500);
  margin-bottom: 32px; max-width: 500px;
}
.wp-hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.wp-btn-primary {
  background: var(--wp-red); color: white; border: none;
  padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.wp-btn-primary:hover {
  background: var(--wp-red-dark); transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212,40,58,0.3);
}
.wp-btn-secondary {
  background: none; border: 2px solid var(--wp-gray-200); color: var(--wp-navy);
  padding: 12px 24px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
}
.wp-btn-secondary:hover { border-color: var(--wp-gray-300); background: var(--wp-gray-50); }
.wp-hero-note { font-size: 13px; color: var(--wp-gray-400); margin-top: 12px; }

/* Hero Visual / Browser Mockup */
.wp-hero-visual {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  min-height: 500px;
}
.wp-hero-visual-inner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.wp-hero-visual-inner { position: absolute; inset: 0; display: flex; flex-direction: column; }
.wp-hero-browser {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: var(--wp-navy-light); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.wp-hero-dot { width: 8px; height: 8px; border-radius: 50%; }
.wp-hero-urlbar {
  flex: 1; margin-left: 8px; background: rgba(255,255,255,0.06);
  border-radius: 4px; padding: 4px 10px; font-size: 11px;
  color: rgba(255,255,255,0.35); font-family: monospace;
}
.wp-hero-preview {
  flex: 1; display: grid; grid-template-columns: 1fr 1fr;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative; overflow: hidden;
}
.wp-hero-page {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; padding: 20px; position: relative;
}
.wp-hero-page::after {
  content: ''; position: absolute; right: 0; top: 10%; bottom: 10%;
  width: 1px; background: rgba(255,255,255,0.06);
}
.wp-hero-page:last-child::after { display: none; }
.wp-hero-swatch {
  width: 80%; aspect-ratio: 3/4;
  background: linear-gradient(145deg, rgba(212,40,58,0.15), rgba(212,40,58,0.05));
  border-radius: 8px; border: 1px solid rgba(255,255,255,0.08);
  position: relative; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 6px;
}
.wp-hero-swatch-line {
  width: 60%; height: 3px; border-radius: 2px; background: rgba(255,255,255,0.12);
}
.wp-hero-swatch-line.short { width: 40%; }
.wp-hero-hotspot {
  position: absolute; bottom: 12px; right: 12px; width: 28px; height: 28px;
  background: var(--wp-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(212,40,58,0.4); animation: wp-pulse 2s ease-in-out infinite;
}
@keyframes wp-pulse {
  0%,100% { box-shadow: 0 2px 8px rgba(212,40,58,0.4); }
  50% { box-shadow: 0 2px 16px rgba(212,40,58,0.7); }
}
.wp-hero-hotspot-dot { width: 6px; height: 6px; background: white; border-radius: 50%; }
.wp-hero-overlay {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  background: rgba(15,23,36,0.9); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 10px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
}
.wp-hero-overlay-thumb {
  width: 36px; height: 36px; border-radius: 6px;
  background: linear-gradient(135deg, var(--wp-red), #FF6B7A);
}
.wp-hero-overlay-text { display: flex; flex-direction: column; }
.wp-hero-overlay-name { font-size: 11px; font-weight: 600; color: white; }
.wp-hero-overlay-price { font-size: 10px; color: rgba(255,255,255,0.5); }
.wp-hero-overlay-btn {
  background: var(--wp-red); border: none; color: white; font-size: 9px;
  font-weight: 700; padding: 5px 10px; border-radius: 5px;
  cursor: pointer; font-family: inherit; white-space: nowrap;
}

/* ─── SOCIAL PROOF BAR ────────────────────────────────────────────────────── */
.wp-proof-bar {
  border-top: 1px solid var(--wp-gray-200);
  border-bottom: 1px solid var(--wp-gray-200);
  padding: 32px 24px; background: var(--wp-white);
}
.wp-proof-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.wp-proof-label { font-size: 13px; color: var(--wp-gray-400); font-weight: 500; white-space: nowrap; }
.wp-proof-logos { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.wp-proof-logo {
  font-size: 14px; font-weight: 700; color: var(--wp-gray-300);
  letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap;
}
.wp-proof-stats { display: flex; gap: 36px; }
.wp-proof-stat { text-align: center; }
.wp-proof-stat-num {
  font-family: 'Fraunces', serif; font-size: 24px; font-weight: 700; color: var(--wp-navy);
}
.wp-proof-stat-label { font-size: 11px; color: var(--wp-gray-400); font-weight: 500; margin-top: 2px; }

/* ─── SECTION HELPERS ─────────────────────────────────────────────────────── */
.wp-section { padding: 80px 24px; }
.wp-section-dark { background: var(--wp-navy); color: white; }
.wp-section-gray { background: var(--wp-gray-50); }
.wp-section-inner { max-width: 1200px; margin: 0 auto; }
.wp-section-header { text-align: center; max-width: 1200px; margin: 0 auto 56px; }
.wp-section-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--wp-red); margin-bottom: 12px;
}
.wp-section-dark .wp-section-label { color: var(--wp-red-bright); }
.wp-section-header h2 {
  font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700;
  color: var(--wp-navy); line-height: 1.2; letter-spacing: -0.5px; margin-bottom: 14px;
}
.wp-section-dark .wp-section-header h2 { color: white; }
.wp-section-header p { font-size: 16px; color: var(--wp-gray-500); line-height: 1.65; }
.wp-section-dark .wp-section-header p { color: rgba(255,255,255,0.55); }

/* ─── OUTCOMES ────────────────────────────────────────────────────────────── */
.wp-outcomes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.wp-outcome-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.wp-outcome-num {
  font-family: 'Fraunces', serif; font-size: 44px; font-weight: 700;
  color: var(--wp-red-bright); line-height: 1; margin-bottom: 4px;
}
.wp-outcome-label { font-size: 14px; color: #f6f6f6; font-weight: 500; line-height: 1.4; }
.wp-outcome-source { font-size: 13px; color: #a6a6a6; margin-top: 8px; }

/* ─── HOW IT WORKS ────────────────────────────────────────────────────────── */
.wp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; position: relative; }
.wp-steps::before {
  content: ''; position: absolute; top: 40px; left: 16.67%; right: 16.67%;
  height: 2px; background: var(--wp-gray-200); z-index: 0;
}
.wp-step { text-align: center; position: relative; z-index: 1; }
.wp-step-num {
  width: 80px; height: 80px; border-radius: 50%; background: var(--wp-gray-50);
  border: 2px solid var(--wp-gray-200); display: flex; align-items: center;
  justify-content: center; margin: 0 auto 20px;
}
.wp-step-num-text {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--wp-red);
}
.wp-step h3 { font-size: 18px; font-weight: 700; color: var(--wp-navy); margin-bottom: 8px; }
.wp-step p { font-size: 14px; color: var(--wp-gray-500); line-height: 1.6; max-width: 280px; margin: 0 auto; }
.wp-step-time {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: 12px; font-weight: 600; color: var(--wp-green);
  background: rgba(22,163,74,0.08); padding: 4px 10px; border-radius: 100px;
}

/* ─── FEATURES ────────────────────────────────────────────────────────────── */
.wp-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wp-feature {
  padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--wp-gray-200);
  background: var(--wp-white); transition: all 0.25s;
}
.wp-feature:hover {
  border-color: var(--wp-gray-300); box-shadow: var(--shadow-md); transform: translateY(-2px);
}
.wp-feature-icon {
  width: 44px; height: 44px; border-radius: 10px; background: rgba(212,40,58,0.06);
  color: var(--wp-red); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.wp-feature h3 { font-size: 16px; font-weight: 700; color: var(--wp-navy); margin-bottom: 6px; }
.wp-feature p { font-size: 14px; color: var(--wp-gray-500); line-height: 1.55; }
.wp-feature-tier {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 100px;
}
.wp-tier-bronze { background: #F5E6D3; color: #8B6914; }
.wp-tier-silver { background: #E8EBF0; color: #5A6577; }
.wp-tier-gold { background: #FEF3C7; color: #92400E; }

/* ─── CASE STUDIES ────────────────────────────────────────────────────────── */
.wp-cases { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.wp-case {
  border-radius: var(--radius-lg); border: 1px solid var(--wp-gray-200);
  overflow: hidden; background: var(--wp-white); transition: all 0.25s;
}
.wp-case:hover { box-shadow: var(--shadow-lg); }
.wp-case:first-child { grid-column: 1 / -1; }
.wp-case-stats { display: flex; gap: 0; background: var(--wp-navy); }
.wp-case-stat {
  flex: 1; text-align: center; padding: 20px 12px;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.wp-case-stat:last-child { border-right: none; }
.wp-case-stat-num {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700; color: var(--wp-red-bright);
}
.wp-case:first-child .wp-case-stat-num { font-size: 32px; }
.wp-case-stat-label { font-size: 13px; color: #afafaf; font-weight: 500; margin-top: 2px; }
.wp-case-body { padding: 24px; }
.wp-case-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.wp-case-company { font-size: 16px; font-weight: 700; color: var(--wp-navy); }
.wp-case-tag {
  font-size: 11px; font-weight: 600; color: var(--wp-gray-400);
  background: var(--wp-gray-100); padding: 3px 8px; border-radius: 4px;
}
.wp-case-quote {
  font-size: 14px; color: var(--wp-gray-500); line-height: 1.6;
  font-style: italic; margin-bottom: 12px;
}
.wp-case-person { font-size: 13px; font-weight: 600; color: var(--wp-gray-700); }
.wp-case-role { font-size: 12px; color: var(--wp-gray-400); }

/* ─── INTEGRATIONS ────────────────────────────────────────────────────────── */
.wp-integrations { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.wp-integrations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wp-integration-item {
  display: flex; align-items: center; gap: 12px; padding: 16px;
  border-radius: var(--radius); border: 1px solid var(--wp-gray-200);
  background: var(--wp-white); transition: border-color 0.2s;
}
.wp-integration-item:hover { border-color: var(--wp-gray-300); }
.wp-integration-dot {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: white; flex-shrink: 0;
}
.wp-integration-name { font-size: 13px; font-weight: 600; color: var(--wp-gray-700); }
.wp-integration-type { font-size: 11px; color: var(--wp-gray-400); }
.wp-integrations-text h3 {
  font-family: 'Fraunces', serif; font-size: 28px; font-weight: 700;
  color: var(--wp-navy); margin-bottom: 16px; line-height: 1.2;
}
.wp-integrations-text p {
  font-size: 15px; color: var(--wp-gray-500); line-height: 1.65; margin-bottom: 20px;
}

/* ─── PRINT VS DIGITAL ────────────────────────────────────────────────────── */
.wp-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: stretch; }
.wp-compare-card { border-radius: var(--radius-lg); padding: 36px; }
.wp-compare-old { background: var(--wp-gray-100); border: 1px solid var(--wp-gray-200); }
.wp-compare-new { background: var(--wp-navy); color: white; position: relative; overflow: hidden; }
.wp-compare-new::before {
  content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px;
  background: radial-gradient(circle, rgba(212,40,58,0.2) 0%, transparent 70%); border-radius: 50%;
}
.wp-compare-vs { display: flex; align-items: center; justify-content: center; }
.wp-compare-vs span {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700; color: var(--wp-gray-300);
}
.wp-compare-title { font-size: 20px; font-weight: 700; margin-bottom: 20px; }
.wp-compare-old .wp-compare-title { color: var(--wp-gray-400); }
.wp-compare-new .wp-compare-title { color: white; }
.wp-compare-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.wp-compare-list li { font-size: 14px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.wp-compare-old .wp-compare-list li { color: var(--wp-gray-400); }
.wp-compare-new .wp-compare-list li { color: rgba(255,255,255,0.8); }
.wp-compare-x { color: var(--wp-gray-300); font-weight: 700; flex-shrink: 0; }
.wp-compare-check { color: var(--wp-green); flex-shrink: 0; margin-top: 2px; }
.wp-compare-check svg { display: inline-block; vertical-align: middle; }

/* ─── USE CASES ───────────────────────────────────────────────────────────── */
.wp-usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.wp-usecase {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px;
  border-radius: var(--radius); border: 1px solid var(--wp-gray-200);
  background: var(--wp-white); transition: all 0.2s; cursor: default;
}
.wp-usecase:hover { border-color: var(--wp-red); background: rgba(212,40,58,0.02); }
.wp-usecase-icon { color: var(--wp-red); flex-shrink: 0; }
.wp-usecase h4 { font-size: 14px; font-weight: 600; color: var(--wp-navy); }
.wp-usecase p { font-size: 12px; color: var(--wp-gray-400); }

/* ─── TESTIMONIALS ────────────────────────────────────────────────────────── */
.wp-testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.wp-testimonial {
  padding: 28px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06);
}
.wp-testimonial-stars { display: flex; gap: 2px; color: var(--wp-amber); margin-bottom: 14px; }
.wp-testimonial-stars svg { fill: var(--wp-amber); stroke: var(--wp-amber); }
.wp-testimonial-text {
  font-size: 14px; color: rgba(255,255,255,0.7); line-height: 1.65;
  font-style: italic; margin-bottom: 16px;
}
.wp-testimonial-person { font-size: 14px; font-weight: 700; color: white; }
.wp-testimonial-role { font-size: 12px; color: #ababab; }

/* ─── TRUST ───────────────────────────────────────────────────────────────── */
.wp-trust { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.wp-trust-badge {
  display: flex; align-items: center; gap: 10px; padding: 14px 22px;
  border-radius: var(--radius); border: 1px solid var(--wp-gray-200); background: var(--wp-white);
}
.wp-trust-badge-icon { color: var(--wp-green); }
.wp-trust-badge-text { font-size: 13px; font-weight: 600; color: var(--wp-gray-700); }
.wp-trust-intro {
  text-align: center; font-size: 16px; color: var(--wp-gray-400);
  margin-bottom: 16px; font-weight: 500;
}

/* ─── PRICING ─────────────────────────────────────────────────────────────── */
.wp-pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.wp-pricing-card {
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03); padding: 32px; position: relative; transition: all 0.25s;
}
.wp-pricing-card:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.12); }
.wp-pricing-card.popular { border-color: var(--wp-red); background: rgba(212,40,58,0.06); }
.wp-pricing-popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--wp-red); color: white; font-size: 11px; font-weight: 700;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}
.wp-pricing-name { font-size: 20px; font-weight: 700; color: white; margin-bottom: 4px; }
.wp-pricing-tagline { font-size: 13px; color: #fafafa; margin-bottom: 24px; }
.wp-pricing-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.wp-pricing-currency { font-size: 20px; font-weight: 600; color: rgba(255,255,255,0.5); }
.wp-pricing-amount {
  font-family: 'Fraunces', serif; font-size: 48px; font-weight: 700; color: white; line-height: 1;
}
.wp-pricing-period { font-size: 14px; color: #ababab; }
.wp-pricing-annual { font-size: 12px; color: #ababab; margin-bottom: 24px; min-height: 18px; }
.wp-pricing-btn {
  width: 100%; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 700;
  cursor: pointer; font-family: inherit; transition: all 0.2s; border: none;
  margin-bottom: 24px; text-decoration: none; display: block; text-align: center;
}
.wp-pricing-btn-primary { background: var(--wp-red); color: white; }
.wp-pricing-btn-primary:hover { background: var(--wp-red-dark); color: white; }
.wp-pricing-btn-secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.12); }
.wp-pricing-btn-secondary:hover { background: rgba(255,255,255,0.12); }
.wp-pricing-features { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.wp-pricing-features li {
  font-size: 13px; color: #ababab; display: flex; align-items: center; gap: 8px;
}
.wp-pricing-features li svg { color: var(--wp-red-bright); flex-shrink: 0; }
.wp-pricing-toggle {
  display: flex; align-items: center; gap: 12px; justify-content: center; margin-bottom: 40px;
}
.wp-pricing-toggle span {
  font-size: 14px; color: #ababab; font-weight: 500; cursor: pointer;
}
.wp-pricing-toggle span.active { color: white; font-weight: 600; }
.wp-toggle-track {
  width: 48px; height: 26px; border-radius: 13px; background: rgba(255,255,255,0.15);
  cursor: pointer; position: relative; transition: background 0.2s;
}
.wp-toggle-track.on { background: var(--wp-red); }
.wp-toggle-thumb {
  position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: white; transition: transform 0.2s;
}
.wp-toggle-track.on .wp-toggle-thumb { transform: translateX(22px); }
.wp-pricing-save {
  font-size: 11px; font-weight: 700; color: var(--wp-green);
  background: rgba(22,163,74,0.15); padding: 2px 8px; border-radius: 4px;
}
.wp-pricing-enterprise {
  text-align: center; margin-top: 32px;
  font-size: 14px; color: rgba(255,255,255,0.4); line-height: 1.6;
}
.wp-pricing-enterprise a { color: var(--wp-red-bright); text-decoration: underline; }

/* ─── FAQ ─────────────────────────────────────────────────────────────────── */
.wp-faq-list { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.wp-faq-item { border-bottom: 1px solid var(--wp-gray-200); }
.wp-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 0; background: none; border: none; cursor: pointer;
  font-family: inherit; text-align: left;
}
.wp-faq-q span { font-size: 15px; font-weight: 600; color: var(--wp-navy); }
.wp-faq-q svg { color: var(--wp-gray-400); transition: transform 0.2s; flex-shrink: 0; }
.wp-faq-q.open svg { transform: rotate(180deg); }
.wp-faq-a {
  font-size: 14px; color: var(--wp-gray-500); line-height: 1.65;
  padding-bottom: 20px; display: none;
}
.wp-faq-a.open { display: block; }

/* ─── FOOTER CTA ──────────────────────────────────────────────────────────── */
.page-template-page-blogs-php .wp-footer-cta { text-align: center; padding: 80px 24px 80px; background: var(--wp-gray-50); }
.wp-footer-cta { text-align: center; padding: 0px 24px 80px; background: var(--wp-gray-50); }
.wp-footer-cta h2 {
  font-family: 'Fraunces', serif; font-size: 36px; font-weight: 700;
  color: var(--wp-navy); margin-bottom: 14px;
}
.wp-footer-cta p {
  font-size: 16px; color: var(--wp-gray-500); margin-bottom: 28px;
  max-width: 500px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.wp-footer-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ──────────────────────────────────────────────────────────────── */
.wp-site-footer { background: var(--wp-navy); padding: 48px 24px 32px; }
.wp-footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px;
}
.wp-footer-brand {
  font-family: 'Fraunces', serif; font-size: 20px; font-weight: 700;
  color: white; margin-bottom: 12px;
}
.wp-footer-brand span { color: var(--wp-red-bright); }
.wp-footer-desc { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.6; max-width: 280px; }
.wp-footer-col h4 {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: rgba(255,255,255,0.5); margin-bottom: 16px;
}
.wp-footer-col a {
  display: block; font-size: 13px; color: rgba(255,255,255,0.5);
  text-decoration: none; padding: 4px 0; transition: color 0.2s;
}
.wp-footer-col a:hover { color: white; }
.wp-footer-bottom {
  max-width: 1200px; margin: 32px auto 0; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.wp-footer-bottom span { font-size: 12px; color: #fafafa; }

/* ─── SVG ICONS ───────────────────────────────────────────────────────────── */
.wp-icon { display: inline-flex; align-items: center; justify-content: center; }

/* ─── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wp-hero-inner { grid-template-columns: 1fr; }
  .wp-hero h1 { font-size: 36px; }
  .wp-hero-visual { max-width: 480px; }
  .wp-outcomes { grid-template-columns: repeat(2, 1fr); }
  .wp-steps { grid-template-columns: 1fr; }
  .wp-steps::before { display: none; }
  .wp-features { grid-template-columns: 1fr; }
  .wp-cases { grid-template-columns: 1fr; }
  .wp-cases .wp-case:first-child { grid-column: auto; }
  .wp-integrations { grid-template-columns: 1fr; }
  .wp-integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .wp-compare { grid-template-columns: 1fr; }
  .wp-compare-vs { padding: 8px 0; }
  .wp-usecases { grid-template-columns: 1fr 1fr; }
  .wp-testimonials { grid-template-columns: 1fr; }
  .wp-pricing { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .wp-footer-inner { grid-template-columns: 1fr 1fr; }
  .wp-section-header h2 { font-size: 28px; }
  .wp-proof-inner { flex-direction: column; text-align: center; }
  .wp-nav-links { display: none; }
}
@media (max-width: 600px) {
  .wp-usecases { grid-template-columns: 1fr; }
  .wp-footer-inner { grid-template-columns: 1fr; }
  .wp-footer-bottom { flex-direction: column; }
  .wp-outcome-num {
    font-size: 32px!important;
  }
}

/* ─── NAV ACTIVE LINK ─────────────────────────────────────────────────────── */
.wp-nav-links a.active {
  color: var(--wp-navy);
  font-weight: 600;
}
.wp-nav-links a.active::after {
  content: '';
  display: block;
  height: 2px;
  background: var(--wp-red);
  border-radius: 2px;
  margin-top: 2px;
}

/* ─── HAMBURGER BUTTON ────────────────────────────────────────────────────── */
.wp-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.wp-nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--wp-navy);
  border-radius: 2px;
  transition: all 0.25s;
  transform-origin: center;
}
/* Hamburger → X when open */
.wp-nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.wp-nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.wp-nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── MOBILE MENU ─────────────────────────────────────────────────────────── */
.wp-nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--wp-white);
  border-top: 1px solid var(--wp-gray-200);
  padding: 8px 0 16px;
}
.wp-nav-mobile.open {
  display: flex;
}
.wp-nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--wp-gray-700);
  text-decoration: none;
  padding: 12px 24px;
  transition: background 0.15s;
  border-radius: 0;
}
.wp-nav-mobile a:hover {
  background: var(--wp-gray-50);
  color: var(--wp-navy);
}
.wp-nav-mobile a.wp-nav-cta-mobile {
  margin: 12px 24px 0;
  background: var(--wp-red);
  color: white;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  padding: 12px 24px;
}
.wp-nav-mobile a.wp-nav-cta-mobile:hover {
  background: var(--wp-red-dark);
}

/* ─── RESPONSIVE: mostrar hamburger ──────────────────────────────────────── */
@media (max-width: 900px) {
  .wp-nav-links { display: none; }
  .wp-nav-hamburger { display: flex; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLOG — Archive & Single Post
   Mismo sistema de diseño: Fraunces + DM Sans, paleta navy/red/gray
════════════════════════════════════════════════════════════════════════════ */

/* ── Wrapper general ─────────────────────────────────────────────────────── */
.wp-blog-wrap {
  background: var(--wp-white);
  min-height: 60vh;
}

/* ── Blog Header (archive) ───────────────────────────────────────────────── */
.wp-blog-header {
  background: linear-gradient(168deg, var(--wp-gray-50) 0%, #FFF 60%, #FEF2F2 100%);
  padding: 64px 24px 56px;
  border-bottom: 1px solid var(--wp-gray-200);
}
.wp-blog-header-inner {
  max-width: 1160px;
  margin: 0 auto;
}
.wp-blog-header .wp-section-label {
  margin-bottom: 12px;
}
.wp-blog-header h1 {
  font-family: 'Fraunces', serif;
  font-size: 42px;
  font-weight: 700;
  color: var(--wp-navy);
  letter-spacing: -0.8px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.wp-blog-header p {
  font-size: 17px;
  color: var(--wp-gray-500);
  line-height: 1.65;
  max-width: 600px;
}

/* ── Blog Inner ──────────────────────────────────────────────────────────── */
.wp-blog-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* ── Posts Grid ──────────────────────────────────────────────────────────── */
.wp-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 56px;
}
.wp-posts-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Post Card ───────────────────────────────────────────────────────────── */
.wp-post-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--wp-gray-200);
  background: var(--wp-white);
  overflow: hidden;
  transition: all 0.25s;
  display: flex;
  flex-direction: column;
}
.wp-post-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: var(--wp-gray-300);
}

/* Thumbnail */
.wp-post-thumb {
  display: block;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--wp-gray-100);
  text-decoration: none;
}
.wp-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}
.wp-post-card:hover .wp-post-thumb img {
  transform: scale(1.04);
}
.wp-post-thumb-placeholder {
  background: linear-gradient(135deg, var(--wp-gray-100), var(--wp-gray-50));
}
.wp-post-thumb-inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--wp-gray-300);
}

/* Card Body */
.wp-post-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Meta row */
.wp-post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.wp-post-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wp-red);
  background: rgba(212,40,58,0.07);
  padding: 3px 10px;
  border-radius: 100px;
  text-decoration: none;
  transition: background 0.2s;
}
.wp-post-cat:hover {
  background: rgba(212,40,58,0.14);
}
.wp-post-date {
  font-size: 12px;
  color: var(--wp-gray-400);
  font-weight: 500;
}
.wp-post-read-time {
  font-size: 12px;
  color: var(--wp-gray-400);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Post title */
.wp-post-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--wp-navy);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}
.wp-post-title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}
.wp-post-title a:hover { color: var(--wp-red); }

/* Excerpt */
.wp-post-excerpt {
  font-size: 14px;
  color: var(--wp-gray-500);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 16px;
}

/* Card footer */
.wp-post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--wp-gray-100);
  padding-top: 14px;
  margin-top: auto;
}
.wp-post-author {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--wp-gray-700);
}
.wp-post-avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50%;
}
.wp-post-read-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--wp-red);
  text-decoration: none;
  transition: gap 0.2s;
}
.wp-post-read-more:hover { gap: 8px; }

/* ── Pagination ──────────────────────────────────────────────────────────── */
.wp-pagination {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}
.wp-pagination .nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}
.wp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 14px;
  list-style: none;
  font-weight: 600;
  text-decoration: none;
  color: var(--wp-gray-700);
  transition: all 0.2s;
}
.wp-pagination .page-numbers:hover {
  border-color: var(--wp-red);
  color: var(--wp-red);
}
.wp-pagination .page-numbers.current {
  background: var(--wp-red);
  border-color: var(--wp-red);
  color: white;
}
.wp-pagination .page-numbers.dots {
  border: none;
  background: none;
}

/* ── No posts ────────────────────────────────────────────────────────────── */
.wp-no-posts {
  text-align: center;
  padding: 80px 24px;
  color: var(--wp-gray-400);
}
.wp-no-posts svg { margin-bottom: 16px; }
.wp-no-posts h2 {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  color: var(--wp-navy);
  margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════════════════
   SINGLE POST
════════════════════════════════════════════════════════════════════════════ */

/* ── Post Header ─────────────────────────────────────────────────────────── */
.wp-post-header {
  padding: 64px 24px 56px;
}
.wp-post-header-inner {
  max-width: 900px;
  margin: 0 auto;
}
.wp-post-header-inner p {
  font-size: 21px;
}
.wp-post-meta-large {
  margin-bottom: 16px;
}
.wp-post-header-title {
  font-family: 'Fraunces', serif;
  font-size: 44px;
  font-weight: 700;
  color: var(--wp-navy);
  letter-spacing: -1px;
  line-height: 1.12;
  margin-bottom: 18px;
}
.wp-post-header-sub {
  font-size: 18px;
  color: var(--wp-gray-500);
  line-height: 1.65;
  margin-bottom: 28px;
}
.wp-post-author-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.wp-post-avatar-lg {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50%;
}
.wp-post-author-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--wp-navy);
}
.wp-post-author-bio {
  font-size: 13px;
  color: var(--wp-gray-400);
}

/* ── Featured Image ──────────────────────────────────────────────────────── */
.wp-post-featured-img {
}
.wp-post-featured-inner {
  max-width: 900px;
  margin: 0 auto;
  max-height: 520px;
  overflow: hidden;
}
.wp-post-featured-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 15px;
}

/* ── Post Content ────────────────────────────────────────────────────────── */
.wp-post-content-wrap {
  max-width: 940px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

/* Typography del contenido */
.wp-post-content {
  font-size: 17px;
  line-height: 1.75;
  color: var(--wp-gray-700);
}
.wp-post-content h1,
.wp-post-content h2,
.wp-post-content h3,
.wp-post-content h4,
.wp-post-content h5,
.wp-post-content h6 {
  font-family: 'Fraunces', serif;
  color: var(--wp-navy);
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 2em 0 0.6em;
}
.wp-post-content h2 { font-size: 30px; }
.wp-post-content h3 { font-size: 24px; }
.wp-post-content h4 { font-size: 20px; }
.wp-post-content p { margin-bottom: 1.5em; }
.wp-post-content a {
  color: var(--wp-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.wp-post-content a:hover { color: var(--wp-red-dark); }
.wp-post-content ul,
.wp-post-content ol {
  padding-left: 1.5em;
  margin-bottom: 1.5em;
}
.wp-post-content li { margin-bottom: 0.4em; }
.wp-post-content blockquote {
  border-left: 4px solid var(--wp-red);
  padding: 16px 24px;
  margin: 2em 0;
  background: var(--wp-gray-50);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--wp-gray-700);
}
.wp-post-content blockquote p { margin: 0; font-size: 18px; }
.wp-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 1em 0;
}
.wp-post-content pre,
.wp-post-content code {
  font-family: monospace;
  background: var(--wp-navy);
  color: #e2e8f0;
  border-radius: var(--radius);
}
.wp-post-content pre {
  padding: 20px 24px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.6;
  margin: 1.5em 0;
}
.wp-post-content code {
  padding: 2px 6px;
  font-size: 0.9em;
}
.wp-post-content pre code {
  background: none;
  padding: 0;
}
.wp-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 15px;
}
.wp-post-content th {
  background: var(--wp-navy);
  color: white;
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
}
.wp-post-content td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--wp-gray-200);
}
.wp-post-content tr:last-child td { border-bottom: none; }
.wp-post-content tr:nth-child(even) td { background: var(--wp-gray-50); }

/* ── Tags ────────────────────────────────────────────────────────────────── */
.wp-post-tags {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 28px 0;
  border-top: 1px solid var(--wp-gray-200);
  border-bottom: 1px solid var(--wp-gray-200);
  margin: 40px 0;
  color: var(--wp-gray-400);
}
.wp-post-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--wp-gray-500);
  background: var(--wp-gray-100);
  padding: 4px 12px;
  border-radius: 100px;
  text-decoration: none;
  transition: all 0.2s;
}
.wp-post-tag:hover {
  background: rgba(212,40,58,0.08);
  color: var(--wp-red);
}

/* ── Author Box ──────────────────────────────────────────────────────────── */
.wp-author-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--wp-gray-50);
  border: 1px solid var(--wp-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 40px 0;
}
.wp-author-box-avatar {
  width: 64px !important;
  height: 64px !important;
  border-radius: 50%;
  flex-shrink: 0;
}
.wp-author-box-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wp-gray-400);
  margin-bottom: 4px;
}
.wp-author-box-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--wp-navy);
  margin-bottom: 6px;
}
.wp-author-box-bio {
  font-size: 14px;
  color: var(--wp-gray-500);
  line-height: 1.6;
  margin: 0;
}

/* ── Post Navigation ─────────────────────────────────────────────────────── */
.wp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 48px;
}
.wp-post-nav-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--wp-gray-200);
  text-decoration: none;
  transition: all 0.2s;
  background: var(--wp-white);
}
.wp-post-nav-item:hover {
  border-color: var(--wp-red);
  box-shadow: var(--shadow-md);
}
.wp-post-nav-prev { align-items: flex-start; }
.wp-post-nav-next { align-items: flex-end; text-align: right; }
.wp-post-nav-label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--wp-red);
}
.wp-post-nav-prev .wp-post-nav-label svg { transform: rotate(180deg); }
.wp-post-nav-title {
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--wp-navy);
  line-height: 1.3;
}

/* ── Related Posts ───────────────────────────────────────────────────────── */
.wp-related-posts {
  background: var(--wp-gray-50);
  border-top: 1px solid var(--wp-gray-200);
  padding: 64px 24px;
}
.wp-related-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.wp-related-posts .wp-section-header {
  text-align: left;
  margin-bottom: 36px;
}
.wp-related-posts .wp-section-header h2 {
  font-size: 28px;
}

.wp-singular h5 {
  font-size: 20px;
}

.wp-post-author-row, .wp-author-box {
  display: none;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .wp-posts-grid       { grid-template-columns: repeat(2, 1fr); }
  .wp-posts-grid-3     { grid-template-columns: repeat(2, 1fr); }
  .wp-post-header-title { font-size: 32px; }
  .wp-blog-header h1   { font-size: 30px; }
  .wp-post-nav         { grid-template-columns: 1fr; }
  .wp-post-nav-next    { align-items: flex-start; text-align: left; }
  .wp-nav-logo {
    margin-left: 14px;
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  .wp-posts-grid       { grid-template-columns: 1fr; }
  .wp-posts-grid-3     { grid-template-columns: 1fr; }
  .wp-post-header-title { font-size: 30px; }
  .wp-post-content     { font-size: 16px; }
  .wp-author-box       { flex-direction: column; }
}

/* ══════════════════════════════════════════════════════
   FEATURED CARD FIX — máxima especificidad
══════════════════════════════════════════════════════ */

.wp-blog-inner article.wp-post-featured-card {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: 1fr !important;
  border-radius: 16px !important;
  border: 1px solid #E2E5EA !important;
  overflow: hidden !important;
  background: #fff !important;
  margin-bottom: 40px !important;
  padding: 0 !important;
  float: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Thumbnail — columna izquierda */
.wp-blog-inner article.wp-post-featured-card > a.wp-post-featured-card-thumb {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  overflow: hidden !important;
  min-height: 320px !important;
  height: 100% !important;
  background: #F0F2F5 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
  aspect-ratio: unset !important;
}

/* picture tag dentro del thumb */
.wp-blog-inner article.wp-post-featured-card > a.wp-post-featured-card-thumb picture {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* img dentro del thumb */
.wp-blog-inner article.wp-post-featured-card > a.wp-post-featured-card-thumb img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  max-width: none !important;
  transition: transform 0.4s ease !important;
}

.wp-blog-inner article.wp-post-featured-card:hover > a.wp-post-featured-card-thumb img {
  transform: scale(1.03) !important;
}

/* Body — columna derecha */
.wp-blog-inner article.wp-post-featured-card > .wp-post-featured-card-body {
  grid-column: 2 !important;
  grid-row: 1 !important;
  padding: 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 16px !important;
  background: #fff !important;
  box-sizing: border-box !important;
}

/* Title */
.wp-blog-inner article.wp-post-featured-card .wp-post-featured-title {
  font-family: 'Fraunces', serif !important;
  font-size: 26px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #0F1724 !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
}
.wp-blog-inner article.wp-post-featured-card .wp-post-featured-title a {
  text-decoration: none !important;
  color: #0F1724 !important;
}
.wp-blog-inner article.wp-post-featured-card .wp-post-featured-title a:hover {
  color: #D4283A !important;
}

/* Excerpt */
.wp-blog-inner article.wp-post-featured-card .wp-post-featured-excerpt {
  font-size: 15px !important;
  color: #5F6B7A !important;
  line-height: 1.65 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Responsive */
@media (max-width: 900px) {
  .wp-blog-inner article.wp-post-featured-card {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }
  .wp-blog-inner article.wp-post-featured-card > a.wp-post-featured-card-thumb {
    grid-column: 1 !important;
    grid-row: 1 !important;
    min-height: 220px !important;
  }
  .wp-blog-inner article.wp-post-featured-card > .wp-post-featured-card-body {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding: 24px !important;
  }
  .wp-blog-inner article.wp-post-featured-card .wp-post-featured-title {
    font-size: 20px !important;
  }
}

.wp-post-author {
  display: none!important;
}

/* ── Pagination fix ──────────────────────────────────────────────────────── */

.wp-pagination {
  display: flex !important;
  justify-content: center !important;
  margin-top: 40px !important;
  margin-bottom: 0 !important;
}

.wp-pagination .nav-links {
  display: flex !important;
  gap: 6px !important;
  align-items: center !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ── Weglot Language Switcher ── */
.wp-nav-lang {
  display: flex;
  align-items: center;
  margin-left: 12px;
}

.wp-nav-lang .country-selector {
  position: relative;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.wp-nav-lang .wgcurrent {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 4px;
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.wp-nav-lang .wgcurrent:hover {
  background: rgba(0, 0, 0, 0.06);
}

.wp-nav-lang ul {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 6px 0;
  min-width: 80px;
  z-index: 9999;
}

.wp-nav-lang .country-selector:not(.closed) ul {
  display: block;
}

.wp-nav-lang ul li a {
  display: block;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-decoration: none;
  transition: background 0.15s;
}

.wp-nav-lang ul li a:hover {
  background: #f3f4f6;
  color: #111827;
}

/* Mobile: muestra inline en vez de dropdown */
.wp-nav-lang--mobile {
  margin: 16px 0 0;
  justify-content: flex-start;
}

.wp-nav-lang--mobile .country-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.wp-nav-lang--mobile ul {
  display: flex !important;
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  gap: 8px;
  flex-wrap: wrap;
}

.wp-nav-lang--mobile ul li a {
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
}

/* ── Weglot: solo códigos, sin banderas, sin marco ── */

.wp-nav-lang .country-selector {
  border: none;
  background: none;
  box-shadow: none;
  padding: 0;
}

/* Ocultar banderas */
.wp-nav-lang .wg-flag {
  display: none !important;
}

/* Ítem activo (idioma actual) */
.wp-nav-lang .wgcurrent {
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: none;
  gap: 0;
}

/* Flecha del dropdown */
.wp-nav-lang .wgcurrent::after {
  content: ' ▾';
  font-size: 11px;
}

/* Dropdown list */
.wp-nav-lang ul {
  min-width: 60px;
  padding: 4px 0;
}

.wp-nav-lang ul li a {
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 500;
}

/* Mobile: fila compacta */
.wp-nav-lang--mobile .country-selector {
  flex-wrap: wrap;
  gap: 4px;
}

.wp-nav-lang--mobile ul li a {
  border: none;
  padding: 4px 6px;
}

.weglot-flags.flag-0.wg-en>a:before, .weglot-flags.flag-0.wg-en>span:before, .weglot-flags.flag-0.wg-de>a:before, .weglot-flags.flag-0.wg-de>span:before {
  display: none!important;
}

.country-selector.weglot-dropdown .wgcurrent {
  border: 0px;
}

/* ── Weglot Language Switcher ── */

.wp-nav-lang {
  display: flex;
  align-items: center;
}

.wp-nav-lang .country-selector {
  position: relative !important;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  cursor: pointer !important;
}

/* Ocultar checkbox */
.wp-nav-lang .weglot_choice {
  display: none !important;
}

/* Ocultar banderas */
.wp-nav-lang .wg-flag,
.wp-nav-lang [class*="flag-"] {
  display: none !important;
}

/* Idioma activo — EN */
.wp-nav-lang .wgcurrent {
  display: flex !important;
  align-items: center !important;
  padding: 4px 6px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #1a1a2e !important;
  border: none !important;
  background: none !important;
  text-decoration: none !important;
}

/* Dropdown cerrado por defecto */
.wp-nav-lang .country-selector ul {
  display: none !important;
  position: absolute !important;
  top: calc(100% + 0px) !important;
  right: 0 !important;
  list-style: none !important;
  margin: 0 !important;
  padding: 8px 0 !important;
  min-width: 52px !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.10) !important;
  z-index: 9999 !important;
}

/* Abrir con hover */
.wp-nav-lang .country-selector:hover ul {
  display: block !important;
}

.wp-nav-lang .country-selector ul li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* Links de idiomas */
.wp-nav-lang .country-selector ul li a {
  display: block !important;
  padding: 8px 8px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #374151 !important;
  text-decoration: none !important;
  background: none !important;
  border: none !important;
  line-height: 1.4 !important;
  text-align: center !important;
}

.wp-nav-lang .country-selector ul li a:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.country-selector.weglot-dropdown .wgcurrent a, .country-selector.weglot-dropdown .wgcurrent span {
  padding-right: 0px;
}

.country-selector.weglot-dropdown .wgcurrent:after {
  display: none!important;
}

.country-selector.weglot-dropdown a, .country-selector.weglot-dropdown span {
  font-weight: 600!important;
}

.wp-nav-lang .country-selector {
  margin-left: -35px;
}

/* Ocultar h1 hasta que JS esté listo */
.wp-hero h1 {
  opacity: 0;
}
.wp-hero h1.is-ready {
  opacity: 1;
}

.wp-hero h1 .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: wordUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes wordUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Em: color rojo fijo, sin shimmer */
.wp-hero h1 em {
  font-style: inherit;
  color: var(--wp-red);
}

@media (max-width: 900px) {
  .wp-nav-actions {
    width: 60px !important;
    display: flex !important;
    height: 20px !important;
    margin-top: -15px !important;
  }

  .wp-nav-hamburger {
    margin-left: 10px !important;
  }
}

.wp-nav-actions {
    display: none;
}

@media (max-width: 768px) {
    .wp-nav-actions {
        display: block;
    }
}

@media (max-width: 900px) {
  .wp-integrations-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Evitar que el último item solo se estire */
  .wp-integration-item:last-child {
    grid-column: span 1;
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  .wp-nav-logo {
    margin-top: 5px;
  }
}

.home .wp-footer-cta {
  padding-top: 60px;
}

@media (max-width: 768px) {
  .wp-hero-inner {
    display: flex;
    flex-direction: column;
  }
  .wp-hero-visual {
    order: -1;
  }
}

@media (max-width: 768px) {
  .wp-hero-inner {
    display: flex;
    flex-direction: column;
  }
  .wp-hero-visual {
    order: -1;
    min-height: 300px;
  }
  .wp-hero-visual-inner {
    position: relative;  /* ← sacamos el absolute en mobile */
    inset: auto;
    margin-top: 0;
    width: 100%;
    height: 450px;
    margin-bottom: 40px;
  }
  .wp-hero-visual-inner img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
  }
}