/* ============================================================
   KATARAS EXCAVACIONES — sobre-nosotros.css
   ============================================================ */

/* ============================================================
   SECCIÓN SOBRE NOSOTROS
   ============================================================ */
.sobre-empresa-section {
  padding: 96px 0;
  background: #f7f8fc;
  position: relative;
  overflow: hidden;
}

/* Patrón de fondo sutil tipo grilla de obra */
.sobre-empresa-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(27, 62, 150, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 62, 150, .04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

/* Acento geométrico derecho */
.sobre-empresa-section::after {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 420px; height: 420px;
  border-radius: 50%;
  background: rgba(245, 168, 0, .06);
  pointer-events: none;
}

/* ── Layout principal: dos columnas ── */
.sobre-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: start;
  position: relative;
  z-index: 1;
}

/* ============================================================
   COLUMNA IZQUIERDA — TEXTO
   ============================================================ */
.sobre-texto {
  display: flex;
  flex-direction: column;
  gap: 32px;
  animation: fadeUp .65s ease both;
}

/* ── Tag de sección ── */
.sobre-tag {
  display: inline-flex;
}

.tag-line {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--color-yellow);
  background: var(--color-blue);
  padding: 5px 16px;
  border-radius: 2px;
}

/* ── Título ── */
.sobre-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  line-height: 1.06;
  letter-spacing: .02em;
  color: var(--color-dark);
}

.highlight-number {
  color: var(--color-yellow);
  position: relative;
  display: inline-block;
}

/* Línea de subrayado bajo el número */
.highlight-number::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 4px;
  background: var(--color-yellow);
  border-radius: 2px;
  opacity: .4;
}

.sobre-title .highlight {
  color: var(--color-blue);
  position: relative;
}

.sobre-title .highlight::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 3px;
  background: var(--color-blue);
  border-radius: 2px;
  opacity: .25;
}

/* ── Descripción ── */
.sobre-description {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sobre-description p {
  font-size: clamp(.88rem, 1.1vw, .97rem);
  line-height: 1.78;
  color: rgba(2, 2, 2, .65);
}

.sobre-description p.lead {
  font-size: clamp(.95rem, 1.2vw, 1.05rem);
  color: rgba(2, 2, 2, .78);
  font-weight: 500;
}

.sobre-description strong {
  color: var(--color-dark);
  font-weight: 700;
}

/* ============================================================
   VALORES
   ============================================================ */
.sobre-valores { display: flex; flex-direction: column; gap: 16px; }

.valores-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .04em;
  color: var(--color-dark);
}

.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.valor-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--color-bg);
  border: 1.5px solid rgba(27, 62, 150, .1);
  border-radius: 5px;
  padding: 14px 16px;
  transition: border-color .22s ease, box-shadow .22s ease, transform .22s ease;
}

.valor-item:hover {
  border-color: var(--color-yellow);
  box-shadow: 0 6px 20px rgba(27, 62, 150, .1);
  transform: translateY(-2px);
}

.valor-icon {
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: var(--color-blue);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .22s ease;
}

.valor-item:hover .valor-icon { background: var(--color-yellow); }

.valor-icon i {
  font-size: .9rem;
  color: #fff;
  transition: color .22s ease;
}

.valor-item:hover .valor-icon i { color: var(--color-dark); }

.valor-text h4 {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 3px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.valor-text p {
  font-size: .76rem;
  line-height: 1.5;
  color: rgba(2, 2, 2, .55);
}

/* ============================================================
   ESTADÍSTICAS
   ============================================================ */
.sobre-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--color-blue);
  border-radius: 6px;
  overflow: hidden;
  border: 3px solid var(--color-blue);
  position: relative;
}

/* Líneas divisoras entre stats */
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px 12px;
  position: relative;
  gap: 4px;
  transition: background .22s ease;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, .15);
}

.stat-item:hover { background: rgba(255, 255, 255, .07); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  line-height: 1;
  color: var(--color-yellow);
  letter-spacing: .03em;
}

.stat-label {
  font-family: var(--font-body);
  font-size: .68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .75);
  line-height: 1.3;
}

.stat-icon {
  margin-top: 4px;
}

