body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Arial, sans-serif;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  color: #fff;
}

.header-SuperColor {
  background: linear-gradient(135deg, #14a895, #135ac4); 
  color: white;
  padding: 20px 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
  position: relative;
  min-height: 250px;
  overflow: hidden;
}

.header-SuperColor > * {
  position: relative;
  z-index: 1;
}

/* TOPE: logo + menú */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Logo + nombre */
.branding {
  display: flex;
  align-items: center;
  gap: 60px; 
}

.logo-principe {
  height: 80px; 
  width: auto;
  margin: 0;
}

.logo-anios {
  height: 50px;
  width: auto;
  margin: 0; 
  animation: fadeInScale 1s ease forwards;
  transition: filter 0.4s ease;
}


.site-name {
  font-size: 50px;
  font-weight: 800;
  font-family: 'Segoe UI', Arial, sans-serif;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.4);
}

.logo-anios {
  margin-left: 500px;
  animation: fadeInScale 1s ease forwards;
  transition: filter 0.4s ease;
}

.logo-anios:hover {
  filter: drop-shadow(0 0 8px #FFD700) brightness(1.2);
}

/* Animación suave */
@keyframes fadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}


/* Menú principal */
.nav .menu {
  list-style: none;
  display: flex;
  gap: 30px; 
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
  padding: 0;
}

.menu li {
  position: relative;
}

