

/* ===================== ANIMACIONES BASE ===================== */

@keyframes fadeInUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  0% { opacity: 0; transform: translateX(-60px); }
  100% { opacity: 1; transform: translateX(0); }
}

@keyframes zoomIn {
  0% { transform: scale(0.85); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Scroll Animation Base */
.scroll-anim {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}
.scroll-anim.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== CATEGORÍA PRINCIPAL ===================== */

.categoria-principal {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 16px;
  box-sizing: border-box;
}

/* ===================== SECCIÓN MAQUINARIA ===================== */

.maquinaria-section {
  background: #000;
  color: #f5f5f5;
  padding: 60px 20px;
  text-align: center;
  border-radius: 16px;
  margin: 40px auto;
  max-width: 1000px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}

.maquinaria-titulo {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  font-family: "Georgia", serif;
  letter-spacing: 1px;
}

.maquinaria-descripcion {
  font-size: 20px;
  line-height: 1.8;
  font-family: "Trebuchet MS", "Lucida Sans", sans-serif;
  max-width: 850px;
  margin: 0 auto;
  color: #ddd;
}
.maquinaria-descripcion strong {
  color: #ffcc00;
  font-weight: 700;
}

/* ===================== CABECERA / NAV ===================== */

.mp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: rgba(12, 13, 14, 0.95);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.6);
  animation: fadeInLeft 1s ease;
}

.mp-logo {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
  animation: fadeInLeft 1.2s ease forwards;
}

.mp-logo span {
  display: block;
  font-size: 14px;
  font-weight: normal;
}

.mp-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 25px;
}

.mp-nav a {
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  position: relative;
  transition: color 0.3s ease;
}

.mp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0%;
  height: 2px;
  background: #f5a623;
  transition: width 0.3s ease;
}

.mp-nav a:hover {
  color: #f5a623;
}

.mp-nav a:hover::after {
  width: 100%;
}

/* ===================== HERO / BANNER ===================== */

.mp-hero, .mzn-hero {
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 60px;
  position: relative;
  background: url("https://maquinariapesadadelalaguna.com/wp-content/uploads/2025/09/ChatGPT-Image-14-sept-2025-20_21_19.png") no-repeat center center/cover;
}

.mp-hero::after, .mzn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.mp-hero-content, .mzn-hero-content {
  position: relative;
  z-index: 1;
  max-width: 550px;
  animation: fadeInUp 1.5s ease;
}

.mp-hero h1, .mzn-hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
  color: #D38A1F;
}

.mp-hero p, .mzn-hero p {
  font-size: 20px;
  margin-bottom: 30px;
  color: #e0e0e0;
}

.mp-btn, .mzn-btn {
  background-color: #d99132;
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: all 0.3s ease;
  display: inline-block;
}

.mp-btn:hover, .mzn-btn:hover {
  background-color: #b6751f;
  transform: scale(1.08);
  box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* ===================== REALIZADOS / GALERÍA INICIAL ===================== */

.mp-realizados {
  text-align: center;
  padding: 80px 20px;
  background-color: rgba(17, 20, 23, 0.9);
}

.mp-realizados h2 {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: #D38A1F;
}

.mp-realizados h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px;
}

.mp-galeria {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.mp-item {
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1d21;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.mp-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mp-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.mp-item:hover img {
  transform: scale(1.08);
}

/* ===================== INFO CARDS ===================== */

.mp-info {
  padding: 70px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  background-color: rgba(17, 20, 23, 0.9);
}

.mp-info-card {
  background: #1a1d21;
  padding: 30px;
  border-radius: 12px;
  width: 300px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.mp-info-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #f5a623;
}

.mp-info-card p {
  font-size: 15px;
  color: #ddd;
  line-height: 1.6;
}

.mp-info-card:hover {
  transform: translateY(-8px);
}

/* ===================== MAQUINARIA ===================== */

.mp-maquinaria {
  text-align: center;
  padding: 80px 20px;
  background-color: rgba(17, 20, 23, 0.9);
}

.mp-maquinaria h2 {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
  display: inline-block;
  color: #f5a623;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mp-maquinaria h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px;
}

.mp-maquinaria-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.mp-maquina {
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1d21;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  padding-bottom: 20px;
}

.mp-maquina img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mp-maquina:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.mp-maquina:hover img {
  transform: scale(1.08);
}

.mp-maquina h3 {
  margin: 15px 0 10px;
  color: #f5a623;
}

.mp-maquina p {
  font-size: 14px;
  color: #ddd;
  padding: 0 10px;
}

/* ===================== EXPERIENCIA ===================== */

.mp-experiencia {
  padding: 80px 20px;
  background-color: rgba(17, 20, 23, 0.9);
  text-align: center;
}

.mp-experiencia h2 {
  font-size: 32px;
  margin-bottom: 40px;
  font-weight: bold;
  position: relative;
  color: #f5a623;
  display: inline-block;
}

.mp-experiencia h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px;
}

.mp-experiencia-content {
  max-width: 800px;
  margin: 0 auto;
  background: #1a1d21;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.mp-experiencia-content p {
  font-size: 16px;
  color: #ddd;
  margin-bottom: 20px;
  line-height: 1.6;
}

.mp-experiencia-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mp-experiencia-content ul li {
  margin-bottom: 10px;
  color: #f5a623;
  font-weight: bold;
}

/* ===================== TRABAJOS ===================== */

.mp-trabajos {
  text-align: center;
  padding: 80px 20px;
  background-color: rgba(17, 20, 23, 0.9);
}

.mp-trabajos h2 {
  font-size: 32px;
  margin-bottom: 50px;
  font-weight: bold;
  position: relative;
  display: inline-block;
}

.mp-trabajos h2::after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f5a623;
  border-radius: 2px;
}

