
body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
  }

.historia{
    display: flex;
    width: 100%;
    min-height: 85vh;
    background-color: #001f3f;
    color: #f5f7fa;
    overflow: hidden;
    align-items: stretch;
    font-family: "Poppins", sans-serif;
    margin-top: 100px;
}

.info-histori{
    flex: 1 1 40%;
    position: relative;
    padding: 80px 6% 60px 8%; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.titulo-samkwang {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
  }

.info-histori h2{
    font-family: "Montserrat", sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 0;

}

.linea{
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    transform: skewX(-25deg);
  
}

.info-histori p{
    font-size: 0.9rem;
    line-height: 1.8;
    margin-top: 20px;
    text-align: justify;
    color: #dce3ec;
}
.info-histori .resaltado {
    color: #00b4d8;
    font-weight: 600;
  }
  
  .info-histori .firma {
    display: block;
    margin-top: 25px;
    font-style: italic;
    font-size: 0.95rem;
    color: #a5b5c3;
  }
  

/*-----------IMAGEN -----*/
.about-histori {
    flex: 1 1 55%;
    position: relative;
    overflow: hidden;
}

/* Efecto diagonal con clip-path */
.about-histori::before {
    content: "";
    position: absolute;
    top: 0;
    left: -5px;
    width: 130%;
    height: 100%;
    background-color: #ffffff;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 1;
}

.img-histori{
    position: relative;
    width: 100%;
    height: 100%;
    clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

.img-histori img{
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.6s ease;

}
.img-histori img:hover {
    transform: scale(1.05);
  }

/*-----LINEA TIEMPO-----*/

.tiempolinea {
    position: relative;
    width: 100%;
    background: linear-gradient(to bottom, #f8f9fa, #e8eef3);
    font-family: "Poppins", sans-serif;
    padding: 60px 0;
  }
  
  .tiempolinea::after {
    content: "";
    position: absolute;
    width: 5px;
    background: #007db3;
    top: 100px;
    bottom: 0;
    left: 50%;
    margin-left: -2.5px;
    z-index: 1;
  }
  
  .titulolinea h2 {
    font-size: 2.3rem;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
    font-weight: bold;
    color: #003366;
    margin-top: -30px;
  }
  
  /* ----- CONTENEDORES DE EVENTOS ----- */
  .contenerline {
    padding: 20px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-in-out;
  }
  
  .contenerline.show {
    opacity: 1;
    transform: translateY(0);
  }
  
  /* LADOS */
  .conleft {
    left: 0;
  }
  .conright {
    left: 50%;
  }
  
  /* ----- TARJETAS ----- */
  .text-linea {
    background: #ffffff;
    border-radius: 15px;
    padding: 25px 30px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 2;
    border-left: 5px solid #007db3;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .text-linea:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 102, 161, 0.2);
  }
  
  /* TITULOS Y FECHAS */
  .text-linea h2 {
    font-size: 1.6rem;
    color: #003366;
    margin-bottom: 5px;
  }
  
  .text-linea small {
    display: block;
    color: #007db3;
    font-weight: 600;
    margin-bottom: 10px;
  }
  
  .text-linea p {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.5;
    margin-bottom: 15px;
  }

  .text-linea img {
    width: 100%;
    max-height: 260px;
    border-radius: 10px;
    margin-top: 10px;
    object-fit: cover;
  }
  
  
  .text-linea {
    overflow: hidden;
  }
  
  
 .imagenes-tiempo {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.imagenes-tiempo img {
    width: 220px;
    height: 200px;
    border-radius: 10px;
}
  
  /* ----- CÍRCULOS EN LA LINEA ----- */
  .circulo {
    position: absolute;
    top: 30px;
    right: -15px;
    width: 25px;
    height: 25px;
    background: #007db3;
    border: 4px solid #ffffff;
    border-radius: 50%;
    z-index: 3;
    box-shadow: 0 0 0 4px rgba(0, 125, 179, 0.2);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 4px rgba(0, 125, 179, 0.3);
    }
    50% {
      box-shadow: 0 0 0 10px rgba(0, 125, 179, 0);
    }
    100% {
      box-shadow: 0 0 0 4px rgba(0, 125, 179, 0.3);
    }
  }
  
  .conright .circulo {
    left: -15px;
    right: auto;
  }
  

 /*-----------MAPA----------*/ 
 .global-map {
    text-align: center;
    padding: 60px 0;
    font-family: 'Poppins', sans-serif;
    color: #504e4e;
  }
  .global-map h2{
    color: #585757;
    font-size: 3rem;
  }
  
  .map-container {
    position: relative;
    display: inline-block;
  }
  
  .map-image {
    width: 100%;
    max-width: 1500px;
    border-radius: 10px;
    filter: none;
    
  }
  
  /* ------------------ MARCADORES ------------------ */
  .marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: #0044cc;
    border-radius: 50%;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
    box-shadow: 0 0 10px #0044cc, 0 0 20px #0044cc;
  }
  
  .marker:hover {
    transform: translate(-50%, -50%) scale(1.3);
    box-shadow: 0 0 10px rgba(0, 68, 204, 0.8);
  }
  
  .marker.main {
    background: #62adf7;
    box-shadow: 0 0 10px #62adf7, 0 0 20px #539ee9;
  }

  /* --- ANILLO DE RADAR --- */
.marker::before,
.marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(0, 68, 204, 0.8);
  transform: translate(-50%, -50%) scale(1);
  animation: radarPulse 2.5s ease-out infinite;
}

.marker.main::before,
.marker.main::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(0, 133, 204, 0.8);
  transform: translate(-50%, -50%) scale(1);
  animation: radarPulse 1.8s ease-out infinite;
}

