/* ===== NOSOTROS - Estilos adicionales ===== */

/* Page Hero */
.page-hero {
  min-height: 38vh;
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 110px 20px 60px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
/* Línea decorativa inferior */
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero-content h1 {
  font-family: var(--font-alt);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700; color: var(--color-white);
  margin-bottom: 14px;
}
.page-hero-content h1 span { color: var(--color-accent); }
.page-hero-content p {
  color: rgba(255,255,255,0.65); font-size: 1.05rem;
  max-width: 560px; margin: 0 auto;
}

/* ---- About Intro ---- */
.about-intro { background: var(--color-white); padding: 80px 20px; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px; align-items: center;
  max-width: 1100px; margin: 0 auto;
}
.about-img-placeholder {
  width: 100%; aspect-ratio: 3/4;
  background: linear-gradient(135deg, #111111, #2a2a2a);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 6rem; color: rgba(232,177,74,0.25);
  position: relative; overflow: hidden;
}
.about-img-placeholder::after {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(
    45deg, transparent, transparent 10px,
    rgba(255,255,255,0.015) 10px, rgba(255,255,255,0.015) 20px
  );
}
/* Borde amarillo sutil en la foto */
.about-img-placeholder::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 14px;
  box-shadow: inset 0 0 0 2px rgba(232,177,74,0.2);
  z-index: 1;
}
.about-intro-text h2 {
  font-family: var(--font-alt);
  font-size: 2rem; font-weight: 700;
  color: var(--color-primary); margin-bottom: 20px;
}
.about-intro-text h2 span { color: var(--color-accent); }
.about-intro-text p {
  color: var(--color-text-light);
  font-size: 1rem; line-height: 1.8;
  margin-bottom: 16px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Video */
.about-video {
  width: 100%;
  height: 100%;
  max-height: 320px;

  object-fit: cover; 
  border-radius: 12px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* ---- Values ---- */
.values-section { background: var(--color-light); }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px; max-width: 1100px; margin: 0 auto;
}
.value-card {
  background: var(--color-white);
  border: 1px solid #e4e4e4;
  border-radius: var(--radius);
  padding: 32px 26px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--color-accent);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 0.3s;
}
.value-card:hover {
  box-shadow: 0 8px 36px rgba(232,177,74,0.12);
  transform: translateY(-4px);
  border-color: rgba(232,177,74,0.25);
}
.value-card:hover::before { transform: scaleY(1); }
.value-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: #111111;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-accent);
  font-size: 1.3rem; margin-bottom: 18px;
}
.value-card h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
}
.value-card p { 
  color: var(--color-text-light);
  font-size: 0.9rem; line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* ---- Certifications ---- */
.certs-section { background: #111111; }
.certs-section .section-title { color: var(--color-white); }
.certs-section .section-title span { color: var(--color-accent); }
.certs-section .section-subtitle { color: rgba(255,255,255,0.55); }
.certs-section .section-divider {
  background: linear-gradient(90deg, var(--color-accent), rgba(232,177,74,0.2));
}

/* Slider */
.certs-slider {
  overflow: hidden;
  width: 100%;
  margin-top: 30px;
}
.certs-track {
  display: flex;
  gap: 30px;
  width: max-content;
  animation: scrollCerts 35s linear infinite;
}
.certs-slider:hover .certs-track {
  animation-play-state: paused;
}
@keyframes scrollCerts {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Items del slider */
.cert-item {
  min-width: 200px;
  height: 140px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
  flex-shrink: 0;
}
.cert-item:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(232,177,74,0.35);
}
.cert-item img {
  max-width: 160px;
  max-height: 110px;
  object-fit: contain;
}

/* Grid estático (cuando no hay slider) */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 18px; max-width: 1000px; margin: 0 auto;
}
.cert-wide { grid-column: span 2; }
.cert-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(232,177,74,0.4); font-size: 2rem; padding: 20px;
  width: 100%; text-align: center;
}
.cert-placeholder span {
  font-size: 0.75rem; font-weight: 600;
  color: rgba(255,255,255,0.4); letter-spacing: 1px;
}
.cert-placeholder.wide { flex-direction: row; gap: 12px; font-size: 1.5rem; }
.cert-placeholder.wide span { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* Imagen destacada (HikCentral, etc.) */
.cert-feature {
  margin-top: 50px;
  display: flex;
  justify-content: center;
  padding: 0 20px; /* evita que toque bordes en móvil */
}

.cert-feature img {
  width: 100%;
  max-width: 900px;
  height: auto;

  background: rgba(255,255,255,0.05);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid rgba(232,177,74,0.3);

  transition: transform 0.3s;
}

.cert-feature img:hover {
  transform: scale(1.04);
}

/* ---- Mapa (si se usa en nosotros) ---- */
.map-section {
  padding: 80px 20px;
  background: var(--color-white);
  text-align: center;
}
#map {
  height: 500px;
  width: 100%;
  max-width: 1300px;
  margin: 35px auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border: 1px solid rgba(232,177,74,0.2);
}
.map-container {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
  max-width: 1300px;
  margin: 40px auto;
  align-items: start;
}

/* LISTA */
.map-list {
  background: var(--color-light);
  border-radius: 12px;
  padding: 20px;
  max-height: 500px;
  overflow-y: auto;
  text-align: left;
  border: 1px solid rgba(0,0,0,0.08);
}

.state {
  margin-bottom: 18px;
}

.state h3 {
  font-size: 1rem;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.state p {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

/* MAPA */
#map {
  height: 500px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}
@media (max-width: 900px) {
  .map-container {
    grid-template-columns: 1fr;
  }

  #map {
    height: 400px;
  }
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-img-placeholder { aspect-ratio: 16/9; font-size: 4rem; }
  .cert-wide { grid-column: span 1; }
}