/* ==========================
   ESTILOS GENERALES
========================== */

/* ==========================
   ESTILOS GENERALES
========================== */

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #fff;
  scroll-behavior: smooth;

  /* ===== IMAGEN DE FONDO DESDE LA CARPETA SOURCES ===== */
  background: url('../sources/background.png') no-repeat center center fixed;
  background-size: cover;
}


/* Botón general */
.mp-btn {
  display: inline-block;
  padding: 12px 28px;
  background: #f5a623;
  color: #000;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s ease;
}

.mp-btn:hover {
  background: #ffba4a;
  transform: translateY(-3px);
}

/* Fade y animación al aparecer */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* TITULOS */
section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 25px;
  letter-spacing: 1px;
  color: #f5a623;
}

/* ==========================
   HERO
========================== */

.mp-hero {
  background: url('/sources/fondo.jpg') center/cover no-repeat;
  padding: 150px 20px;
  text-align: center;
}

.mp-hero h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 0 0 12px #000;
}

.mp-hero p {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* ==========================
   PROYECTOS REALIZADOS
========================== */

.mp-realizados {
  padding: 60px 20px;
}

.mp-galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.mp-item {
  background: #141516;
  border-radius: 10px;
  padding-bottom: 15px;
  text-decoration: none;
  color: #fff;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mp-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 18px rgba(245,166,35,0.5);
}

.mp-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.mp-desc {
  padding: 10px 15px;
  font-size: 0.95rem;
  color: #dadada;
}

/* ==========================
   MAQUINARIA
========================== */

.mp-maquinaria {
  padding: 60px 20px;
  background: #0f1011;
}

.mp-maquinaria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.mp-maquina {
  background: #161719;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #fff;
  transition: 0.3s;
}

.mp-maquina:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(245,166,35,0.4);
}

.mp-maquina img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 8px;
}

.mp-maquina h3 {
  color: #f5a623;
  margin-bottom: 10px;
}

/* ==========================
   EXPERIENCIA
========================== */

.mp-experiencia {
  padding: 60px 20px;
  background: #101112;
}

.mp-experiencia-content {
  max-width: 900px;
  margin: auto;
  font-size: 1.1rem;
  line-height: 1.8;
}

.mp-experiencia-content ul {
  margin-top: 20px;
}

.mp-experiencia-content li {
  margin-bottom: 10px;
  color: #f5a623;
}

/* ==========================
   TRABAJOS
========================== */

.mp-trabajos {
  padding: 60px 20px;
}

.mp-trabajos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.mp-trabajo {
  background: #141516;
  padding-bottom: 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.mp-trabajo:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 16px rgba(245,166,35,0.5);
}

.mp-trabajo img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.mp-trabajo h3 {
  color: #f5a623;
  padding: 15px;
}

.mp-trabajo p {
  padding: 0 15px 15px;
  color: #d6d6d6;
}

/* ==========================
   INFO EXTRA
========================== */

.mp-info {
  padding: 60px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  background: #0f1011;
}

.mp-info-card {
  background: #161719;
  padding: 25px;
  border-radius: 10px;
  transition: 0.3s;
}

.mp-info-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 15px rgba(245,166,35,0.5);
}

.mp-info-card h3 {
  color: #f5a623;
  margin-bottom: 10px;
}

/* ==========================
   CTA FINAL
========================== */

.mp-cta {
  padding: 80px 20px;
  text-align: center;
  background: #141516;
}

.mp-cta h2 {
  margin-bottom: 15px;
}

.mp-cta p {
  margin-bottom: 25px;
  color: #e0e0e0;
}
/* ==========================================================
   ANIMACIONES PROFESIONALES PREMIUM
========================================================== */

