:root {
  --color-red-one: #ee0606;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-grey: #545454;
  --color-light-gray: #dedcdc;

  --font-primary: "OpenSans", sans-serif;
  --font-secondary: "Bebas", sans-serif;
  --font-title: "Anton", sans-serif;

  --font-h1: 40px;
  --font-h2: 32px;
  --font-h3: 28px;
  --font-h4: 21px;
  --font-h5: 18px;
  --font-h6: 14px;
  --font-p: 16px;
  --line-height-p: 1.5;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--color-white);
  font-family: var(--font-primary);
}

@font-face {
  font-family: "Anton";
  src: url('src/fonts/Anton-Regular.ttf');
}

@font-face {
  font-family: "Bebas";
  src: url('src/fonts/BebasNeue-Regular.ttf');
}

@font-face {
  font-family: "OpenSans";
  src: url('src/fonts/OpenSans-VariableFont_wdth,wght.ttf');
}

p, ul, li {
  margin: 14px 0;
  hyphens: auto;
  text-align: justify;
  font-size: 16px;
  word-spacing: -1px;
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 28px; }
h4 { font-size: 21px; }
h5 { font-size: 18px; }
h6 { font-size: 14px; }

ol, ul {
  font-size: 16px;
}

picture {
  display: inline-block;
  max-width: 100%;
}

picture img {
  display: block;
  max-width: 100%;
  height: auto;
}

#container {
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.allSections {
  padding: 40px 80px;
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  color: var(--color-black);
}

#main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: var(--color-black);
}

#logo {
  height: 100px;
  width: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left center;
  background-image: url(src/img/logo.png);
  font-size: 0;
}

#main-navigation ul {
  list-style: none;
  display: flex;
  gap: 30px;
}

#main-navigation li a {
  text-decoration: none;
  color: var(--color-white);
  font-size: 23px;
  transition: color 0.3s ease;
  font-family: var(--font-secondary);
}

#main-navigation li a:hover {
  color: var(--color-red-one);
}

#bannerContainer {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
}

#bannerImage {
  width: 100%;
  aspect-ratio: 16/9;
  background-image: url('src/img/banner.png');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
}

#bannerText {
  position: absolute;
  top: 30%;
  left: 58%;
  max-width: 90%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-break: break-word;
  width: fit-content;
}

#bannerText h2 {
  font-family: var(--font-title);
  font-size: clamp(40px, 5.9vw, 80px);
  color: var(--color-red-one);
}

#bannerText h3, #bannerText p {
  font-family: var(--font-secondary);
  color: var(--color-black);
}

#bannerText h3 {
  font-size: clamp(18px, 2.1vw, 32px);
  text-align: left;
}

#bannerText p {
  font-size: clamp(12px, 1.5vw, 22px);
  line-height: var(--line-height-p);
}


#history {
  background-color: var(--color-light-gray);
  display: flex;
  gap: 40px;
  border-radius: 20px;
  border: 2px solid var(--color-black);
  padding: 40px 80px 70px;
}

#history div {
  width: 50%;
}

#historyPartOne h2 {
  text-align: center;
}


#philosophy h2, #philosophy h3 {
  text-align: center;
}

#philosophy picture {
  width: 100%;
  display: flex;
  justify-content: center;
}

.photoVertical {
  box-shadow: 40px 30px var(--color-red-one);
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.photoHorizontal {
  box-shadow: -40px 30px var(--color-red-one);
  border-radius: 20px;
}

.photoContainer {
  display: flex;
  justify-content: center;
}


#principlesOfTaekwondo ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 0;
  margin: 0;
}

#principlesOfTaekwondo li {
  background-color: var(--color-red-one);
  border-radius: 10px;
  padding: 15px;
  flex: 1 1 calc(20% - 20px);
  min-width: 200px;
  text-align: center;
  border: 2px solid var(--color-black);
  box-sizing: border-box;
}

#principlesOfTaekwondo strong {
  font-size: 1.2em;
  font-family: var(--font-secondary);
  letter-spacing: 0.125em;
}

.containePrinciples {
  padding: 30px 0;
}


#influenceOnLife {
  background-color: var(--color-white);
  border-radius: 20px;
  border: 2px solid var(--color-black);
}

#influenceOnLife h2 {
  text-align: center;
}

#influenceOnLife ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

#influenceOnLife li {
  flex: 1 1 calc(20% - 16px);
  aspect-ratio: 1/1;
  background-color: var(--color-red-one);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-family: var(--font-primary);
}

#influenceOnLife li:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

#influenceOnLife li strong {
  display: block;
  font-size: 1.2em;
  letter-spacing: 0.125em;
  font-family: var(--font-secondary);
}

#influenceOnLife .descripcion {
  display: none;
}

#influenceOnLife li:hover strong {
  display: none;
}

#influenceOnLife li:hover .descripcion {
  display: block;
}


#opinions h2 {
  text-align: center;
  padding-bottom: 16px;
}

.opinionsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.peoplesOpinions {
  flex: 1 1 calc(25% - 20px);
  box-sizing: border-box;
  border: 2px solid var(--color-black);
  border-radius: 15px;
  padding: 20px;
  background-color: var(--color-light-gray);
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 15px 15px var(--color-red-one);
}

.review-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 10px;
}

.review-name {
  font-weight: bold;
  margin-bottom: 10px;
  text-align: center;
}

.peopleComment {
  text-align: left;
  line-height: var(--line-height-p);
  max-width: 100%;
}


footer {
  padding: 0 30px 30px;
}

#contact {
  background-color: var(--color-black);
  color: var(--color-light-gray);
  display: block;
}

#contact ul {
  list-style: none;
}

#contact ul li a {
  text-align: center;
  color: var(--color-white);
  text-decoration: none;
}

#contact ul li a:hover {
  color: var(--color-red-one);
}

#contact img {
  object-fit: cover;
}

#contact h2 + div {
  display: flex;
  flex-direction: row;
}

#contact h2 {
  display: none;
}

#contact div > div {
  flex: 33.33%;
}

#contact div .middle {
  margin: 0 40px;
}


@media screen and (max-width: 600px) {
  #main-navigation ul,
  #main-navigation li a {
    display: none;
  }

  #bannerContainer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 30px;
    height: auto;
  }

  #bannerImage {
    background-image: none;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  #bannerText {
    position: relative;
    top: 0;
    left: 0;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    width: auto;
    padding: 0;
  }

  #bannerText h2,
  #bannerText h3,
  #bannerText p {
    text-align: left;
  }

  #bannerText h2 {
    margin-bottom: 10px;
  }

  #bannerText h3 {
    margin-bottom: 20px;
  }

  #bannerText p {
    line-height: 1.5;
  }

  #logo {
    margin: 0 auto;
    background-position: center;
  }

  .allSections {
    padding: 30px 30px;
  }

  #history {
    display: block;
    border-radius: 0;
    border: none;
    padding: 40px 30px;
  }

  #history div {
    width: 100%;
    text-align: center;
  }

  .photoHorizontal, .photoVertical {
    box-shadow: none;
  }

  #principlesOfTaekwondo ul {
    flex-direction: column;
    align-items: center;
  }

  #principlesOfTaekwondo ul li {
    border-radius: 15px;
    border: none;
    background-color: var(--color-light-gray);
  }

  #influenceOnLife li:hover {
    transform: none;  
    box-shadow: none; 
  }

  #influenceOnLife li:hover strong,
  #influenceOnLife li:hover .descripcion {
    display: block;   
  }


  #influenceOnLife {
    display: block;
    border-radius: 0;
    border: none;
    background-color: var(--color-light-gray);
   
  }

  #influenceOnLife ul {
    flex-direction: column;
    gap: 10px;
  }

  #influenceOnLife li {
    flex: none;
    width: 100%;
    aspect-ratio: auto;
    border-radius: 8px;
    background-color: #f2f2f2;
    padding: 10px 15px;
    cursor: default;
    transition: none;
    transform: none;
    text-align: left;
  
  }

  #influenceOnLife li strong,
  #influenceOnLife .descripcion {
    display: block;
    font-size: 14px;
   
     
  }

  .peoplesOpinions {
    border-radius: 15px;
    border: none;
    box-shadow: none;
  }

  #contact h2 + div {
    flex-direction: column;
    align-items: center;
  }

  #contact div > div {
    flex: auto;
  }

  #contact div .middle {
    margin: 30px 0;
  }

  #redesSociales ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  #redesSociales li {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #redesSociales a img {
    width: 70px;
  }
}

@media screen and (min-width: 601px) and (max-width: 1024px) {
  #history, #influenceOnLife {
    border-radius: 0;
    border: none;
    display: block;
  }

  #history div {
    width: 100%;
    text-align: center;
  }

  .photoHorizontal {
    box-shadow: none;
  }

  #influenceOnLife ul {
    gap: 15px;
    justify-content: space-around;
  }

  #influenceOnLife li {
    flex: 1 1 calc(45% - 15px);
    aspect-ratio: auto;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: none;
    transform: none;
  }

  #influenceOnLife li strong, #influenceOnLife li .descripcion {
    display: block;
  }

  #influenceOnLife li:hover strong,
  #influenceOnLife li:hover .descripcion {
    display: block;   
  }


  #influenceOnLife {
    display: block;
    border-radius: 0;
    border: none;
    background-color: var(--color-light-gray);
   
  }

  #influenceOnLife li:hover {
    transform: none;
    box-shadow: none;
  }

  .peoplesOpinions {
    flex: 1 1 calc(25% - 20px);
  }

  #contact h2 + div {
    flex-direction: column;
    align-items: center;
  }

  #contact div > div {
    flex: auto;
  }

  #contact div .middle {
    margin: 30px 0;
  }

  #redesSociales ul {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 0;
    margin: 0;
  }

  #redesSociales li {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #redesSociales a img {
    width: 70px;
  }
}