/* Segundo anillo ) */
.marker::after {
    animation-delay: 1.25s; /* medio ciclo */
  }
  
  /* --- ANIMACIÓN DE ONDAS --- */
  @keyframes radarPulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.8;
    }
    70% {
      transform: translate(-50%, -50%) scale(4);
      opacity: 0;
    }
    100% {
      opacity: 0;
    }
  }
  
  
  /* ------------------ ETIQUETAS ------------------ */
  .label {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 13px;
    color: #003366;
    white-space: nowrap;
    font-weight: 600;
    pointer-events: none;
    background-color: #fff;
  }
  
  /* ------------------ TARJETAS ------------------ */
   /* --- Contenedor USA  --- */
 #usa-container {
  width: 640px; 
  height: 350px;
  position: absolute;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -110%) scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 5;
  display: flex; 
  flex-direction: row; 
  gap: 10px;
}

/* Mostrar al pasar el cursor */
#usa-container.active {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-45%, -120%) scale(1);
}

.usa-card {
  width: 320px;
  padding: 0; 
  border-bottom: 1px solid #989898; 
}

.usa-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}


  .info-card {
    position: absolute;
    width: 320px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -110%) scale(0.95);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
  }

  .info-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
  }
  
  .info-text {
    padding: 15px;
    text-align: left;
  }
  
  .info-text h3 {
    margin: 0;
    font-size: 1rem;
    color: #555;
  }
  
  .info-text h4 {
    margin: 5px 0;
    font-size: 1.2rem;
    color: #111;
  }
  
  .info-text p {
    font-size: 0.9rem;
    color: #666;
  }
  
 
  .info-card.active {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -120%) scale(1);
  }
  
 
  .card-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    align-items: center;
  }
  
  /* Ajuste general de botones en tarjetas */
  .btn-more, .btn-web {
    flex: 1; 
    padding: 10px 5px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
  }
  
  .btn-more{
    color: #001f3f;
  }

  .btn-more:hover {
    background-color: #004488;
    color: #ffffffec;
  }

  /* Estilo específico para el botón de Sitio Web */
  .btn-web {
    background-color: #ffffff;
    color: #002244;
    border: 2px solid #002244;
  }
  
  .btn-web i {
    margin-right: 6px;
  }
  
  .btn-web:hover {
    background-color: #002244;
    color: #ffffff;
  }
  
  
  .info-text .btn-more {
    margin-top: 0; 
    width: auto;
  }

 