.mp-trabajos-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 25px;
}

.mp-trabajo {
  width: 280px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1d21;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: center;
  padding-bottom: 20px;
}

.mp-trabajo img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.mp-trabajo:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
}

.mp-trabajo:hover img {
  transform: scale(1.08);
}

.mp-trabajo h3 {
  margin: 15px 0 10px;
  color: #f5a623;
}

.mp-trabajo p {
  font-size: 14px;
  color: #ddd;
  padding: 0 10px;
}

/* ===================== EFECTO SCROLL ANIMADO ===================== */

[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
}
[data-anim="fade-up"].visible {
  opacity: 1;
  transform: translateY(0);
}

[data-anim="fade-left"] {
  opacity: 0;
  transform: translateX(-60px);
  transition: all 0.9s ease;
}
[data-anim="fade-left"].visible {
  opacity: 1;
  transform: translateX(0);
}

[data-anim="zoom-in"] {
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.9s ease;
}
[data-anim="zoom-in"].visible {
  opacity: 1;
  transform: scale(1);
}

/* ===================== SLIDER / CARRUSEL ===================== */

.apartado {
  background: #000;
  color: #c7a600;
  text-align: center;
  padding: 60px 20px;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.apartado h2 {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 30px;
}

.slider-container {
  position: relative;
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
}

.slider {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slider img {
  width: 100%;
  height: 600px;
  object-fit: contain;
  background: #000;
  flex-shrink: 0;
  border-radius: 12px;
}

.slider-container button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #c7a600;
  border: none;
  font-size: 40px;
  padding: 12px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.slider-container button:hover {
  background: rgba(0,0,0,0.85);
}

.slider-container .prev { left: 10px; }
.slider-container .next { right: 10px; }

.slider-container:hover button {
  opacity: 1;
}

/* ===================== MZN - MISIÓN, VISIÓN, CONTACTO Y VALORES ===================== */

.mzn-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.05), transparent 70%),
              radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.05), transparent 70%);
  animation: mzn-bgmove 10s infinite alternate;
  z-index: -1;
}

@keyframes mzn-bgmove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-30px, -30px); }
}

/* HERO MISIÓN / VISIÓN */

.mzn-hero {
  height: 80vh;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)),
              url('https://maquinariapesadadelalaguna.com/wp-content/uploads/2025/09/ChatGPT-Image-14-sept-2025-20_21_19.png')
              center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.mzn-hero-content {
  animation: fadeInUp 1.3s ease-out;
}

.mzn-hero h1 {
  font-size: 48px;
  color: #f5c000;
  text-shadow: 0 0 15px rgba(245, 192, 0, 0.6);
  margin-bottom: 15px;
}

.mzn-hero p {
  font-size: 18px;
  color: #fff;
  margin-bottom: 30px;
}

.mzn-btn {
  display: inline-block;
  background-color: transparent;
  color: #f5c000;
  border: 2px solid #f5c000;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.mzn-btn:hover {
  background-color: #f5c000;
  color: #000;
}

/* SECCIÓN MISIÓN / VISIÓN */

.mzn-section {
  padding: 80px 20px;
  text-align: center;
}

.mzn-header h2 {
  font-size: 36px;
  color: #f5c000;
  margin-bottom: 10px;
  background: linear-gradient(135deg, rgba(17, 17, 17, 0.6), rgba(26, 26, 26, 0.9));
}

.mzn-header p {
  color: #fff;
}

.mzn-line {
  width: 100px;
  height: 4px;
  background-color: #f5c000;
  margin: 20px auto;
  border-radius: 2px;
  animation: mzn-lineGrow 2s ease-in-out infinite alternate;
}

@keyframes mzn-lineGrow {
  from { width: 60px; opacity: 0.7; }
  to { width: 120px; opacity: 1; }
}

