/* ========== BASE ========== */
@font-face {
  font-family: "rubik-r";
  src: url("../fonts/Rubik-Regular.ttf") format("truetype");
  font-weight: normal;
}
@font-face {
  font-family: "rubik-m";
  src: url("../fonts/Rubik-Medium.ttf") format("truetype");
  font-weight: normal;
}
@font-face {
  font-family: "rubik-l";
  src: url("../fonts/Rubik-Light.ttf") format("truetype");
  font-weight: normal;
}
@font-face {
  font-family: "rubik-b";
  src: url("../fonts/Rubik-Bold.ttf") format("truetype");
  font-weight: normal;
}

body {
  font-family: "rubik-r", Arial, sans-serif;
  color: #333;
  margin: 0;
  padding-top: 60px;
}

/* Reusable */
.highlight {
  color: #77a841;
  font-family: "rubik-m", Arial, sans-serif;
}

.highlight-white {
  color: #fff;
  font-family: "rubik-m", Arial, sans-serif;
}

/* ========== NAVBAR ========== */
.navbar {
  background: #5b8b2d;
  padding: 0.7rem 1rem;
}
.navbar-links {
  display: flex;
}
.navbar-links .nav-link {
  color: #fff;
  font-size: 16px;
  transition: opacity 0.3s ease;
  font-family: 'rubik-b';
  position: relative;
  padding: 0;
}
.navbar-links .nav-link:first-of-type::after {
  content: '';
  width: 1px;
  height: 70%;
  background: #fff;
  position: absolute;
  right: 0;
  top: 5px
}
.navbar-links .nav-link:first-of-type {
  padding-right: 10px;
  margin-right: 10px;
}
.navbar-links .nav-link:hover {
  opacity: 0.8;
}
.navbar-brand {
  margin-right: 0;
}

/* ========== HERO ========== */
.hero {
  background: url("../img/bg-hero.webp") center center / cover no-repeat;
  height: 85vh;
  max-height: 492px;
  position: relative;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
}
.hero .container {
  position: relative;
  z-index: 2;
}
.hero h1 {
  font-size: 50px;
  font-family: 'rubik-l';
}
.hero p {
  font-size: 25px;
  font-family: 'rubik-l';
}

/* ========== INFO CARDS ========== */

.info .row {
  margin: 0;
}
.info-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.4s ease;
}
.info-card img {
  width: 100%;
}
.info-card:hover {
  transform: scale(1.05);
  cursor: pointer;
}
.info-card .overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  font-weight: 500;
  font-size: 1.1rem;
  text-align: center;
}
.info-card span {
  font-size: 32px;
  font-family: 'rubik-m';
}

/* ========== ICONS ========== */
.icons .icon {
  max-width: 140px;
  transition: transform 0.3s ease;
}
.icons .icon:hover {
  transform: scale(1.05);
}

/* ========== CERTIFICATIONS ========== */
.row-certifications {
  display: flex;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
}
.row-certifications div{
  width: 50%;
}
.certifications h2 {
  font-size: 40px;
  margin-bottom: 2rem;
  font-family: 'rubik-l';
}
.certifications img {
  max-height: 120px;
  margin-bottom: 10px;
}
.certifications p {
  color: #63A70A;
  font-size: 18px;
  font-family: 'rubik-m'
}

/* ========== FOOTER ========== */
.footer {
  background: linear-gradient(90deg, #6da93b, #5b8730);
  font-size: 15px;
}
.footer a {
  color: #fff;
  transition: all 0.3s ease;
}

.footer a:hover {
  text-decoration: none;
  opacity: 0.8;
}

.footer-address {
  display: flex;
  gap: 20px;
  flex-direction: column;
  text-align: center;
  justify-content: center;
}

.footer-address p strong{
  font-family: 'rubik-b';
}

.footer-address p {
  font-family: 'rubik-r';
  font-size: 16px;
  margin: 0 auto;
}

.footer-address p:first-of-type {
  max-width: 160px;
}

.footer-col {
  display: flex;
  flex-direction:column;
  gap: 10px;
  width: 100%;
  text-align: center;
  padding-bottom: 20px;
}

.footer-col small {
  font-family: 'rubik-r';
  font-size: 12px;
}

.footer-col small span{
  color: #000
}

.row-address {
  border-bottom: 1px solid #fff;
  padding-bottom: 20px;
  margin-bottom: 20px;
}

.row-address img{
  margin: 0 auto;
}

.order-3-xs {
  order: 3;
}

.order-1-xs{
  order: 1;
}

/* ========== POP UP ============= */
/* Fondo del popup */
.popup-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

/* Contenedor del popup */
.popup-container {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 450px;
  text-align: left;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

.popup-container h2 {
  font-size: 34px;
  font-family: 'rubik-l';
  margin-bottom: 25px;
  line-height: 1.4;
}

.popup-container h2 span {
  color: #4C8C2B;
  font-family: 'rubik-m';
}

.popup-form input {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 10px 5px 25px;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s ease;
}

.popup-form input::placeholder {
  color: #1C3C30
}

.popup-form input:focus {
  border-bottom: 1px solid #4C8C2B;
}

.popup-form button {
  display: block;
  margin: 20px auto 0;
  background: none;
  border: none;
  color: #4C8C2B;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.95rem;
}

/* Contenido del sitio (oculto al inicio) */
.site-content {
  display: none;
  animation: fadeIn 1s ease forwards;
}

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

.icons .d-flex {
  flex-wrap: wrap;
  gap: 20px
}

/* ========== RESPONSIVE ========== */
@media (min-width: 768px) {
  body {
    font-family: "rubik-r", Arial, sans-serif;
    color: #333;
    margin: 0;
    padding-top: 60px;
  }

  .hero h1 { font-size: 64px; }
  .hero p { font-size: 32px; }
  .certifications h2 {
    font-size: 55px;
    margin-bottom: 2rem;
    font-family: 'rubik-l';
  }
  .certifications p {
    color: #63A70A;
    font-size: 24px;
    font-family: 'rubik-m'
  }
  .icons .d-flex {
    flex-wrap: initial;
    gap: 20px
  }
  .row-certifications {
    display: flex;
    gap: 80px;
    justify-content: center;
  }

  .row-certifications div {
    flex: 1
  }

  .footer-address {
    display: flex;
    gap: 100px;
    flex-direction: row;
  }

  .footer-address p strong {
    font-family: 'rubik-b';
  }

  .footer-col {
    display: flex;
    flex-direction: row;
    gap: 50px;
  }

  .row-address img {
    margin: 0;
  }

  .order-3-xs {
    order: 1;
  }
  .order-1-xs{
    order: 2;
  }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 64px; }
  .order-3-xs{
    order: 1;
  }
  .order-1-xs{
    order: 2;
  }

}

@media (max-width: 400px) {
  .popup-container {
    padding: 20px;
    max-width: 320px;
  }

  .popup-container h2 {
    font-size: 24px;
  }
}