/* Fade suave hacia arriba */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Fade left */
@keyframes fadeLeft {
  0% { opacity: 0; transform: translateX(-40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Fade right */
@keyframes fadeRight {
  0% { opacity: 0; transform: translateX(40px); }
  100% { opacity: 1; transform: translateX(0); }
}

/* Zoom suave */
@keyframes zoomIn {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

/* Glow respirando */
@keyframes breathingGlow {
  0% { box-shadow: 0 0 10px rgba(245,166,35,0.3); }
  50% { box-shadow: 0 0 20px rgba(245,166,35,0.6); }
  100% { box-shadow: 0 0 10px rgba(245,166,35,0.3); }
}

/* Movimiento parallax lento */
@keyframes parallaxMove {
  0% { background-position: center top; }
  100% { background-position: center bottom; }
}

/* Línea animada bajo títulos */
@keyframes lineGrow {
  0% { width: 0; opacity: 0; }
  100% { width: 70px; opacity: 1; }
}

/* ============================================================================================
   APLICACIÓN DE ANIMACIONES A SECCIONES
============================================================================================ */

/* Líneas animadas en los títulos */
section h2::after {
  content: "";
  display: block;
  margin: 10px auto 0;
  height: 3px;
  background: #f5a623;
  animation: lineGrow 1.2s ease forwards;
}

/* HERO — efecto parallax + fade */
.mp-hero {
  animation: fadeUp 1.2s ease forwards;
  background-size: cover;
  background-attachment: fixed;
  animation: parallaxMove 6s ease-in-out infinite alternate;
}

/* BOTONES — Glow al pasar */
.mp-btn:hover {
  animation: breathingGlow 1.8s infinite alternate;
}

/* GALERÍAS — animación individual */
.mp-item, .mp-maquina, .mp-trabajo, .mp-info-card {
  opacity: 0;
  animation: fadeUp 1s ease forwards;
}

.mp-item:nth-child(1) { animation-delay: .1s; }
.mp-item:nth-child(2) { animation-delay: .3s; }
.mp-item:nth-child(3) { animation-delay: .5s; }
.mp-item:nth-child(4) { animation-delay: .7s; }

/* Hover 3D */
.mp-item:hover, .mp-maquina:hover, .mp-info-card:hover, .mp-trabajo:hover {
  transform: translateY(-10px) scale(1.03);
}

/* TRABAJOS — entrada lateral alternada */
.mp-trabajo:nth-child(1) { animation: fadeLeft 1s ease forwards; }
.mp-trabajo:nth-child(2) { animation: zoomIn 1s ease forwards; }
.mp-trabajo:nth-child(3) { animation: fadeRight 1s ease forwards; }

/* EXPERIENCIA — entrada suave */
.mp-experiencia-content {
  opacity: 0;
  animation: fadeUp 1.3s ease forwards;
}

/* INFO CARDS — ciclo suave para que "respiren" */
.mp-info-card {
  animation: fadeUp 1.2s ease forwards, breathingGlow 3s infinite ease-in-out;
}

/* CTA — efecto zoom al aparecer */
.mp-cta {
  opacity: 0;
  animation: zoomIn 1.3s ease forwards;
}

/* ==========================================================
   EFECTO GLOBAL SCROLL REVEAL
========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
/* HERO CON FONDO */
.mp-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;

    background-image: url('../sources/fondo.webp'); /* AJUSTA SEGÚN TU ARCHIVO */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* OSCURECIMIENTO + EFECTO PROFESIONAL */
.mp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55); /* Transparencia correcta */
    backdrop-filter: blur(2px);
    z-index: 1;
}

/* CONTENIDO ENCIMA DEL FONDO */
.mp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}
/* HERO mucho más pequeño */
.mp-hero {
    min-height: 58vh !important; /* Antes 78vh */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 20px;
}

/* Subir el texto aún más */
.mp-hero-content {
    margin-top: -70px !important;
}
/* ================================
   SECCIONES CON FONDOS + DISEÑO
================================ */

/* Fondo general con transparencia para todas las secciones */
section {
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 60px 0;
    margin-bottom: 40px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
    overflow: hidden;
}

/* Línea divisoria brillante arriba de cada sección */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #f5a623, transparent);
    opacity: 0.8;
}

/* Pequeña iluminación abajo */
section::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 25px;
    background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.6));
    opacity: 0.7;
}

/* ================================
   SECCIÓN: NUESTROS PROYECTOS (ESTILO ESPECIAL)
================================ */

.mp-realizados {
    background: rgba(20,20,20,0.55);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.12);
}

/* tarjetas con hover más profesional */
.mp-item {
    transition: transform .4s ease, box-shadow .5s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    background: rgba(255,255,255,0.04);
}

.mp-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.45);
}

/* ================================
   MAQUINARIA – CUADROS
================================ */

.mp-maquina {
    background: rgba(255,255,255,0.05);
    padding: 15px;
    border-radius: 12px;
    transition: .4s ease;
    border: 1px solid rgba(255,255,255,0.10);
}

.mp-maquina:hover {
    transform: translateY(-12px);
    box-shadow: 0 18px 35px rgba(0,0,0,0.45);
}

/* ================================
   INFO EXTRA TARJETAS
================================ */

.mp-info-card {
    background: rgba(255,255,255,0.06);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(255,255,255,0.12);
    transition: 0.4s ease;
}

.mp-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.4);
}

/* ================================
   ANIMACIONES PREMIUM
================================ */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Efecto scanline leve para modern look */
section::before {
    animation: glowline 4s infinite linear;
}

@keyframes glowline {
    0% { opacity: .5; transform: scaleX(0.4); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: .5; transform: scaleX(0.4); }
}
/* ==========================================================
   NAVBAR PROFESIONAL
========================================================== */

.mp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding: 15px 0;
    transition: 0.4s ease;
}

.mp-nav-container {
    width: 90%;
    max-width: 1400px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.mp-logo {
    font-size: 24px;
    font-weight: 800;
    color: #f5a623;
    letter-spacing: 1px;
}

/* MENU */
.mp-menu a {
    margin: 0 18px;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
    position: relative;
}

.mp-menu a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background: #f5a623;
    transition: 0.3s ease;
}

.mp-menu a:hover {
    color: #f5a623;
}

.mp-menu a:hover::after {
    width: 100%;
}

/* BOTÓN COTIZAR */
.mp-btn-nav {
    padding: 10px 20px;
    background: #f5a623;
    color: #000;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mp-btn-nav:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 18px rgba(245,166,35,0.4);
}

/* NAVBAR SHRINK AL HACER SCROLL */
.mp-navbar.scrolled {
    padding: 8px 0;
    background: rgba(0, 0, 0);
    border-bottom: 1px solid rgba(255,255,255);
}


