@import url('../fonts/font-definitions.css');

:root {
  /* Colors */
  --white: #ffffff;
  --black: #000000;
  --red: red;
  --headerHeight: 6rem;
  --light-gray: whitesmoke;
  --gray: gray;
  /* Font theme variable */
  --round-key: "RoundKey", "Arial";
}

body, h1, h2, h3, h4, p, ul, li, figure {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--round-key);
  font-weight: 200;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.button {
  background-color: var(--red);
  color: var(--white);
  text-decoration: none;
  display: inline-block;
  padding: .5rem .5rem;
  margin-top: 1rem;
  min-width: 7rem;
  font-size: 1.5rem;
  font-weight: normal;
  text-align: center;
  border-radius: 5px;
  transition-duration: 0.3s;
  border: solid 2px var(--red);
  font-family: var(--round-key);
  cursor: pointer;
}

.center-container {
  display: flex;
  justify-content: center;
  width: 100%;
  position: relative;
}

.button--reverse {
  background-color: var(--black);
  color: var(--white);
  border: solid 2px var(--black);
}

.button:hover {
  background-color: var(--black);
  border: solid 2px var(--black);
}

.button--reverse:hover {
  background-color: var(--red);
}

.section {
  padding: 4rem 0;
}

.section--gray {
  background-color: var(--light-gray);
}

.section--black {
  background-color: var(--black);
  color: var(--white);
}

.title {
  font-size: 3rem;
  text-align: center;
  font-weight: 500;
  margin: 0 auto;
  width: 100%;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.list li {
  font-weight: 300;
}

.image {
  position: absolute;
  object-fit: contain;
  width: 100%;
  height: 100%;
}

/* Mantener ratio 16:9 */
.video-section__wrapper {
  position: relative;
  height: 0;
  cursor: pointer;  
  width: 100%;
  aspect-ratio: 4 / 3;
}

.image-section__wrapper {
  position: relative;
  height: 0;  width: 100%;
  aspect-ratio: 4 / 3;
}

.video-section {
  width: 100%;
  aspect-ratio: 4 / 3;
}

/* Imagen de portada */
.video-section__cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Botón “play” overlay */
.video-section__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: url('../img/play-icon.svg') no-repeat center;
  background-color: var(--black);
  opacity: 0.5;
  background-size: 5rem;
  border: none;
  cursor: pointer;
  z-index: 2;
  padding: 4rem;
}

/* Iframe (se inyecta vía JS) */
.video-section__iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-section__iframe {
  width: 100%;
}

.additional-section--odd {
  background-color: var(--light-gray);
}

.additional-section__body {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0;
}

.additional-section__body--odd {
  flex-direction: row-reverse;
}

.additional-section__description-title {
  font-weight: 500;
  font-size: 2.5rem;
}

.additional-section__description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 25rem;
  padding: 0 4rem;
  box-sizing: border-box;
  gap: 1rem;
  width: 50%;
}

.additional-section__description-text {
  font-size: 1.8rem;
  color: var(--gray);
  font-weight: 500;
}

.about-us__media-container {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.about-us__media-wrapper {
  height: 100%;
}

.additional-section__media-container {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.additional-section__media-wrapper {
  height: 100%;
}

.additional-section__media {
  width: 50%;
}

.aditional-section__reviews {
  justify-self: center;
  margin-left: 2rem;
  margin-top: 1rem;
}

.additional-section--black {
  background-color: var(--black);
  color: var(--white);
}

.accordion {
  width: 100%;
  font-family: var(--round-key);
}

.accordion__item {
  border: 1px solid var(--red);
  margin-bottom: 1rem;
  border-radius: 15px;
  overflow: hidden;
  padding: 0 1rem;
}

.accordion__header {
  display: flex;
  border: none;
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 1rem;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  font-family: var(--round-key);
  font-size: 1rem;
  overflow: hidden;
}

.accordion__title {
  font-size: 2rem;
}

.accordion__icon {
  color: var(--red);
  transition: transform 0.3s ease;
}

/* Rotación cuando está abierto */
.accordion__item--open .accordion__icon {
  transform: rotate(180deg);
}

.accordion__item--open .accordion__header {
  border-bottom: 1px solid var(--red);
}

.accordion__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1rem;
  font-size: 1.5rem;
}

/* Opcional: algo de separación interna al abrir */
.accordion__item--open .accordion__content {
  padding-top: 1rem;
  padding-bottom: 1rem;

}

.button--outline {
  background-color: var(--white);
  border: solid 2px var(--black);
  color: var(--black);
}

.button--outline:hover {
  color: var(--white);
}

#animated-title>p {
  font-weight: normal;
}

@media screen and (max-width: 768px) {
  .additional-section {
    padding: 2rem 0;
  }

  .additional-section__description, .additional-section__media {
    width: 100%;
    padding: 0;
    min-height: 15rem;
  }

  .additional-section__body, .additional-section__body--odd {
    flex-direction: column-reverse;
  }

  .additional-section__media-wrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
  }

  .additional-section__description-title {
    text-align: center;
  }

  .additional-section__description-button {
    text-align: center;
  }

  .title {
    text-align: center;
  }
}

span.animate {
  transition: opacity 0.3s ease;
  font-weight: bold;
  text-decoration: underline;
}