/* 
  dark: #1a171b
  accent: #2780fe
  gold: #fecc00
*/

:root {
  --dark: #1a171b;
  --accent: #2780fe;
  --gold: #fecc00;
  --light: #fff;
  
  --oro: #efc346;
  --plata: #9b9d9e;
  --bronce: #d0945f;
  --apoyan: #2780fe;
  
  --p-small: 1rem;
  --p-medium: 2rem;

}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body { 
  font-family: Poppins, Arial, Helvetica, sans-serif;
  background-color: var(--dark);
  color: var(--light)
}

a, button { cursor: pointer; }
a button { color: black; }
h1, h2, h3, h4 {
  color: var(--accent);
}

h2 {
  padding: 1.5rem 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  /* border: 2px solid white; */
}

.container.flex {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
}

.left, .right {
  width: 50%;
}

.centered {
  text-align: center;
}

/*==== botones ====*/

button {
  border-radius: 30px;
  border: none;
  padding: .5rem 2rem;
  text-transform: uppercase;
  font-weight: bold;
  margin-bottom: .5rem;
  font-size: 1rem;
}
button.gold { background-color: var(--gold); transition: all .2s ease-in-out;}
button.gold:hover { background-color: var(--gold); transform: scale(1.1);}
button.accent { background-color: var(--accent); transition: all .2s ease-in-out;}
button.accent:hover { background-color: var(--accent); transform: scale(1.1);}


/*==== cabezal ====*/

img.logo {
  max-width: 20rem;
}
header {
  background: var(--accent);
  border-bottom: .7rem solid var(--gold);
  padding: 2rem 0;
  color: var(--dark);
}
.header-info, .expo {
  display: grid;
}
.header-info {
  grid-template-columns: 30px 1fr;
  margin-top: 9px;
  padding-left: 12rem;
}

.header-info img {
  max-width: 20px;
}


/*==== ciudad ====*/

#ciudad {
  background-image: 
    linear-gradient(to top, rgba(26,23,27,1) 0%, rgba(26,23,27,0) 50%),
    url('../imgs/home-montevideo.png');
  background-position:  center bottom;
  background-repeat: no-repeat;
  
  height: 70vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: end;
  padding: 0 0 4rem;
}


/*==== inscription ====*/

#inscription .container.flex {
  justify-content: space-between;
  padding-bottom: var(--p-medium);
  border-bottom: 1px solid var(--accent);
}
.uruguay-business .left {
  max-width: 260px;
}
.uruguay-business .right {
  display: flex;
  justify-content: end;
}
.uruguay-business.right div {
  text-align: center;
  
  p{
    margin: 0;
  }
}


/*==== el foro ====*/

#el-foro .container {
  padding-bottom: var(--p-medium);
  border-bottom: 1px solid var(--accent);

  h2 {
    background: url('../imgs/icon-foro.png') center right no-repeat;
    background-size: 3%;
  }
}


/*==== speakers ====*/
#speakers .container {
  padding-bottom: var(--p-medium);
  border-bottom: 1px solid var(--accent);

  h2 {
    background: url('../imgs/icon-speakers.png') center right no-repeat;
    background-size: 3%;
  }

  .card-speaker {
    width: 25%;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    .card-pic {
      text-align: center;
    }

    .card-pic img {
      /* transform: scale(45%); */
      text-align: center;
      max-width: 140px;
      margin: 0 auto .5rem;
      border-radius: 50%;
      border: 4px solid white;
    }
    
    .card-info {
      margin-bottom: 1rem;
      text-align: center;
    }

  }

  .modal-dialog { width: 65%; max-width:700px }
  .modal-content { background: #232323; color: white; }
  .modal-body { padding: 1.5rem }
  .modal-body img {
    border-radius: 50%;
    border: 4px solid white;
    margin: 1.5rem auto;
    max-width: 160px;
  }
  .modal-header {
    border-bottom: 2px solid var(--accent);
  }
  .modal-footer {
    border-top: 2px solid var(--accent);
  }
  .modal-header .btn-close { color: white }
  .modal-footer { justify-content: center; }
    
    .btn-primary:hover { cursor: pointer; }
    
    .speakers-container { 
      display: flex; 
      flex-wrap: wrap;
    }

    .card-speaker {
      margin-bottom: 2.75rem;
    }
    
    .card-name h3 {
      font-size: 1.3rem;
      text-align: center;
    }

    .card-name h3.twenty {
      font-size: 20px !important;
    }

    .card-flag img {
      max-width: 50px;
      margin-bottom: 1rem;
    }
    
    button.btn-primary,
    button.btn-secondary {
      border-radius: 30px;
      font-size: .8rem;
      padding: 6px 16px
    }

    button.btn-secondary {
      background-color: var(--accent) !important;
    }

    @media screen and (max-width: 500px) {
      .card-speaker {
        max-width: 60%;
        margin: auto;
      }
    }
    
    @media screen and (max-width: 600px) {
      #speakers .container .card-speaker {
        width: 50%;
      }
    }

    @media screen and (max-width: 790px) {
      #speakers .container {

       .card-speaker {
        width: 33.33%;
      }
    }
  }
}


