/* Reset general y estilos base */
html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Poppins,sans-serif;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: inherit;
}

/* Estructura principal */
body {
  background: #003f8f;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-size: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: url("images/background.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: -1;
}

.background {
  padding: 94px 128px;
   background: url("images/fondo-logos.png") no-repeat center center;
   background-size: cover;
}

.macbook {
  background: url("images/macbook-frame.png") no-repeat center top;
  background-size: contain;
  width: 1200px;
  height: 723.51px;
  position: relative;
  padding-top: 36px;
}

.screen {
  width: 939.75px;
  height: 613.86px;
  margin: 0 auto;
  overflow-y: auto;
  box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
  position: relative;
}

.top-bar {
  position: sticky;
  top: 0;
  left: 0;
  width: 940.75px;
  height: 90px;
  background: linear-gradient(to right, #003f8f, #0053b3);
  display: flex;
  align-items: center;
  z-index: 100;
  margin: auto;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  width: 100%;
  color: white;
}

.left-section, .right-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.left-section img, .right-section img {
  height: 60px;
}

.right-section a {
  color: white;
  text-decoration: none;
  font-size: 14px;
}
.right-section img {
  height: 18px;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  gap: 170px;
  padding: 20px;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: #003f8f url("images/imagen-comercial.jpg") no-repeat center center;
  background-size: cover;
  opacity: 0.2;
  z-index: 1;
}

.textos {
  flex: 1;
  color: #fff;
  z-index: 2;
}

.textos h1 {
  font-size: 2.3rem;
  line-height: 1.2;
  font-weight: 600;
}

.textos .subtitulo {
  font-size: 1rem;
  font-weight: 500;
  padding-bottom: 20px;
}

.textos .lugar {
  font-size: .7rem;
}
.formulario-qualifio {
  width: 40%;
  height: auto;
  z-index: 99;
}
.formulario {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 2;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.3);
}

.formulario input,
.formulario select {
  padding: 8px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid;
}
.formulario label {
  font-size: 14px;
  color: #fff;
}
.formulario button {
  background: #003f8f;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 100px;
  margin-top: 10px;
}

/* Speaker */
.speaker {
  background: #4c5c75;
  color: white;
  padding: 40px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 30px;
}
.speaker h2 {
  font: 600 2.3rem / 1rem Poppins, serif;
  padding-bottom: 0;
}
.speaker-content-wrapper {
  display: flex; /* Flexbox para la foto y el detalle */
  flex-direction: row; /* Coloca foto y detalle uno al lado del otro */
  gap: 70px; /* Espacio entre la foto y el detalle */
  align-items: center; /* Alinea verticalmente la foto y el detalle */
  width: 100%; /* Asegura que el contenedor ocupe todo el ancho disponible */
}
.speakertxt {
  text-align: left;
}

.speaker .detalle button {
  border: 1px solid #fff;
  color: #fff;
  border-radius: 100px;
  background: transparent;
  padding: 8px;
  font-size: 12px;
}

.foto {
  width: auto;
  height: 400px;
  border-radius: 12px;
  display: flex;
}
.detalle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-grow: 1;
}
.detalle h3 {
  font-size: 1.37em;
  font-weight: 600;
  line-height: .6rem;
}
.detalle p {
  font-size: 1em;
  font-weight: 400;
  line-height: 1.3;
}

/* Slider */
.slider-section {
  background: #435169;
  color: white;
  padding: 20px;
}

