/* ═══════════════════════════════════════════════════════════════
   SC-FOOTER.CSS — Security & Clean
   Archivo autocontenido: variables + oficinas + footer + carrusel
   Incluir DESPUÉS del CSS propio de la página.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────
   VARIABLES
   Solo se declaran si no existen ya en :root.
   Si tu página ya tiene un :root propio con
   estas mismas variables, este bloque no las
   pisa (CSS usa el último valor declarado;
   coloca tu :root DESPUÉS de este import).
───────────────────────────────────────── */
:root {
  /* Brand */
  --brass:             #8ACBC1;
  --brass-soft:        #C7E8E3;
  --brass-deep:        #1F6F95;
  --accent-ink:        #1F6F95;
  --on-accent:         #FFFFFF;
  --accent-rgb:        138,203,193;

  /* Superficies */
  --page:              #FFFFFF;
  --surface:           #FFFFFF;
  --surface-2:         #EEF3F4;
  --section:           #F4F7F8;

  /* Texto */
  --text:              #1F3A48;
  --text-soft:         #4B6573;
  --text-mute:         #7A8E99;
  --ink:               #1F3A48;
  --ink-mute:          #7A8E99;

  /* Bordes */
  --border:            rgba(31,58,72,0.10);
  --border-soft:       rgba(31,58,72,0.06);

  /* Pasteles */
  --pastel-sky:        #DBEEFB;
  --pastel-mint:       #C7E8E3;

  /* Radios */
  --r-sm:              10px;
  --r-md:              16px;
  --r-lg:              24px;
  --r-xl:              34px;
  --r-pill:            999px;

  /* Sombras */
  --shadow-sm:         0 2px 12px rgba(31,58,72,0.08);
  --shadow-md:         0 18px 44px -20px rgba(31,58,72,0.26);

  /* Layout */
  --ch-max:            1280px;
}

/* ─────────────────────────────────────────
   UTILIDADES COMPARTIDAS
   (eyebrow, section-title, section-sub, logo)
───────────────────────────────────────── */
.ch-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.ch-eyebrow::before {
  content: '';
  width: 26px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.8;
}

.ch-section-title {
  font-size: clamp(34px, 4.4vw, 50px);
  margin: 18px 0 18px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
}
.ch-section-sub {
  font-size: 17px;
  color: var(--text-soft);
}

/* Logo (usado dentro del footer-brand) */
.ch-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
}
.ch-logo-box {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    background: linear-gradient(135deg, var(--brass) 0%, var(--brass-deep) 100%);
    background-image: url("/images/Icono-Security-Clean-blue.webp.png");
    background-size: contain;
    background-position: center;
}
.ch-logo-name {
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  line-height: 1.1;
  display: block;
}
.ch-logo-sub {
  font-size: 10px;
  color: var(--text-mute);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: block;
}

/* ─────────────────────────────────────────
   OFICINAS
───────────────────────────────────────── */
.ch-offices-wrap {
  background: var(--page);
  padding-bottom: 35px;
}
.ch-offices {
  max-width: var(--ch-max);
  margin: 0 auto;
  padding: 0 28px;
}
.ch-offices-header {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.ch-offices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ch-office-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}

.ch-office-img {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-sm) var(--r-sm) 0 0;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: var(--pastel-sky);
}
.ch-office-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-office-body {
  padding: 24px;
}

.ch-office-city {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 16px;
  font-family: 'Poppins', sans-serif;
}
.ch-office-city::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-ink);
  flex-shrink: 0;
}

.ch-office-addr {
  font-style: normal;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 16px;
}

.ch-office-tel {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  background-color: #1F6F95;
  border-radius: 30px;
  text-align: center;
  margin-top: 1em;
  text-decoration: none;
  transition: background 0.2s;
}
.ch-office-tel svg {
  width: 16px;
  height: 16px;
  color: #fff;
  flex-shrink: 0;
}
.ch-office-tel:hover {
  background-color: var(--brass-deep, #155a7a);
}

@media (max-width: 800px) {
  .ch-offices-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   CARRUSEL DE OFICINAS
───────────────────────────────────────── */
.ch-carousel {
  position: relative;
  overflow: hidden;
}

.ch-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
  height: 100%;
}
.ch-carousel-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ch-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.85);
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, opacity 0.2s;
  opacity: 0;
  z-index: 2;
}
.ch-carousel:hover .ch-carousel-btn { opacity: 1; }
.ch-carousel-prev { left: 10px; }
.ch-carousel-next { right: 10px; }
.ch-carousel-btn:hover { background: #fff; }

.ch-carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.ch-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  border: none;
}
.ch-carousel-dot.active {
  background: #fff;
  transform: scale(1.25);
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.ch-footer {
  background: #fff;
  color: var(--text-soft);
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-soft);
}

.ch-footer-bottom {
  max-width: var(--ch-max);
  margin: 3em auto;
  padding: 0 28px;
}

.ch-footer-bottom-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-soft);
}

.ch-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.ch-footer-tagline {
  font-size: 14px;
  max-width: 320px;
  margin-top: 16px;
  color: var(--text-soft);
  line-height: 1.6;
}

.ch-footer-col h4 {
  color: var(--text);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.ch-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ch-footer-col ul li {
  margin-bottom: 11px;
  font-size: 14px;
}
.ch-footer-col ul li a {
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s;
}
.ch-footer-col ul li a:hover {
  color: var(--accent-ink);
}

.ch-footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 13px;
  color: var(--text-mute);
  flex-wrap: wrap;
  gap: 12px;
}

.ch-footer-socials {
  display: flex;
  gap: 12px;
}
.ch-footer-socials a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-2);
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
  color: var(--text-mute);
  text-decoration: none;
}
.ch-footer-socials a:hover {
  background: var(--brass);
  color: var(--on-accent);
}
.ch-footer-socials svg {
  width: 16px;
  height: 16px;
}

/* ─── Responsive footer ─── */
@media (max-width: 800px) {
  .ch-footer-bottom-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .ch-footer-bottom-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ─── Utility ─── */
.none-small { display: inline-flex; }
@media (max-width: 560px) { .none-small { display: none; } }
