/* ============================================================
   SPACEMAN TECHNOLOGIES — About Section (Quiénes Somos)
   ============================================================ */

#about {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(14, 20, 42, 0.42) 35%, rgba(8, 12, 28, 0.55) 100%);
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.12), 0 -20px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: -15%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.16) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#about::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.14) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

/* ── INTRO ───────────────────────────────────────────────────── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-80);
  align-items: center;
  margin-bottom: var(--sp-80);
}

.about-intro-text p {
  font-size: var(--text-body);
  line-height: 1.8;
  color: var(--color-fog);
  margin-top: var(--sp-24);
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  word-spacing: -0.01em;
}

/* ── STATS ───────────────────────────────────────────────────── */
.about-stats {
  display: flex;
  flex-direction: column;
  gap: var(--sp-32);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.stat-number {
  font-family: var(--font-playfair);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: var(--fw-regular);
  color: var(--color-pure-white);
  line-height: 1;
}

.stat-number span {
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 35%, #a855f7 70%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 240, 255, 0.45));
}

.stat-label {
  font-family: var(--font-source);
  font-size: var(--text-caption);
  color: var(--color-steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── CARDS GRID ──────────────────────────────────────────────── */
.about-cards-title {
  text-align: center;
  margin-bottom: var(--sp-56);
}

.about-cards-title h2 {
  font-family: var(--font-playfair);
  font-size: clamp(28px, 3.5vw, var(--text-heading));
  font-weight: var(--fw-regular);
  color: var(--color-pure-white);
  margin-top: var(--sp-8);
}

.about-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-24);
}

/* ── PRESENTATION CARD ───────────────────────────────────────── */
.pres-card {
  position: relative;
  padding: var(--sp-32) var(--sp-24);
  border-radius: var(--radius-cards);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  overflow: hidden;
  cursor: none;
  transform-style: preserve-3d;
  transition: all var(--transition-base);
  will-change: transform;
  aspect-ratio: 85/54; /* Business card ratio */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Multi-color gradient border that lights up on hover (identical to service cards) */
.pres-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-cards);
  padding: 1.5px;
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 30%, #a855f7 68%, #ffd166 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 2;
}

.pres-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: transparent;
  transform: translateY(-8px);
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.65),
    0 0 25px rgba(0, 240, 255, 0.55),
    0 0 50px rgba(168, 85, 247, 0.38),
    0 0 80px rgba(255, 209, 102, 0.22),
    inset 0 0 20px rgba(0, 240, 255, 0.15),
    inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.pres-card:hover::after {
  opacity: 1;
}

/* Grid blueprint lines */
.pres-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* ── BOTTOM MULTI-COLOR CHROMATIC LINE ───────────────────────── */
.pres-card-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00f0ff 0%, #38bdf8 30%, #a855f7 70%, #ffd166 100%);
  box-shadow: 0 0 15px #00f0ff, 0 0 25px #a855f7;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 3;
}

.pres-card:hover .pres-card-line {
  transform: scaleX(1);
}

/* ── CARD STAR PULSE ─────────────────────────────────────────── */
.card-star {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lagoon-teal);
  box-shadow: 0 0 8px var(--color-lagoon-teal);
  animation: star-pulse 3s ease-in-out infinite;
}

@keyframes star-pulse {
  0%, 100% { transform: scale(1); opacity: 1; box-shadow: 0 0 6px var(--color-lagoon-teal); }
  50%       { transform: scale(1.4); opacity: 0.7; box-shadow: 0 0 16px var(--color-lagoon-teal); }
}

/* ── CARD CONTENT ────────────────────────────────────────────── */
.card-icon {
  width: 44px;
  height: 44px;
  stroke: var(--color-lagoon-teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke-dashoffset var(--transition-slow);
}

.card-icon path, .card-icon circle, .card-icon rect, .card-icon polyline, .card-icon line {
  stroke-dasharray: 300;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.8s ease;
}

.pres-card:hover .card-icon path,
.pres-card:hover .card-icon circle,
.pres-card:hover .card-icon rect {
  stroke-dashoffset: 300;
  animation: icon-draw 0.8s ease forwards;
}

@keyframes icon-draw {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}

.card-body h3 {
  font-family: var(--font-source);
  font-size: 18px;
  font-weight: var(--fw-bold);
  color: var(--color-pure-white);
  letter-spacing: 0.02em;
  margin-bottom: var(--sp-8);
}

.card-body p {
  font-family: var(--font-source);
  font-size: var(--text-caption);
  color: var(--color-fog);
  line-height: 1.6;
  text-align: justify;
  text-justify: auto;
  text-align-last: left;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-wrap: pretty;
  word-spacing: -0.01em;
}

.card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-16);
}

.card-tag {
  font-family: var(--font-source);
  font-size: 11px;
  font-weight: var(--fw-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #00f0ff 0%, #38bdf8 35%, #a855f7 70%, #ffd166 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.4));
}

.card-arrow {
  font-size: 18px;
  color: var(--color-steel);
  transition: transform var(--transition-base), color var(--transition-base);
}

.pres-card:hover .card-arrow {
  transform: translate(4px, -4px);
  color: var(--color-lagoon-teal);
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-intro { grid-template-columns: 1fr; gap: var(--sp-40); }
  .about-cards-grid { grid-template-columns: 1fr; }
  .pres-card { aspect-ratio: auto; min-height: 220px; }
  .about-stats { flex-direction: row; flex-wrap: wrap; gap: var(--sp-24); }
}

@media (max-width: 580px) {
  .about-intro-text p { font-size: 15px; }
  .stat-number { font-size: 38px; }
  .stat-item { min-width: 140px; }
  .pres-card { padding: 24px 20px; }
}
