.about-page {
  padding-top: 80px;
  background: #000;
}

.about-page .navbar {
  background-color: #050505;
}

.about-page .navbar-content {
  padding: 18px 0;
}

.about-hero {
  position: relative;
  min-height: 315px;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: center;
  background: #071a4a;
}

.about-hero::before,
.about-hero::after {
  content: "";
  position: absolute;
  inset: -35%;
  background:
    radial-gradient(circle at 25% 35%, rgba(254, 203, 0, 0.85), transparent 22%),
    radial-gradient(circle at 70% 30%, rgba(0, 153, 255, 0.9), transparent 24%),
    radial-gradient(circle at 45% 75%, rgba(47, 78, 168, 0.95), transparent 28%),
    radial-gradient(circle at 80% 80%, rgba(0, 117, 216, 0.9), transparent 24%);
  filter: blur(35px);
  animation: lavaMove 13s ease-in-out infinite alternate;
  z-index: 0;
}

.about-hero::after {
  background:
    radial-gradient(circle at 35% 70%, rgba(0, 153, 255, 0.75), transparent 25%),
    radial-gradient(circle at 75% 45%, rgba(254, 203, 0, 0.65), transparent 20%),
    radial-gradient(circle at 55% 25%, rgba(36, 72, 169, 0.9), transparent 30%);
  animation-duration: 18s;
  animation-direction: alternate-reverse;
  opacity: 0.8;
}

.about-hero-content {
  position: relative;
  z-index: 1;
}

@keyframes lavaMove {
  0% {
    transform: translate(-4%, -3%) scale(1) rotate(0deg);
  }

  50% {
    transform: translate(4%, 3%) scale(1.08) rotate(12deg);
  }

  100% {
    transform: translate(-2%, 5%) scale(1.15) rotate(-8deg);
  }
}

.about-hero-content h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 54px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.about-hero-content p {
  font-family: 'Montserrat', sans-serif;
  color: var(--yellow);
  font-size: 13px;
  font-weight: 500;
}

.about-main {
  padding-top: 78px;
}

.about-intro-section {
  position: relative;
  overflow: hidden;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  gap: 70px;
  min-height: 560px;
}

.about-copy {
  padding-left: 20px;
}

.years-box {
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 78px;
  white-space: nowrap;
}

.years-box .plus {
  color: var(--yellow);
  font-size: 92px;
  line-height: .85;
  font-weight: 800;
  vertical-align: middle;
}

.years-box .number {
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  font-size: 142px;
  line-height: .85;
  font-weight: 600;
  letter-spacing: -10px;
  vertical-align: middle;
  text-shadow: 0 6px 18px rgba(255,255,255,.22);
}

.years-box .years {
  display: inline-block;
  color: var(--yellow);
  font-size: 30px;
  line-height: 1;
  letter-spacing: 12px;
  margin-left: 18px;
  margin-bottom: 15px;
  vertical-align: bottom;
}

.years-box p {
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 5px;
  line-height: 1.55;
  margin-left: 90px;
  text-align: center;
  display: inline-block;
}

.years-box p span {
  color: var(--yellow);

}

.who-box h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 35px;
  font-weight: 600;
  margin-bottom: 18px;
}

.who-box p {
  max-width: 550px;
  font-size: 20px;
  line-height: 1.6;
  color: #f1f1f1;
}

.about-images {
  position: relative;
  min-height: 470px;
}

.image-card {
  position: absolute;
  overflow: hidden;
  border-radius: 9px;
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(.05);
}

.image-card::after {
  content: "";
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
}

.image-card-yellow {
  width: 365px;
  height: 405px;
  top: 0;
  left: 40px;
 
}

.image-card-yellow::after {
  background: rgba(254,203,0,.72);
}

.image-card-blue {
  width: 370px;
  height: 395px;
  top: 62px;
  left: 345px;
}

.image-card-blue::after {
  background: rgba(0,85,210,.72);
}

.about-pillars-section {
  padding: 55px 0 105px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 95px;
}

.pillar-card-title{
  margin-bottom: 18px;
}

.pillar-card-title h3,
.pillar-card-title img {
  display: inline-block;
  vertical-align: middle;
}

.pillar-card-title h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 35px;
  line-height: 1;
  font-weight: 600;
  margin-left: 14px;
}

.pillar-icon {
    width: 28px;
}

.pillar-card p,
.pillar-card li {
  font-size: 17px;
  color: #f1f1f1;
  line-height: 1.55;
}

.values-card ul {
  list-style-position: outside;
  padding-left: 18px;
}

.values-card li {
  margin-bottom: 8px;
}

