/*
Theme Name: Promociones
Template: rehub-theme
*/

/* ============================================================
   ECOCHANCE – PÁGINA DE PROMOCIONES
   Ajustes: logo grande, texto compacto, banners corregidos
   ============================================================ */

/* ------------------------------------------------------------
   VARIABLES
------------------------------------------------------------ */
.page-id-17510 .ec-widget {
  --bg: #ffffff;
  --ink: #111217;
  --muted: #5f6677;
  --brand: #0b5c2b;
  --brand-hover: #e28743;
  --card: #f7f8fa;
  --line: #e6e8ef;
  --shadow: 0 6px 20px rgba(17, 18, 23, .08);
  --radius: 14px;
  --container: 1200px;
  --decor-green: rgba(11, 92, 43, .1);
  --decor-ochre: rgba(226, 135, 67, .1);
}

/* ------------------------------------------------------------
   BASE DEL WIDGET
------------------------------------------------------------ */
.page-id-17510 .ec-widget {
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, Arial, sans-serif;
  line-height: 1.6;
  padding: 20px 0;
}

.page-id-17510 .ec-widget a {
  color: var(--brand);
  text-decoration: none;
}

.page-id-17510 .ec-widget img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0;
  padding: 0;
}

/* ------------------------------------------------------------
   ZOOM GLOBAL (excepto logos)
------------------------------------------------------------ */
.page-id-17510 .ec-widget a img {
  transition: transform .4s ease;
}

.page-id-17510 .ec-widget a:hover img {
  transform: scale(1.05);
}

/* Excepción: logos NO hacen zoom */
.page-id-17510 .ec-widget .ec-brand-logo-container a:hover img,
.page-id-17510 .ec-widget .ec-brand-header .ec-brand-logo a:hover img {
  transform: none;
}

/* ------------------------------------------------------------
   CONTENEDORES
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------------------------------------------------
   HERO (cabecera horizontal)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-hero {
  background: #fff;
  padding: 60px 0 12px;
  position: relative;
}

.page-id-17510 .ec-widget .ec-hero-top {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}

.page-id-17510 .ec-widget .ec-hero-text {
  flex: 1;
}

.page-id-17510 .ec-widget .ec-hero-text h2 {
  font-size: 30px;
  margin-bottom: 12px;
  color: var(--brand);
  position: relative;
  padding-bottom: 12px;
}

.page-id-17510 .ec-widget .ec-hero-text h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: var(--brand-hover);
  border-radius: 2px;
}

.page-id-17510 .ec-widget .ec-hero-note {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
}

.page-id-17510 .ec-widget .ec-hero-image {
  flex-shrink: 0;
  max-width: 300px;
}

/* ------------------------------------------------------------
   NAVEGACIÓN LOCAL
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-local-nav {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px 8px;
  overflow: auto;
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 20;
}

.page-id-17510 .ec-widget .ec-local-nav a {
  transition: background .25s ease, color .25s ease;
  padding: 8px 16px;
  border-radius: 8px;
  display: inline-block;
  font-weight: 500;
}

.page-id-17510 .ec-widget .ec-local-nav a.ec-active {
  background: var(--brand);
  color: #fff;
}

/* ------------------------------------------------------------
   TOP BANNER - HOSTINGER (2 columnas horizontales SIN GAP)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-top-banner {
  padding: 22px 0 8px;
  margin-top: 8px;
}

/* Asegurar que Hostinger tenga grid de 2 columnas sin gap */
.page-id-17510 .ec-widget .ec-hostinger-grid,
.page-id-17510 .ec-widget .ec-top-banner > div:first-child {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
}

