/* FILE: /Applications/XAMPP/xamppfiles/htdocs/mecatronik_web/css/estilos.css (versión optimizada) */

/* ====== NAVBAR / HEADER ====== */


.mk-navbar {
  background: linear-gradient(90deg, #050505, #111827);
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.mk-logo {
  height: 40px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Marca: amarillo por defecto, naranja al hover */
.mk-brand-text {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
  color: #ffeb3b;
  transition: color 0.18s ease-out;
}

.navbar-brand:hover .mk-brand-text {
  color: #ff7f00;
}

/* Links del nav: amarillo, hover naranja */
.navbar-nav .nav-link {
  color: #ffeb3b !important;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding-inline: 0.75rem;
  transition: color 0.18s ease-out;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #ff7f00 !important;
}

/* subrayado animado */
.navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.1rem;
  height: 2px;
  background: linear-gradient(90deg, #ff7f00, #ff2b4a);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after {
  transform: scaleX(1);
}

/* ícono burger */
.mk-burger-icon {
  width: 28px;
  height: 28px;
}

/* dropdown oscuro */
.mk-dropdown {
  background-color: #050712;
  border: 1px solid rgba(255,255,255,0.08);
}

.mk-dropdown .dropdown-item {
  color: #e5e7eb;
  font-size: 0.85rem;
}

.mk-dropdown .dropdown-item:hover {
  background-color: rgba(255,127,0,0.12);
  color: #F2B13D;
}

.mk-cart-fab {
  position: fixed;
  right: 18px;
  top: 80px;
  z-index: 9999;
  background: #F2B13D;
  color: #000 !important;
  border-radius: 999px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none !important;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
  font-weight: bold;
}

.mk-cart-fab:hover,
.mk-cart-fab:focus,
.mk-cart-fab:active,
.mk-cart-fab:visited {
  color: #000 !important;
  text-decoration: none !important;
}


.mk-cart-fab i {
  font-size: 1.2rem;
}

.mk-cart-badge {
  background: #000;
  color: #fff;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: .8rem;
}

.mk-cart-fab.d-none {
  display: none !important;
}


/* ====== HERO / CARRUSEL + INTRO ====== */
.mk-hero {
  background: #02030a;
}

.hero-slide-img {
  max-height: 520px;
  object-fit: cover;
}

.hero-slide-img-top {
  object-position: top;
}

.mk-hero-overlay {
  max-width: 720px;
}

.mk-hero-title {
  font-size: clamp(1.3rem, 2vw + 1rem, 2rem);
}

/* Intro GEO */
.mk-intro {
  background: radial-gradient(circle at top left, rgba(255,127,0,0.16), transparent 55%),
              #02030a;
}

.mk-section-title {
  font-size: 1.4rem;
}

.mk-intro-text {
  color: #d1d5db;
  font-size: 0.95rem;
}

.mk-intro-card {
  background: rgba(15,23,42,0.95);
  border-radius: 18px;
  padding: 1.5rem 1.8rem;
  border: 1px solid rgba(248,250,252,0.08);
  box-shadow: 0 20px 30px rgba(0,0,0,0.45);
}

.mk-intro-card-title {
  font-size: 1.05rem;
  color: #facc15;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.mk-intro-list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 0.75rem;
  color: #e5e7eb;
  font-size: 0.9rem;
}

.mk-intro-list li::before {
  content: "• ";
  color: #ff7f00;
}

/* Subtítulos generales */
.mk-section-subtitle {
  font-size: 0.95rem;
  color: #9ca3af;
}

/* Botón principal reutilizable */
.mk-btn-primary {
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* ====== SERVICIOS (fondo negro) ====== */
#servicios {
  background: #02030a;
}

#servicios .card {
  border-radius: 14px;
}

/* ====== PRODUCTOS: STOCK + CANTIDAD ====== */
.mk-product-card {
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}

.mk-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}

.mk-product-stock {
  font-size: 0.8rem;
}

.mk-qty-group {
  border-radius: 999px;
  overflow: hidden;
}

.mk-qty-group .input-group-text {
  font-size: 0.8rem;
}

.mk-qty-input {
  font-size: 0.8rem;
}

/* ====== WHATSAPP FLOAT ====== */
.whatsapp-float {
  position: fixed;
  bottom: 18px;
  right: 18px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 35px rgba(0,0,0,0.5);
  z-index: 2000;
  transition: transform 0.16s ease-out, box-shadow 0.16s ease-out;
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 22px 40px rgba(0,0,0,0.7);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 991.98px) {
  .navbar-nav .nav-link::after {
    display: none;
  }

  .hero-slide-img {
    max-height: 360px;
  }
}

@media (max-width: 575.98px) {
  .mk-logo {
    height: 32px;
  }

  .mk-brand-text {
    font-size: 0.8rem;
  }

  .hero-slide-img {
    max-height: 300px;
  }

  .mk-intro-card {
    margin-top: 0.5rem;
  }

  .whatsapp-float {
    width: 58px;
    height: 58px;
    bottom: 14px;
    right: 14px;
  }

  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}
/* ================================================
   BLOQUE OSCURO TIPO APPLE (versión optimizada)
   Se aplica a la sección inmediatamente después del carrusel
   ================================================ */

.section-dark {
  background: linear-gradient(180deg, #101010 0%, #121212 100%);
     
  padding: 60px 0;
  color: #f2f2f2;
  border-top: 1px solid rgba(255, 255, 0, 0.15); /* línea premium amarilla */
}

/* título principal */
.section-dark h2 {
  color: #ffdd33; /* amarillo Apple-like */
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* texto normal */
.section-dark p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e6e6e6;
}

/* tarjetas dentro del bloque oscuro */
.section-dark .card {
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.section-dark .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 0, 0.08);
}

/* iconos */
.section-dark .card img {
  filter: drop-shadow(0 0 6px rgba(255, 255, 0, 0.1));
}

/* separación respecto al carrusel */
.section-dark-top-gap {
  margin-top: -20px;
}


    
    /* =================================================
   MEJORA RESPONSIVE CARRUSEL / HERO
   ================================================= */

/* Contenedor del carrusel */
.mk-hero {
  position: relative;
  overflow: hidden;
}

/* Imagen del slide */
.hero-slide-img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

/* Overlay del texto */
.mk-hero-overlay {
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.65),
    rgba(0,0,0,0.35),
    rgba(0,0,0,0)
  );
  padding: 2.5rem;
  border-radius: 18px;
  backdrop-filter: blur(2px);
}