/*==== agenda ====*/

#agenda .container {
  padding-bottom: var(--p-medium);
  border-bottom: 1px solid var(--accent);

  h2 {
    background: url('../imgs/icon-calendario.png') center right no-repeat;
    background-size: 3%;
  }
}
.expo {
  grid-template-columns: 60px 1fr;
  margin-bottom: .5rem;
  padding: .3rem 0 .6rem;
  border-bottom: 1px solid #3d3c3f;
}
.hora {
  font-weight: bold;
}
.descripcion {
  line-height: 1.4;
}


/*==== donde ====*/

#ubicacion {
  padding-bottom: 1.5rem;

  h2 {
    background: url('../imgs/icon-ubicacion.png') center right no-repeat;
    background-size: 3%;
  }
  p { margin-bottom: 1.5rem;}
}
#ubicacion .container .container.flex {
  align-items: start;
}
#ubicacion .container .container.flex .left {
  padding-right: 2px;

  img {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
  }
}
#ubicacion .container .container.flex .right {
  padding-left: 2px;
}


/*==== sponsors ====*/

/* --oro --plata --bronce */

#sponsors h3 {
  display: inline-block;
  text-transform: uppercase;
  color: var(--light);
  padding: .4rem 2.2rem;
  border-radius: 30px;
}

h3.oro { background-color: var(--gold); }
h3.plata { background-color: var(--plata); }
h3.bronce { background-color: var(--bronce); }
h3.apoyan { background-color: var(--apoyan); color: var(--light); }

#sponsors {
  background-color: white;
  padding: 1.5rem 0 3rem;

  .container.flex {
    align-items: start;
    padding: 0;

    h2 {
      margin: 0;
      padding: 0;
    }

    .right {
      text-align: right;
      padding-top: .5rem;
    }
  }
}
.sponsors-logos {
  max-width: 1000px;
  display: flex;
  justify-content: center;
  padding-top: .5rem;
  margin-bottom: 5rem;

  flex-wrap: wrap;
  .sponsor-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 25%;
  }
  .sponsor-logo.reduce {
    padding: 0 2.5rem
  }
}
.sponsor-logo img {
  min-width: 0; 
  height: auto;
  object-fit: contain;
  transform: scale(60%);
}

.sponsor-logo.ninety img { transform: scale(90%); }
.sponsor-logo.eighty img { transform: scale(80%); }
.sponsor-logo.seventy img { transform: scale(70%); }
.sponsor-logo.fifty img { transform: scale(50%); }
.sponsor-logo.forty img { transform: scale(40%); }


/*==== organizan  ====*/

#organizan {
  background: var(--accent);
  padding: 2rem 0;
  text-align: center;

  h4 {
    color: white;
    font-weight: normal;
  }
  
  .logos {
    /* vertical-align: middle; */
    display: flex;
    align-content: center;
    justify-content: center;

  }

  img {
    max-width: 170px;
    display: inline-block;
    padding: 1rem;
    margin: 0 auto;
  }

  #anii {
    max-width: 140px;
  }
}


/*==== apoyan ====*/

#apoyan {
  padding: 2rem 0;
  border-bottom: 1rem solid var(--gold);
  text-align: center;

  h4 {
    font-weight: normal;
    color: white;
  }
}

#apoyan .container.flex {
  /* justify-content: space-between; */
  flex-direction: column;
  align-items: center;
  padding: var(--p-medium) 0;

  .left {
    max-width: 160px;
    margin-bottom: .5rem;
  }

  .right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    div {
      text-align: center;
    }
  }
}
#ministerio { width: 350px; }




