/* ====== Paleta Mil Puertas ====== */
:root {
  --mp-primary:  #1F3C88; /* azul oscuro */
  --mp-accent:   #FFC83A; /* amarillo */
  --mp-danger:   #F15A4A; /* rojo */
  --mp-info:     #4CA3FF; /* celeste */
  --mp-text:     #111827;
  --mp-text-soft:#6B7280;
  --mp-bg:       #F9FAFB;
  --mp-border:   #E5E7EB;
}

/* ====== Base ====== */
html, body {
  background-color: var(--mp-bg);
  color: var(--mp-text);
}

/* Mejor foco accesible */
*:focus-visible {
  outline: 2px solid var(--mp-accent);
  outline-offset: 2px;
}

/* ====== TipografÃ­a / tÃ­tulos ====== */
.title, .subtitle {
  color: var(--mp-text);
}

.section .title {
  position: relative;
  display: inline-block;
  padding-bottom: 0.25rem;
}
.section .title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40%;
  height: 3px;
  background: linear-gradient(90deg, var(--mp-accent), transparent);
}

/* ====== Links ====== */
a {
  color: var(--mp-primary);
  text-decoration: none;
  transition: color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

a:hover {
  color: var(--mp-danger); /* rojo al hover */
  text-decoration: none;
}

/* ====== Navbar ====== */
.navbar {
  border-bottom: 1px solid var(--mp-border);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
  background-color: #ffffff;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-logo {
  height: 2.5rem;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.navbar-logo:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 6px 12px rgba(31, 60, 136, 0.15));
}

.navbar-main-links {
  margin-left: auto;
}

.navbar-item,
.navbar-link {
  color: var(--mp-text);
}

.navbar-item:hover,
.navbar-link:hover {
  background-color: rgba(255, 200, 58, 0.07); /* amarillo muy suave */
  color: var(--mp-primary);
}

/* Activo con subrayado amarillo */
.navbar-item.is-active {
  position: relative;
  font-weight: 600;
}
.navbar-item.is-active::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.25rem;
  height: 3px;
  border-radius: 999px;
  background-color: var(--mp-accent);
}

/* Nombre del sitio al lado del logo */
.navbar-item.site-name {
  font-weight: 700;
  letter-spacing: 0.03em;
}
.navbar-item.site-name span:nth-child(1) {
  color: var(--mp-accent);   /* Mil */
}
.navbar-item.site-name span:nth-child(2) {
  color: var(--mp-primary);  /* Puertas */
}
.navbar-item.site-name span:nth-child(3) {
  color: var(--mp-text-soft); /* web */
}

