/* Ruta: public/css/sobre-albert.css — Sobre Albert */

:root {
  --color-rojo: #CC0000;
  --color-blanco: #FFFFFF;
  --color-texto: #2D0A0F;
}

.sobre-albert {
  background: var(--color-blanco);
  color: var(--color-texto);
  font-family: "Inter", sans-serif;
}

.sobre-albert__hero {
  position: relative;
  width: 100%;
  min-height: clamp(420px, 62vh, 560px);
  overflow: hidden;
  background: #c5d4e8;
}

@media (min-width: 768px) {
  .sobre-albert__hero {
    min-height: clamp(520px, 78vh, 760px);
  }
}

@media (min-width: 1024px) {
  .sobre-albert__hero {
    min-height: clamp(540px, 82vh, 820px);
  }
}

.sobre-albert__hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.sobre-albert__hero-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.sobre-albert__hero-bg-img {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: right 26%;
  display: block;
}

.sobre-albert__hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.84) 38%,
    rgba(255, 255, 255, 0.38) 68%,
    transparent 88%
  );
  pointer-events: none;
}

.sobre-albert__hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1320px;
  margin: 0 auto;
  padding: 2.75rem 1.25rem 6.5rem;
  display: flex;
  align-items: center;
  min-height: inherit;
}

@media (min-width: 768px) {
  .sobre-albert__hero-inner {
    padding: 3rem 2rem 7rem;
  }
}

@media (max-width: 767px) {
  .sobre-albert__hero {
    display: grid;
    grid-template-areas: "hero";
    min-height: clamp(520px, 82vh, 680px);
  }

  .sobre-albert__hero > .sobre-albert__hero-bg,
  .sobre-albert__hero > .sobre-albert__hero-veil,
  .sobre-albert__hero > .sobre-albert__hero-inner,
  .sobre-albert__hero > .sobre-albert__hero-wave,
  .sobre-albert__hero > .sobre-albert__hero-wave-line {
    grid-area: hero;
  }

  .sobre-albert__hero-bg {
    position: relative;
    inset: auto;
    width: 100%;
    min-height: clamp(520px, 82vh, 680px);
    z-index: 0;
  }

  .sobre-albert__hero-bg picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
  }

  .sobre-albert__hero-bg-img {
    position: absolute;
    inset: 0;
    object-position: 78% 24%;
  }

  .sobre-albert__hero-veil {
    position: absolute;
    inset: 0;
    align-self: stretch;
    min-height: 0;
    z-index: 1;
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.96) 0%,
      rgba(255, 255, 255, 0.9) 28%,
      rgba(255, 255, 255, 0.72) 42%,
      rgba(255, 255, 255, 0.28) 58%,
      transparent 72%
    );
  }

  .sobre-albert__hero-inner {
    position: relative;
    z-index: 3;
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: clamp(520px, 82vh, 680px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 2.5rem 0.75rem 7.5rem 1rem;
  }

  .sobre-albert__hero-copy {
    max-width: 50%;
    width: 50%;
    text-align: left;
  }

  .sobre-albert__hero-title {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .sobre-albert__hero-subtitle {
    font-size: clamp(1rem, 3.7vw, 1.3rem);
    line-height: 1.3;
  }

  .sobre-albert__hero-wave,
  .sobre-albert__hero-wave-line {
    position: relative;
    align-self: end;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .sobre-albert__hero {
    min-height: clamp(480px, 78vh, 620px);
  }

  .sobre-albert__hero-bg {
    min-height: clamp(480px, 78vh, 620px);
  }

  .sobre-albert__hero-bg-img {
    object-position: 82% 22%;
  }

  .sobre-albert__hero-inner {
    min-height: clamp(480px, 78vh, 620px);
    padding: 2.25rem 0.65rem 7rem 0.85rem;
  }

  .sobre-albert__hero-copy {
    max-width: 48%;
    width: 48%;
  }

  .sobre-albert__hero-title {
    font-size: clamp(1.55rem, 5.2vw, 2.2rem);
  }

  .sobre-albert__hero-subtitle {
    font-size: clamp(0.92rem, 3.2vw, 1.15rem);
  }
}

@media (min-width: 1024px) {
  .sobre-albert__hero-inner {
    padding: 3.25rem 2.5rem 7.5rem;
  }
}

.sobre-albert__hero-copy {
  position: relative;
  z-index: 3;
  max-width: 520px;
}

.sobre-albert__hero-title {
  margin: 0 0 0.4rem;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 1.05;
  color: var(--color-rojo);
  letter-spacing: -0.02em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.sobre-albert__hero-subtitle {
  margin: 0;
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.85rem);
  line-height: 1.2;
  color: var(--color-rojo);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

.sobre-albert__hero-wave,
.sobre-albert__hero-wave-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: clamp(80px, 14vw, 140px);
  z-index: 4;
  display: block;
  pointer-events: none;
}

.sobre-albert__hero-wave-line {
  z-index: 5;
}

/* ── Timeline ── */
.sobre-albert__timeline {
  padding: 1.5rem 1.25rem 3.25rem;
  background: var(--color-blanco);
  margin-top: -1px;
}

@media (min-width: 768px) {
  .sobre-albert__timeline {
    padding: 2rem 1.5rem 3.75rem;
  }
}

.sobre-albert__container {
  max-width: 1280px;
  margin: 0 auto;
}

.timeline__track {
  position: relative;
}

.timeline__bar {
  display: none;
}

@media (min-width: 768px) {
  .timeline__bar {
    display: block;
    position: absolute;
    top: 32px;
    left: 6%;
    right: 6%;
    height: 4px;
    background: var(--color-rojo);
    border-radius: 999px;
    z-index: 0;
  }
}

.timeline__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .timeline__grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem 0.75rem;
  }
}