/* ------- PANEL LATERAL ------- */
.side-panel {
  position: fixed;
    top: 0;
    right: -400px; 
    width: 350px;
    height: 500px;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
    transition: right 0.4s ease;
    z-index: 99999; 
    border-radius: 15px 0 0 15px;
    padding: 20px;
  }
  
  
  .side-panel.active {
    right: 0;
  }
  
  .close-btn {
    background: none;
    border: none;
    font-size: 26px;
    color: #333;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 15px;
  }
  .close-btn:hover {
    color: #0077b6;
  }
  
  .panel-content {
    margin-top: 40px;
    text-align: left;
  }
  
  .panel-content h3 {
    font-size: 1.3rem;
    color: #002244;
    margin-bottom: 8px;
  }
  
  .panel-content p {
    font-size: 0.95rem;
    color: #444;
    margin: 4px 0;
  }
  
  .show-map-btn {
   
    background-color: #002244;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 10px 16px;
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    transition: background 0.3s;
  }
  
  .show-map-btn:hover {
    background-color: #004488;
  }
  
  
  /* ---------------------Contenedor principal del anuncio flotante---------- */
/* Contenedor Minimalista */
.presentation-ad {
  position: fixed;
  bottom: 120px;
  right: -350px; 
  width: 260px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px); 
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: 24px 16px 16px;
  z-index: 1000;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.presentation-ad.visible {
  right: 20px;
}

/* Texto sutil */
.presentation-ad p {
  font-size: 0.85rem;
  color: #666;
  margin: 0 0 12px 0;
  text-align: center;
  font-weight: 400;
  letter-spacing: 0.3px;
}

/* Botón elegante */
.btn-ad {
  background-color: #007db3;
  color: white;
  border: none;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  width: 100%;
  transition: transform 0.2s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ad:hover {
  background-color: #006692;
  transform: translateY(-2px);
}

/* Botón cerrar discreto */
.close-ad {
  position: absolute;
  top: 8px;
  right: 12px;
  background: transparent;
  border: none;
  color: #999;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.close-ad:hover {
  color: #333;
}
  
  /*-----MISION-VISION----*/
  .MV-info {
    display: flex;
    justify-content: center; 
    gap: 30px; 
    padding: 60px 5% !important; 
    background-color: #f8f8f8; 
}

.cua {
    width: 300px;
    border: 1px solid #ddd;
    border: 1px solid #e0e0e0; 
    padding: 30px; 
    border-radius: 12px;
    background: #011643;
    transition: all 0.4s ease; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    color: #dce5ff;
}

.cua:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 31, 63, 0.15);
    background: #ecf6ff;
    color: #002244;

}

.icon {
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.cua:hover .icon {
  transform: translateX(100px); 
}
.cua h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
}
.cua ul {
    padding-left: 20px;
    list-style-type: disc;
    color: #dce5ff;
}

.cua:hover ul {
  padding-left: 20px;
  list-style-type: disc;
  color: #001144;
}

.map-mobile-list {
  display: none;
}

/* ====== RESPONSIVE GENERAL ====== */

/* -------------------- HISTORIA -------------------- */
@media (max-width: 1024px) {
  .historia {
    flex-direction: column;
    text-align: center;
    padding-top: 40px;
    height: auto;
  }

  .info-histori {
    padding: 40px 8% 20px 8%;
  }

  .info-histori h2 {
    font-size: 2.2rem;
  }

  .about-histori {
    width: 100%;
    height: 350px;
  }

  .about-histori::before {
    clip-path: none;
    width: 100%;
  }

  .img-histori {
    clip-path: none;
  }
  .side-panel {
    position: fixed;  
    top: 0;
    right: -400px;
    width: 350px;
    height: 500px;   
    z-index: 99999;    
  }
}

