/* Reset y variables (mismos de style.css) */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --clr-black: #000;
  --clr-white: #fff;
  --clr-gray-dark: #2E2E2E;
  --clr-gray-light: #B0B0B0;
  --clr-gold: #D4AF37;
  --clr-yellow: #FFD700;
}

.Designed{
  color: #fff;
  text-decoration: none;
  transition: all .5s ease;
  text-shadow: 2px 2px 2px #000;
  filter: drop-shadow(0 0 3px #000);
}

.Designed:hover{
  animation: designed 10s linear infinite;
  transform: scale(1.02);
}

@keyframes designed{
  0%,100%{
    color: #fff;
  }
  10%{
    color: red;
  }
  20%{
    color: orange;
  }
  30%{
    color: yellow;
  }
  40%{
    color: green;
  }
  50%{
    color: aquamarine;
  }
  60%{
    color: blue;
  }
  70%{
    color: purple;
  }
  80%{
    color: rgb(247, 20, 107);
  }
  90%{
    color: red;
  }
}

body {
  font-family: 'Orbitron', sans-serif;
  background: var(--clr-black);
  color: var(--clr-white);
  line-height: 1.6;
}
a { color: inherit; text-decoration:none; }

/* Navbar reuse */
#navbar { position: fixed; top:0; left:0; width:100%; background: linear-gradient(90deg, var(--clr-gray-dark), var(--clr-black)); box-shadow:0 4px 15px rgba(212,175,55,0.3); transition:all .3s; z-index:10; }
#navbar.shrink {
  width: 80%;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 0 0 40px 40px;
  background: linear-gradient(45deg, transparent,#333, black);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(10px);
  /* mantener el box‑shadow dorado suave */
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}
.nav-container { display:flex; justify-content:space-between; align-items:center; padding:1rem 2rem; }
.logo{
  transition: all .5s ease;
}

.logo:hover{
  transform: scale(1.03);
  filter: drop-shadow(0 0 4px rgba(255, 217, 0, 0.473));
}

/* Animaciones */
@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(0);    opacity: 1; }
  to   { transform: translateY(-20px); opacity: 0; }
}

.menu.show {
  display: flex;
  animation: slideDown 0.3s ease forwards;
}

.menu.hide {
  animation: slideUp 0.3s ease forwards;
}

.menu a {
  margin-left: 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--clr-white);
  position: relative;
  transition: color 0.2s;
}
.menu a:hover {
  color: var(--clr-yellow);
  transform: scale(1.05);
}
.menu a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--clr-yellow);
  transition: width 0.3s;
  position: absolute;
  bottom: -5px;
  left: 0;
}
.menu a:hover::after {
  width: 100%;
}

/* Ocultar botón en desktop y menú normal */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 20;
}
.hamburger .bar {
  width: 100%;
  height: 0.25rem;
  background: var(--clr-white);
  border-radius: 10px;
  transition: all 0.3s;
}

/* Banner */
#banner { position:relative; margin-top:70px; overflow:hidden; user-select: none; }
#banner img { width:100%; height:70vh; object-fit:cover; }
.banner-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: rgb(211, 211, 211);
  animation: fadeInText 1.5s ease-in-out;
  z-index: 2;
  transition: all .5s ease;
  user-select: none;
}

.banner-text h1 {
  font-family: 'Cinzel', serif;
  font-size: 2.5rem;
  letter-spacing: 3px;
  transition: all .5s ease;
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 5px 2px 2px #000;
}

.banner-text p {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  transition: all .5s ease;
  text-shadow: 2px 2px 1px #000;
}

/* Animación texto */
@keyframes fadeInText {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.4); /* puedes ajustar la opacidad */
  backdrop-filter: blur(2px); /* efecto vidrio */
  z-index: 1;
  box-shadow: inset 0 -20px 20px 10px var(--clr-black);
  border: 1px solid #000;
}