/* Título del hero */
.mk-hero-title {
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 4px 18px rgba(0,0,0,0.6);
}

/* Texto del hero */
.mk-hero-overlay p {
  font-size: 1rem;
  color: #e5e7eb;
  text-shadow: 0 3px 12px rgba(0,0,0,0.5);
}

/* ================= TABLET ================= */
@media (max-width: 991.98px) {

  .hero-slide-img {
    height: 420px;
  }

  .mk-hero-overlay {
    max-width: 90%;
    padding: 2rem;
  }

  .mk-hero-title {
    font-size: 1.8rem;
  }
}

/* ================= MOBILE ================= */
@media (max-width: 575.98px) {

  /* Reduce altura del carrusel */
  .hero-slide-img {
    height: 300px;
  }

  /* Overlay pasa a modo tarjeta */
  .mk-hero-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;

    background: rgba(0,0,0,0.78);
    padding: 1.2rem;
    border-radius: 16px;
  }

  .mk-hero-title {
    font-size: 1.35rem;
    margin-bottom: 0.4rem;
  }

  .mk-hero-overlay p {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  /* Oculta textos secundarios largos si existen */
  .mk-hero-overlay .d-mobile-hide {
    display: none;
  }
}

/* ================= ULTRA SMALL ================= */
@media (max-width: 380px) {

  .hero-slide-img {
    height: 260px;
  }

  .mk-hero-title {
    font-size: 1.2rem;
  }

}

