/* =========================================================
   CLOUD-TECNOLOGIES — about.css
   Estilos para la página Nosotros
   ========================================================= */

/* ─── GRID DE TARJETAS DE IMÁGENES ──────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 220px 220px;
  grid-template-areas: "a b" "c b";
  gap: 12px;
  min-height: 452px;
}

@media (max-width: 767px) {
  .cards {
    grid-template-rows: 200px 200px;
    min-height: auto;
  }
}

.red   { grid-area: a; }
.blue  { grid-area: b; }
.green { grid-area: c; }

/* Card base */
.card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  height: 100%;
  min-height: 180px;
  width: 100%;
  border-radius: 10px;
  color: white;
  cursor: pointer;
  transition:
    transform     0.4s cubic-bezier(0.4, 0, 0.2, 1),
    filter        0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow    0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  position: relative;
}

.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay con título al hover */
.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(234, 88, 12, 0.85) 0%,
    rgba(10, 10, 15, 0.3) 60%,
    transparent 100%
  );
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 10px;
}

.card-overlay-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: translateY(8px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover: anillo naranja + overlay + zoom imagen */
.card:hover {
  box-shadow:
    0 0 0 3px var(--ct-orange),
    0 12px 32px rgba(0, 0, 0, 0.35);
  transform: scale(1.04);
}

.card:hover img {
  transform: scale(1.08);
}

.card:hover .card-overlay {
  opacity: 1;
}

.card:hover .card-overlay-title {
  transform: translateY(0);
}

/* Blur en las demás al hover */
.cards:hover .card {
  filter: brightness(0.65) blur(2px);
  transform: scale(0.97);
}

.cards .card:hover {
  filter: brightness(1) blur(0);
  transform: scale(1.04);
}

/* ─── LOADER DE DÍGITOS (100+ Innovación) ────────────────── */
.loader {
  display: inline-flex;
  gap: 4px;
  border: 3px solid var(--ct-orange);
  border-radius: 8px;
  padding: 8px 12px;
  background: rgba(234, 88, 12, 0.08);
  backdrop-filter: blur(8px);
}

.loader span {
  display: inline-block;
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  font-family: 'Hanken Grotesk', monospace;
  background: linear-gradient(135deg, var(--ct-orange), var(--ct-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  width: 1.2ch;
  text-align: center;
}

/* ─── BARRA DE PROGRESO COMPROMISO ───────────────────────── */
.container2 {
  margin-top: 24px;
  text-align: center;
}

.progress-value {
  display: block;
  font-size: clamp(3rem, 8vw, 4.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ct-orange-dark), var(--ct-orange), var(--ct-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

.progress-percent {
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0;
}

.label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--ct-orange);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.progress-container {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  border: 1px solid rgba(234, 88, 12, 0.3);
  position: relative;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--ct-orange-dark), var(--ct-orange), var(--ct-orange-light));
  background-size: 200% auto;
  border-radius: 999px;
  transition: width 2s cubic-bezier(0.22, 1, 0.36, 1);
  animation: shimmerBar 2.5s linear infinite;
  box-shadow: 0 0 16px rgba(234, 88, 12, 0.5);
}

@keyframes shimmerBar {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 16px rgba(234, 88, 12, 0.5); }
  50%       { box-shadow: 0 0 32px rgba(234, 88, 12, 0.9), 0 0 8px rgba(249, 115, 22, 0.6); }
}

.progress-bar.complete {
  animation: shimmerBar 2.5s linear infinite, pulseGlow 1.2s ease-in-out infinite;
}

/* ─── SECCIÓN DE VALORES ─────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (min-width: 768px) {
  .values-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.value-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 2rem 1.5rem 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(234, 88, 12, 0.13);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition:
    border-color 0.3s ease,
    transform    0.3s ease,
    box-shadow   0.3s ease;
}

.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ct-orange-dark), var(--ct-orange), var(--ct-orange-light));
}

.value-card:hover {
  border-color: rgba(234, 88, 12, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.value-card-num {
  position: absolute;
  top: 0.6rem;
  right: 1rem;
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  color: rgba(234, 88, 12, 0.07);
  pointer-events: none;
  user-select: none;
}

.value-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.08));
  color: var(--ct-orange);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.15);
}

.value-title {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.02em;
}

/* ─── ESTRELLAS SVG PERSONALIZADAS ───────────────────────── */
.star-rating {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
}

.star-rating svg {
  width: 18px;
  height: 18px;
  fill: var(--ct-orange);
}

/* ─── SECCIÓN DE ESTADÍSTICAS ────────────────────────────── */
.stats-section {
  background: #ffffff;
  padding: 7rem 1.5rem;
}

@media (min-width: 768px) {
  .stats-section { padding: 7rem 6rem; }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  background: #ffffff;
  border: 1px solid rgba(234, 88, 12, 0.12);
  border-radius: 16px;
  padding: 2.25rem 1.5rem 2rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition:
    transform    0.3s ease,
    box-shadow   0.3s ease,
    border-color 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ct-orange-dark), var(--ct-orange), var(--ct-orange-light));
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
  border-color: rgba(234, 88, 12, 0.3);
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  color: var(--ct-orange);
  line-height: 1;
  display: block;
}

