
/* =============================================================
   IMPPULSA — WordPress + GeneratePress + GenerateBlocks
   Custom CSS (Versión Final: Título -> Foto -> Extracto)
   ============================================================= */

/* ----- GOOGLE FONTS ----- */
400;500;600;700;800;900&family=Inter:wght@300;400;500;600;700&display=swap');

/* ----- GENERAL & RESET ----- */
body {
  background-color: #0A0A0F !important;
  color: #F0F0F5 !important;
  font-family: 'Inter', sans-serif !important;
  margin: 0;
  padding: 0;
}
.site-content, .content-area, .entry-content, #page, #content {
  background-color: #0A0A0F !important;
}
a { color: #E8323D; text-decoration: none; }
a:hover { color: #C0101B; }
img { max-width: 100%; height: auto; }

/* ----- UTILITIES ----- */
.gradient-text, .imp-gradient {
  background: linear-gradient(135deg, #E8323D, #C0101B, #D4A853);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gold { color: #D4A853 !important; }
.text-red { color: #C0101B !important; }
.text-teal { color: #2DD4BF !important; }

/* ----- GLASS CARD BASE ----- */
.glass-card, .imp-card {
  background: #14141E;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
.glass-card:hover, .imp-card:hover {
  border-color: rgba(192, 16, 27, 0.3);
  box-shadow: 0 8px 40px rgba(192, 16, 27, 0.15);
  transform: translateY(-4px);
}

/* ----- SECTION BADGES ----- */
.section-badge, .imp-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(192, 16, 27, 0.3);
  color: #E8323D;
  background: rgba(192, 16, 27, 0.08);
  margin-bottom: 16px;
}
.section-badge--gold, .imp-badge-gold {
  border-color: rgba(212, 168, 83, 0.3);
  color: #D4A853;
  background: rgba(212, 168, 83, 0.08);
}
.section-badge--teal, .imp-badge-teal {
  border-color: rgba(45, 212, 191, 0.3);
  color: #2DD4BF;
  background: rgba(45, 212, 191, 0.08);
}

/* ----- BOTONES ----- */
.imp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
}
.imp-btn-red { background: #C0101B; color: #fff; }
.imp-btn-red:hover { background: #8A0C14; color: #fff; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(192, 16, 27, 0.3); }
.imp-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.2); }
.imp-btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: #fff; }
.imp-btn-teal { background: #2DD4BF; color: #0A0A0F; }
.imp-btn-teal:hover { background: #26b5a3; color: #0A0A0F; transform: translateY(-2px); }
.imp-btn-gold { background: transparent; color: #D4A853; border: 1px solid rgba(212,168,83,0.3); }
.imp-btn-gold:hover { border-color: #D4A853; color: #D4A853; }

/* ----- HEADER & NAV ----- */
.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}
.site-header.header-scrolled {
  background: rgba(10, 10, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.main-navigation .main-nav ul li a {
  color: #B0B0C0;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}
.main-navigation .main-nav ul li a:hover,
.main-navigation .main-nav ul li.current-menu-item a {
  color: #E8323D;
}
.menu-item-cta a {
  background: #C0101B !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
  transition: all 0.3s ease !important;
}
.menu-item-cta a:hover {
  background: #8A0C14 !important;
  transform: translateY(-1px);
}

.imp-custom-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
  padding: 0;
}
.imp-custom-nav.imp-nav--scrolled {
  background: rgba(10, 10, 15, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.imp-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}
.imp-nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.imp-nav__logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #F0F0F5;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.imp-nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50px;
  padding: 6px 8px;
}
.imp-nav__link {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  color: #B0B0C0;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 50px;
  transition: all 0.2s ease;
}
.imp-nav__link:hover {
  color: #F0F0F5;
  background: rgba(255,255,255,0.06);
}
.imp-nav__link--active {
  color: #E8323D !important;
  background: rgba(232,50,61,0.08);
}
.imp-nav__cta {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff !important;
  background: #C0101B;
  padding: 8px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s ease;
}
.imp-nav__cta:hover {
  background: #8A0C14;
  color: #fff;
  transform: translateY(-1px);
}
.imp-nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 10px;
  cursor: pointer;
}
.imp-nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #F0F0F5;
  transition: all 0.3s ease;
}
.imp-nav__toggle--active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.imp-nav__toggle--active span:nth-child(2) { opacity: 0; }
.imp-nav__toggle--active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 767px) {
  .imp-nav__toggle { display: flex; }
  .imp-nav__links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 0;
    border: none;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 16px 24px;
    gap: 4px;
  }
  .imp-nav__links--open { display: flex; }
  .imp-nav__link, .imp-nav__cta {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
  }
}

/* ----- FOOTER ----- */
.site-info { display: none !important; }
.imp-footer {
  background: #0A0A0F;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 0;
  color: #B0B0C0;
  font-family: 'Inter', sans-serif;
}
.imp-footer__inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.imp-footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.imp-footer__brand { max-width: 300px; }
.imp-footer__logo { margin-bottom: 16px; }
.imp-footer__logo-text {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 1.4rem;
  color: #F0F0F5;
  text-shadow: 0 0 15px rgba(255,255,255,0.2);
}
.imp-footer__desc { font-size: 0.85rem; line-height: 1.6; color: #808095; margin-bottom: 20px; }
.imp-footer__social { display: flex; gap: 12px; }
.imp-footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #B0B0C0;
  transition: all 0.3s ease;
  text-decoration: none;
}
.imp-footer__social a:hover {
  background: rgba(232,50,61,0.1);
  border-color: rgba(232,50,61,0.3);
  color: #E8323D;
}
.imp-footer__col h4 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: #F0F0F5;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.imp-footer__col a, .imp-footer__col span {
  display: block;
  font-size: 0.85rem;
  color: #808095;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s ease;
  line-height: 1.5;
}
.imp-footer__col a:hover { color: #E8323D; }
.imp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 0.8rem;
  color: #505065;
  flex-wrap: wrap;
  gap: 12px;
}
.imp-footer__legal { display: flex; gap: 20px; }
.imp-footer__legal a { color: #505065; text-decoration: none; font-size: 0.8rem; transition: color 0.2s ease; }
.imp-footer__legal a:hover { color: #E8323D; }

@media (max-width: 767px) {
  .imp-footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .imp-footer__brand { grid-column: 1 / -1; max-width: 100%; }
  .imp-footer__bottom { flex-direction: column; text-align: center; }
}

/* ----- HERO - HOME ----- */
.imp-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}
.imp-hero video.hero-bg-video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  transform: translate(-50%, -50%);
  filter: grayscale(100%) contrast(1.2);
  opacity: 0.2;
  z-index: 0;
  object-fit: cover;
}
.imp-hero .gb-inside-container {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}
.imp-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.imp-hero .gb-button {
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 14px 28px;
  transition: all 0.3s ease;
}
.imp-hero .gb-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(192, 16, 27, 0.3);
}

/* ----- SECCIONES HOME ----- */
.imp-services .glass-card { padding: 32px 24px; height: 100%; }
.imp-services .service-icon { font-size: 2.5rem; margin-bottom: 16px; display: block; }
.imp-services .glass-card h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.25rem; color: #F0F0F5; margin-bottom: 12px; }
.imp-services .glass-card p { font-size: 0.875rem; color: #B0B0C0; line-height: 1.6; }

.imp-marquee-wrap, .imp-clients .marquee-wrapper { overflow: hidden; width: 100%; }
.imp-marquee, .imp-clients .marquee-track { display: flex; animation: impMarquee 30s linear infinite; gap: 60px; white-space: nowrap; }
.imp-marquee span, .imp-clients .marquee-track span { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 0.95rem; color: #707088; letter-spacing: 0.04em; opacity: 0.6; flex-shrink: 0; transition: opacity 0.3s; }
.imp-marquee span:hover, .imp-clients .marquee-track span:hover { opacity: 1; color: #F0F0F5; }
@keyframes impMarquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.imp-faq details { border-bottom: 1px solid rgba(255,255,255,0.06); padding: 16px 0; }
.imp-faq summary { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.15rem; color: #F0F0F5; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 4px 0; }
.imp-faq summary::-webkit-details-marker { display: none; }
.imp-faq summary::after { content: '+'; font-size: 1.5rem; color: #C0101B; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 16px; }
.imp-faq details[open] summary::after { transform: rotate(45deg); }
.imp-faq details p { color: #B0B0C0; line-height: 1.7; padding: 16px 0; margin: 0; }

.imp-cta-contact img { border: 2px solid rgba(192, 16, 27, 0.3); border-radius: 50%; }

/* ===================================================================
   IMPPULSA — BLOG & CATEGORIAS (DISEÑO FINAL ORDENADO)
   =================================================================== */

/* 1. ELIMINAR SIDEBAR Y ANCHO COMPLETO */
body.blog #right-sidebar, body.archive #right-sidebar, body.single-post #right-sidebar,
body.blog .sidebar, body.archive .sidebar, body.single-post .sidebar {
  display: none !important;
}
body.blog .site-content .content-area, body.archive .site-content .content-area,
body.single-post .site-content .content-area {
  width: 100% !important; max-width: 100% !important;
}

/* 2. OCULTAR ENCABEZADOS POR DEFECTO Y METADATOS (Fecha y Autor) */
body.blog .page-header, body.archive .page-header,
body.archive .page-title,
body.blog .entry-meta, body.archive .entry-meta,
body.blog .posted-on, body.archive .posted-on,
body.blog .byline, body.archive .byline {
  display: none !important;
}

/* 3. FONDOS TRANSPARENTES */
body.blog .site-content, body.blog .inside-article,
body.archive .site-content, body.archive .inside-article,
body.blog .separate-containers .inside-article,
body.archive .separate-containers .inside-article {
  background: transparent !important;
}

/* 4. GRID DE TARJETAS (3 Columnas Desktop) */
body.blog .site-main, body.archive .site-main {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 32px !important;
  max-width: 1200px !important;
  margin: 40px auto 60px !important;
  padding: 0 20px !important;
}
body.blog .site-main > .paging-navigation,
body.archive .site-main > .paging-navigation {
  grid-column: 1 / -1 !important;
}

/* 5. TARJETAS GLASS */
body.blog article.post, body.archive article.post {
  background: #14141E !important;
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  margin: 0 !important;
}
body.blog article.post:hover, body.archive article.post:hover {
  border-color: rgba(192, 16, 27, 0.4) !important;
  box-shadow: 0 12px 40px rgba(192, 16, 27, 0.15) !important;
  transform: translateY(-6px) !important;
}

/* 6. CUERPO DE LA TARJETA (Flex contenedor con orden personalizado) */
body.blog article.post .inside-article, body.archive article.post .inside-article {
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
}

/* 7. ⭐️ 1º ELEMENTO: TÍTULO DEL POST (ARRIBA) */
body.blog article.post .entry-header, body.archive article.post .entry-header {
  display: block !important;
  order: 1 !important;
  margin: 0 0 16px 0 !important;
}
body.blog article.post h2.entry-title, body.archive article.post h2.entry-title,
body.blog article.post .entry-title, body.archive article.post .entry-title {
  display: block !important;
  font-family: 'Outfit', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.22rem !important;
  line-height: 1.35 !important;
  margin: 0 !important;
}
body.blog article.post .entry-title a, body.archive article.post .entry-title a {
  color: #F0F0F5 !important;
  text-decoration: none !important;
  transition: color 0.2s ease !important;
}
body.blog article.post .entry-title a:hover, body.archive article.post .entry-title a:hover {
  color: #E8323D !important;
}

/* 8. ⭐️ 2º ELEMENTO: FOTO DESTACADA (EN MEDIO) */
body.blog article.post .post-image, body.blog article.post .featured-image,
body.archive article.post .post-image, body.archive article.post .featured-image {
  width: 100% !important;
  height: 200px !important;
  overflow: hidden !important;
  margin: 0 0 16px 0 !important;
  order: 2 !important;
  border-radius: 10px !important;
}
body.blog article.post .post-image img, body.blog article.post .featured-image img,
body.archive article.post .post-image img, body.archive article.post .featured-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transition: transform 0.4s ease !important;
}
body.blog article.post:hover .post-image img, body.blog article.post:hover .featured-image img {
  transform: scale(1.06) !important;
}

/* 9. ⭐️ 3º ELEMENTO: EXTRACTO (ABAJO) */
body.blog article.post .entry-summary, body.archive article.post .entry-summary {
  display: block !important;
  font-family: 'Inter', sans-serif !important;
  font-size: 0.92rem !important;
  color: #8A8A9E !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  order: 3 !important;
}

/* 10. PAGINACION */
body.blog .paging-navigation, body.archive .paging-navigation {
  text-align: center !important;
  padding: 50px 20px !important;
  background: transparent !important;
}
body.blog .paging-navigation a, body.archive .paging-navigation a {
  font-family: 'Outfit', sans-serif !important;
  font-weight: 600 !important;
  color: #E8323D !important;
  text-decoration: none !important;
  padding: 10px 24px !important;
  border: 1px solid rgba(192, 16, 27, 0.3) !important;
  border-radius: 50px !important;
  transition: all 0.3s ease !important;
}
body.blog .paging-navigation a:hover, body.archive .paging-navigation a:hover {
  background: rgba(192, 16, 27, 0.12) !important;
  border-color: #E8323D !important;
}

/* 11. RESPONSIVE GRID */
@media (max-width: 1024px) {
  body.blog .site-main, body.archive .site-main {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 640px) {
  body.blog .site-main, body.archive .site-main {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    padding: 0 16px !important;
  }
}

/* 12. ENTRADA INDIVIDUAL (SINGLE POST) */
body.single-post .entry-header { display: block !important; padding: 120px 0 30px; max-width: 800px; margin: 0 auto; }
body.single-post .entry-title { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.8rem); color: #F0F0F5; line-height: 1.2; }
body.single-post .inside-article { max-width: 800px; margin: 0 auto; padding: 0 20px !important; }
body.single-post .entry-content > p:first-child > a[href*="/blog/"] { display: none !important; }