@media (max-width: 600px) {
  .info-histori h2 {
    font-size: 1.8rem;
  }

  .info-histori p {
    font-size: 0.85rem;
  }

  .historia {
    margin-top: 60px;
  }
}

/* -------------------- LÍNEA DEL TIEMPO -------------------- */
@media (max-width: 900px) {

  .contenerline {
    width: 100% !important;
    left: 0 !important;
    padding: 20px 20px;
  }

  .conright,
  .conleft {
    left: 0 !important;
  }

  .tiempolinea::after {
    left: 30px !important;
  }

  .circulo{
    left: 5px 
  }
  .conright .circulo {
    left: 5px !important;
  
  }

  .text-linea {
    margin-left: 40px !important;
  }

  .text-linea img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
  }
  
    .imagenes-tiempo {
      flex-direction: column;
      align-items: center;
    }
  
    .imagenes-tiempo img {
      width: 100% !important;
      max-width: 300px;
      height: auto !important;
    }
  
  

  .imagenes-tiempo {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .imagenes-tiempo img {
    width: 100% !important;
    max-width: 320px;
    height: auto !important;
  }
}

/* Extra — móviles muy pequeños */
@media(max-width: 480px) {
  .text-linea {
    margin-left: 25px !important;
    padding: 20px;
  }

  .tiempolinea::after {
    left: 20px !important;
  }

  .circulo {
    left: 10px !important;
  }

  .text-linea img {
    max-height: 150px;
  }

}

/*-------------------MAPA----------*/
@media (max-width: 900px) {

.map-container {
  position: relative;
  overflow: visible;
}

/* Tarjetas flotantes */
.info-card,
#usa-container {
  position: absolute;
  width: 85% !important;
  max-width: 90vw;
  left: 50% !important;
  top: 55% !important;
  transform: translateX(-50%);
  z-index: 9999;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 6px 20px #00000055;
  animation: fadeIn 0.3s ease;
}
.info-card-container {
  flex-direction: column;
  gap: 20px;
}

/* Imágenes dentro de las tarjetas */
.info-card img,
#usa-container img {
  width: 100% !important;
  height: auto !important;
  border-radius: 8px;
}

.side-panel {
  position: fixed;  
  top: 0;
  right: -400px;
  width: 350px;
  height: 500px;   
  z-index: 99999;    
}

}

/* -------------------- MISIÓN / VISIÓN -------------------- */
@media (max-width: 950px) {
  .MV-info {
    flex-wrap: wrap;
    justify-content: center;
  }

  .cua {
    width: 80%;
    max-width: 350px;
  }
}

@media (max-width: 600px) {
  .MV-info {
    padding: 40px 5% !important;
  }

  .cua {
    width: 100%;
    padding: 25px;
  }

  .cua h3 {
    font-size: 1.3rem;
  }

  .cua ul {
    font-size: 0.9rem;
  }
}

/* ===== MAPA MOBILE LIST ===== */

/* SOLO CELULARES */
@media (max-width: 768px) {

  .map-container {
    display: none;
  }

    .map-mobile-list {
      display: block;
      margin-top: 20px;
      padding: 0 20px;
    }
    

  .mobile-location {
    background: #ffffff;
    border-radius: 12px;
    padding: 15px 18px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .mobile-location:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  }

  .mobile-location h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #002244;
  }

  .mobile-location p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #555;
  }
  .side-panel {
    position: fixed;  
    top: 0;
    right: -400px;
    width: 300px;
    height: 500px;     
    z-index: 99999;   
  }

}

@media (max-width: 768px) {
  .marker {
    pointer-events: none;
  }

  .info-card,
  #usa-container {
    pointer-events: auto; 
  }

  .btn-more {
    pointer-events: auto; 
  }
}



