/* =========================
   HEADER
========================= */

header {
  width: 100%;
  position: absolute;
  z-index: 1000;
  background: transparent;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  padding: 0.5rem 0;
  height: 12rem;
  z-index: 1000;
  background: transparent;
}

header nav ul .nav-parent,
header nav ul .link-underline {
  color: white;
}

header .link-underline::after {
  background: white;
}

.wsp_icon {
  fill: white;
}

.theme-switch {
  width: 6rem;
  height: 3.2rem;

  border: none;

  border-radius: 999px;

  cursor: pointer;

  position: relative;

  background: rgba(255, 255, 255, 0.15);
}

.theme-switch:hover {
  background: rgba(255, 255, 255, 0.25);
}

.theme-switch-thumb {
  background: white;
}

/* SOL */
.sun-icon {
  stroke: #111;
}

/* LUNA */
.moon-icon {
  fill: #111;
}

.menu-toggle {
  color: white;
}

/* =========================
   HERO
========================= */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 5rem;
}

/* =========================
   HERO SLIDER
========================= */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #111;
}

.hero-slider img {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center center;

  opacity: 0;

  transition: opacity 1.5s ease;
}

.hero-slider img.active {
  opacity: 1;
}

.hero_overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.65) 45%,
    rgba(0, 0, 0, 0.45) 100%
  );

  z-index: 1;
}

/* CONTENIDO */
.hero_container {
  margin: auto;
  width: min(200rem, 95%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

/* TEXTO */
.hero_text {
  margin-top: 12rem;
  max-width: 90%;
}

.hero_text h1 {
  font-size: 2.6rem;
  line-height: 1;
  margin-bottom: 5rem;
  color: white;
}

.hero_text h1 strong {
  font-size: 5rem;
  color: var(--color-primary);
}

.hero_text p {
  font-size: 2rem;
  max-width: 60rem;
  margin-bottom: 1rem;
  color: white;
}

.hero_text ul {
  display: flex;
  gap: 2rem;
  margin-bottom: 1rem;
}

.hero_text ul li {
  font-size: var(--fs-small);
  list-style: none;
  background-color: var(--color-primary);
  padding: 1rem;
  border-radius: 8px;
  color: white;
}

.hero_text h4 {
  color: white;
  font-weight: 300;
  font-size: var(--fs-text);
}

.hero_actions {
  margin-top: 5rem;
  display: flex;
  gap: 2rem;
}

.btn_primary,
.btn_secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 1rem 2rem;

  border: 2px solid var(--color-primary);

  border-radius: var(--border-r);

  color: #fff;
  text-decoration: none;
  font-size: var(--fs-text);
  font-weight: 600;

  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;

  box-shadow:
    0 0 0 rgba(225, 34, 41, 0),
    0 8px 25px rgba(0, 0, 0, 0.35);
}

.btn_primary:hover,
.btn_secondary:hover {
  transform: translateY(-4px);

  background: red;
  color: white;

  box-shadow:
    0 0 25px rgba(225, 34, 41, 0.35),
    0 10px 35px rgba(0, 0, 0, 0.45);
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(225, 34, 41, 0);
  }

  50% {
    box-shadow: 0 0 18px rgba(225, 34, 40, 0.7);
  }
}

.btn_primary,
.btn_secondary {
  animation: pulse 2.5s infinite;
}

/* =========================
   CERTIFICACIONES
========================= */

.certifications-strip {
  z-index: 5;
  width: 100%;
  background: transparent;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  margin-top: auto;
  padding: 1rem 0;
}

.certifications-strip .container {
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
}

.certifications-strip-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.certifications-strip img {
  height: 5rem;
  width: auto;
  transition: all 0.35s ease;
  opacity: 1;
}

.certifications-strip-content p {
  color: white;
  font-size: 1.2rem;
  line-height: 1.4;
  text-align: center;
}
/* =========================
   MAIN
========================= */
main {
  width: min(230rem, 100%);
}

main section {
  text-align: center;
  width: min(200rem, 95%);
}

main section h2 {
  display: inline-block;
  font-size: var(--fs-title);
  margin-bottom: 5rem;
  line-height: 1;
}

main section p {
  text-align: justify;
  font-size: var(--fs-text);
}

/* =========================
   PROJECTS
========================= */

#us p {
  padding: 2rem;
  margin: 0 auto;
  background-color: var(--bgc-card);
  border-radius: 24px;
  box-shadow: var(--card-shadow);
}

/* =========================
   PROJECTS
========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.project_card {
  background-color: var(--bgc-card);
  padding: 2rem;
  border-radius: var(--border-r);
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
}

.project_card img {
  width: 100%;
  height: auto;
  border-radius: var(--border-r);
}

.project_card h3 {
  margin: 1.5rem 0;
  font-size: var(--fs-h3);
}

.project_card p {
  font-size: var(--fs-text);
  margin-bottom: 2rem;
  text-align: center;
}

/* =========================
   PRODUCTS
========================= */
.product_container {
  display: flex;
  justify-content: space-around;
  z-index: 20;
}

