/* =============================================================
   blog.css — Estilos exclusivos de blog.html
   Prefijo: .blg-*
   ============================================================= */

/* ───────────────────────────────────────────────
   HERO
─────────────────────────────────────────────── */
.blg-hero {
  background: var(--agt-blue);
  position: relative;
  overflow: hidden;
  padding: 3rem 0 0;
}

/* Isotipo α textura de fondo */
.blg-hero::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -5%;
  width: 60vw;
  max-width: 700px;
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1128.19 802.51'%3E%3Cpath fill='%23F6F4EF' d='M1128.19,802.51l-31.25-.52c-106.61,0-199.52-58.48-250.82-149.85l-92.7-154.11-112.36-200.11c-48.89-83.41-127.37-147.59-230.89-147.57-140.5.05-256.37,116.02-256.49,253.36-.13,137.49,115.76,247.85,256.49,247.9,96.37.03,181.45-49.3,228.71-123.4l37.74-56.84,76.8,152.27c-73.25,110.93-199.36,178.24-343.3,178.21C185.04,801.78-.2,623.5,0,403.59.21,183.91,185.37.18,410.12.13c174.89-.05,313.12,111.49,386.04,261.08L948.33,0h179.58l-246.27,413.56,246.54,388.95Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.04;
  pointer-events: none;
  z-index: 0;
}

.blg-hero > .container {
  position: relative;
  z-index: 1;
}

/* Eyebrow */
.blg-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--agt-green);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.blg-eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--agt-green);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ───────────────────────────────────────────────
   CARRUSEL
   Bootstrap maneja el slide — NO tocamos
   display, position ni opacity de .carousel-item
─────────────────────────────────────────────── */
.blg-slide {
  padding-bottom: 2rem;
  /* min-height fija para que todos los slides tengan la misma altura */
  min-height: 280px;
}

.blg-slide-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(246, 244, 239, 0.4);
  margin-bottom: 1rem;
}

.blg-slide-h1 {
  font-family: var(--agt-font-display);
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: 0.3px;
  color: var(--agt-white);
  margin-bottom: 0;
  max-width: 720px;
}

.blg-slide-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-left: 2rem;
  border-left: 1px solid rgba(246, 244, 239, 0.1);
  margin: 0;
}

.blg-stat-num {
  font-family: var(--agt-font-display);
  font-size: 2.8rem;
  color: var(--agt-green);
  line-height: 1;
  letter-spacing: -0.5px;
  display: block;
  margin-bottom: 0.5rem;
}

.blg-stat-label {
  font-size: 0.82rem;
  color: rgba(246, 244, 239, 0.45);
  line-height: 1.4;
  max-width: 200px;
}

.blg-slide-desc {
  font-size: 0.97rem;
  color: rgba(246, 244, 239, 0.55);
  line-height: 1.7;
  max-width: 640px;
  margin-top: 1.5rem;
  margin-bottom: 0;
}

/* Footer del carrusel: dots + flechas */
.blg-carousel-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 0 2rem;
}

/* Dots — NO usan carousel-indicators, Bootstrap no interfiere con el layout */
.blg-dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.blg-dot {
  width: 32px;
  height: 3px;
  background: rgba(246, 244, 239, 0.2);
  border: none;
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition:
    background 0.3s ease,
    width 0.3s ease;
}

.blg-dot.active {
  background: var(--agt-green);
  width: 48px;
}

.blg-nav {
  display: flex;
  gap: 0.5rem;
}

.blg-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(246, 244, 239, 0.07);
  border: 1px solid rgba(246, 244, 239, 0.1);
  border-radius: 8px;
  color: rgba(246, 244, 239, 0.6);
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.blg-nav-btn:hover {
  background: rgba(27, 107, 92, 0.2);
  border-color: var(--agt-green);
  color: var(--agt-green);
}

/* Línea verde inferior */
.blg-hero-rule {
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--agt-green) 0%,
    rgba(27, 107, 92, 0.2) 60%,
    transparent 100%
  );
}

/* ───────────────────────────────────────────────
   GRID DE CARDS
─────────────────────────────────────────────── */
.blg-grid-section {
  background: var(--agt-bg);
  padding: 4rem 0 6rem;
}

.blg-grid-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(14, 42, 58, 0.07);
}

.blg-grid-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--agt-steel);
  margin: 0;
}

.blg-grid-count {
  font-size: 0.82rem;
  color: rgba(109, 122, 134, 0.5);
  margin: 0;
}

.blg-card {
  background: var(--agt-surface);
  border: 1px solid rgba(14, 42, 58, 0.07);
  border-radius: var(--agt-radius-lg);
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition:
    box-shadow 0.35s ease,
    transform 0.35s ease,
    border-color 0.35s ease;
}

.blg-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--agt-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  z-index: 1;
}

.blg-card:hover {
  box-shadow: var(--agt-shadow-hover);
  transform: translateY(-4px);
  border-color: rgba(14, 42, 58, 0.12);
}

.blg-card:hover::before {
  transform: scaleX(1);
}

.blg-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.75rem 1.75rem 0;
}

.blg-card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--agt-green);
  background: rgba(27, 107, 92, 0.07);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
}

.blg-card-num {
  font-family: var(--agt-font-display);
  font-size: 3.5rem;
  color: rgba(14, 42, 58, 0.05);
  line-height: 1;
  letter-spacing: -1px;
  user-select: none;
  transition: color 0.35s ease;
}

.blg-card:hover .blg-card-num {
  color: rgba(27, 107, 92, 0.1);
}

.blg-card-title {
  font-family: var(--agt-font-display);
  font-size: clamp(1.1rem, 1.4vw, 1.3rem);
  line-height: 1.15;
  color: var(--agt-blue);
  letter-spacing: 0.3px;
  padding: 1rem 1.75rem 0;
  margin: 0;
}

.blg-card-summary {
  font-size: 0.92rem;
  color: var(--agt-steel);
  line-height: 1.7;
  padding: 1rem 1.75rem 0;
  margin: 0;
  flex: 1;
}

.blg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(14, 42, 58, 0.06);
}

.blg-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.blg-card-date {
  font-size: 0.78rem;
  color: rgba(109, 122, 134, 0.6);
  font-weight: 500;
}

.blg-card-read {
  font-size: 0.75rem;
  color: rgba(109, 122, 134, 0.4);
}

.blg-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--agt-blue);
  text-decoration: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid transparent;
  transition: all 0.25s ease;
}

.blg-card-cta i {
  transition: transform 0.25s ease;
}

.blg-card-cta:hover {
  color: var(--agt-green);
  border-bottom-color: var(--agt-green);
}

.blg-card-cta:hover i {
  transform: translateX(4px);
}

/* ───────────────────────────────────────────────
   RESPONSIVE
─────────────────────────────────────────────── */
@media (max-width: 991px) {
  .blg-slide-stat {
    display: none;
  }
  .blg-slide {
    min-height: 240px;
  }
}

@media (max-width: 767px) {
  .blg-hero {
    padding: 2.5rem 0 0;
  }
  .blg-slide {
    min-height: auto;
    padding-bottom: 1.5rem;
  }
  .blg-grid-section {
    padding: 3rem 0 4rem;
  }
}