@media screen and (max-width: 600px) {
  section {
    padding: 0 1.5rem;
  }
  .container.flex {
    flex-direction: column;
    .left, .right { width: 100%;}
  }
  button {
    font-size: .9rem;
    padding: .5rem 1rem;
  }

  /*==== cabezal ====*/
  img.logo {
    max-width: 10rem;
  }
  header .container.flex {
    padding: 0 1rem;
    flex-direction: row;
    align-items: flex-start;
    font-size: 13px;

    .left {
      width: 45%;
      margin-right: 1.2rem;
    }
  }
  .header-info {
    padding-left: 0;
  }
  /*==== ciudad ====*/
  #ciudad {
    padding: 0 1rem;
    background-position: center center;
    height: 50vh;
    margin-bottom: 1.5rem;
  }
  /*==== inscription ====*/
  #inscription .container.flex {
    /* flex-direction: row; */
    padding: 0 1rem 1rem;
    margin-bottom: 1rem;
    align-items: center;

    .left {
      margin-bottom: 1.5rem;
      width: 60%;
    }
    .right {
      justify-content: center;
    }
  }
  /*==== el foro ====*/
  #el-foro .container {
    h2 {
      background-size: 6%;
    }
  }
  /*==== speakers ====*/
  #speakers .container {
    h2 {
      background-size: 6%;
    }
  }
  /*==== agenda ====*/
  #agenda .container {
    h2 {
      background-size: 6%;
    }
  }
  /*==== ubicacion ====*/
  #ubicacion {
    h2 {
      background-size: 6%;
    }
    p {
      margin-bottom: 1.5rem auto;
    }
  }
  #ubicacion .container .container.flex .left {
    padding-right: 0;
    margin-bottom: 2px;

    img {
      height: 200px;
    }
  }
  #ubicacion .container .container.flex .right {
    padding-left: 0;
  }
  iframe {
    height: 200px;
  }
  /*==== sponsors ====*/
  #sponsors { 
    .container.flex {
      
      align-items: center;
      .left, .right {
        text-align: center;
      }
    }
    .sponsors-logos {
      flex-wrap: wrap;
      .sponsor-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 50%;
        width: 100%;
      }
    }
    h3 {
      margin-bottom: 1rem;
    }
    .sponsor-logo { padding: 1rem; }
    .sponsor-logo.reduce { padding: 0 5rem;}
    .sponsor-logo.ninety img { transform: scale(90%); }
    .sponsor-logo.eighty img { transform: scale(80%); }
    .sponsor-logo.seventy img { transform: scale(70%); }
    .sponsor-logo.sixty img { transform: scale(60%); }
    .sponsor-logo.fifty img { transform: scale(50%); }
  }
  /*==== organizan ====*/
  section#organizan {
    padding-bottom: .5rem;
  }
  #organizan .container {
    width: 100%;
    text-align: center;
    padding: 0 1.5rem;

    .logos {
      flex-direction: column;
    }
  }
  /*==== apoyan ====*/
  #apoyan h4 { text-align: center; margin-bottom: 1.5rem;}
  #apoyan .container.flex {
    /* flex-direction: row; */
    padding: 0 1rem 1rem;
    margin-bottom: 1rem;
    align-items: center;

    #logos {
      flex-direction: column;
    }
    /* .left {
      margin-bottom: 2rem;
      width: 60%;
    }
    .right {
      justify-content: center;
      align-items: center;
    } */
  }

}


@media screen and (max-width: 1000px) {
  section > .container,
  section#sponsors >.container.flex {
    padding: 0 1rem;
  }
  
  #ubicacion .container .container.flex {
    flex-direction: column;
  }
  #ubicacion .container .container.flex .left {
    padding-right: 0;
    margin-bottom: 2px;
    width: 100%;

    img {
      max-height: 350px;
    }
  }
  #ubicacion .container .container.flex .right {
    padding-left: 0;
    width: 100%;
  }
  iframe {
    max-height: 350px;
  }
}


/* animations */
header .container .left {
  opacity: 0;
  animation: fadeIn .5s ease-in forwards .2s;
}
header .container .right {
  opacity: 0;
  animation: fadeIn .5s ease-in forwards .5s;
}

#ciudad {
  opacity: 0;
  animation: fadeIn .5s ease-in forwards .8s;
}
#angels {
  opacity: 0;
  animation: fadeIn .5s ease-in forwards 1s;
}
#inscription {
  opacity: 0;
  animation: fadeIn .5s ease-in forwards 1.2s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}