/* baqsic reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: all 0.3s ease-in-out;

}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: #f4f7fa;
  color: #333;
}

html {
  scroll-behavior: smooth;
}

/* --- TOPBAR --- */
#topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: #ffffff;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 2rem;
  z-index: 1000;
}

#topbar.shrink {
  padding: 0.5rem 2rem;
}

.logo-container {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.logo {
  height: 100px;
  transition: height 0.3s ease;
}

#topbar.shrink .logo {
  height: 35px;
}

/* --- navigation --- */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.main-nav a {
  text-decoration: none;
  color: #1e3a5f;
  font-weight: 500;
  position: relative;
  transition: color 0.3s;
  white-space: nowrap;              
}

.main-nav a:hover {
  color: #3b82f6;
}

.has-submenu:hover .submenu {
  display: flex;
}

.has-submenu {
  position: relative; 
}

.has-submenu a {
  padding: 0.8rem 1rem;
  white-space: nowrap;
}

.submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  display: none;
  flex-direction: column;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1001;
}

.submenu a {
  padding: 0.8rem 1rem;
  white-space: nowrap;
}


/* --- HERO SECTION --- */
.hero {
  padding-top: 100px;       /* according to topbar */
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.7);
}

.hero-text {
  position: absolute;
  top: 77%;
  left: 5%;
  right: 10%;        
  transform: translateY(-50%);
  color: white;
}

.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: #000000 1px 0 10px;
}

.hero-text p {
  font-size: 1.25rem;
  text-shadow: #000000 1px 0 5px;
}

.hero-arrow {
  position: absolute;    
  top: 90%;
  left: 50%;
  right: 50%;        
}

.hero-arrow img {
  width: 60px;   
  filter: brightness(0.9);
}

/* --- MAIN CONTENT --- */

main {
  padding: 3rem 2rem;
  background-color: #f8f9fa;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.content {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  max-width: 1300px;
  margin-top: 0rem;
  padding: 2.5rem;
  width: 100%; 
}

.pub {
  margin-top: 120px;
  padding: 5rem;
}

.content h2 {
  font-size: 2rem;
  color: #2d438c;
  margin-bottom: 1rem;
  text-align: left;
  font-family: 'Lato Black'; 
  text-shadow: #DCDCDC 1px 0 1px;
}

.content p,
.content ol,
.content li {
  text-align: justify;
  text-justify: inter-word;
}

.content ol, 
.content ul {
  padding-left: 30px;
}

.content-block {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 2rem;
}

.img-col {
  display: flex;
  align-items: center;
}

/* imagen */
.img-col img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.text-col {
  display: flex;
  /* align-items: center; */
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 220px;
  gap: 1rem;
}

.content-block.img-left {
  flex-direction: row-reverse;
}

.content li {
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.box-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0.5rem 0;
  width: 100%;
  box-sizing: border-box;
}

.box-with-icon .icon {
  width: 50px;
  height: auto;
  flex: 0 0 50px;
  display: block;
  margin-right: 2rem; 
}

.box-with-icon h1 {
  font-size: 1.8rem;
  margin: 0.5rem 0;
}

.public-div {
  padding-bottom: 2rem;
  border-bottom: 2px solid #C0C0C0;
}

.public-div p {
  text-align: left;
}

.grey-text {
  color: #808080; 
}


/* ----- FOOTER ----- */
footer {
  background-color: #111;
  color: #ccc;
  padding: 2rem;
  font-size: 0.9rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.footer-logos img {
  height: 100px;
  margin-right: 1rem;
  filter: brightness(1.2);
}

.footer-contact {
  max-width: 300px;
}

.footer-contact a {
  color: #19a8d9;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #333;
  padding-top: 1rem;
  color: #777;
}


/* ------- responsive version -------- */

/* hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #1e3a5f;
}

/* < 1366 px */
@media (max-width: 1365px) {

  html, body {
    width: 100%;
    overflow-x: hidden;
  }

  #topbar {
    padding: 0.5rem 2rem;
  }

  .hamburger {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff;
    flex-direction: column;
    display: none;
  }

  .main-nav.open {
    margin-left: 10%;
    margin-right: 10%;
    display: flex;
    width: 80%;
    border-top: 3px solid #2ea3f2;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .main-nav li {
    text-align: center;
    border-bottom: 1px solid #eee;
    padding: 0.5rem 1rem; 
    
  }

  .submenu {
    position: static;
    box-shadow: none;
    border: none;
    display: none !important;
  }

  .submenu a {
    padding: 0.5rem 1rem; 
  }

  .has-submenu:hover .submenu {
    display: none;
  }

  .has-submenu.open .submenu {
    display: flex !important;
    flex-direction: column;
  }

  .logo-container {
    flex-wrap: nowrap;
    overflow: hidden;
    max-width: 90%;
  }

  .logo {
    width: 90%;
    height: 90%;
    object-fit: cover;
    max-height: 40px;
  }

  #topbar.shrink .logo {
    width: 90%;
    height: 90%;
    object-fit: cover;
    max-height: 40px;
  }

  .hero {
    height: auto;
    margin-top: 40px;
    padding-top: 0px;
  }

  .hero img {
    height: auto;
    object-fit: contain;
  }

  .hero-text {
    color: white;
    padding: 1rem;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
  }

  .hero-text p {
    display: none;
    /*
    position: static;
    font-size: 0.6rem;
    text-shadow: none;
    color: #333;
    background: none;
    margin: 1rem;
    */
  }

  .hero-arrow {
    display: none;
  }

  main {
    padding: 1rem 1rem;
    gap: 1rem;
  }

  .content {
    padding: 2rem;
  }

  .pub {
    margin-top: 60px;
  }

  .content-block,
  .content-block.img-left {
    flex-direction: column;
    align-items: center;
  }

  .content-block .col {
    flex: 1 1 100%;
  }

  .content-block img {
    max-width: 100% !important;
    max-height: 400px;
    height: auto !important;
  }

  .text-col {
    padding-right: 1rem;
  }

  .text-col ol {
    padding-left: 0rem;
  }

  .footer-logos img {
    max-height: 50px;
    margin-right: 2rem;
    filter: brightness(1.2);
  }

  .footer-contact {
    max-width: 300px;
    margin-top: 2rem;    
  }

  .box-with-icon {
    margin-left: 0rem !important;
    width: auto; 
    align-items: start; 
  }

  .box-with-icon .icon {
    margin-right: 0.5rem;
  }

}
