/* ================================================================
   CACMQ – INDEX (HOME)  page-specific styles
   Depende de: css/shared.css
   ================================================================ */

/* ── HERO SLIDER ── */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
}
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide  {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.active { opacity: 1; }
.hero-bg {
  position: absolute; inset: 0; z-index: 1;
 
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
  padding-top: 5rem;
  padding-bottom: 5rem;
}

/* Badge */
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(200,150,12,.15);
  border: 1px solid rgba(200,150,12,.35);
  color: var(--gold-light);
  font-size: .72rem; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  padding: .35rem .9rem; border-radius: 3px;
  margin-bottom: 1.5rem;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  color: #fff; line-height: 1.06;
  letter-spacing: -.5px;
  margin-bottom: 1.25rem;
}
.hero-title span { color: var(--gold-light); }
.hero-desc {
  color: rgba(255,255,255,.65);
  font-size: .95rem; line-height: 1.8;
  margin-bottom: 2rem; max-width: 480px;
}
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* Stats dentro del hero */
.hero-stats {
  display: flex; gap: 2.5rem;
  margin-top: 2.5rem; padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  flex-wrap: wrap;
}
.hstat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.9rem;
  color: #fff; line-height: 1;
}
.hstat-lbl {
  font-size: .72rem; color: rgba(255,255,255,.5);
  margin-top: .2rem; letter-spacing: .4px;
  text-transform: uppercase;
}

/* Grid de tarjetas flotantes (columna derecha) */
.hero-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem;
}
.hcard {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(8px);
  transition: background var(--t), border-color var(--t);
}
.hcard:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(200,150,12,.45);
}
.hcard-icon {
  width: 40px; height: 40px; border-radius: 6px;
  background: rgba(200,150,12,.18);
  display: grid; place-items: center;
  color: var(--gold-light); font-size: 1rem;
  margin-bottom: .85rem;
}
.hcard-title { font-weight: 600; font-size: .82rem; color: #fff; margin-bottom: .3rem; }
.hcard-desc  { font-size: .73rem; color: rgba(255,255,255,.5); line-height: 1.5; }

/* Controles del slider */
.hero-arrows {
  position: absolute; bottom: 2rem; right: 2rem;
  z-index: 3; display: flex; gap: .5rem;
}
.hero-arr {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.15);
  border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; cursor: pointer;
  display: grid; place-items: center;
  font-size: .85rem;
  transition: background var(--t), border-color var(--t);
}
.hero-arr:hover { background: var(--gold); border-color: var(--gold); color: #000; }
.hero-dots {
  position: absolute; bottom: 2.4rem;
  left: 50%; transform: translateX(-50%);
  z-index: 3; display: flex; gap: .5rem;
}
.hero-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.35);
  border: none; cursor: pointer; padding: 0;
  transition: background var(--t), transform var(--t);
}
.hero-dot.active { background: var(--gold); transform: scale(1.4); }

/* ── QUIÉNES SOMOS ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.about-img-wrap { position: relative; }
.about-img {
  border-radius: var(--radius);
  width: 100%; height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.about-accent {
  position: absolute; bottom: -1.5rem; right: -1.5rem;
  width: 175px; background: var(--navy);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--gold);
}
.about-accent-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 2.8rem;
  color: var(--gold-light); line-height: 1;
}
.about-accent-lbl {
  font-size: .72rem; text-transform: uppercase;
  letter-spacing: .8px; color: rgba(255,255,255,.6);
  margin-top: .3rem;
}
.about-pillars {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .75rem; margin: 1.75rem 0;
}
.about-text p { color: var(--gray-500); font-size: .93rem; line-height: 1.8; margin-bottom: 1rem; }

/* ── VALORES (home) ── */
.valores-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
}
.valor {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--t), transform var(--t), border-color var(--t);
  position: relative; overflow: hidden;
}
.valor:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: var(--gold); }
.valor-bg-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 5rem;
  color: var(--gray-100); line-height: 1;
  position: absolute; top: .25rem; right: 1rem;
  pointer-events: none; user-select: none;
}
.valor-icon-w {
  width: 52px; height: 52px; border-radius: 8px;
  background: var(--navy);
  display: grid; place-items: center;
  color: var(--gold-light); font-size: 1.15rem;
  margin-bottom: 1.25rem;
}
.valor h4 { font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: .6rem; }
.valor p  { color: var(--gray-500); font-size: .87rem; line-height: 1.7; }

/* ── SERVICIOS ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ── COMUNICADOS + NOTICIAS ── */
.cn-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.news-list {
  display: flex; flex-direction: column;
  gap: 1px;
  background: var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}
.news-item {
  background: var(--white);
  display: flex; gap: 1.25rem;
  padding: 1.1rem 1.5rem;
  align-items: center;
  transition: background var(--t);
}
.news-item:hover { background: var(--gray-50); }
.news-thumb {
  width: 80px; height: 60px;
  object-fit: cover;
  border-radius: 5px; flex-shrink: 0;
}
.news-content   { flex: 1; }
.news-cat       { font-size: .68rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }
.news-title     { font-size: .85rem; font-weight: 600; color: var(--navy); line-height: 1.45; }
.news-arr       { color: var(--gray-200); font-size: .8rem; transition: color var(--t), transform var(--t); }
.news-item:hover .news-arr { color: var(--blue); transform: translateX(3px); }

/* ── CONTACTO ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1rem; }

/* ── RESPONSIVE INDEX ── */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; gap: 2rem; }
  .hero-card-grid { display: none; }
  .about-grid    { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-accent  { display: none; }
  .valores-grid  { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .cn-grid       { grid-template-columns: 1fr; gap: 3rem; }
  .contact-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero-inner    { padding-top: 3rem; padding-bottom: 3rem; }
  .valores-grid  { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .hero-stats    { gap: 1.5rem; }
}