.values-card strong {
  color: #fff;
  font-weight: 500;
}

.about-footer {
  padding-top: 160px;
  margin-top: 60px;
}

.about-footer .footer-container {
  grid-template-columns: 1fr 1.45fr .85fr .85fr;
  align-items: start;
  gap: 80px;
}

.about-footer .footer-col h4 {
  text-transform: none;
  font-size: 14px;
  margin-bottom: 20px;
}

.about-footer .footer-col li,
.about-footer .footer-col p,
.about-footer .footer-col a {
  font-size: 14px;
}

.footer-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
}

.about-contact-icons {
  display: flex;
  align-items: center;
  gap: 28px;
}

.about-contact-icons .contact-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  margin-right: 0;
}

.about-footer .footer-bottom {
  margin-top: 20px;
  color: #9d9d9d;
  border-color: rgba(255,255,255,.65);
}

@media (max-width: 1200px) {
  .about-intro-grid {
    gap: 35px;
  }

  .years-box .number {
    font-size: 118px;
  }

  .years-box .plus {
    font-size: 78px;
  }

  .years-box .years {
    font-size: 24px;
    letter-spacing: 9px;
  }

  .years-box p {
    font-size: 14px;

  }

  .image-card-yellow {
    width: 315px;
    height: 365px;
    left: 0;
  }

  .image-card-blue {
    width: 330px;
    height: 360px;
    left: 250px;
  }

  .pillars-grid {
    gap: 45px;
  }
}

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

  .about-hero {
    min-height: 245px;
  }

  .about-hero-content h1 {
    font-size: 40px;
  }

  .about-main {
    padding-top: 55px;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .about-copy {
    padding-left: 0;
    text-align: center;
  }

  .years-box {
    margin-bottom: 48px;
  }

  .years-box p {
    margin-left: 0;
  }

  .who-box p {
    margin: 0 auto;
  }

  .about-images {
    min-height: 420px;
    max-width: 660px;
    width: 100%;
    margin: 0 auto;
  }

  .image-card-yellow {
    left: 45px;
  }

  .image-card-blue {
    left: 280px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 720px;
    text-align: center;
  }

  .about-pillars-section {
    padding-top: 35px;
  }

  .about-footer .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .about-hero {
    min-height: 210px;
  }

  .about-hero-content h1 {
    font-size: 34px;
  }

  .about-hero-content p {
    font-size: 12px;
  }

  .years-box {
    white-space: normal;
  }

  .years-box .plus {
    font-size: 62px;
  }

  .years-box .number {
    font-size: 92px;
    letter-spacing: -6px;
  }

  .years-box .years {
    display: block;
    margin: 10px 0 0;
    font-size: 22px;
    letter-spacing: 10px;
  }

  .years-box p {
    font-size: 12px;
    letter-spacing: 6px;
  }

  .who-box h2 {
    font-size: 28px;
  }

  .who-box p {
    font-size: 17px;
  }

  .about-images {
    min-height: 580px;
  }

  .image-card-yellow,
  .image-card-blue {
    width: min(88%, 380px);
    height: 330px;
    left: 50%;
    transform: translateX(-50%);
  }

  .image-card-yellow {
    top: 0;
  }

  .image-card-blue {
    top: 250px;
  }

  .pillar-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .pillar-icon{
    width: 28px;
  }

  .pillar-card-title h3 {
    font-size: 28px;
  }

  .values-card ul {
    display: inline-block;
    text-align: left;
  }

  .about-footer {
    padding-top: 90px;
    margin-top: 30px;
  }

  .about-footer .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-two-columns {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .about-contact-icons,
  .about-footer .footer-socials {
    justify-content: center;
  }
}

/* COLOR MENOS INTENSO */
.image-card-yellow::after {
  background: rgba(254,203,0,.75);
}

.image-card-blue::after {
  background: rgba(0,85,210,.75);
}

/* ANIMACIÓN MÁS LENTA */
.image-card-yellow {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}

.image-card-blue {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 1.4s ease 0.5s, transform 1.4s ease 0.5s;
}

.about-images.visible .image-card-yellow,
.about-images.visible .image-card-blue {
  opacity: 1;
  transform: translateX(0);
}

@media (max-width: 480px) {
  .about-main {
    padding-top: 40px;
  }
  .years-box .number {
    font-size: 74px;
  }
  .years-box .plus {
    font-size: 48px;
  }
  .years-box .years {
    font-size: 18px;
  }
  .years-box p {
    letter-spacing: 3px;
  }
  .about-images {
    min-height: 510px;
  }
  .image-card-yellow,
  .image-card-blue {
    height: 290px;
  }
  .image-card-blue {
    top: 220px;
  }
}

@media (max-width: 768px) {
  /* Imágenes desplazadas en móvil */
  .about-images {
    min-height: 420px;
    position: relative;
  }

  .image-card-yellow,
  .image-card-blue {
    width: 65%;
    height: 270px;
    left: auto;
    transform: none;
  }

  .image-card-yellow {
    top: 0;
    left: 5%;
  }

  .image-card-blue {
    top: 90px;
    left: 30%;
  }

  /* Tarjetas pilares en móvil */
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .pillar-card {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: left;
  }

  .pillar-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
  }

  .pillar-card-title h3 {
    font-size: 22px;
    margin-left: 0;
  }

  .values-card ul {
    display: block;
    text-align: left;
    padding-left: 16px;
  }
}