/* AQUI TERMINA TU CÓDIGO RECIBIDO
   (el resto parecía estar cortado en el mensaje original) */

/* ===================== INICIO - ESTILOS GLOBALES Y ANIMACIONES BASE ===================== */

/* Mantengo todo igual excepto que NO haya otro background compitiendo */
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;

  background-color: #0b0c0e;

  /* Imagen de fondo desde /sources */
  background-image: url('./sources/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ===================== SECCIÓN MAQUINARIA ===================== */

.maquinaria-section {
  background: transparent !important;   /* ← QUITAR FONDO NEGRO */
  box-shadow: none !important;          /* ← NO SOMBREA EL FONDO */
}

/* ===================== CABECERA / NAV ===================== */

.mp-header {
  background-color: transparent !important; /* ← Quitar capa negra */
  backdrop-filter: none !important;         /* ← Quitar difuminado */
  box-shadow: none !important;
}

/* ===================== HERO / BANNER ===================== */

.mp-hero, .mzn-hero {
  background: none !important; /* ← Quitamos la imagen superpuesta */
}

/* Esta capa oscura era la que más tapaba TODO el fondo */
.mp-hero::after, .mzn-hero::after {
  display: none !important;   /* ← ELIMINAR PSEUDO-CAPA OSCURA */
  content: none !important;
}

/* ===================== REALIZADOS ===================== */

.mp-realizados {
  background: transparent !important;
}

/* ===================== INFO CARDS ===================== */

.mp-info {
  background: transparent !important;
}

.mp-info-card {
  background: rgba(0,0,0,0.45) !important; /* Ligero contraste sin tapar */
}

/* ===================== MAQUINARIA ===================== */

.mp-maquinaria {
  background: transparent !important;
}

.mp-maquina {
  background: rgba(0,0,0,0.45) !important;
}

/* ===================== EXPERIENCIA ===================== */

.mp-experiencia {
  background: transparent !important;
}

.mp-experiencia-content {
  background: rgba(0,0,0,0.45) !important;
}

/* ===================== TRABAJOS ===================== */

.mp-trabajos {
  background: transparent !important;
}

.mp-trabajo {
  background: rgba(0,0,0,0.45) !important;
}

/* ===================== SLIDER ===================== */

.apartado {
  background: transparent !important;
}

.slider img {
  background: transparent !important;
}

/* ===================== MZN - MISIÓN, VISIÓN, CONTACTO Y VALORES ===================== */

/* Esta capa animada tapaba todo el fondo */
.mzn-bg {
  display: none !important;
}

/* Hero de misión */
.mzn-hero {
  background: none !important;
}

.mzn-header h2 {
  background: none !important;
}
/* SECCIÓN REALIZADOS */
.mp-realizados {
  text-align: center;
  padding: 70px 20px;
  background: #0b0c0e;
}

.mp-realizados h2 {
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: #f5a623;
  letter-spacing: 2px;
}

.mp-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
}

.mp-item {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  padding: 20px;
  border-radius: 15px;
  transition: transform 0.4s, box-shadow 0.4s;
}

.mp-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.mp-item img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.mp-desc {
  font-size: 1rem;
  color: #ddd;
  margin-top: 5px;
  line-height: 1.4;
}

/* Animación JS */
.fade-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}
.mp-navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: #0d0e11;
    border-bottom: 1px solid #222;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    z-index: 999;
    transition: transform .3s ease;
}

.mp-navbar.hide {
    transform: translateY(-100%);
}
/* ===================== NUEVOS ESTILOS DE BOTONES ===================== */

/* Botón estilo contorno */
.mp-btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid #f5a623;
  color: #f5a623;
  background: transparent;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.mp-btn-outline:hover {
  background: #f5a623;
  color: #000;
}


/* Botón oscuro */
.mp-btn-dark {
  display: inline-block;
  padding: 12px 28px;
  background: #0b0b0b;
  color: #fff;
  border: 2px solid #333;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: 0.3s ease;
}

.mp-btn-dark:hover {
  background: #f5a623;
  color: #000;
  border-color: #f5a623;
}


/* Botón grande y llamativo */
.mp-btn-big {
  display: inline-block;
  padding: 18px 40px;
  background: #f5a623;
  color: #000;
  font-weight: bold;
  font-size: 1.2rem;
  border-radius: 10px;
  text-decoration: none;
  transition: 0.3s ease;
}

.mp-btn-big:hover {
  background: #ffb74d;
  transform: scale(1.05);
}
/* Quitar líneas azules y estilo de enlaces en las tarjetas */
.mp-item,
.mp-item * ,
.mp-maquina,
.mp-maquina * {
  text-decoration: none !important;
  color: inherit !important;
}