.page-id-17510 .ec-widget .ec-hostinger-grid a,
.page-id-17510 .ec-widget .ec-top-banner > div:first-child a {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-17510 .ec-widget .ec-hostinger-grid img,
.page-id-17510 .ec-widget .ec-top-banner > div:first-child img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------------------------
   CABECERAS DE MARCA (logo GRANDE | texto COMPACTO | botón)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-brand-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

/* Logo más grande */
.page-id-17510 .ec-widget .ec-brand-logo {
  flex-shrink: 0;
  width: 180px;
  max-width: 180px;
}

.page-id-17510 .ec-widget .ec-brand-logo img {
  width: 100%;
  height: auto;
}

/* Texto compacto en el centro */
.page-id-17510 .ec-widget .ec-brand-info {
  flex: 1;
  line-height: 1.3;
}

.page-id-17510 .ec-widget .ec-brand-info h3 {
  margin: 0 0 6px 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1.2;
}

.page-id-17510 .ec-widget .ec-brand-info p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Botón de CTA */
.page-id-17510 .ec-widget .ec-brand-cta {
  flex-shrink: 0;
}

.page-id-17510 .ec-widget .ec-brand-cta a {
  display: inline-block;
  padding: 12px 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background .25s ease, transform .15s ease;
  white-space: nowrap;
}

.page-id-17510 .ec-widget .ec-brand-cta a:hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

/* ------------------------------------------------------------
   GRIDS UNIFICADOS
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.page-id-17510 .ec-widget .ec-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ------------------------------------------------------------
   BANNERS DE MARCAS (2 imágenes SIN GAP)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-foreo-grid,
.page-id-17510 .ec-widget .ec-koen-grid,
.page-id-17510 .ec-widget .ec-manomano-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 0 !important;
  margin: 0 !important;
}

.page-id-17510 .ec-widget .ec-foreo-grid a,
.page-id-17510 .ec-widget .ec-koen-grid a,
.page-id-17510 .ec-widget .ec-manomano-grid a {
  display: block !important;
  line-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.page-id-17510 .ec-widget .ec-foreo-grid img,
.page-id-17510 .ec-widget .ec-koen-grid img,
.page-id-17510 .ec-widget .ec-manomano-grid img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* ------------------------------------------------------------
   EXCEPCIÓN: INCAPTO (imágenes en columna CON GAP)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-incapto-grid {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.page-id-17510 .ec-widget .ec-incapto-grid a {
  display: block !important;
  line-height: 0 !important;
}

.page-id-17510 .ec-widget .ec-incapto-grid img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

/* ------------------------------------------------------------
   BRAND BLOCKS (contenedores de marcas)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-brand-block {
  margin-bottom: 60px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 24px 32px;
  position: relative;
  overflow: hidden;
}

.page-id-17510 .ec-widget .ec-brand-block::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--decor-green);
}

.page-id-17510 .ec-widget .ec-brand-block:nth-child(even)::before {
  background: var(--decor-ochre);
}

/* ------------------------------------------------------------
   CARDS (con estilos de texto restaurados)
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-cards {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.page-id-17510 .ec-widget .ec-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  transition: transform .15s ease, box-shadow .15s ease;
}

.page-id-17510 .ec-widget .ec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(17, 18, 23, .12);
}

/* Estilos de texto dentro de las cards */
.page-id-17510 .ec-widget .ec-card h4,
.page-id-17510 .ec-widget .ec-card h5 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}

.page-id-17510 .ec-widget .ec-card p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
}

.page-id-17510 .ec-widget .ec-card a {
  margin-top: auto;
  padding: 8px 16px;
  background: var(--brand);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  transition: background .25s ease;
}

.page-id-17510 .ec-widget .ec-card a:hover {
  background: var(--brand-hover);
}

/* ------------------------------------------------------------
   BANNERS GENERALES
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-banner-link {
  display: block;
  line-height: 0;
}

.page-id-17510 .ec-widget .ec-banner-link img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------------------------
   FADE-IN UNIVERSAL
------------------------------------------------------------ */
.page-id-17510 .ec-widget .ec-banner-link,
.page-id-17510 .ec-widget .ec-hostinger-grid a,
.page-id-17510 .ec-widget .ec-foreo-grid a,
.page-id-17510 .ec-widget .ec-koen-grid a,
.page-id-17510 .ec-widget .ec-manomano-grid a,
.page-id-17510 .ec-widget .ec-incapto-grid a,
.page-id-17510 .ec-widget .ec-brand-block,
.page-id-17510 .ec-widget .ec-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.page-id-17510 .ec-widget .visible {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------
   RESPONSIVE
------------------------------------------------------------ */
@media (max-width: 900px) {
  .page-id-17510 .ec-widget .ec-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .page-id-17510 .ec-widget .ec-brand-header {
    gap: 16px;
  }
  
  .page-id-17510 .ec-widget .ec-brand-logo {
    width: 140px;
    max-width: 140px;
  }
}

@media (max-width: 780px) {
  .page-id-17510 .ec-widget .ec-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .page-id-17510 .ec-widget .ec-hero-top {
    flex-direction: column;
  }
  
  .page-id-17510 .ec-widget .ec-hero-image {
    max-width: 100%;
  }
  
  .page-id-17510 .ec-widget .ec-brand-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .page-id-17510 .ec-widget .ec-brand-logo {
    width: 120px;
    max-width: 120px;
  }
}

@media (max-width: 520px) {
  .page-id-17510 .ec-widget .ec-cards {
    grid-template-columns: 1fr;
  }

  .page-id-17510 .ec-widget .ec-hostinger-grid,
  .page-id-17510 .ec-widget .ec-foreo-grid,
  .page-id-17510 .ec-widget .ec-koen-grid,
  .page-id-17510 .ec-widget .ec-manomano-grid {
    grid-template-columns: 1fr !important;
  }
  
  .page-id-17510 .ec-widget .ec-brand-logo {
    width: 100px;
    max-width: 100px;
  }
  
  .page-id-17510 .ec-widget .ec-brand-cta a {
    padding: 10px 20px;
    font-size: 13px;
  }
}