:root {
  --bg: #ffffff;
  --bg2: #f8f7f5;
  --ink: #1a1a18;
  --muted: #7a7a72;
  --rule: #e4e2dc;
  --accent: #2a5c8f;
  --accent2: #c8a85a;
  --max: 1200px
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem
}

.section {
  padding: 80px 0
}

.section--alt {
  background: var(--bg2)
}

.eyebrow {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent2);
  margin-bottom: 1rem
}

h2.section-title {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 1.5rem
}

p.lead {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--muted);
  max-width: 680px
}

/* HERO */
.about-hero {
  width: 100%;
  height: 406px;
  position: relative;
  overflow: hidden
}

.about-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.about-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(270deg, rgba(26, 26, 24, .75) 0%, rgba(26, 26, 24, .25) 55%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: flex-end
}

.about-hero__text {
  padding: 0 4rem
}

.about-hero__text h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1.1;
  margin-bottom: .75rem
}

.about-hero__text p {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, .75);
  max-width: 460px
}

/* QUIÉNES SOMOS */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem
}

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  text-align: center
}

.stat-card__number {
  font-family: 'DM Serif Display', serif;
  font-size: 3rem;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: .4rem
}

.stat-card__label {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted)
}

/* MISIÓN VISIÓN */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem
}

.mv-card {
  border-left: 4px solid var(--accent2);
  padding: 2.5rem 2rem;
  background: var(--bg);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .06)
}

.mv-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem
}

.mv-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.mv-card h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.6rem;
  color: var(--ink);
  margin-bottom: 1rem
}

.mv-card p {
  font-size: .97rem;
  line-height: 1.85;
  color: var(--muted)
}

/* MARCAS */
.brands-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  margin-top: 3rem
}

.brand-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--bg);
  transition: box-shadow .25s, transform .25s, border-color .25s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem
}

.brand-card:hover {
  box-shadow: 0 8px 32px rgba(42, 92, 143, .12);
  transform: translateY(-5px);
  border-color: var(--accent2)
}

.brand-card__logo {
  width: 80px;
  height: 72px;
  /*background: var(--bg2);*/
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: .25rem
}

.brand-card__name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink)
}

.brand-card__desc {
  font-size: .78rem;
  color: var(--muted)
}

.brands-cta {
  text-align: center;
  margin-top: 2.5rem
}

.btn-outline {
  display: inline-block;
  padding: .75rem 2rem;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  transition: background .2s, color .2s
}

.btn-outline:hover {
  background: var(--accent);
  color: #fff
}

.brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* EURICOM */
.euricom-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center
}

.euricom-map {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .18)
}

.euricom-map img {
  width: 100%;
  display: block
}

.euricom-countries {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 2rem
}

.country-tag {
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: .3rem .85rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted)
}

/* CLIENTES */
.clients-filters {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem
}

.filter-btn {
  padding: .5rem 1.25rem;
  border: 2px solid var(--rule);
  background: transparent;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  transition: all .2s
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--accent2);
  color: var(--accent2);
  background: rgba(200, 168, 90, .07)
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem
}

.client-card {
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 1.5rem 1rem;
  text-align: center;
  background: var(--bg);
  transition: box-shadow .25s, transform .25s, border-color .25s
}

.client-card:hover {
  box-shadow: 0 8px 28px rgba(42, 92, 143, .1);
  transform: translateY(-5px);
  border-color: var(--accent2)
}

.client-card__logo {
  width: 72px;
  height: 52px;
  /*background: var(--bg2);*/
  border-radius: 6px;
  margin: 0 auto .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .58rem;
  font-weight: 700;
  color: var(--muted);
  text-align: center;
  padding: .2rem
}

.client-card__name {
  font-size: .82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3
}

.client-card.hidden {
  display: none
}

.clients-counter {
  font-size: .82rem;
  color: var(--muted);
  margin-top: 1.5rem;
  text-align: right
}

/* WHATSAPP */
.wa-float {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 9999;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .35);
  transition: transform .2s ease;
  text-decoration: none
}

.wa-float:hover {
  transform: scale(1.1)
}

.wa-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25D366;
  opacity: .2;
  animation: wa-ping 1.5s cubic-bezier(0, 0, .2, 1) infinite
}

@keyframes wa-ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0
  }
}

/* RESPONSIVE */
@media(max-width:900px) {

  .about-intro,
  .mv-grid,
  .euricom-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem
  }

  .brands-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .about-hero__text {
    padding: 0 2rem;
    margin-top: 15%
  }
}

@media(max-width:600px) {
  .brands-grid {
    grid-template-columns: repeat(2, 1fr)
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr
  }

  .about-hero {
    height: 280px
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  p.lead {
    max-width: 100%;
  }
  .container {
    padding: 0 1rem;
  }
  /* NUEVO: Centrado del hero text en móvil */
  .about-hero__overlay {
    justify-content: center !important;
    align-items: center !important;
    background: linear-gradient(0deg, rgba(26, 26, 24, .78) 30%, rgba(26, 26, 24, .25) 60%, transparent 100%);
  
  }
  .about-hero__text {
    padding: 0 1.5rem !important;
    margin-top: 15% !important;
    text-align: center !important;
  }
  .about-hero__text h1 {
    text-align: center !important;
  }
  
  .about-hero__text p {
    max-width: 100% !important;
    text-align: center !important;
  }
}