/* ========================================================
   SLICE: Equipo de Liderazgo ("Nosotros")
   Va después de .about-pillars-section
   ======================================================== */

.about-team-section {
  padding: 20px 0 110px;
}

.team-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.team-heading h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 35px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.team-heading h2 span {
  color: var(--yellow);
}

.team-heading p {
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.6;
  color: #cfcfcf;
}

.team-heading p span {
  color: var(--yellow);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.team-card {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  height: auto;
  display: flex;
  flex-direction: column;
  transition: transform .35s ease, border-color .35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(254, 203, 0, 0.35);
}

/* Marco de foto: padding interno para que no toque los bordes,
   sin recortar la imagen al cambiar de tamaño */
.team-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #0a0a0a;
  padding: 14px 14px 0;
  box-sizing: border-box;
  flex-shrink: 0;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 8px;
}

.team-info {
  padding: 22px 24px 28px;
  flex: 1;
}

.team-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 20px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 4px;
}

.team-role {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--yellow);
  margin-bottom: 12px;
}

.mobile-break {
  display: none;
}

@media (max-width: 768px) {
  .mobile-break {
    display: block;
  }
}

.team-divider {
  display: block;
  width: 28px;
  height: 2px;
  background: var(--yellow);
  margin-bottom: 14px;
}

/* La descripción del puesto va siempre más pequeña que el cargo (.team-role) */
.team-desc {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.5;
  color: #b8b8b8;
}

/* ===== Tablet (1200px) ===== */
@media (max-width: 1200px) {
  .team-grid {
    gap: 28px;
  }

  .team-heading h2 {
    font-size: 30px;
  }

  /* Foto un poco más cuadrada en este rango para que no se recorte mal
     mientras el contenedor se va angostando */
  .team-photo {
    aspect-ratio: 3 / 4;
  }
}

/* ===== Mobile landscape / small tablet (992px) ===== */
@media (max-width: 992px) {
  .about-team-section {
    padding: 10px 0 80px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
  }

  .team-heading {
    padding: 0 20px;
  }

  .team-photo {
    aspect-ratio: 4 / 5;
  }

  /* El tercer card (Ruth) ocupa el ancho completo centrado en la fila inferior */
  .team-card:nth-child(3) {
    grid-column: 1 / -1;
    max-width: 340px;
    margin: 0 auto;
  }
}

/* ===== Mobile (768px): las 3 tarjetas siguen una al lado de la otra ===== */
@media (max-width: 768px) {
  .team-heading h2 {
    font-size: 26px;
  }

  .team-heading p {
    font-size: 14px;
  }

  .team-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    max-width: 100%;
    padding: 0 12px;
    align-items: start;
  }

  .team-card {
    height: auto;
  }

  .team-card:nth-child(3) {
    grid-column: auto;
    max-width: none;
    margin: 0;
  }

  .team-photo {
    aspect-ratio: 4 / 5;
    padding: 8px 8px 0;
  }

  .team-info {
    padding: 12px 10px 16px;
  }

  .team-name {
    font-size: 13px;
  }

  /* El cargo (CEO/COO/CMO) se mantiene visible y un poco más grande
     que la descripción para conservar la jerarquía */
  .team-role {
    font-size: 12px;
    margin-bottom: 8px;
  }

  .team-divider {
    width: 20px;
    margin-bottom: 8px;
  }

  /* La descripción ya no se oculta: se reduce de tamaño y la tarjeta
     crece hacia abajo según el contenido, sin cortar texto */
  .team-desc {
    font-size: 11px;
    line-height: 1.4;
  }
}

@media (max-width: 420px) {
  .team-info {
    padding: 10px 8px 14px;
  }

  .team-name {
    font-size: 12px;
  }

  .team-role {
    font-size: 11px;
  }

  .team-desc {
    font-size: 10px;
    line-height: 1.35;
  }
}