.menu a {
  color: white;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.menu a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

/* SUBMENÚ */
.submenu {
  position: absolute;  
  top: 100%;
  left: 0;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 10px 0;
  border-radius: 6px;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  display: none;
  z-index: 9999;  
}

.dropdown {
  position: relative; 
  z-index: 999;       
}


.submenu li {
  width: 100%;
}

.submenu a {
  color: #ff5e62;
  padding: 10px 20px;
  display: block;
}

.submenu a:hover {
  background-color: #15b2bd;
  color: white;
}

.dropdown:hover .submenu {
  display: block;
  z-index: 9999;  
}

/* FRASE debajo del menú */
.tagline {
  font-size: 38px;
  font-style: italic;
  text-align: center;
  margin-top: 40px;
  line-height: 1.4;
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

.subline {
  display: block;
  margin-top: 5px;
  font-size: 32px;
  font-style: italic;
  color: white;
}

/* MAIN CONTENT */
.main-content {
  padding: 40px 32px;
  background: linear-gradient(135deg, #14a895, #135ac4);
  color: #333;
  text-align: center;
  border-bottom: 6px solid #ffd600; 
}

/* Responsive */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav .menu {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .tagline {
    text-align: left;
  }
}

/* --- RESPONSIVE PARA TELÉFONOS --- */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .left-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-name {
    font-size: 1.1rem;
    margin-top: 8px;
  }
  .nav .menu {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .nav .menu li {
    width: 100%;
  }

.video-maquinaria h2 {
    font-size: 1.1rem;
    text-align: center;
}

  .footer-box {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 0 8px;
  }
  .white-box, .content-box {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 12px;
  }
  .redes-sociales {
    justify-content: flex-start;
    gap: 12px;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
  }
  .nav .menu {
    display: none;
  }
  .nav .menu.active {
    display: flex;
    flex-direction: column;
  }
}

/* --- RESPONSIVE PARA TELÉFONOS --- */
@media (max-width: 600px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
  }
  .left-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-name {
    font-size: 1.1rem;
    margin-top: 8px;
  }
  .nav .menu {
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }
  .nav .menu li {
    width: 100%;
  }
  .collage {
    flex-direction: column;
    gap: 18px;
    padding: 0 8px;
  }
  .collage .item img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }
  .galeria-videos {
    flex-direction: column;
    gap: 18px;
    align-items: center;
    padding: 0 8px;
  }
  
  .galeria-videos video {
    width: 100% ;
  }
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 10px;
    cursor: pointer;
  }
  .nav .menu {
    display: none;
  }
  .nav .menu.active {
    display: flex;
    flex-direction: column;
  }
  .menu a, .btn-cotizar, .btn-wsp {
    padding: 16px 0;
    font-size: 1.2em;
  }
  img, video {
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* SECCIÓN MAQUINARIA */
.maquinaria-section {
  padding: 40px 20px;
  max-width: 1300px;
  margin: auto;
}

.maquinaria-section h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}

.collage {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}

.item {
  background-color: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.item:hover img {
  transform: scale(1.05);
}

.item p {
  padding: 15px;
  font-size: 0.95rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.item {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease forwards;
}

/* Retraso por item para efecto secuencial */
.collage .item:nth-child(1) { animation-delay: 0s; }
.collage .item:nth-child(2) { animation-delay: 0.1s; }
.collage .item:nth-child(3) { animation-delay: 0.2s; }
.collage .item:nth-child(4) { animation-delay: 0.3s; }
.collage .item:nth-child(5) { animation-delay: 0.4s; }
.collage .item:nth-child(6) { animation-delay: 0.5s; }

.video-maquinaria {
  margin-top: 60px;
  text-align: center;
}

.video-maquinaria h2 {
  font-size: 1.8rem;
  color: #000;
  margin-bottom: 20px;
}

.galeria-videos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  padding: 10px;
}

/* Animación fade in para videos */
.galeria-videos video {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease forwards;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-videos video:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(0,0,0,0.2);
}

/* Diferente delay por video */
.galeria-videos video:nth-child(1) { animation-delay: 0s; }
.galeria-videos video:nth-child(2) { animation-delay: 0.1s; }
.galeria-videos video:nth-child(3) { animation-delay: 0.2s; }
.galeria-videos video:nth-child(4) { animation-delay: 0.3s; }
.galeria-videos video:nth-child(5) { animation-delay: 0.4s; }
.galeria-videos video:nth-child(6) { animation-delay: 0.5s; }

/* FOOTER STYLES */
.footer {
  background-color: #141e30;
  color: #fff;
  padding: 40px 20px;
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.18);
  animation: fadeInFooter 1.2s ease;
}

.footer-box {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.white-box, .content-box {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 24px;
  min-width: 250px;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: none;
}

.footer h4, .footer p {
  text-align: center;
  font-family: 'Segoe UI', Arial, sans-serif;
}



/* Animación de entrada para el footer */
@keyframes fadeInFooter {
  from { opacity: 0; transform: translateY(40px);}
  to { opacity: 1; transform: translateY(0);}
}

.btn-wsp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #25d366;
  color: #fff;
  font-size: 2rem;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  z-index: 2000;
  transition: background 0.2s, transform 0.2s;
}

.btn-wsp:hover {
  background: #128c7e;
  transform: scale(1.1);
}

.banner-maquinaria {
  background: #ffd600;
  color: #0a174e;
  padding: 16px 0;
  text-align: center;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 24px;
  border-radius: 8px;
}

.ficha-link {
  color: #1a2980;
  text-decoration: underline;
  font-size: 0.95rem;
}

.ficha-link:hover {
  color: #ffd600;
}

.galeria-videos {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-top: 16px;
}
.galeria-videos iframe {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

html {
  scroll-behavior: smooth;
}
::selection {
  background: #ffd600;
  color: #0a174e;
}
.btn-cotizar:active, .btn-wsp:active {
  transform: scale(0.96);
  filter: brightness(0.95);
}

/* Efectos visuales y animaciones */
.collage .item, .galeria-videos video {
  transition: transform 0.3s, box-shadow 0.3s;
}
.collage .item:hover, .galeria-videos video:hover {
  transform: scale(1.03) translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.13);
}
.btn-wsp, .ficha-link {
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.btn-wsp:hover {
  background: #25d366;
  color: #fff;
  transform: scale(1.3) rotate(15deg);
  box-shadow: 0 0 35px #128c4a, 0 0 45px #25d366;
}

.ficha-link:hover {
  background: #25d366;
  color: #fff;
  transform: scale(1.05);
}

/* CONTENEDOR CONTACTO */
.content-box {
  max-width: 350px;
  background: linear-gradient(145deg, #0f4c81, #189ad3);
  padding: 25px 30px;
  border-radius: 20px;
  box-shadow:
    0 0 15px #189ad3cc,
    inset 0 0 20px #0f4c81cc;
  color: #e0e9f7;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  text-align: center;
  animation: slideFadeIn 1.5s ease forwards;
  margin: 0 auto;
}

/* Animación de entrada del contenido */
@keyframes slideFadeIn {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* TÍTULOS */
.content-box h4 {
  font-size: 2rem;
  margin-bottom: 15px;
  letter-spacing: 2px;
  color: #c4def6;
  text-shadow:
    0 0 5px #5bc0f8,
    0 0 10px #5bc0f8;
  animation: glowText 2.5s ease-in-out infinite alternate;
}

/* Animación de texto con glow */
@keyframes glowText {
  0% {
    text-shadow:
      0 0 5px #5bc0f8,
      0 0 10px #5bc0f8,
      0 0 20px #2d9cdb;
  }
  100% {
    text-shadow:
      0 0 15px #ade8f4,
      0 0 30px #90e0ef,
      0 0 40px #00b4d8;
  }
}

/* PARRAFOS */
.content-box p {
  font-size: 1.1rem;
  margin: 7px 0;
  color: #d4e6f1;
  transition: color 0.4s ease;
  cursor: default;
}

.content-box p:hover {
  color: #90e0ef;
  text-shadow: 0 0 6px #48cae4;
  transform: scale(1.05);
}

/* REDES SOCIALES CONTENEDOR */
.redes-sociales {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: center;
  margin-top: 25px;
  animation: fadeInUp 1.2s ease forwards;
}

/* Animación entrada redes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ÍCONOS */
.red img {
  width: 48px;
  height: 48px;
  filter: drop-shadow(0 0 3px rgba(0,0,0,0.3));
  transition: transform 0.3s ease, filter 0.4s ease;
  animation: bounceIn 0.8s ease forwards;
  cursor: pointer;
}

/* Bounce entrada */
@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.1);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

/* Hover iconos */
.red:hover img {
  transform: rotate(15deg) scale(1.2) translateY(-8px);
  filter: drop-shadow(0 5px 8px rgba(0,0,0,0.6)) brightness(1.3);
  animation: swing 1s ease-in-out infinite;
}

/* Movimiento swing hover */
@keyframes swing {
  0%, 100% { transform: rotate(15deg) scale(1.2) translateY(-8px);}
  50% { transform: rotate(-15deg) scale(1.2) translateY(-8px);}
}

/* BOTÓN WHATSAPP FIJO */
.btn-wsp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 48px;
  background: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  cursor: pointer;
  z-index: 9999;
  animation: pulse 2.5s infinite;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px #25d366; transform: scale(1);}
  50% { box-shadow: 0 0 25px #25d366; transform: scale(1.1);}
  100% { box-shadow: 0 0 10px #25d366; transform: scale(1);}
}

.btn-wsp:hover {
  box-shadow: 0 0 35px #128c4a, 0 0 45px #25d366;
  transform: scale(1.3) rotate(15deg);
  animation: none;
}


/* Footer adaptativo para móviles */
@media (max-width: 600px) {
  .footer {
    padding: 20px 10px; /* reduce el padding */
    border-radius: 18px 18px 0 0;
  }

  .footer-box {
    flex-direction: column; /* apila los elementos verticalmente */
    gap: 20px;
    align-items: center;   /* centra todo */
  }

  .white-box, .content-box {
    min-width: 100%; /* que ocupen todo el ancho disponible */
    padding: 15px;   /* reduce padding interno */
  }

  .footer h4, .footer p {
    font-size: 0.95rem; /* ajusta tamaño de texto */
  }
}