/* Historia principal */
#historia-principal { padding:3rem 2rem; background: linear-gradient(#000, #333); border-top: 10px solid black;}
.historia-container { display:flex; align-items:center; gap:2rem; flex-wrap:wrap; }
.historia-text { flex:1;}
.historia-text h2 { font-size:2rem; color: var(--clr-yellow); margin-bottom:1rem; }
.historia-text p { line-height:1.5;}
.historia-img { flex:1; }
.historia-img img { width:100%; border-radius:1rem; box-shadow:0 8px 20px rgba(0,0,0,0.3); animation: imag 5s infinite ease;}
@keyframes imag{
  0%,100%{
    transform: scale(1);
    border: 2px solid #111;
  }
  50%{
    transform: scale(1.01);
    filter: drop-shadow(0 0 5px #555);
  }
}

/* Historia expandible – Estilo caricatura */
.historia-card {
  background: linear-gradient(135deg, #555 0%, #000 100%);  
  border: 4px solid var(--clr-black);         
  border-radius: 1.5rem;             
  box-shadow: 
    8px 8px 0 0 var(--clr-gold),         
    -4px -4px 0 0 var(--clr-yellow);    
  padding: 2rem;  
  max-width: 800px;  
  margin: 0 auto;  
  position: relative;  
  transition: transform 0.3s ease-in-out;   
}

.historia-card h3{
  color: #fff;
  filter: drop-shadow(0 0 3px #000);
  margin-bottom: 10px;
}

.historia-card p{
  color: #fff;
  filter: drop-shadow(0 0 2px #000);
  font-size: 1.1rem;
}

/* Rebote ligero al hover */
.historia-card:hover {
  transform: translateY(-5px) scale(1.02);   
}

/* Contenedor de texto recortado */
.historia-text-wrap {
  max-height: 6rem;  
  overflow: hidden;  
  transition: max-height 0.5s ease-out;  
}

/* Al expandir, rebote de “cartoon spring” */
.historia-text-wrap.expanded {
  max-height: 100vh;  
  animation: spring 0.5s ease-out;            /* rebote al expandir */  
}

/* Botones estilo futurista-cartoon */
.btn-toggle {
  margin-top: 1rem;  
  padding: 0.6rem 1.2rem;  
  border: 3px dashed var(--clr-black);        /* trazo irregular */  
  border-radius: 2rem;  
  background: var(--clr-yellow);  
  color: var(--clr-black);  
  font-weight: bold;  
  cursor: pointer;  
  box-shadow: 3px 3px 0 var(--clr-gold);  
  transition: background 0.2s, transform 0.2s;  
}

/* Botón al hover: ligero zoom y cambio de color */
.btn-toggle:hover {
  background: #222;  
  color: var(--clr-white);  
  transform: scale(1.05);  
  filter: drop-shadow(0 0 3px #000);
}

/* Animación de rebote “spring” */
@keyframes spring {
  0%   { transform: translateY(-20px); }
  60%  { transform: translateY(10px); }
  100% { transform: translateY(0); }
}

  
/* Contacto & Ubicación */
#contacto {
  display: flex;
  flex-wrap: wrap;
  padding: 1.5rem 2rem;
  gap: 1rem;
  background-image: url(../img/banner/img-cont2.png);
  object-fit: cover;
}

#contacto .mapa {
  flex: 1 1 300px;
}
#contacto .mapa h2 {
  color: var(--clr-yellow);
  margin-bottom: 1rem;
  font-size: 2rem;
  filter: drop-shadow(0 0 5px #000);
}
#contacto .mapa iframe {
  width: 100%;
  height: 300px;
  border: 0;
  border-radius: 1rem;
}
.info-empresa {
  flex: 1 1 200px;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.serv-transporte,
.contactos,
.redes {
  background-color: #111;
  border: 2px solid #f7d13f;
  border-radius: 10px;
  padding: 1rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 110px;
  width: 100%;
  position: relative;
}
.serv-transporte h2,
.contactos h2 {
  color: var(--clr-yellow);
  margin-bottom: 0.5rem;
  filter: drop-shadow(0 0 5px #000);
}
.serv-transporte p,
.contactos p {
  color: var(--clr-white);
}
.redes h3 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 600;
  color: #fff;
  text-align: left;
}
.logos-redes {
  position: absolute;
  left: 30%;
  bottom: 1rem;
  display: flex;
  gap: 3rem;
}

.logos-redes a img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 6px #f7d13f);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.logos-redes a img:hover {
  transform: scale(1.15);
  filter: drop-shadow(0 0 8px #ffe062);
}

.footer-politicas {
  display: flex;
  justify-content: center;
  gap: 2rem;
  background-color: #111;
  padding: 1rem;
  position: relative;
  z-index: 10;
}

.footer-politicas .politica {
  position: relative;
  cursor: pointer;
}

.footer-politicas img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s ease;
}

.footer-politicas img:hover {
  transform: scale(1.2);
}

.popup {
  display: none;
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #222;
  color: #fff;
  padding: 1rem;
  border: 1px solid #f7d13f;
  border-radius: 10px;
  width: 400px;
  z-index: 999;
  box-shadow: 0 0 10px #000;
}

.popup h4 {
  margin-top: 0;
}

.btn-descarga {
  display: inline-block;
  margin-top: 0.5rem;
  background-color: #ecc420;
  color: #111;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: all .5s ease;
}

.btn-descarga:hover {
  background-color: #f8d443;
  box-shadow: 2px 1px 5px #000;
}

/* WhatsApp draggable */
#whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  z-index: 20;
  cursor: grab;
  user-select: none;
}
#whatsapp img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.7));
  transition: all .5s ease;
}

#whatsapp img:hover{
  transform: scale(1.05);
}

/* CSS: reveal horizontal con show/hide al entrar/salir */
.reveal {
  background: #111;
  border: solid 1px #000;
  padding: 2rem;
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateX(0);
}

@media(max-width: 1000px){
  .logos-redes {
    bottom: .5rem;
    gap: 2rem;
  }

  .logos-redes a img {
    width: 40px;
    height: 40px;
  }
}

/* Responsive */
@media(max-width:768px) {
  .historia-container, #hitos { flex-direction:column; }
  #navbar.shrink { width:90%; }
  .menu {
    display: none;
    flex-direction: column;
    background: linear-gradient(90deg, rgb(51, 51, 51), rgb(26, 26, 26), rgb(51, 51, 51));
    filter: drop-shadow(0 0 3px gold);    position: absolute;
    top: 100%;
    right: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    width: 35%;
  }
  .menu a{
    text-align: center;
    margin: .25rem;
  }

  /* Muestra el botón hamburguesa */
  .hamburger {
    display: flex;
  }
  /* Cuando el menú tenga la clase 'show', muéstralo */
  .menu.show {
    display: flex;
  }

  .banner-text h1 {
    font-size: 2rem;
  }

  .banner-text p {
    font-size: 1.1rem;
    margin-bottom: .5rem;
  }

  .logos-redes {
    bottom: .5rem;
    gap: 2rem;
  }

  .logos-redes a img {
    width: 35px;
    height: 35px;
  }

  .footer-politicas {
    flex-direction: column;
    align-items: center;
  }

  .popup {
    width: 300px;
    bottom: 50px;
  }
  
}

@media (max-width: 480px) {
  .banner-text h1 {
    font-size: 1.5rem;
  }

  .banner-text p {
    font-size: 1rem;
  }
}