/* ================================
   ABOUT PAGE
   ================================ */

.about-page {
  padding-top: 160px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

/* CARD BLANCA */
.about-card {
  display: flex;
  align-items: flex-start;
  gap: 60px;
  background: #f0ede8;
  border-radius: 20px;
  padding: 72px 80px 72px 72px;
  width: calc(100% - 80px);
  max-width: 1300px;
  position: relative;
  animation: cardFadeIn 0.6s ease 0.15s both;
}

/* ================================
   FOTOS — CARTA SOLAPADA
   ================================ */

.about-photos {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.photo-stack {
  position: relative;
  width: 300px;
  height: 400px;
}

.photo-card {
  position: absolute;
  width: 280px;
  height: 370px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
  transition: box-shadow 0.3s ease;
}

.photo-front {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-2deg);
  opacity: 1;
  transition: opacity 0.4s ease;
}

.photo-back {
  top: 18px;
  left: 18px;
  z-index: 1;
  transform: rotate(3deg);
  opacity: 0.3;
  transition: opacity 0.5s ease;
}

/* Animación: la foto de adelante va hacia atrás */
@keyframes sendBack {
  0%   { transform: rotate(-2deg) translateX(0px)   scale(1);    z-index: 3; opacity: 1; }
  30%  { transform: rotate(-5deg) translateX(-15px) scale(0.97); z-index: 3; opacity: 0.8; }
  70%  { transform: rotate(1deg)  translateX(10px)  scale(0.98); z-index: 1; opacity: 0.45; }
  100% { transform: rotate(3deg)  translateX(18px)  scale(1);    z-index: 1; opacity: 0.3; }
}

.photo-card.sending-back {
  animation: sendBack 0.40s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  z-index: 3;
}

/* Botón flecha */
.photo-arrow {
  background: rgba(26,26,31,0.85);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.15s ease;
}

.photo-arrow:hover {
  background: rgba(26,26,31,1);
  transform: scale(1.08);
}

.photo-arrow:active {
  transform: scale(0.95);
}

/* ================================
   TEXTO
   ================================ */

.about-text {
  flex: 1;
  color: #1a1a1f;
}

.about-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.06em;
  color: #1a1a1f;
  margin-bottom: 24px;
  line-height: 1;
}

.about-text p {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.8;
  color: #2a2a2f;
  margin-bottom: 16px;
  background: none;
  border-radius: 0;
  padding: 0;
  display: block;
}

/* ================================
   EMPRESAS DENTRO DEL CARD
   ================================ */

.about-companies-inline {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(26,26,31,0.12);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-companies-inline .companies-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 15px;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  background: none !important;
  padding: 0 !important;
}

.about-companies-inline .companies-logos {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.about-companies-inline .companies-logos img {
  width: 220px;
  height: auto;
  object-fit: contain;
  opacity: 1;
}

.about-companies-inline .logo-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  color: rgba(26,26,31,0.25);
  border: 1px dashed rgba(26,26,31,0.2);
  padding: 8px 22px;
  border-radius: 6px;
}

/* ================================
   EMPRESAS (standalone section — kept for future use)
   ================================ */

.about-companies {
  width: calc(100% - 80px);
  max-width: 1300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 40px 0 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.companies-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  letter-spacing: 0.15em;
  color: #555;
  text-transform: uppercase;
  background: none !important;
  padding: 0 !important;
}

.companies-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.companies-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.logo-placeholder {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.2);
  border: 1px dashed rgba(255,255,255,0.15);
  padding: 10px 28px;
  border-radius: 6px;
}

/* ================================
   FADE-IN ABOUT CARD
   ================================ */

@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ================================
   RESPONSIVE
   ================================ */

@media (max-width: 900px) {
  .about-card {
    flex-direction: column;
    align-items: center;
    padding: 40px 32px;
    width: calc(100% - 40px);
    gap: 40px;
  }

  .about-name {
    font-size: 40px;
    text-align: center;
  }

  .about-text p {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .about-page {
    padding-top: 90px;
  }

  .about-card {
    width: calc(100% - 24px);
    padding: 28px 20px;
  }

  .photo-stack {
    width: 220px;
    height: 290px;
  }

  .photo-card {
    width: 200px;
    height: 260px;
  }

  .companies-logos {
    gap: 28px;
  }
}