/* =================================================
   COOKIE BANNER (Mecatronik) - Estilo premium igual al sitio
   ================================================= */

.mk-cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  display: none;
}

.mk-cookie__box {
  max-width: 700px;
  margin: 0 auto;
  background: linear-gradient(90deg, #050505, #111827);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 18px 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.mk-cookie__row {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mk-cookie__title {
  margin: 0 0 6px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #ffffff;
  font-size: 1.15rem;
}

.mk-cookie__text {
  margin: 0;
  color: #cbd5e1;
  line-height: 1.55;
  font-size: 1rem;
  max-width: 720px;
}

.mk-cookie__links {
  margin-top: 10px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.mk-cookie__links a {
  color: #F2B13D;
  text-decoration: none;
  font-weight: 700;
}

.mk-cookie__links a:hover {
  text-decoration: underline;
}

.mk-cookie__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Botones: coherentes con la marca */
.mk-cookie-btn {
  border-radius: 18px;
  padding: 14px 18px;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, color .15s ease;
}

.mk-cookie-btn:hover {
  transform: translateY(-1px);
}

.mk-cookie-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: #e5e7eb;
}

.mk-cookie-btn--ghost:hover {
  border-color: rgba(255,255,255,0.28);
}

.mk-cookie-btn--outline {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.22);
  color: #e5e7eb;
}

.mk-cookie-btn--outline:hover {
  border-color: #ffeb3b;
  color: #F2B13D;
}

.mk-cookie-btn--primary {
  background: #F2B13D;
  border: none;
  color: #111;
  box-shadow: 0 12px 25px rgba(255,127,0,0.25);
}

.mk-cookie-btn--primary:hover {
  box-shadow: 0 16px 30px rgba(255,127,0,0.33);
}

/* Modal config (si lo usas) */
.mk-cookie-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 100000;
  background: rgba(0,0,0,.65);
  padding: 18px;
}

.mk-cookie-modal__card {
  max-width: 760px;
  margin: 6vh auto;
  background: #050712;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 18px 45px rgba(0,0,0,0.55);
}

.mk-cookie-modal__head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.mk-cookie-modal__head h3 {
  margin: 0;
  color: #fff;
  font-weight: 900;
}

.mk-cookie-x {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  cursor: pointer;
}

.mk-cookie-opt {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 16px;
  margin: 12px 0;
  background: rgba(15,23,42,0.55);
}

.mk-cookie-opt strong { color:#fff; }
.mk-cookie-opt p { margin: 6px 0 0; color:#cbd5e1; line-height:1.55; }

.mk-cookie-switch { display:flex; align-items:center; gap:10px; }
.mk-cookie-switch input { width:18px; height:18px; }

@media (max-width: 720px) {
  .mk-cookie__box { padding: 16px; }
  .mk-cookie__title { font-size: 1.05rem; }
  .mk-cookie__text { font-size: .95rem; }
  .mk-cookie-btn { padding: 12px 14px; font-size: 1.05rem; border-radius: 16px; }
}


/* =========================================================
   FOOTER MECATRONIK
   ========================================================= */

.mk-footer {
  background: linear-gradient(90deg, #050505, #111827);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 28px 0;
  color: #cbd5e1;
}

.mk-footer__wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: center;
}

.mk-footer__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.mk-footer__logo {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,.35);
}

.mk-footer__name {
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffeb3b;
  line-height: 1.1;
}

.mk-footer__meta {
  font-size: .9rem;
  color: #9ca3af;
}

.mk-footer__links {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.mk-footer__links a {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #ffeb3b;
  text-decoration: none;
  transition: color .18s ease-out;
}

.mk-footer__links a:hover {
  color: #ff7f00;
}

.mk-footer__copy {
  grid-column: 1 / -1;
  font-size: .85rem;
  color: #9ca3af;
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 14px;
  margin-top: 8px;
}

/* Footer responsive */
@media (max-width: 768px) {
  .mk-footer__wrap {
    grid-template-columns: 1fr;
  }

  .mk-footer__links {
    justify-content: flex-start;
  }
}