.slider-wrapper {
  position: relative;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

.slider-track {
  display: flex;
  transition: transform 0.5s ease;
  will-change: transform;
  width: 100%;
  flex-wrap: nowrap;
  transform: translateX(0);
}

.slide {
  flex: 0 0 33.3333%;
  padding: 1rem;
  box-sizing: border-box;
}
.slide .descripcion {
  font: 300 .84rem / 1.1rem Poppins, serif;
  text-align: left;
}
.slide p {
  font: 500 1.1rem / 1.1rem Poppins, serif;
  text-align: left;
}

.avatar {
  width: auto;
  height: 350px;
  border-radius: 12px;
  margin: 0 auto;
  display: flex;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #003f8f;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  padding: 0 10px;
  border-radius: 50%;
  background-color: white;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.prev { left: 0; }
.next { right: 0; }

/* Paneles */
.paneles {
  padding: 20px;
  background: #fff;
}

.paneles h2 {
  text-align: center;
}

.panel-grid {
  display: flex;
  gap: 14px;
}

.panel {
  flex: 1;
  background: #f5f5f5;
  padding: 15px;
  border-radius: 6px;
}
.panel h3{
  font: 700 1.3rem / 1.1rem Poppins, serif;
}
.panel .hora {
  font: 700 .9rem / 1.1rem Poppins, serif;
  background: url("images/icon-hora.svg") no-repeat 0px center;
  height: 18px;
  padding-left: 24px;
}

.panel button {
  background: #003f8f;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 7px;
  margin-top: 10px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 0;
  background: #003f8f;
}

.footer .logos {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
}

.footer img {
  height: 30px;
}

.footer p {
  color: #fff;
}

/* MOBILE */
@media (max-width: 768px) {
  body {
  background: #000;
}
  .background {
    padding: 0;
}
  .macbook {
    background: none;
    width: 100%;
    height: auto;
    padding: 0;
  }

  .screen {
    width: 100%;
    height: auto;
    box-shadow: none;
    overflow: visible;
  }

  .top-bar {
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 16px;
    gap: 8px;
  }

  .top-bar-content {
    flex-direction: row;
    align-items: flex-start;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 8px;
  }

  .hero {
    flex-direction: column;
    gap: 20px;
    position: relative;
  }

  .hero::before {
    width: 100%;
    height: 100%;
  }

  .textos {
    padding: 0 16px;
  }

  .textos h1 {
    font-size: 1.6rem;
    text-align: center;
  }
  .formulario-qualifio {
  width: 100%;
  height: auto;
}
  .formulario {
    padding: 16px;
    margin: 0 16px;
  }
  .formulario label {
    font-size: 12px;
    color: #fff;
}
  .speaker {
    flex-direction: column;
    gap: 20px;
  }
  .speakertxt h2 {
    font-size: 1.8rem;
    line-height: 1;
}
  .speaker-content-wrapper {
    flex-direction: column;
    gap: 20px;
    align-items: center; 
    width: 100%; 
  }

  .foto {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
  }
  .foto img {
    width: 100%;
    height: auto;
  }
  .detalle p {
    font: 300 .84rem / 1.1rem Poppins, serif;
  }

  .slider-section {
    padding: 16px;
  }

  .slider-wrapper {
    overflow-x: hidden;
    width: 95%;
    position: relative;
    margin: auto;
    min-width: 0;
  }

  .slider-track {
  display: flex;
  flex-wrap: nowrap;
  transition: transform 0.5s ease;
  width: 100%;
  will-change: transform;
  }

  .slide {
    flex: 0 0 auto;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 0 12px;
  }
  .slide, .slide * {
    min-width: 0;
  }
  .slide p, .slide .descripcion {
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
  }
  .slide .avatar {
    height: auto;
  }
  .slide .avatar img {
    width: 100%;
    height: auto;
  }

  .slider-btn {
    font-size: 1.5rem;
    padding: 0 6px;
    width: 40px;
    height: 40px;
  }

  .paneles {
    padding: 16px;
  }

  .paneles h2 {
    font-size: 1.2rem;
  }

  .panel-grid {
    flex-direction: column;
  }

  .panel {
    margin-bottom: 2px;
  }

  .footer {
    padding: 16px;
  }

  .footer .logos {
    flex-direction: row;
    align-items: center;
    gap: 34px;
  }

  .footer img {
    height: 24px;
  }

  .footer p {
    font-size: 0.9rem;
  }
}