.stat-label {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #64748b;
}

/* ─── SECCIÓN DE VALORES ─────────────────────────────────── */
.values-section {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f5 60%, #fff8f4 100%);
  padding: 7rem 1.5rem;
}

@media (min-width: 768px) {
  .values-section { padding: 7rem 6rem; }
}

.section-heading {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #0f172a;
  margin-bottom: 0;
  line-height: 1.1;
}

.section-subheading {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ct-orange);
  margin-bottom: 0.75rem;
}

.value-card-desc {
  font-size: 0.82rem;
  line-height: 1.65;
  color: #475569;
  text-align: center;
}

/* ─── MICRO-INTERACCIONES ────────────────────────────────── */

/* Nav: enlace activo */
.nav-active {
  color: var(--ct-orange) !important;
  position: relative;
}

.nav-active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--ct-orange);
  border-radius: 999px;
}

/* Misión / Visión: tarjeta con hover lift */
.mission-card {
  padding: 1.5rem 1.25rem 1.25rem;
  border-radius: 14px;
  border: 1px solid rgba(234, 88, 12, 0.13);
  background: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition:
    transform    0.3s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow   0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.3s ease;
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--ct-orange-dark), var(--ct-orange), var(--ct-orange-light));
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(234, 88, 12, 0.12), 0 4px 12px rgba(0,0,0,0.07);
  border-color: rgba(234, 88, 12, 0.35);
}

.mission-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(234, 88, 12, 0.12), rgba(249, 115, 22, 0.08));
  color: var(--ct-orange);
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(234, 88, 12, 0.12);
  margin-bottom: 10px;
}

.mission-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--ct-orange), var(--ct-orange-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.mission-card-desc {
  font-size: 0.875rem;
  color: #475569;
  line-height: 1.65;
}

/* Stats: hover glow en el número */
.stats-grid > div {
  padding: 20px;
  border-radius: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.stats-grid > div:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 32px rgba(234, 88, 12, 0.2);
}

.stats-grid > div:hover .stat-number {
  filter: drop-shadow(0 0 12px rgba(234, 88, 12, 0.7));
}

/* WhatsApp flotante: anillo ping */
.wa-ping-wrapper {
  position: fixed;
  bottom: 128px;
  right: 24px;
  z-index: 50;
}

.wa-ping-ring {
  position: absolute;
  inset: -4px;
  border-radius: 9999px;
  border: 3px solid rgba(34, 197, 94, 0.6);
  animation: waPing 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes waPing {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* Loader box: pulso suave continuo */
.loader {
  transition: box-shadow 0.4s ease;
}

.loader.loader-done {
  box-shadow: 0 0 0 0 rgba(234, 88, 12, 0);
  animation: loaderPulse 1.5s ease-in-out 3;
}

@keyframes loaderPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234, 88, 12, 0); }
  50%       { box-shadow: 0 0 20px 6px rgba(234, 88, 12, 0.45); }
}

/* Estrellas: hover color shift */
.star-rating:hover svg {
  fill: var(--ct-orange-light);
  transition: fill 0.2s ease;
  transform: scale(1.15);
  transition: fill 0.2s ease, transform 0.2s ease;
}

/* Section headings oscuros: subrayado decorativo al hacer hover */
.section-heading {
  cursor: default;
  transition: letter-spacing 0.3s ease;
}

.section-heading:hover {
  letter-spacing: 0.18em;
}