.stat-icon i {
  font-size: .75rem;
  color: rgba(255, 255, 255, .35);
}

/* ============================================================
   BOTONES CTA
   ============================================================ */
.sobre-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-whatsapp-about {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--color-yellow);
  color: var(--color-dark);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--color-yellow);
  position: relative;
  overflow: hidden;
  transition: color .22s ease, border-color .22s ease,
              transform .22s ease, box-shadow .22s ease;
}

.btn-whatsapp-about::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-blue);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
  z-index: 0;
}

.btn-whatsapp-about > * { position: relative; z-index: 1; }

.btn-whatsapp-about:hover,
.btn-whatsapp-about:focus {
  color: #fff;
  border-color: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(27, 62, 150, .25);
  outline: none;
}

.btn-whatsapp-about:hover::before,
.btn-whatsapp-about:focus::before { transform: translateY(0); }

.btn-whatsapp-about i { font-size: 1rem; }

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .875rem;
  color: var(--color-blue);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
  transition: border-color .22s ease, gap .22s ease;
}

.btn-link:hover,
.btn-link:focus {
  border-color: var(--color-yellow);
  gap: 12px;
  outline: none;
}

.btn-link i { font-size: .9rem; }

/* ============================================================
   COLUMNA DERECHA — IMÁGENES
   ============================================================ */
.sobre-imagenes {
  display: flex;
  flex-direction: column;
  gap: 16px;
  animation: fadeUp .65s .18s ease both;
  position: relative;
}

/* ── Imagen principal ── */
.imagen-principal {
  position: relative;
  border-radius: 6px;
  overflow: visible;
}

.imagen-principal img {
  display: block;
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow:
    8px 8px 0 0 var(--color-yellow),
    12px 12px 0 0 rgba(27, 62, 150, .18);
  transition: transform .3s ease;
}

.imagen-principal:hover img {
  transform: scale(1.015);
}

/* Badge flotante sobre la imagen principal */
.imagen-badge {
  position: absolute;
  bottom: -16px; right: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue);
  color: #fff;
  font-family: var(--font-body);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 10px 16px;
  border-radius: 4px;
  border-left: 4px solid var(--color-yellow);
  box-shadow: 0 6px 20px rgba(27, 62, 150, .3);
  white-space: nowrap;
}

.imagen-badge i {
  color: var(--color-yellow);
  font-size: 1rem;
}

/* ── Miniaturas ── */
.imagenes-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.thumbnail {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1;
}

.thumbnail img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.thumbnail:hover img { transform: scale(1.08); }

.thumbnail-overlay {
  position: absolute;
  inset: 0;
  background: rgba(27, 62, 150, .55);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .28s ease;
}

.thumbnail:hover .thumbnail-overlay { opacity: 1; }

.thumbnail-overlay i {
  font-size: 1.5rem;
  color: var(--color-yellow);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.3));
}

/* ── Sello de calidad ── */
.sobre-sello {
  background: var(--color-bg);
  border: 1.5px solid rgba(27, 62, 150, .12);
  border-left: 5px solid var(--color-yellow);
  border-radius: 5px;
  padding: 16px 20px;
}

.sello-content {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sello-content > i {
  font-size: 2rem;
  color: var(--color-yellow);
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(245,168,0,.35));
}

.sello-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sello-texto strong {
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 700;
  color: var(--color-dark);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.sello-texto span {
  font-size: .78rem;
  color: rgba(2, 2, 2, .55);
  font-weight: 500;
}

/* ============================================================
   ANIMACIÓN
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .sobre-content { gap: 48px; }
  .sobre-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255,255,255,.15);
  }
}

@media (max-width: 860px) {
  .sobre-empresa-section { padding: 72px 0; }

  .sobre-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Imagen primero en móvil */
  .sobre-imagenes { order: -1; }

  .imagen-principal img { height: 280px; }

  .valores-grid { grid-template-columns: 1fr; }

  .sobre-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .sobre-cta { flex-direction: column; align-items: stretch; }
  .btn-whatsapp-about { justify-content: center; }
  .imagenes-thumbnails { grid-template-columns: repeat(3, 1fr); }
  .sobre-stats { grid-template-columns: 1fr 1fr; }
}