/* ============================================
   ELEVADORES MANLIFT — Estilo Industrial
   Paleta original conservada:
   #f38d24 #b6610a  #47b5ed #148cca  #40b0bf #2a747e  #ffe161
   ============================================ */

:root {
  --mf-orange: #f38d24;
  --mf-orange-dark: #b6610a;
  --mf-blue: #47b5ed;
  --mf-blue-dark: #148cca;
  --mf-teal: #40b0bf;
  --mf-teal-dark: #2a747e;
  --mf-yellow: #ffe161;
  --mf-ink: #111418;
  --mf-ink-2: #1c2128;
  --mf-paper: #f4f5f7;
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--mf-ink); }
::selection { background: var(--mf-yellow); color: var(--mf-ink); }

/* ---------- Cinta de seguridad (utility) ---------- */
.mf-tape {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--mf-yellow) 0 22px,
    var(--mf-ink) 22px 44px
  );
}

/* ---------- Navbar (ajustes mínimos para no romper Mobirise) ---------- */
.navbar.navbar-dropdown {
  background: #ffffff !important;
  border-bottom: 1px solid #ececec;
  box-shadow: none;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.navbar.navbar-dropdown.scrolled {
  box-shadow: 0 6px 22px rgba(17,20,24,.08);
  border-bottom-color: transparent;
}
.navbar-brand img { transition: transform .35s ease; }
.navbar-brand:hover img { transform: rotate(-4deg); }
.navbar .navbar-caption { font-weight: 700 !important; letter-spacing: .02em; }

/* Underline animado SOLO en enlaces que NO son dropdown-toggle (evita conflicto con la flecha) */
.navbar .nav-link:not(.dropdown-toggle) {
  position: relative;
}
.navbar .nav-link:not(.dropdown-toggle)::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 8px;
  height: 2px; width: 0;
  background: var(--mf-orange);
  transition: width .3s ease;
}
.navbar .nav-link:not(.dropdown-toggle):hover::after { width: calc(100% - 32px); }
.navbar .nav-link:hover { color: var(--mf-orange) !important; }

/* Dropdown más limpio */
.navbar .dropdown-menu {
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: 0 18px 40px rgba(17,20,24,.15) !important;
  padding: .4rem !important;
  margin-top: .4rem !important;
  background: #fff !important;
}
.navbar .dropdown-item {
  border-radius: 6px;
  padding: .6rem .9rem !important;
  transition: background .2s ease, color .2s ease, padding-left .2s ease;
}
.navbar .dropdown-item:hover {
  background: var(--mf-ink) !important;
  color: var(--mf-yellow) !important;
  padding-left: 1.2rem !important;
}

/* Botón CONTACTO */
.navbar .btn-secondary {
  background: var(--mf-ink) !important;
  border: 0 !important;
  color: #fff !important;
  border-radius: 4px !important;
  padding: .6rem 1.4rem !important;
  font-weight: 700 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition: color .25s ease;
}
.navbar .btn-secondary::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--mf-orange);
  transform: translateY(101%);
  transition: transform .3s cubic-bezier(.7,.1,.2,1);
  z-index: 0;
}
.navbar .btn-secondary:hover::before { transform: translateY(0); }
.navbar .btn-secondary { z-index: 0; }
.navbar .btn-secondary > * { position: relative; z-index: 1; }

/* ---------- HERO industrial ---------- */
.mf-hero {
  position: relative;
  background:
    linear-gradient(105deg, rgba(17,20,24,.82) 0%, rgba(17,20,24,.55) 55%, rgba(17,20,24,.3) 100%),
    url('../images/capture-744x498.jpg') center center / cover no-repeat;
  color: #fff;
  overflow: hidden;
  padding: 7rem 0 5rem;
}
.mf-hero::before {
  /* Marca de agua tipográfica gigante */
  content: "MANLIFT";
  position: absolute;
  right: -2rem; bottom: -3rem;
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(8rem, 18vw, 18rem);
  letter-spacing: -.04em;
  color: rgba(255,255,255,.03);
  line-height: .85;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.mf-hero::after {
  /* Cinta de seguridad lateral */
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--mf-yellow) 0 16px,
    var(--mf-ink) 16px 32px
  );
}
.mf-hero .container { position: relative; z-index: 2; }

.mf-hero .badge-pill {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--mf-yellow);
  padding: .5rem 0;
  border-top: 2px solid var(--mf-orange);
  border-bottom: 2px solid var(--mf-orange);
  margin-bottom: 1.5rem;
}

