/* =========================================
   TOUP.ES — OVERRIDE & FIX
   Cargado DESPUÉS de style.css en todas las páginas
   ========================================= */

/* ── NAV — estilos inline en HTML son canónicos; este bloque es refuerzo ── */
/* Clases antiguas de footer logo — neutralizadas */
.footer-logo-mark, .footer-logo-text { display: none !important; }

@media (max-width: 900px) {
  nav { padding: 0 20px !important; }
  nav ul.nav-links:not(.open), nav .nav-phone { display: none !important; }
  nav ul.nav-links.open { display: flex !important; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #FFFFFF; border-bottom: 1px solid #E4E4E0; padding: 8px 28px 28px; gap: 0; align-items: flex-start; z-index: 9998; }
  nav ul.nav-links.open li { width: 100%; border-bottom: 1px solid #E4E4E0; }
  nav ul.nav-links.open a { display: block; padding: 18px 0 18px 4px; font-size: 16px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 500; color: #0C0C0C; }
  nav .nav-hamburger { display: flex !important; }
  nav a[href="/"] img, nav a[href="index.html"] img { height: 60px !important; }
}

/* ── FOOTER ── */
footer { background: #0C0C0C; padding: 64px 40px 40px; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 32px; }
.footer-logo img { height: 32px; }
.footer-nav { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-btn-primary { background: #1A6BFF; color: #FFFFFF; padding: 14px 28px; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: opacity 0.2s; }
.footer-btn-primary:hover { opacity: 0.9; color: #FFFFFF; }
.footer-btn-outline { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.3); padding: 14px 28px; border-radius: 100px; font-size: 14px; font-weight: 500; text-decoration: none; transition: border-color 0.2s; }
.footer-btn-outline:hover { border-color: #FFFFFF; color: #FFFFFF; }
.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); width: 100%; max-width: 800px; }
.footer-legal a { color: rgba(255,255,255,0.5); font-size: 12px; text-decoration: none; }
.footer-legal a:hover { color: rgba(255,255,255,0.85); }
.footer-seo { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-seo a { color: rgba(255,255,255,0.3); font-size: 11px; text-decoration: none; }
.footer-seo a:hover { color: rgba(255,255,255,0.6); }
.footer-copy { color: rgba(255,255,255,0.3); font-size: 12px; margin: 0; text-align: center; }

/* ── MOBILE: grids ── */
@media (max-width: 767px) {
  .cases-grid { grid-template-columns: 1fr !important; }
  .blog-grid { grid-template-columns: 1fr !important; }
  .diferencias-grid { grid-template-columns: 1fr !important; }
  .metrics-grid { grid-template-columns: 1fr !important; }
  .case-tags { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .case-tag { white-space: nowrap; flex-shrink: 0; }
  footer { padding: 48px 20px 32px; }
  .footer-inner { gap: 24px; }
}

/* ── TABLET: 2 columnas ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .cases-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .blog-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ── DESKTOP: 3 columnas ── */
@media (min-width: 1024px) {
  .cases-grid { grid-template-columns: repeat(3, 1fr) !important; }
}

/* ── CARD IMAGE HOVER ZOOM ── */
.case-card { overflow: hidden; }
.case-img {
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: block; width: 100%; height: 200px; object-fit: cover;
}
.case-card:hover .case-img { transform: scale(1.05) !important; }
.case-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(0,0,0,0.13); }

/* ── PROGRESS BARS ── */
.progress-bar-wrap { background: rgba(255,255,255,0.1); border-radius: 100px; height: 3px; overflow: hidden; margin-top: 18px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, #1a56ff, #60a5fa); border-radius: 100px; width: 0; transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1); }

/* ── METRIC CARD TOP BAR ── */
.metric-card { position: relative; overflow: hidden; }
.metric-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: #1a56ff; transform: scaleX(0); transform-origin: left; transition: transform 0.9s cubic-bezier(0.4, 0, 0.2, 1); }
.metric-card.bar-done::after { transform: scaleX(1); }

/* ── STAGGER PROBLEMA ── */
.problema-item { opacity: 1; transform: none; transition: opacity 0.5s, transform 0.5s; }
.problema-item.stagger-hidden { opacity: 0; transform: translateX(-20px); }
.problema-item.stagger-visible { opacity: 1; transform: translateX(0); }

/* ── SMOOTH SCROLL ── */
html { scroll-behavior: smooth; }

/* ── BLOG CARD IMG ── */
.blog-card-img { height: 180px; overflow: hidden; display: flex !important; align-items: center !important; justify-content: center !important; font-size: 52px; flex-shrink: 0; }

/* ── SEO PAGE CONTENT ── */
.seo-content { max-width: 1160px; margin: 0 auto; padding: 80px 40px; }
.seo-content h2 { font-family: 'Fraunces', serif; font-size: 32px; font-weight: 300; letter-spacing: -1px; margin-bottom: 16px; margin-top: 48px; color: #0C0C0C; }
.seo-content h2:first-child { margin-top: 0; }
.seo-content p { font-size: 16px; color: rgba(10,10,10,0.55); line-height: 1.85; margin-bottom: 16px; }
.seo-content ul { margin: 16px 0 24px 0; display: flex; flex-direction: column; gap: 10px; }
.seo-content li { font-size: 15px; color: rgba(10,10,10,0.6); padding-left: 20px; position: relative; line-height: 1.6; }
.seo-content li::before { content: '→'; position: absolute; left: 0; color: #1a56ff; font-weight: 700; }

/* ── BLOG POST ── */
.post-layout { max-width: 760px; margin: 0 auto; padding: 72px 40px; }
.post-layout h2 { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 300; letter-spacing: -0.5px; margin-top: 48px; margin-bottom: 14px; color: #0C0C0C; }
.post-layout h2:first-child { margin-top: 0; }
.post-layout p { font-size: 17px; color: rgba(10,10,10,0.58); line-height: 1.85; margin-bottom: 20px; }
.post-layout ul, .post-layout ol { margin: 0 0 24px 0; display: flex; flex-direction: column; gap: 10px; }
.post-layout li { font-size: 16px; color: rgba(10,10,10,0.6); padding-left: 22px; position: relative; line-height: 1.65; }
.post-layout li::before { content: '→'; position: absolute; left: 0; color: #1a56ff; font-weight: 700; }
.post-layout blockquote { border-left: 3px solid #1a56ff; padding: 16px 20px; background: #f7f6f3; border-radius: 0 8px 8px 0; margin: 32px 0; }
.post-layout blockquote p { color: rgba(10,10,10,0.7); font-style: italic; margin-bottom: 0; }

/* ── LEGAL CONTENT ── */
.legal-content { max-width: 760px; margin: 0 auto; padding: 72px 40px; }
.legal-content h2 { font-size: 22px; font-weight: 700; margin-top: 40px; margin-bottom: 12px; color: #0C0C0C; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { font-size: 15px; color: rgba(10,10,10,0.6); line-height: 1.8; margin-bottom: 12px; }
.legal-content ul { margin: 12px 0 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.legal-content li { font-size: 15px; color: rgba(10,10,10,0.6); line-height: 1.7; list-style: disc; }
.legal-content a { color: #1a56ff; }

/* ── RESPONSIVE GENERAL ── */
@media (max-width: 768px) {
  .seo-content { padding: 56px 20px; }
  .post-layout { padding: 48px 20px; }
  .legal-content { padding: 48px 20px; }
}