@media (min-width: 1024px) {
  .navbar {
    min-height: 5rem;
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-inner {
    margin: 0 auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .navbar-brand,
  .navbar-menu {
    align-items: center;
  }

  .navbar-menu {
    display: flex;
  }

  .navbar-main-links {
    display: flex;
    align-items: center;
    gap: 1rem;
  }

  .navbar-brand .navbar-item {
    padding-top: 0;
    padding-bottom: 0;
  }

  .navbar-logo {
    height: 3.5rem;
  }

  .navbar-item.site-name {
    font-size: 1.5em;
    margin-left: 0.5rem;
  }

  .navbar-main-links > .navbar-item {
    display: flex;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 5rem;
  }
}

/* ====== Hero ====== */
.hero.is-light {
  background: radial-gradient(circle at top left, #fff7df 0, #ffffff 40%, #f4f7fb 100%);
}

/* ====== Botones ====== */

/* CTA principal: amarillo, texto azul */
.button.is-primary {
  background-color: var(--mp-accent);
  border-color: var(--mp-accent);
  color: #1f2933;
  font-weight: 600;
  box-shadow: 0 6px 14px rgba(255, 200, 58, 0.4);
}

.button.is-primary:hover {
  background-color: #f4b824; /* amarillo un poco mÃ¡s oscuro */
  border-color: #f4b824;
  box-shadow: 0 8px 18px rgba(255, 200, 58, 0.45);
}

/* Secundario: azul sÃ³lido */
.button.is-link {
  background-color: var(--mp-primary);
  border-color: var(--mp-primary);
  color: #ffffff;
  font-weight: 500;
}

.button.is-link:hover {
  filter: brightness(1.05);
}

/* BotÃ³n "light" con borde azul */
.button.is-light {
  background-color: #ffffff;
  border-color: var(--mp-primary);
  color: var(--mp-primary);
}

.button.is-light:hover {
  background-color: rgba(31, 60, 136, 0.04);
}

/* BotÃ³n peligro / Ã©nfasis rojo (por si lo usÃ¡s) */
.button.is-danger {
  background-color: var(--mp-danger);
  border-color: var(--mp-danger);
}

/* ====== Cards y boxes ====== */
.card,
.box {
  border-radius: 0.9rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(229, 231, 235, 0.7);
}

.card .title,
.box .title {
  margin-bottom: .5rem;
}

/* Sutil borde amarillo al hover */
.card:hover,
.box:hover {
  border-color: rgba(255, 200, 58, 0.7);
}

/* ====== Iconos en pasos ====== */
.icon.is-large.has-text-primary {
  color: var(--mp-danger) !important; /* rojo para dar vida en los pasos */
}

/* ====== Footer ====== */
.footer {
  background-color: #ffffff;
  border-top: 1px solid var(--mp-border);
}
.footer a {
  color: var(--mp-primary);
}
.footer a:hover {
  color: var(--mp-danger);
  text-decoration: none;
}

/* ====== Carrusel aperturas (ventanas) ====== */
.mp-aperturas-scroll {
  scrollbar-width: none; /* oculta scrollbar en Firefox */
}
.mp-aperturas-scroll::-webkit-scrollbar {
  display: none; /* oculta scrollbar en WebKit */
}

@media (max-width: 768px) {
  .mp-aperturas-scroll {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 1.5rem;
    gap: 1.25rem;
    padding: 0 1.5rem 1rem;
    margin-left: 0;
    margin-right: 0;
  }

  .mp-apertura-slide {
    flex: 0 0 80%;
    max-width: 80%;
    scroll-snap-align: center;
    padding: 0;
  }
}

/* ====== Hero (fondo + random) ====== */

/* Bulma le pone su propio background al .hero.is-light;
   acÃ¡ lo pisamos para el caso particular hero-landing */
section.hero.hero-landing {
  position: relative;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  /* por defecto usa desktop */
  background-image: var(--hero-desktop) !important;
}

/* En mobile usamos la versiÃ³n mobile */
@media (max-width: 768px) {
  section.hero.hero-landing {
    background-image: var(--hero-mobile) !important;
  }
}

/* Capa semitransparente para mejorar la lectura */
section.hero.hero-landing::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* bajÃ© bastante la opacidad para que sÃ­ se vea la foto */
  background: rgba(255, 255, 255, 0.65);
}

/* Aseguramos que el contenido quede encima del overlay */
section.hero.hero-landing .hero-body {
  position: relative;
  z-index: 1;
}

.hero-landing .hero-content {
  max-width: 48rem;
  margin: 0 auto;
}

.hero-landing .title,
.hero-landing .subtitle,
.hero-landing .hero-constructoras-link {
  text-shadow: 0 14px 28px rgba(15, 23, 42, 0.35);
}

.hero-constructoras-link {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--mp-text);
}

.hero-link-underline {
  border-bottom: 2px solid var(--mp-accent);
  color: var(--mp-primary);
  padding-bottom: 0.15rem;
}
.hero-link-underline:hover {
  color: var(--mp-danger);
  border-bottom-color: var(--mp-danger);
}

@media (min-width: 1024px) {
  .hero-landing .title {
    font-size: clamp(2.75rem, 4vw, 3.5rem);
  }

  .hero-landing .subtitle {
    font-size: 1.35rem;
  }
}


/* ====== Home custom ====== */
.mp-what-you-need {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(249, 250, 251, 0.9));
}

.mp-feature-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(31, 60, 136, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mp-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(15, 23, 42, 0.12);
}

.mp-feature-card .card-image {
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: hidden;
}

.mp-feature-card img {
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 0.35s ease;
}

.mp-feature-card:hover img {
  transform: scale(1.05);
}

.mp-feature-card .card-content {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mp-feature-text {
  flex-grow: 1;
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--mp-text);
}

.mp-feature-card .button {
  margin-top: auto;
}

.specialists-section {
  position: relative;
  overflow: hidden;
  /*background: linear-gradient(135deg, rgba(31, 60, 136, 0.08), rgba(255, 200, 58, 0.18));*/
}

.specialists-section::before {
  content: "";
  position: absolute;
  inset: auto -20% 0 40%;
  height: 220px;
  background: radial-gradient(circle at center, rgba(255, 200, 58, 0.25), transparent 70%);
  opacity: 0.65;
}

.specialists-section::after {
  content: "";
  position: absolute;
  top: -120px;
  right: -160px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(76, 163, 255, 0.18), transparent 65%);
}

.specialists-section .container {
  position: relative;
  z-index: 1;
}

.specialists-title {
  font-size: clamp(2.2rem, 3.5vw, 2.8rem);
}

.specialists-card {
  height: 100%;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 16px;
  padding: 2.25rem;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(31, 60, 136, 0.08);
  backdrop-filter: blur(4px);
}

.specialists-copy {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--mp-text);
}

.specialists-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.specialists-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.98rem;
  line-height: 1.6;
}

.specialists-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: var(--mp-accent);
  box-shadow: 0 0 0 3px rgba(255, 200, 58, 0.25);
}

@media (max-width: 1023px) {
  .mp-feature-card {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  }

  .specialists-card {
    padding: 1.75rem;
  }
}

/* ===== WhatsApp flotante (global) ===== */
.mp-wa-float {
  position: fixed;
  right: 1.8rem;
  bottom: 1.8rem;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #25d366;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.mp-wa-float-icon {
  width: 32px;
  height: 32px;
  transform: translate(1px, 1px);
}

.mp-wa-float:hover,
.mp-wa-float:focus-visible {
  color: #ffffff;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  filter: brightness(1.05);
}

@media screen and (max-width: 768px) {
  .mp-wa-float {
    width: 54px;
    height: 54px;
    right: 1.3rem;
    bottom: 1.3rem;
  }

  .mp-wa-float-icon {
    width: 30px;
    height: 30px;
  }
}