.mf-hero h1 {
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(2.6rem, 6.5vw, 5.6rem);
  line-height: .95;
  letter-spacing: -.035em;
  text-transform: uppercase;
  margin: 0 0 1.4rem;
}
.mf-hero h1 .accent {
  color: var(--mf-orange);
  position: relative;
  display: inline-block;
}
.mf-hero h1 .accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 6px;
  background: var(--mf-yellow);
}

.mf-hero p.lead {
  font-size: 1.1rem;
  max-width: 580px;
  color: #c8cdd3;
  margin-bottom: 2.2rem;
  line-height: 1.6;
}

.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.mf-btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: 1rem 1.7rem;
  font-weight: 700;
  font-size: .92rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.mf-btn-primary {
  background: var(--mf-orange);
  color: var(--mf-ink);
  box-shadow: 6px 6px 0 var(--mf-yellow);
}
.mf-btn-primary:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--mf-yellow);
  color: var(--mf-ink);
}
.mf-btn-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.35);
}
.mf-btn-ghost:hover {
  background: #fff; color: var(--mf-ink); border-color: #fff;
}

.mf-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 0;
  margin-top: 3.5rem;
  border-top: 1px solid rgba(255,255,255,.12);
  padding-top: 2rem;
  max-width: 720px;
}
.mf-stat { padding-right: 2.5rem; border-right: 1px solid rgba(255,255,255,.08); }
.mf-stat:last-child { border-right: 0; padding-right: 0; padding-left: 0; }
.mf-stat .num {
  font-family: Inter, sans-serif;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 900;
  color: var(--mf-orange);
  line-height: 1;
  letter-spacing: -.02em;
}
.mf-stat .lbl {
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9aa3ad;
  margin-top: .5rem;
}

/* ---------- Tarjetas de servicios (Nosotros/Proyectos/Elevadores/Galería) ---------- */
section.features18 {
  background: var(--mf-paper);
  padding: 5rem 0 5rem !important;
  position: relative;
}
section.features18::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--mf-yellow) 0 14px,
    var(--mf-ink) 14px 28px
  );
}

section.features18 .card {
  border: 0 !important;
  background: transparent !important;
  counter-increment: mfcards;
}
section.features18 { counter-reset: mfcards; }

section.features18 .card-wrapper {
  position: relative;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(17,20,24,.06);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
section.features18 .card-wrapper::before {
  /* Número de orden */
  content: "0" counter(mfcards);
  position: absolute;
  top: 12px; left: 14px;
  z-index: 3;
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  letter-spacing: .05em;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
section.features18 .card-wrapper::after {
  /* Borde naranja al hacer hover */
  content: "";
  position: absolute; inset: 0;
  border: 3px solid var(--mf-orange);
  border-radius: 6px;
  opacity: 0;
  transform: scale(.98);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
section.features18 .card-wrapper:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(17,20,24,.18);
}
section.features18 .card-wrapper:hover::after {
  opacity: 1; transform: scale(1);
}

section.features18 .card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--mf-ink);
}
/* Oculta el overlay nativo de Mobirise para que se vean las fotos */
section.features18 .card-img .mbr-overlay { display: none !important; }
section.features18 .card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  filter: saturate(1.05) contrast(1.02);
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s ease;
}
section.features18 .card-wrapper:hover .card-img img {
  transform: scale(1.08);
  filter: saturate(1.15) contrast(1.05);
}
/* Gradiente sutil sólo en la parte baja para que el título sea legible */
section.features18 .card-img::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 55%;
  background: linear-gradient(180deg, transparent 0%, rgba(17,20,24,.85) 100%);
  pointer-events: none;
}

