/* ============================================================
   COMIWEB — FOOTER CSS
   Diseño: verde oscuro con dorado — elegante y cálido
   Variables: sobreescritas desde el Customizer de WP
   ============================================================ */

/* Variables de color (valores por defecto) */
#cw-footer {
  --footer-bg:          #0D4F2E;
  --footer-text:        #FFFFFF;
  --footer-title:       #F5C518;
  --footer-link:        rgba(255,255,255,0.88);
  --footer-link-hover:  #F5C518;
  --footer-border:      #155D38;
}

/* ── Contenedor principal del footer ─────────────────── */
#cw-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
}

/* Línea decorativa superior */
#cw-footer::before {
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,
    var(--cw-orange) 0%,
    var(--cw-gold, #F5C518) 35%,
    var(--cw-orange) 70%,
    var(--cw-gold, #F5C518) 100%
  );
}

/* Fondo con textura sutil */
#cw-footer::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 80%, rgba(245,197,24,0.04) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(232,93,4,0.04) 0%, transparent 50%);
  pointer-events: none;
}

/* ── Cuerpo del footer ────────────────────────────────── */
.cw-footer__body {
  position: relative;
  z-index: 1;
  max-width: var(--cw-max-width);
  margin-inline: auto;
  padding: 3.5rem 1.5rem 2.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ── Columna 1: Marca ─────────────────────────────────── */
.cw-footer__brand {}

.cw-footer__logo-wrap {
  display: inline-block;
  margin-bottom: 1.25rem;
}
.cw-footer__logo-img {
  width: 90px; height: 90px;
  object-fit: contain;
  border-radius: 14px;
  background: rgba(255,255,255,0.1);
  padding: 6px;
  border: 2px solid rgba(245, 197, 24, 0.25);
  transition: border-color 0.3s, transform 0.3s;
}
.cw-footer__logo-wrap:hover .cw-footer__logo-img {
  border-color: var(--cw-gold, #F5C518);
  transform: scale(1.04);
}

.cw-footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  letter-spacing: 0.06em;
  color: var(--footer-title);
  margin-bottom: 0.4rem;
  line-height: 1;
}

.cw-footer__underline {
  width: 40px; height: 3px;
  background: var(--footer-title);
  border-radius: 2px;
  margin-bottom: 1rem;
}

.cw-footer__tagline {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--footer-text);
  opacity: 0.9;
  max-width: 260px;
}

/* ── Columna 2: Mapa del Sitio ────────────────────────── */
.cw-footer__sitemap {}

.cw-footer__col-title {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--footer-title);
  margin-bottom: 0.6rem;
}

.cw-footer__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}
.cw-footer__nav-list li a,
.cw-footer__nav-list a {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--footer-link);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, padding-left 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
}
.cw-footer__nav-list li a:hover,
.cw-footer__nav-list a:hover {
  color: var(--footer-link-hover);
  padding-left: 0.4rem;
  border-bottom-color: rgba(245,197,24,0.2);
}

/* ── Columna 3: Síguenos ──────────────────────────────── */
.cw-footer__social {}

.cw-footer__social-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--footer-text);
  opacity: 0.88;
  margin-bottom: 1.25rem;
}

.cw-footer__social-label {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-text);
  opacity: 0.7;
  margin-bottom: 0.65rem;
}

.cw-footer__social-icons {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cw-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  color: var(--footer-text);
  text-decoration: none;
  font-size: 1.1rem;
  border: 1.5px solid rgba(255,255,255,0.2);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s;
}
.cw-footer__social-icon:hover {
  background: var(--footer-title);
  border-color: var(--footer-title);
  color: var(--footer-bg);
  transform: translateY(-3px) scale(1.08);
}

/* Íconos SVG sociales */
.cw-social-svg {
  width: 20px; height: 20px;
  fill: currentColor;
}

/* ── Separador footer ─────────────────────────────────── */
.cw-footer__sep {
  position: relative;
  z-index: 1;
  max-width: var(--cw-max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
  border: none;
  height: 1px;
  background: var(--footer-border);
}

/* ── Pie del footer: copyright + legal ───────────────── */
.cw-footer__bottom {
  position: relative;
  z-index: 1;
  max-width: var(--cw-max-width);
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.cw-footer__copyright {
  font-size: 0.85rem;
  color: var(--footer-text);
  opacity: 0.65;
  font-weight: 500;
}

/* Menú legal */
.cw-footer__legal-list {
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.cw-footer__legal-list li {
  display: flex;
  align-items: center;
}
.cw-footer__legal-list li::after {
  content: '·';
  margin-left: 0.4rem;
  color: rgba(255,255,255,0.3);
  font-weight: 700;
}
.cw-footer__legal-list li:last-child::after { display: none; }

.cw-footer__legal-list a {
  padding: 0.2rem 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--footer-text);
  opacity: 0.65;
  text-decoration: none;
  transition: opacity 0.2s, color 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.cw-footer__legal-list a:hover {
  opacity: 1;
  color: var(--footer-title);
}

/* ── Responsive Footer ────────────────────────────────── */
@media (max-width: 960px) {
  .cw-footer__body {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .cw-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .cw-footer__body {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2.5rem 1rem 2rem;
  }
  .cw-footer__brand { text-align: center; }
  .cw-footer__logo-wrap { display: block; text-align: center; }
  .cw-footer__logo-img { margin-inline: auto; }
  .cw-footer__underline { margin-inline: auto; }
  .cw-footer__tagline { max-width: 100%; }
  .cw-footer__social-icons { justify-content: center; }
  .cw-footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
  .cw-footer__legal-list { justify-content: center; }
}

/* ── Breadcrumbs ──────────────────────────────────────── */
.cw-breadcrumbs {
  padding: 0.6rem 0 1.25rem;
}
.cw-breadcrumbs__list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 0.82rem;
  color: var(--cw-text-light);
}
.cw-breadcrumbs__item a {
  color: var(--cw-orange);
  font-weight: 600;
  text-decoration: none;
}
.cw-breadcrumbs__item a:hover { text-decoration: underline; }
.cw-breadcrumbs__item span { color: var(--cw-text-light); }
.cw-breadcrumbs__sep { color: var(--cw-gray); font-size: 0.75rem; }