/* http://meyerweb.com/eric/tools/css/reset/
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* ✅ Evita overflow horizontal: padding no suma ancho */
*, *::before, *::after{
  box-sizing: border-box;
}

/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

body { line-height: 1; }
ol, ul { list-style: none; }

blockquote, q { quotes: none; }
blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Cinturón y tirantes contra scroll lateral */
html, body{
  overflow-x: hidden;
}

/* ✅ Evita deformaciones globales */
img{
  height: auto;
}

/* Altura común de los embeds en desktop (Vimeo + Slido) */
:root{
  --embed-h: clamp(460px, 65vh, 720px);
}

/* ✅ Misma “caja” (ancho) para header/main/footer, con márgenes laterales */
header, main, footer{
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Header */
header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px 30px;
}

/* Logo principal */
.logo-vrs {
  width: 480px;
  max-width: 100%;
  height: auto;
}

/* Logo SJD (el que no tiene clase) */
header img:not(.logo-vrs){
  width: auto;
  height: auto;
  max-height: 90px;
  max-width: 40vw;
  object-fit: contain;
}

/* Main */
main{
  padding: 0 30px;

  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

/* Vimeo */
.iframe-video{
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  height: var(--embed-h);
  padding: 0;
}

/* Slido */
.iframe-chat{
  flex: 0 0 clamp(320px, 28vw, 420px);
  position: relative;
  height: var(--embed-h);
  padding: 0;
}

/* Footer */
footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  min-height: 120px;
  margin-top: 30px;
  margin-bottom: 30px;
  padding: 0 30px;
}

/* Bloques */
.footer-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin: 0 10px;
}

.footer-block > span {
  margin-bottom: 20px;
  font-size: 12px;
}

/* ✅ Logos footer: sin deformación + limitación por altura */
.logos {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
}

.logos img{
  margin: 0;
  max-height: 70px;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

/* Centro footer */
.footer-middle {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 10px;
}

.footer-middle-logo {
  display: block;
  height: 140px;
  width: auto;
  max-width: 100%;
  transform: translateY(25px);
  object-fit: contain;
}

/* Derecha footer */
.footer-right {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

/* Password dialog */
.password-dialog {
  background: #fff;
  top: 0;
  left: 0;
  position: fixed;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.password-dialog header { margin-bottom: 0px; }

.password-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.password-wrapper .form {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.password-wrapper .form label {
  font-size: 16px;
  margin-bottom: 20px;
  align-self: start;
  text-transform: uppercase;
  color: #005766;
  font-weight: 800;
  font-family: Arial, Helvetica, sans-serif;
}

.password-wrapper .form input {
  width: 230px;
  height: 20px;
  border-radius: 0;
  box-shadow: none;
  border: 1px solid #333333;
  padding: 15px;
  font-size: 20px;
  line-height: 20px;
  margin-bottom: 20px;
  max-width: 100%;
}

.password-wrapper .form button {
  width: 260px;
  height: 50px;
  border-radius: 0;
  box-shadow: none;
  border: none;
  padding: 15px;
  font-size: 20px;
  line-height: 20px;
  background-color: #005766;
  color: #fff;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  footer {
    flex-direction: column;
  }

  .footer-right {
    flex-direction: column;
    align-items: center;
  }

  .footer-middle {
    flex: 0;
    margin: 10px 0 20px;
  }

  .footer-block {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  main {
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 20px;
    padding: 0 10px;
  }

  /* En móvil/tablet, volvemos a ratio por padding */
  .iframe-video,
  .iframe-chat{
    height: auto;
    padding: 56.25% 0 0 0;
  }

  header{
    padding: 20px 10px;
    flex-wrap: wrap;
  }

  header img:not(.logo-vrs){
    max-height: 70px;
    max-width: 80vw;
  }
}

@media (max-width: 620px) {
  .iframe-chat {
    padding: 86.25% 0 0 0;
  }

  header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
  }

  .logo-vrs {
    margin-bottom: 20px;
    width: 190px;
    max-width: 100%;
    height: auto;
  }

  header img:not(.logo-vrs){
    max-height: 60px;
    max-width: 90vw;
  }

  .footer-middle-logo {
    height: 90px;
    width: auto;
    max-width: 100%;
    transform: translateY(12px);
  }

  /* Logos footer en móvil: un poco más contenidos */
  .logos img{
    max-height: 50px;
  }
}