section.features18 .card-box {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.2rem 1.3rem 1.4rem;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
section.features18 .card-box .card-title,
section.features18 .card-box .card-title a {
  color: #fff !important;
  font-weight: 800 !important;
  font-size: 1.1rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 !important;
}
section.features18 .card-wrapper:hover .card-box .card-title a {
  color: var(--mf-yellow) !important;
}
section.features18 .card-box::after {
  /* Flecha al final */
  content: "→";
  color: var(--mf-orange);
  font-weight: 900;
  font-size: 1.3rem;
  transition: transform .3s ease, color .3s ease;
}
section.features18 .card-wrapper:hover .card-box::after {
  transform: translateX(6px);
  color: var(--mf-yellow);
}

/* ---------- Títulos generales ---------- */
.mbr-section-title {
  font-family: Inter, sans-serif !important;
  font-weight: 900 !important;
  text-transform: uppercase;
  letter-spacing: -.01em !important;
}
.mbr-section-title strong { font-weight: 900; }

/* ---------- Formulario "Cotiza alquiler" ---------- */
.form1 {
  background: var(--mf-ink) !important;
  color: #fff !important;
  padding: 5rem 0 !important;
  position: relative;
}
.form1::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    var(--mf-yellow) 0 14px,
    var(--mf-ink-2) 14px 28px
  );
}
.form1 .mbr-section-title { color: #fff !important; }
.form1 .form-control-label { color: #c8cdd3 !important; font-weight: 600 !important; }
.form1 .form-control {
  background: #232930 !important;
  border: 1.5px solid #2f363f !important;
  border-radius: 4px !important;
  color: #fff !important;
  padding: .85rem 1rem !important;
  transition: border-color .25s ease, background .25s ease;
}
.form1 .form-control:focus {
  border-color: var(--mf-orange) !important;
  background: #2a3037 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(243,141,36,.18) !important;
}
.form1 textarea.form-control { min-height: 130px; }
.form1 .btn-primary, .form1 .btn-form {
  background: var(--mf-orange) !important;
  color: var(--mf-ink) !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 1rem 2.5rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 6px 6px 0 var(--mf-yellow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.form1 .btn-primary:hover, .form1 .btn-form:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--mf-yellow);
}

/* ---------- Footer ---------- */
[id^="footer2"] {
  background: #0b0d10 !important;
  color: #b6bdc4;
  padding: 4rem 0 1.5rem !important;
  border-top: 6px solid var(--mf-orange);
}
[id^="footer2"] .mbr-white,
[id^="footer2"] p,
[id^="footer2"] strong {
  color: #b6bdc4 !important;
}
[id^="footer2"] strong { color: #fff !important; letter-spacing: .04em; }
[id^="footer2"] a {
  color: #b6bdc4 !important;
  text-decoration: none;
  transition: color .2s ease, padding-left .2s ease;
  display: inline-block;
}
[id^="footer2"] a:hover { color: var(--mf-yellow) !important; padding-left: 4px; }
[id^="footer2"] .google-map iframe {
  border-radius: 6px;
  width: 100%; min-height: 240px;
  filter: invert(.92) hue-rotate(180deg) contrast(.95);
}
[id^="footer2"] hr { border-color: rgba(255,255,255,.08) !important; margin: 2.5rem 0 1.5rem; }
.soc-item a {
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.15);
  border-radius: 50%;
  margin: 0 .3rem;
  transition: all .25s ease;
}
.soc-item a:hover {
  background: var(--mf-orange);
  border-color: var(--mf-orange);
  transform: translateY(-2px);
  padding-left: 0 !important;
}
.soc-item .mbr-iconfont-social { color: #fff !important; font-size: 1rem; }

/* ---------- Reveal animations ---------- */
.mf-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.mf-reveal.is-visible { opacity: 1; transform: translateY(0); }
.mf-reveal[data-delay="1"] { transition-delay: .08s; }
.mf-reveal[data-delay="2"] { transition-delay: .16s; }
.mf-reveal[data-delay="3"] { transition-delay: .24s; }
.mf-reveal[data-delay="4"] { transition-delay: .32s; }

/* ---------- Floating WhatsApp ---------- */
.mf-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 999;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.4);
  color: #fff !important;
  text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease;
}
.mf-fab::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid #25d366;
  animation: mfPulse 2.2s ease-out infinite;
}
.mf-fab:hover { transform: scale(1.08); }
@keyframes mfPulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.55); opacity: 0; }
}

/* ---------- Galería ---------- */
.gallery img, .mbr-gallery-item img {
  border-radius: 4px;
  transition: transform .5s ease;
}
.mbr-gallery-item { overflow: hidden; border-radius: 4px; }
.mbr-gallery-item:hover img { transform: scale(1.06); }

/* ---------- Botones genéricos ---------- */
.btn-primary, .btn-info, .btn-success, .btn-warning {
  border-radius: 4px !important;
  font-weight: 700 !important;
  letter-spacing: .08em !important;
  text-transform: uppercase;
  transition: transform .2s ease, box-shadow .2s ease !important;
}
.btn-primary:hover, .btn-info:hover { transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .mf-hero { padding: 5rem 0 3.5rem; }
  .mf-hero .badge-pill { font-size: .7rem; }
  .mf-hero-stats { grid-template-columns: repeat(3, 1fr); gap: 0; padding-top: 1.5rem; margin-top: 2.5rem; }
  .mf-stat { padding-right: .5rem; }
  .mf-stat .num { font-size: 1.6rem; }
  .mf-stat .lbl { font-size: .62rem; letter-spacing: .12em; }
  section.features18 { padding: 3rem 0 !important; }
  section.features18 .card-img { aspect-ratio: 4/3; }
}