.product_container_card {
  width: 40rem;
  border-radius: var(--border-r);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product_img img {
  border-radius: 50%;
  width: 16rem;
  height: 16rem;
  object-fit: contain;
  background-color: var(--bgc-card);
  box-shadow: var(--card-shadow);
}

.product_container_card h3 {
  margin: 2rem 0 2rem 0;
  font-size: var(--fs-h3);
}

/* =========================
   SLIDER
========================= */

.brands {
  width: min(200rem, 100%);
}

.slider {
  overflow: hidden;
  position: relative;
}

.slide_track {
  display: flex;
  align-items: center;
  gap: 2rem;

  width: max-content;

  animation: scroll linear infinite;
  animation-duration: 22s;

  will-change: transform;
}

.slide_track img {
  width: 32rem;
  height: 14rem;
  flex-shrink: 0;

  padding: 1rem;

  background: var(--bgc-card);

  border-radius: var(--border-r);

  object-fit: contain;
}

/* PAUSA */
.slider:hover .slide_track {
  animation-play-state: paused;
}

/* ANIMACION */
@keyframes scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(calc(-50% - 1rem));
  }
}

/* =========================
   ANIMACIONES HERO
========================= */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1200px) {
  header {
    backdrop-filter: none;
  }

  header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 1;
  }

  header .container {
    height: 8rem;
  }

  .hero {
    min-height: 100svh;
    padding-top: 8rem;
  }

  .hero_container {
    padding: 2rem 1rem;
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }

  .hero_text {
    max-width: 100%;
    margin-top: 2rem;
  }

  .hero_text h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 2rem;
  }

  .hero_text h1 strong {
    font-size: 4rem;
  }

  .hero_text p {
    text-align: center;
    margin: 0 auto 2rem auto;
    max-width: 100%;
    font-size: 1.4rem;
  }

  .hero_text ul {
    justify-content: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
  }

  .hero_text ul li {
    font-size: 1.2rem;
    padding: 0.8rem;
  }

  .hero_text h4 {
    font-size: 1.4rem;
    line-height: 1.5;
  }

  .hero_actions {
    justify-content: center;
  }

  .btn_primary,
  .btn_secondary {
    margin-bottom: 2rem;
  }

  .certifications-strip {
    margin-top: 0;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
  }

  .certifications-strip .container {
    margin: 0;
  }

  .certifications-strip-content {
    flex-direction: column;
    height: fit-content;
  }

  .certifications-strip-content img {
    max-width: 100%;
    height: 4rem;
  }

  .certifications-strip-content p {
    font-size: 0.8rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .card {
    width: 45%;
  }

  .product_container {
    flex-wrap: wrap;
    gap: 2rem;
    justify-content: center;
  }

  .product_container_card {
    width: 45%;
  }

  #us .reveal-bottom {
    transform: translateY(50px);
  }

  .brands .reveal-right{
    transform: translateX(50px)
  }

  #us .show,
  .brands .show {
    opacity: 1;
    transform: translate(0, 0);
  }
}

@media (max-width: 768px) {
  .hero_container {
    flex-direction: column;
    text-align: center;
    width: 100%;
  }

  .hero_text h1 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
  }

  .hero_text h1 strong {
    font-size: 3.2rem;
  }

  .hero_text ul {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
  }

  .hero_text ul li {
    font-size: var(--fs-small);
    padding: 0.5rem;
  }

  .hero_text h4 {
    font-size: var(--fs-text);
  }

  .hero_actions {
    margin-top: 2rem;
    justify-content: center;
  }

  .certifications-strip .container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0.5rem;
    justify-items: center;
  }

  .certifications-strip-content {
    flex-direction: column;
  }

  .certifications-strip-content img {
    height: 2.6rem;
  }

  .certifications-strip-content p {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .card {
    width: 90%;
  }

  .project_card p {
    text-align: center;
  }

  .project_card img {
    height: 25rem;
  }

  /*--------------------------*/
  .product_container {
    display: flex;
    gap: 5rem;
    justify-content: center;
  }

  .product_container_card {
    width: 40rem;
    border-radius: var(--border-r);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /*--------------------------*/

  main section h2 {
    margin-bottom: 4rem;
  }

  main section p {
    text-align: justify;
    font-size: var(--fs-text);
  }

  .slide_track img {
    width: 24rem;
    height: 12rem;
  }
}

@media (max-width: 620px) {
  .wsp_icon {
    width: 3.4rem;
    height: 3.4rem;
  }

  .theme-switch {
    width: 5.5rem;
    height: 2.7rem;
  }

  .theme-switch-thumb {
    width: 2.1rem;
    height: 2.1rem;
  }

  .hero_text {
    max-width: 100%;
    margin: auto;
  }

  .hero_text h1 {
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
  }

  .hero_text h1 strong {
    font-size: 3rem;
  }

  .hero_text p {
    font-size: 1.2rem;
  }

  .btn_primary,
  .btn_secondary {
    font-size: 1.2rem;
  }

  .certifications-strip {
    padding: 0.5rem 0;
  }

  .projects-grid {
    gap: 0.5rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .project_card img {
    width: 100%;
    height: 40rem;
    border-radius: var(--border-r);
  }
}

@media (max-width: 480px) {
  .card {
    height: 25rem;
  }

  .slide_track img {
    width: 20rem;
    height: 10rem;
  }
}

@media (max-width: 400px) {
  .btn_primary,
  .btn_secondary {
    font-size: var(--fs-small);
  }
}
