/* ==============================================
   MOBILE RESPONSIVE FIX v2 - josegaspard.dev
   Complete rewrite for proper mobile experience
   ============================================== */

/* ---- MOBILE MENU DRAWER ---- */
/* Force the close button (X) visible inside mobile drawer */
#mobile-drawer-close {
  display: flex !important;
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  width: 44px !important;
  height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.1) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  color: #fff !important;
  font-size: 1.5rem !important;
  z-index: 1010 !important;
  line-height: 1 !important;
}

/* Mobile menu backdrop overlay */
#mobile-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 998;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
#mobile-menu-backdrop.active {
  display: block;
}

/* ---- NAV VISIBILITY ---- */
@media (max-width: 768px) {
  .hamburger, .nav-hamburger {
    display: flex !important;
  }
  .nav-desktop, nav.nav-desktop, .nav-links {
    display: none !important;
  }
}
@media (min-width: 769px) {
  .hamburger, .nav-hamburger {
    display: none !important;
  }
}

/* ---- GLOBAL ---- */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
  }
  .glow-orb { display: none !important; }

  /* Container */
  .container {
    padding: 0 16px !important;
  }

  /* Sections */
  .section {
    padding: 48px 0 !important;
  }
  /* CRITICAL: First section on ALL subpages needs space below fixed header (56px) */
  /* Uses :first-of-type since sections are direct children of body */
  section.section:first-of-type,
  main > section:first-child,
  main > .section:first-child {
    padding-top: 80px !important;
  }
  .section-header {
    margin-bottom: 32px !important;
  }
  .section-title {
    font-size: 1.5rem !important;
    letter-spacing: -0.02em !important;
    line-height: 1.2 !important;
  }
  .section-subtitle {
    font-size: 0.88rem !important;
    line-height: 1.6 !important;
  }
  .section-badge {
    font-size: 0.75rem !important;
    padding: 5px 14px !important;
  }

  /* Glass cards no hover effect on mobile */
  .glass-card:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  /* Buttons */
  .btn-primary, .btn-secondary {
    padding: 12px 24px !important;
    font-size: 0.88rem !important;
  }
  .btn-lg {
    padding: 14px 28px !important;
    font-size: 0.9rem !important;
  }

  /* Grids */
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* ---- PROOF BAR ---- */
  .proof-bar {
    display: none !important;
  }

  /* ---- TRUST BADGES ---- */
  .trust-badges {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    padding: 16px 12px !important;
  }
  .trust-badge {
    font-size: 0.8rem !important;
  }
  .trust-badge-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.9rem !important;
  }

  /* ==========================================
     HOME PAGE - HERO SECTION
     ========================================== */
  .hero-section {
    padding-top: 72px !important;
    padding-bottom: 24px !important;
    min-height: auto !important;
  }
  .hero-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    text-align: center !important;
  }
  .hero-grid > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-grid > div:last-child {
    order: -1 !important;
    display: flex !important;
    justify-content: center !important;
  }
  .hero-photo {
    width: 80px !important;
    height: 80px !important;
  }
  .hero-glow {
    width: 100px !important;
    height: 100px !important;
  }
  .hero-badge {
    font-size: 0.8rem !important;
    padding: 5px 12px !important;
    margin-bottom: 12px !important;
  }
  .hero-h1 {
    font-size: 1.7rem !important;
    margin-bottom: 12px !important;
    line-height: 1.15 !important;
  }
  .hero-subtitle {
    font-size: 0.85rem !important;
    margin-bottom: 14px !important;
    line-height: 1.6 !important;
  }
  .hero-trust {
    font-size: 0.8rem !important;
    margin-bottom: 20px !important;
    gap: 8px !important;
    justify-content: center !important;
  }
  .hero-ctas {
    margin-bottom: 24px !important;
    gap: 10px !important;
    justify-content: center !important;
    width: 100% !important;
    flex-direction: column !important;
  }
  .hero-ctas a {
    padding: 12px 20px !important;
    font-size: 0.88rem !important;
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .hero-stats-row {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
    text-align: center !important;
  }
  .hero-stats-row > div > div:first-child {
    font-size: 1.1rem !important;
  }
  .hero-stats-row > div > div:last-child {
    font-size: 0.8rem !important;
  }

  /* ---- BRAND LOGOS FIX ---- */
  .hero-logos {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }
  .hero-logos span:first-child {
    display: none !important;
  }
  .hero-logos img,
  .hero-logos img.brand-logo-anim,
  img.brand-logo-anim,
  img[src*="brands/"] {
    height: 24px !important;
    max-height: 24px !important;
    max-width: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    -webkit-transform: none !important;
    transform: none !important;
    filter: brightness(0) invert(0.5) !important;
    border-radius: 0 !important;
  }

  /* ==========================================
     ABOUT SECTION (#about on home) - IMPROVED
     ========================================== */
  #about .grid-2,
  .grid-2[style*="gap:56px"] {
    gap: 20px !important;
  }
  /* Reduce paragraph text and add breathing room */
  #about .grid-2 > div p,
  #about p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    margin-bottom: 14px !important;
  }
  /* Make section header compact */
  #about .section-header {
    margin-bottom: 24px !important;
  }
  /* Logros destacados - compact card-style */
  .achievement-list {
    gap: 6px !important;
  }
  .achievement-item {
    font-size: 0.82rem !important;
    gap: 8px !important;
    padding: 8px 0 !important;
    line-height: 1.45 !important;
  }
  .achievement-item span:last-child {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }
  .achievement-check {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }
  /* Logros heading smaller */
  #about h3,
  .grid-2 h3 {
    font-size: 1rem !important;
    margin-bottom: 14px !important;
  }

  /* ==========================================
     EXPERIENCE / TIMELINE
     ========================================== */
  .timeline {
    padding-left: 22px !important;
  }
  .timeline::before, .timeline:before {
    left: 5px !important;
  }
  .timeline-item::before, .timeline-item:before {
    left: -20px !important;
    width: 10px !important;
    height: 10px !important;
  }
  .timeline-item {
    padding-bottom: 24px !important;
  }
  .timeline-company { font-size: 0.95rem !important; }
  .timeline-role { font-size: 0.82rem !important; }
  .timeline-period { font-size: 0.8rem !important; }
  .timeline-desc {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }

  /* ==========================================
     SERVICES CARDS
     ========================================== */
  .service-card {
    padding: 20px 16px !important;
  }
  .service-card h3 {
    font-size: 0.95rem !important;
  }
  .service-card p {
    font-size: 0.82rem !important;
    line-height: 1.6 !important;
  }
  .service-number {
    font-size: 0.8rem !important;
  }

  /* ==========================================
     METHOD / COMPARATIVA TABLE
     ========================================== */
  .method-columns {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .method-columns > div {
    padding: 20px 16px !important;
    margin-top: 0 !important;
  }
  .method-columns > div:nth-child(2) {
    order: -1 !important;
    margin-top: 8px !important;
  }
  .method-columns > div h3 {
    font-size: 1rem !important;
  }
  .method-columns > div p {
    font-size: 0.82rem !important;
    min-height: auto !important;
  }

  /* TABLE FIX - make it fit without scrolling */
  .glass-card:has(table) {
    overflow-x: auto !important;
  }
  table {
    min-width: 0 !important;
    width: 100% !important;
    font-size: 0.8rem !important;
    table-layout: fixed !important;
  }
  table th, table td {
    padding: 8px 6px !important;
    font-size: 0.8rem !important;
    word-break: break-word !important;
    overflow-wrap: break-word !important;
  }
  table th {
    font-size: 0.8rem !important;
  }
  /* First column wider */
  table th:first-child, table td:first-child {
    width: 40% !important;
  }
  /* Checkmark/X columns equal */
  table th:not(:first-child), table td:not(:first-child) {
    width: 20% !important;
    text-align: center !important;
  }
  /* Force table parent to not overflow */
  .glass-card {
    overflow-x: auto !important;
    max-width: 100% !important;
  }

  /* Comparativa heading */
  h3[style*="font-size:1.3rem"] {
    font-size: 1.05rem !important;
  }

  /* Advantage grid */
  .advantage-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .advantage-grid .glass-card {
    padding: 20px 16px !important;
  }
  .advantage-grid h4 {
    font-size: 0.92rem !important;
  }
  .advantage-grid p {
    font-size: 0.82rem !important;
  }

  /* ==========================================
     PORTFOLIO / YAKUPARK / WARNER SHOWCASES
     ========================================== */
  .yakupark-showcase {
    flex-direction: column-reverse !important;
    gap: 20px !important;
  }
  .yakupark-showcase > div:last-child {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
  }

  /* Fix ALL inline flex showcases with fixed widths */
  section div[style*="display:flex"][style*="gap:32px"][style*="align-items:stretch"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  div[style*="width:320px"][style*="flex-shrink:0"] {
    width: 100% !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    flex-shrink: 1 !important;
  }
  div[style*="max-width:1000px"] {
    max-width: 100% !important;
  }
  div[style*="aspect-ratio:9/16"] {
    max-height: 400px !important;
  }

  /* ==========================================
     ALL IMAGES - respect container bounds
     ========================================== */
  img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Portfolio/project card images (NOT brand logos) */
  .glass-card img:not(.brand-logo-anim):not([src*="brands/"]),
  .blog-card img,
  .blog-card-cover img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 8px !important;
  }
  /* Conference/event images - stack vertically */
  .event-card img,
  section img[style*="border-radius"] {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Any image grid/row - stack on mobile */
  div[style*="display:grid"][style*="repeat(3"] img,
  div[style*="display:grid"][style*="repeat(auto"] img,
  div[style*="display:flex"] > div > img {
    max-width: 100% !important;
    height: auto !important;
  }
  /* Image grids - single column on mobile */
  div[style*="grid-template-columns:repeat(3"],
  div[style*="grid-template-columns: repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  div[style*="grid-template-columns:repeat(auto-fit"],
  div[style*="grid-template-columns: repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  /* ==========================================
     CONFERENCE / SLIDER IMAGES
     ========================================== */
  .slider-border {
    max-width: 100% !important;
    overflow: hidden !important;
  }
  .slider-border img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    border-radius: 12px !important;
  }
  /* Warner/conference showcase images */
  .event-card {
    padding: 24px 16px !important;
  }
  .event-card img {
    width: 100% !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }

  /* ==========================================
     HIGHLIGHT / STAT CARDS
     ========================================== */
  .highlight-card {
    padding: 28px 16px !important;
  }
  .stat-card {
    padding: 20px 16px !important;
  }
  .stat-value {
    font-size: 2rem !important;
  }
  .stat-label {
    font-size: 0.75rem !important;
  }
  /* Metric cards grid */
  .metric-card {
    padding: 16px !important;
  }
  .metric-card .metric-icon {
    width: 36px !important;
    height: 36px !important;
    font-size: 1rem !important;
  }

  /* ==========================================
     TESTIMONIALS
     ========================================== */
  .testimonial-card {
    padding: 20px 16px !important;
  }
  .testimonial-quote {
    font-size: 0.88rem !important;
    line-height: 1.7 !important;
    margin-bottom: 16px !important;
    padding-left: 14px !important;
  }
  .testimonial-author { font-size: 0.88rem !important; }
  .testimonial-position { font-size: 0.78rem !important; }

  /* ==========================================
     TECH STACK / SKILL BADGES
     ========================================== */
  .skill-badge {
    padding: 8px 14px !important;
    font-size: 0.78rem !important;
  }
  div[style*="flex-direction:column"][style*="gap:44px"] {
    gap: 28px !important;
  }

  /* ==========================================
     FAQ
     ========================================== */
  .faq-item { margin-bottom: 8px !important; }
  .faq-question {
    padding: 14px 16px !important;
    font-size: 0.88rem !important;
  }
  .faq-answer p { font-size: 0.82rem !important; }
  .faq-item.active .faq-answer {
    padding: 0 16px 14px !important;
  }

  /* ==========================================
     CONTACT
     ========================================== */
  #contact .grid-2 { gap: 28px !important; }
  div[style*="padding-left:40px"] {
    padding-left: 0 !important;
  }
  .form-input, .form-select, .form-textarea {
    padding: 14px 16px !important;
    font-size: 0.9rem !important;
  }
  .contact-info-item {
    margin-bottom: 18px !important;
    gap: 12px !important;
  }
  .contact-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1rem !important;
  }

  /* ==========================================
     CTA SECTION
     ========================================== */
  .cta-section {
    padding: 48px 0 !important;
  }
  .cta-section h2 {
    font-size: 1.4rem !important;
  }
  .cta-section p {
    font-size: 0.88rem !important;
    margin-bottom: 24px !important;
    padding: 0 8px !important;
  }
  .cta-section div[style*="display:flex"][style*="gap:16px"] {
    flex-direction: column !important;
    width: 100% !important;
    padding: 0 16px !important;
  }
  .cta-section .btn {
    width: 100% !important;
    justify-content: center !important;
    text-align: center !important;
  }

  /* ==========================================
     FOOTER
     ========================================== */
  footer .container > div:first-child {
    grid-template-columns: 1fr 1fr !important;
    gap: 20px !important;
  }
  footer .container > div:first-child > div:first-child {
    grid-column: 1 / -1 !important;
  }
  footer div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }

  /* ==========================================
     NOTIFICATION DROPDOWN
     ========================================== */
  #notif-dropdown {
    width: calc(100vw - 32px) !important;
    right: -40px !important;
  }

  /* WhatsApp float */
  #wa-float {
    bottom: 16px !important;
    right: 16px !important;
    width: 52px !important;
    height: 52px !important;
  }
  #wa-float svg {
    width: 26px !important;
    height: 26px !important;
  }

  /* Slider border animations off */
  .slider-border::before {
    display: none !important;
  }

  /* ==========================================
     ABOUT PAGE HERO (separate page /about/)
     ========================================== */
  /* CRITICAL: push hero down so photo isn't behind fixed header */
  section.hero-section,
  .hero-section,
  section.section.hero-section {
    padding-top: 90px !important;
    min-height: auto !important;
  }
  section.hero-section > .container,
  .hero-section > .container,
  .hero-section > .container[style*="grid"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .hero-section > .container > div:first-child {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
  }
  .hero-section > .container > div:last-child {
    order: -1 !important;
    display: flex !important;
    justify-content: center !important;
  }
  /* About page hero image - removed forced sizing */
  /* About page hero title */
  .hero-section h1 {
    font-size: 1.45rem !important;
    line-height: 1.2 !important;
    text-align: center !important;
  }
  /* About page hero subtitle */
  .hero-section > .container > div:first-child > p {
    font-size: 0.88rem !important;
    line-height: 1.65 !important;
    text-align: center !important;
  }
  /* About page hero CTAs */
  .hero-section div[style*="display:flex"][style*="gap:16px"][style*="flex-wrap"],
  .hero-section div[style*="display:flex"][style*="gap:16px"] {
    flex-direction: column !important;
    width: 100% !important;
  }
  .hero-section div[style*="display:flex"][style*="gap:16px"] a {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }

  /* About page grids */
  div[style*="grid-template-columns:repeat(auto-fit"] {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  /* Fix 3-column grids set inline */
  div[style*="grid-template-columns:repeat(3"] {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

/* ---- EXTRA SMALL (< 480px) ---- */
@media (max-width: 480px) {
  .container { padding: 0 12px !important; }
  .section { padding: 32px 0 !important; }
  .section-header { margin-bottom: 20px !important; }
  .section-title { font-size: 1.3rem !important; }
  .section-subtitle { font-size: 0.82rem !important; }

  .hero-h1 { font-size: 1.5rem !important; }
  .hero-subtitle { font-size: 0.8rem !important; }
  .hero-photo { width: 70px !important; height: 70px !important; }

  .hero-section h1 { font-size: 1.35rem !important; }

  .trust-badges {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .skill-badge {
    padding: 6px 10px !important;
    font-size: 0.8rem !important;
  }

  table { min-width: 480px !important; }

  .cta-section { padding: 36px 0 !important; }
  .cta-section h2 { font-size: 1.2rem !important; }

  footer { padding: 28px 0 14px !important; }
  footer .container > div:first-child {
    grid-template-columns: 1fr !important;
  }
}

/* ---- TABLET (769 - 1024) ---- */
@media (min-width: 769px) and (max-width: 1024px) {
  .method-columns {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .method-columns > div p { min-height: auto !important; }
  .grid-2[style*="gap:56px"] { gap: 32px !important; }
  div[style*="padding-left:40px"] { padding-left: 20px !important; }
}

/* ==========================================
   HERO PHOTO + BRAND LOGOS - FINAL FIX
   ========================================== */
@media (max-width: 768px) {
  .worked-with-label {
    display: none !important;
  }
  .hero-photo {
    width: 100px !important;
    height: 100px !important;
  }
  .hero-glow {
    width: 120px !important;
    height: 120px !important;
  }
  /* Brand logos - flex wrap row */
  .hero-logos {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    gap: 12px 16px !important;
    justify-content: center !important;
    align-items: center !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
  .hero-logos img,
  .hero-logos img.brand-logo-anim,
  img.brand-logo-anim,
  img[src*="brands/"] {
    height: 24px !important;
    max-height: 24px !important;
    max-width: 80px !important;
    width: auto !important;
    object-fit: contain !important;
    -webkit-transform: none !important;
    transform: none !important;
    filter: brightness(0) invert(0.5) !important;
    border-radius: 0 !important;
  }
  .hero-photo {
    width: 100px !important;
    height: 100px !important;
  }
  .hero-glow {
    width: 120px !important;
    height: 120px !important;
  }
}
@media (max-width: 480px) {
  .hero-photo {
    width: 90px !important;
    height: 90px !important;
  }
  img.brand-logo-anim,
  img[src*="brands/"] {
    height: 20px !important;
    max-height: 20px !important;
    max-width: 70px !important;
    border-radius: 0 !important;
  }
}

/* ==========================================
   PERFORMANCE: Reduced Motion + Mobile Glow
   ========================================== */
@media (prefers-reduced-motion: reduce) {
  .glow-orb, .glow-orb-1, .glow-orb-2, .glow-orb-3 {
    animation: none !important;
  }
  .slider-border::before {
    animation: none !important;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Reduce glow orbs on mobile for better INP */
@media (max-width: 768px) {
  .glow-orb, .glow-orb-1, .glow-orb-2, .glow-orb-3 {
    width: 200px !important;
    height: 200px !important;
    filter: blur(60px) !important;
    animation: none !important;
  }
  header {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(3,7,18,0.92) !important;
  }
}

/* ==========================================
   FOOTER RESPONSIVE - v6 upgrade
   ========================================== */
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 32px !important;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 24px !important;
  }
  .footer-grid > div:first-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
  }
  .footer-grid > div:first-child > div {
    justify-content: center !important;
  }
  .footer-grid > div:first-child p {
    max-width: 400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1 !important;
    text-align: center !important;
  }
  .footer-grid > div:last-child > div {
    align-items: center !important;
  }
  .footer-grid > div:last-child a[href="/contact/"] {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  footer div[style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 8px !important;
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .footer-grid > div {
    text-align: center !important;
  }
  .footer-grid nav {
    align-items: center !important;
  }
}

/* Footer link hover effects */
footer a:not([style*="background"]):hover {
  color: #3b82f6 !important;
}
footer .footer-grid a:hover {
  color: #60a5fa !important;
}

/* ==========================================
   BLOG POST: CHECKLIST & CUSTOM ELEMENTS
   ========================================== */
.resumen-clave, blockquote.key-takeaway {
  background: rgba(59,130,246,0.06) !important;
  border-left: 4px solid #3b82f6 !important;
  padding: 24px 28px !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 24px 0 32px !important;
  font-size: 0.92rem !important;
  line-height: 1.75 !important;
  color: var(--text-secondary, #9ca3af) !important;
}
.resumen-clave strong, blockquote.key-takeaway strong {
  color: var(--text-primary, #e5e7eb) !important;
}

.seo-checklist {
  margin: 24px 0;
}

.checklist-category {
  margin: 32px 0 16px;
  padding: 12px 20px;
  background: rgba(59,130,246,0.08);
  border-radius: 12px;
  border: 1px solid rgba(59,130,246,0.15);
}
.checklist-category h2, .checklist-category h3 {
  margin: 0 !important;
  font-size: 1.1rem !important;
  color: var(--text-primary, #e5e7eb) !important;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin: 6px 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  cursor: pointer;
  transition: all 0.2s;
}
.checklist-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(59,130,246,0.15);
}
.checklist-item.checked {
  opacity: 0.5;
}
.checklist-item.checked .check-label {
  text-decoration: line-through;
}

.check-box {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 2px;
  font-size: 12px;
  color: transparent;
}
.checklist-item.checked .check-box {
  background: #3b82f6;
  border-color: #3b82f6;
  color: #fff;
}

.check-label {
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary, #9ca3af);
}
.check-label strong {
  color: var(--text-primary, #e5e7eb);
}

.cta-box {
  margin: 40px 0;
  padding: 32px;
  background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(6,182,212,0.06));
  border: 1px solid rgba(59,130,246,0.15);
  border-radius: 16px;
  text-align: center;
}
.cta-box h3 {
  color: var(--text-primary, #e5e7eb) !important;
  margin-bottom: 12px !important;
}
.cta-box p {
  color: var(--text-secondary, #9ca3af) !important;
  margin-bottom: 20px !important;
}
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, #f59e0b, #ea580c);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 8px 32px rgba(245,158,11,0.2);
  transition: all 0.3s;
}
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(245,158,11,0.3);
}

.faq-section {
  margin: 40px 0;
}
.faq-section details {
  margin-bottom: 12px;
  padding: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  cursor: pointer;
}
.faq-section details[open] {
  border-color: rgba(59,130,246,0.15);
}
.faq-section summary {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary, #e5e7eb);
  list-style: none;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::before {
  content: "+";
  display: inline-block;
  width: 20px;
  font-weight: 700;
  color: #3b82f6;
  margin-right: 8px;
}
details[open] > summary::before {
  content: "−";
}

.post-content {
  color: var(--text-secondary, #9ca3af);
  font-size: 1.02rem;
  line-height: 1.85;
}
.post-content h2 {
  color: var(--text-primary, #e5e7eb) !important;
  font-size: 1.35rem !important;
  margin-top: 40px !important;
  margin-bottom: 16px !important;
}
.post-content h3 {
  color: var(--text-primary, #d1d5db) !important;
  font-size: 1.1rem !important;
  margin-top: 28px !important;
  margin-bottom: 12px !important;
}
.post-content p {
  margin-bottom: 16px;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}
.post-content table th {
  background: rgba(59,130,246,0.1);
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text-primary, #e5e7eb);
  border-bottom: 2px solid rgba(59,130,246,0.2);
}
.post-content table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-secondary, #9ca3af);
}
.post-content table tr:hover td {
  background: rgba(255,255,255,0.02);
}
.post-content ul, .post-content ol {
  padding-left: 20px;
  margin-bottom: 16px;
}
.post-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}
.post-content a {
  color: #3b82f6;
  text-decoration: none;
}
.post-content a:hover {
  text-decoration: underline;
}
.post-content blockquote {
  background: rgba(59,130,246,0.06);
  border-left: 4px solid #3b82f6;
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 24px 0;
}

/* Blog post article tables - override for all blog posts */
.blog-article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
  overflow-x: auto;
  display: block;
}
.blog-article-content table th {
  background: rgba(59,130,246,0.1);
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  color: #e5e7eb;
  border-bottom: 2px solid rgba(59,130,246,0.2);
  white-space: nowrap;
}
.blog-article-content table td {
  padding: 8px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.blog-article-content table tr:hover td {
  background: rgba(255,255,255,0.02);
}

/* Service page hero spacing */
.section:first-of-type {
  padding-top: 100px;
}

/* FAQ details global styling */
.blog-article-content details {
  margin-bottom: 10px;
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
}
.blog-article-content details summary {
  font-weight: 600;
  color: #e5e7eb;
  cursor: pointer;
}
.blog-article-content details[open] {
  border-color: rgba(59,130,246,0.15);
}

/* ==========================================
   PORTFOLIO PAGE FIXES
   ========================================== */
.pf-hero h1 {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  font-style: normal !important;
  font-size: clamp(2.2rem, 5vw, 3.2rem) !important;
  font-weight: 900 !important;
  letter-spacing: -0.03em !important;
  background: linear-gradient(135deg, #fff 30%, #60a5fa) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
.pf-hero p {
  font-family: "Inter", system-ui, -apple-system, sans-serif !important;
  font-style: normal !important;
}

/* Force uniform card heights */
.pf-card {
  display: flex !important;
  flex-direction: column !important;
}
.pf-card-img {
  height: 200px !important;
  min-height: 200px !important;
  max-height: 200px !important;
}
.pf-card-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}
.pf-card-body {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}
.pf-desc {
  flex: 1 !important;
}

/* ==========================================
   SERVICE PAGES HERO SPACING
   ========================================== */
/* The hero content on service pages is NOT in a <section> tag.
   It's in standalone divs after the nav. Force padding on body > first content */
body > .proof-bar,
body > div[style*="text-align:center"]:not([style*="position:fixed"]),
body > div[style*="padding:"] {
  margin-top: 80px;
}

/* More reliable: target all service page content that follows the header */
header[style*="position:fixed"] ~ section:first-of-type,
header[style*="position:fixed"] ~ div:not([style*="position:fixed"]):not([style*="transform:translateX"]):not(#notif-wrapper):not(#wa-float) + section:first-of-type {
  padding-top: 120px !important;
}

/* Nuclear option for service subpages - the inline proof-bar divs */
.proof-bar {
  margin-top: 70px !important;
}

/* If there's no proof-bar, the first section needs padding */
body > section:first-of-type,
body > main > section:first-of-type {
  padding-top: 120px !important;
}


/* ==========================================
   BLOG LAYOUT: force 2-column on desktop/tablet
   ========================================== */
@media (min-width: 769px) {
  .blog-layout {
    display: grid !important;
    grid-template-columns: 1fr 300px !important;
    gap: 40px !important;
    align-items: start !important;
  }
}
@media (max-width: 768px) {
  .blog-layout {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  .blog-sidebar {
    display: none !important;
  }
}

/* CWV móvil 2026-07-06: cortar paint costoso */
@media (max-width:768px){
  .glow-orb,[class*=glow]{filter:none!important;animation:none!important;opacity:.25!important}
  *{animation-duration:.01ms!important;animation-iteration-count:1!important}
}