.timeline__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .timeline__step {
    align-items: center;
    text-align: left;
    gap: 0.85rem;
  }
}

@media (max-width: 767px) {
  .timeline__grid {
    gap: 1.7rem;
  }

  .timeline__step {
    align-items: center;
    text-align: center;
  }

  .timeline__content {
    max-width: 100%;
    padding: 0;
  }

  .timeline__title {
    font-size: 0.92rem;
  }

  .timeline__desc {
    font-size: 0.78rem;
    line-height: 1.5;
  }
}

.timeline__icon-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 64px;
  align-items: center;
}

.timeline__icon {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--color-rojo);
  color: var(--color-blanco);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 4px solid var(--color-blanco);
  box-shadow: 0 8px 20px rgba(45, 10, 15, 0.15);
  position: relative;
  z-index: 2;
  transition: transform 0.2s ease;
  overflow: hidden;
  padding: 0;
  box-sizing: border-box;
}

.timeline__icon .material-icons {
  font-size: 30px;
}

.timeline__icon:hover {
  transform: scale(1.04);
}

.timeline__icon-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  flex-shrink: 0;
}

/* Ajustes visuales para equilibrar el tamaño de los íconos PNG */
#step-1-circle .timeline__icon-img {
  transform: scale(1.4);
}
#step-2-circle .timeline__icon-img {
  transform: scale(0.85);
}
#step-3-circle .timeline__icon-img {
  transform: scale(2.15);
}
#step-4-circle .timeline__icon-img {
  transform: scale(2.15);
}
#step-5-circle .timeline__icon-img {
  transform: scale(0.7);
  transform-origin: center center;
}

/* Fallback: ocultar el texto roto si la imagen no carga */
.timeline__icon-img[src=""] ,
.timeline__icon-img:not([src]) {
  display: none;
}

.timeline__content {
  width: 100%;
  max-width: 300px;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .timeline__content {
    max-width: none;
    padding: 0 0.35rem;
    align-self: stretch;
  }
}

.timeline__title {
  font-family: "Space Grotesk", "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  margin: 0 0 0.45rem;
  color: var(--color-texto);
}

@media (min-width: 1024px) {
  .timeline__title {
    font-size: 1rem;
  }
}

.timeline__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.55;
  color: rgba(45, 10, 15, 0.72);
}

@media (min-width: 1024px) {
  .timeline__desc {
    font-size: 0.82rem;
  }
}

.sobre-albert__accent-bar {
  width: 100%;
  height: 20px;
  background: var(--color-rojo);
}

@media (min-width: 768px) {
  .sobre-albert__accent-bar {
    height: 24px;
  }
}
