:root {
  --color-primary: #014a96;
  --color-muted: #6c757d;
  --background-color: #ffffff;
  --foreground-color: #000000;
  --red-color: #d60134;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h2 {
  margin: 0;
}
h1,
h2,
h3,
h3,
h4 {
  line-height: 1.2;
}
section {
  padding: 0;
  margin: 0;
}
body {
  font-family: "Montserrat", "Open Sans", Arial, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.main {
  flex: 1;
}
picture {
  width: 100%;
}
picture img {
  width: 100%;
  height: auto;
  object-fit: cover;
}
button {
  cursor: pointer;
  background-color: transparent;
  border: none;
}
img {
  height: auto;
  width: 100%;
  display: block;
}
li {
  list-style: none;
}
cite {
  display: block;
}
/* HEADER */
.header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  background-color: var(--background-color);
  padding: 1.7rem 0.5rem 1rem 1rem;
}
.line-red {
  width: 100%;
  height: 10px;
  background-color: var(--red-color);
  position: absolute;
  top: 0;
  left: 0;
}

.relative {
  position: relative;
}
.cursor-pointer {
  cursor: pointer;
}


/* Menú hamburguesa */
.panel-btn {
  display: block;
  height: 3rem;
  right: 3vh;
  position: fixed;
  width: 2rem;
  z-index: 1;
}
.bar {
  display: block;
  height: 2px;
  margin: 0.5rem 0;
  background-color: #333;
  transition: all 0.3s ease;
}
/* Menú oculto por defecto */
.panel {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  transform: translate(0, -120%);
  transition: transform 0.3s ease;
  background-color: var(--background-color);
  padding: 1rem 0.5rem 1rem 1rem;
}
.panel-logo {
  width: clamp(180px, 50vw, 250px);
  margin: 0 0 1em 1;
}
.panel.is-active {
  transform: translate(0, 0);
}
.menu {
  width: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 1rem;
  padding: 1rem 0;
}
.menu-link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: clamp(14px, 1vw, 16px);
}
/*HERO*/

.max-w-75ch{
  width: min(100%, 75ch);

}

.paragraph--center {
  text-align: center;
  place-self: center;
}
.video-paragraph {
  text-align: center;
  place-self: center;
  padding: 0.5rem 0;
}

.section-1 {
  border-bottom: 1px solid #ccc;
}
.decoration-none {
  text-decoration: none;
}
.wrapper {
  padding: clamp(20px, 5vw, 100px) clamp(20px, 5vw, 100px);
  font-size: clamp(16px, 1.5vw, 20px);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  place-content: center;
  align-items: center;
}

.section-2__figure {
  padding: 0 1rem 2.5vw 1rem;
  width: min(100%, 768px);
  place-self: center;
}

.section-3__subtitle {
  font-size: clamp(18px, 1.7vw, 22px);
}



.section-4__videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2vw;
}

.video-card {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  max-width: 22%;
  flex: 1 1 22%;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}

.video-card:hover {
  transform: scale(1.05);
}

.video-card img {
  width: 100%;
}

.video-caption{
  font-size:  clamp(12px, 2vw, 28px);
}
/* Modal base (oculto) */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: transparent;
}

.modal-content iframe {
  width: 100%;
  height: 250px;
  border: none;
  border-radius: 10px;
}

.close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  font-size: 2rem;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.close:hover {
  color: #fff;
}

.video-card:focus:not(:focus-visible) {
  outline: none;
}
.close:focus:not(:focus-visible) {
  outline: none;
}

.text-center {
  text-align: center;
}
.subtitle {
  color: var(--color-primary);
  font-size: clamp(20px, 1.8vw, 28px);
  text-align: center;
  font-weight: 700;
}
.section-3__article {
  grid-column: 1/3;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  place-self: center;
  place-content: center;
  place-items: center;
  padding: 2.5vw 5vw;
}
.section-3__paragraph {
  width: min(100%, 75ch);
}

.section-3__button {
  width: min(100%, 240px);
  font-size: clamp(16px, 1.5vw, 20px);
  border: 1px solid var(--color-primary);
  transition: all 0.3s ease;
  margin: 1rem 0;
}
.section-3__button--center {
  display: block;
  margin: 1rem auto;
}
.section-3__button:hover {
  background-color: var(--background-color);
  color: var(--color-primary);
}
.section-3__last-paragraph {
  text-align: center;
}
/*FOOTER*/

.border-bottom-color-foreground{
  border-bottom: 1px solid var(--background-color);
}
.footer__logo {
  width: 100px;
  object-fit: contain;
}


/*MEDIA QUERIES*/
@media (min-width: 768px) {
 
  .footer__logo {
    width: 200px;
  }
  .footer_address {
    gap: 4em;
  }
  .nav-footer {
    flex: 1;
    gap: 1em;
  }
  
}
/* tablet */
@media (min-width: 768px) {
  .video-card {
    max-width: 22%;
    flex: 1 1 22%;
  }

  .modal-content iframe {
    height: 450px;
  }

  .section-4__header h2 {
    font-size: 2rem;
  }
}
/* desktop */
@media (min-width: 1480px) {
  .header {
    justify-content: space-between;
  }
  .panel-logo {
    display: none;
  }
  .panel {
    position: relative;
    transform: translate(0, 0);
    padding: 1em 0 1em 0;
  }
  
  .panel-btn {
    display: none;
  }
  .menu {
    align-items: center;
    flex-direction: row;
    justify-content: flex-end;
    padding: 0;
  }
  .menu ul {
    display: flex;
    gap: 20px;
  }
  .menu-item:last-child {
    margin: 0;
  }
 
  .footer_address {
    gap: 10em;
    padding-bottom: 5vw;
  }
}
.about__item {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}


































































/* NEW VERSOPM*/


.nav-link {
  font-size: var(--font-size-md);
}

.color-primary {
  color: var(--color-primary);
}


