body {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  background-color: #ffffff;
  color: #1C1C1C;
}

header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1rem 3rem;
  background-color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
}

.top-nav a {
  text-decoration: none;
  color: #1C1C1C;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #1C1C1C;
  font-weight: 500;
  
}


.hero {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 60px);
}

.left-panel {
  background-color: #1C1C1C;
  width: 35%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5rem;
  color: #fff;
  position: relative;
  margin:0;
}

.logo-box {
  background-color: #EFEFEF;
  color: #D72027;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 5rem;	
  padding: 2rem 2rem;
  width: max-content;

}
.banner h1{
  position: absolute;
  top: 1px;
  left: 0px;
    display: flex;
  background: linear-gradient(to right, #FF0000, #990000);
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-size: 8rem;
  font-weight: bold;
  padding: 0.1rem 0.2rem;
  object-fit: cover;
  margin-top: 15rem;
}

.tagline {
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: 14rem;
}

.callout {
  font-size: 0.95rem;
  margin-top: 1rem;
}
right-panel {
  width: 70%;
 overflow: hidden;
  position: rigth;
}

.right-panel img {
  width: 100%;
  height: 95%;
  object-fit: cover;
 
    margin-top: 5%;
}

.page-number {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: #D72027;
  color: white;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  padding: 0.5rem 1rem;
}


.slogan {
  margin-top: 9rem;
  font-family: 'Roboto', sans-serif;
   font-size: 1.5rem;
}
/*
.slogan p {
  margin: 2rem 0;
}*/

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* fondo oscuro */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background: white;
  padding: 30px;
  border-radius: 10px;
  max-width: 480px;
  text-align: center;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
  position: relative;
}

.popup-content h2 {
  margin-top: 0;
  color: #c8102e; /* rojo TK Logística */
}

.popup-content a {
  color: #0073e6;
  text-decoration: underline;
}
/*
.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  font-weight: bold;
  cursor: pointer;
}
*/


.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 0;
  border-radius: 0px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  position: relative;
}

.close-btn {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 24px;
  background-color: #C8102E;
  color: white;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  text-align: center;
  line-height: 35px;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  z-index: 1001;
}
.modal-content iframe {
  width: 100%;
  height: 500px;
  border: none;
  overflow: hidden; /* <- ESTA LÍNEA CLAVE */
  border-radius: 1px;
}


/* Botón hamburguesa */
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  color: #D72027;
  cursor: pointer;
  padding: 0.5rem 1rem;
}

/* Modo móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .top-nav {
    display: none;
    width: 100%;
  }

  .top-nav.open {
    display: block;
  }

  .top-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
  }

  .top-nav a {
    font-size: 0.9rem;
    padding: 0.4rem 0.8rem;
    display: block;
    width: 100%;
    background-color: #f4f4f4;
    border-radius: 4px;
  }

  .top-nav a:hover {
    background-color: #ddd;
  }

  header {
    flex-direction: column;
    align-items: flex-start;
  }

@media (max-width: 768px) {
  .logo-box {
    font-size: 3rem !important;
    padding: 1rem 1.5rem !important;
  }

  .banner h1 {
    font-size: 4rem !important;
    padding: 0.3rem 0.6rem !important;
    margin-top: 10rem !important;
  }

  .slogan {
    font-size: 1.1rem !important;
    margin-top: 4rem !important;
    padding: 0 1rem;
    text-align: center;
  }
}
