/* Mallorca House: submenu de Inmuebles y secciones adicionales con el estilo de la plantilla */
:root {
  --mh-blue: #016ded;
  --mh-blue-dark: #004aa8;
  --mh-ink: #0d0d0d;
  --mh-grey: #565656;
  --mh-soft: #f4f4f4;
  --mh-line: #e0e0e0;
  --mh-head: "Manrope", "Manrope Placeholder", system-ui, sans-serif;
  --mh-body: "Roboto", "Roboto Placeholder", system-ui, sans-serif;
}

/* Sin blog: se ocultan la seccion y los enlaces */
section[data-framer-name="Blog"], a[href="./blog"], a[href^="./blog/"] { display: none !important; }

/* Oculta el desplegable original de Framer en escritorio (se usa el nuestro) */
@media (min-width: 810px) {
  .framer-1gva1lq-container { display: none !important; }
}

/* ---------- Submenu Inmuebles ---------- */
.mh-mega {
  position: fixed; z-index: 2147483000; top: 0; left: 0;
  width: min(1040px, calc(100vw - 32px));
  display: grid; grid-template-columns: 1fr 300px; gap: 12px;
  padding: 12px; background: #fff; border: 1px solid var(--mh-line); border-radius: 20px;
  box-shadow: 0 24px 60px rgba(13, 13, 13, .14), 0 2px 8px rgba(13, 13, 13, .06);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.985); transform-origin: top center;
  transition: opacity .22s ease, transform .32s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .32s;
  font-family: var(--mh-body);
}
.mh-mega.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mh-mega__head { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; padding: 6px 8px 2px; }
.mh-mega__title { font-family: var(--mh-head); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--mh-grey); }
.mh-mega__all { font-family: var(--mh-head); font-weight: 600; font-size: 13px; color: var(--mh-blue); text-decoration: none; }
.mh-mega__all:hover { text-decoration: underline; }
.mh-mega__list { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, auto); grid-auto-flow: column; gap: 2px; }
.mh-item {
  display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px;
  text-decoration: none; color: var(--mh-ink); transition: background-color .2s ease, color .2s ease;
}
.mh-item__icon {
  flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(87, 87, 87, .05); border: 1px solid rgba(86, 86, 86, .15); color: var(--mh-blue);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.mh-item__icon svg { width: 20px; height: 20px; }
.mh-item__text { display: flex; flex-direction: column; min-width: 0; }
.mh-item__name { font-family: var(--mh-head); font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; line-height: 1.25; }
.mh-item__desc { font-size: 12.5px; color: var(--mh-grey); line-height: 1.35; margin-top: 2px; transition: color .2s ease; }
.mh-item:hover, .mh-item.is-active { background: var(--mh-blue); color: #fff; }
.mh-item:hover .mh-item__icon, .mh-item.is-active .mh-item__icon { background: rgba(255, 255, 255, .15); border-color: rgba(244, 244, 244, .15); color: #fff; }
.mh-item:hover .mh-item__desc, .mh-item.is-active .mh-item__desc { color: rgba(255, 255, 255, .8); }

.mh-mega__card { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 400px; text-decoration: none; color: #fff; background: var(--mh-blue-dark); }
.mh-mega__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); transition: opacity .45s ease, transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.mh-mega__img.is-visible { opacity: 1; transform: scale(1); }
.mh-mega__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(5, 20, 45, .82) 100%); }
.mh-mega__cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.mh-mega__cap strong { display: block; font-family: var(--mh-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.mh-mega__cap span { display: block; font-size: 13.5px; line-height: 1.45; opacity: .85; margin-top: 6px; }

/* ---------- Secciones ---------- */
.mh-section { position: relative; width: 100%; padding: 120px 24px; font-family: var(--mh-body); color: var(--mh-ink); box-sizing: border-box; }
.mh-section *, .mh-section *::before, .mh-section *::after { box-sizing: border-box; }
.mh-wrap { max-width: 1200px; margin: 0 auto; }
.mh-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--mh-line); border-radius: 100px;
  font-family: var(--mh-head); font-weight: 600; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-ink);
}
.mh-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mh-blue); }
.mh-h2 { font-family: var(--mh-head); font-weight: 600; font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 20px 0 0; color: var(--mh-ink); }
.mh-lead { font-size: 17px; line-height: 1.6; color: var(--mh-grey); margin: 18px 0 0; max-width: 560px; }
.mh-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 48px; }
.mh-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px; text-decoration: none;
  font-family: var(--mh-head); font-weight: 600; font-size: 15px; background: var(--mh-blue); color: #fff; transition: background-color .2s ease, transform .2s ease;
}
.mh-btn:hover { background: var(--mh-blue-dark); transform: translateY(-2px); }
.mh-btn--light { background: #fff; color: var(--mh-ink); }
.mh-btn--light:hover { background: var(--mh-soft); }
.mh-btn svg { width: 16px; height: 16px; }

/* Categorias destacadas (bento) */
.mh-bento { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 300px 300px; gap: 16px; }
.mh-tile { position: relative; overflow: hidden; border-radius: 20px; color: #fff; text-decoration: none; background: var(--mh-blue-dark); isolation: isolate; }
.mh-tile:first-child { grid-row: span 2; }
.mh-tile__img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform 1s cubic-bezier(.2, .8, .2, 1); z-index: -2; }
.mh-tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(5, 20, 45, .85) 100%); }
.mh-tile:hover .mh-tile__img { transform: scale(1.06); }
.mh-tile__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.mh-tile__name { font-family: var(--mh-head); font-weight: 600; font-size: 24px; letter-spacing: -.02em; line-height: 1.15; }
.mh-tile__desc { font-size: 14.5px; line-height: 1.5; opacity: .85; margin-top: 8px; max-width: 360px; }
.mh-tile__go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); backdrop-filter: blur(6px); transition: background-color .2s ease, transform .3s ease; }
.mh-tile:hover .mh-tile__go { background: var(--mh-blue); transform: rotate(-45deg); }
.mh-tile__go svg { width: 18px; height: 18px; }

/* Filosofia */
.mh-philo { background: var(--mh-soft); }
.mh-philo__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.mh-quote { margin-top: 32px; padding: 24px; border-left: 3px solid var(--mh-blue); background: #fff; border-radius: 0 16px 16px 0; font-family: var(--mh-head); font-size: 20px; line-height: 1.45; letter-spacing: -.01em; color: var(--mh-ink); }
.mh-quote small { display: block; margin-top: 10px; font-family: var(--mh-body); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--mh-grey); }
.mh-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mh-feat { background: #fff; border: 1px solid var(--mh-line); border-radius: 20px; padding: 28px; transition: transform .3s ease, box-shadow .3s ease; }
.mh-feat:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(13, 13, 13, .08); }
.mh-feat__icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--mh-blue); color: #fff; }
.mh-feat__icon svg { width: 22px; height: 22px; }
.mh-feat h3 { font-family: var(--mh-head); font-weight: 600; font-size: 20px; letter-spacing: -.02em; margin: 22px 0 0; }
.mh-feat p { font-size: 15px; line-height: 1.6; color: var(--mh-grey); margin: 10px 0 0; }

/* Contacto */
.mh-contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mh-ccard { border-radius: 24px; padding: 48px; background: var(--mh-blue-dark); color: #fff; position: relative; overflow: hidden; }
.mh-ccard::after { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(47, 122, 214, .55), rgba(47, 122, 214, 0) 70%); }
.mh-ccard .mh-eyebrow { color: #fff; border-color: rgba(255, 255, 255, .25); }
.mh-ccard .mh-eyebrow::before { background: #fff; }
.mh-ccard .mh-h2 { color: #fff; font-size: clamp(32px, 3.6vw, 48px); }
.mh-ccard .mh-lead { color: rgba(255, 255, 255, .78); }
.mh-clist { list-style: none; padding: 0; margin: 32px 0 36px; display: grid; gap: 14px; position: relative; z-index: 1; }
.mh-clist a, .mh-clist span { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; font-size: 16px; }
.mh-clist i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); font-style: normal; }
.mh-clist svg { width: 18px; height: 18px; }
.mh-ccard .mh-btn { position: relative; z-index: 1; }
.mh-map { border-radius: 24px; overflow: hidden; border: 1px solid var(--mh-line); min-height: 460px; position: relative; background: var(--mh-soft); }
.mh-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.05); }
.mh-map__tag { position: absolute; left: 20px; bottom: 20px; z-index: 1; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: 0 10px 30px rgba(13, 13, 13, .12); font-size: 14px; line-height: 1.45; }
.mh-map__tag strong { display: block; font-family: var(--mh-head); font-size: 16px; letter-spacing: -.01em; }

/* Animacion de aparicion (como la plantilla) */
.mh-reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.mh-reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1199px) {
  .mh-section { padding: 96px 24px; }
  .mh-philo__grid { grid-template-columns: 1fr; gap: 40px; }
  .mh-bento { grid-template-columns: 1fr 1fr; grid-template-rows: 340px 260px 260px; }
  .mh-tile:first-child { grid-row: auto; grid-column: span 2; }
}
@media (max-width: 809px) {
  .mh-section { padding: 72px 16px; }
  .mh-head { margin-bottom: 32px; }
  .mh-bento { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-rows: 280px; }
  .mh-tile:first-child { grid-column: auto; }
  .mh-feats, .mh-contact__grid { grid-template-columns: 1fr; }
  .mh-ccard { padding: 32px 24px; }
  .mh-map { min-height: 360px; }
  .mh-mega { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mh-reveal, .mh-mega, .mh-mega__img, .mh-tile__img { transition: none; transform: none; }
}

/* Filosofia: cabecera a dos columnas y gran cita con foto */
.mh-philo__top { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: end; margin-bottom: 48px; }
.mh-philo__top .mh-lead { margin: 0; font-size: 19px; max-width: 520px; justify-self: end; }
.mh-philo__top .mh-lead strong { color: var(--mh-blue); font-weight: 600; }
.mh-philo__card { position: relative; margin: 0; min-height: 440px; border-radius: 24px; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 56px; color: #fff; background: var(--mh-blue-dark); }
.mh-philo__img { position: absolute; inset: 0; z-index: -2; background: url(/assets/framerusercontent.com/images/18g6lTkYON6iOov2ewhAnQElCA0.jpg) center/cover;
  transform: scale(1.08); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); }
.mh-philo__card.is-in .mh-philo__img { transform: scale(1); }
.mh-philo__card::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 38, 92, .92) 0%, rgba(0, 50, 120, .7) 45%, rgba(0, 40, 100, .15) 100%); }
.mh-philo__mark { font-family: Georgia, "Times New Roman", serif; font-size: 160px; line-height: .6; height: 64px; color: #6eaaf5; opacity: .9; }
.mh-philo__card blockquote { margin: 18px 0 0; max-width: 720px; font-family: var(--mh-head); font-weight: 500;
  font-size: clamp(28px, 3.4vw, 46px); line-height: 1.15; letter-spacing: -.03em; }
.mh-philo__card figcaption { display: flex; align-items: center; gap: 14px; margin-top: 36px; padding-top: 24px; max-width: 720px;
  border-top: 1px solid rgba(255, 255, 255, .22); font-size: 14px; color: rgba(255, 255, 255, .78); }
.mh-philo__card figcaption img { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 2px; }
.mh-philo__card figcaption strong { display: block; font-family: var(--mh-head); font-size: 16px; color: #fff; margin-bottom: 2px; }
@media (max-width: 1199px) {
  .mh-philo__top { grid-template-columns: 1fr; gap: 20px; }
  .mh-philo__top .mh-lead { justify-self: start; }
}
@media (max-width: 809px) {
  .mh-philo__top { margin-bottom: 32px; }
  .mh-philo__card { padding: 32px 24px; min-height: 420px; }
  .mh-philo__card::before { background: linear-gradient(180deg, rgba(0, 40, 100, .35) 0%, rgba(0, 38, 92, .92) 70%); }
  .mh-philo__mark { font-size: 110px; height: 44px; }
}

/* Hero nitida: sin will-change para que Chrome no deje la foto rasterizada a baja calidad */
.framer-t2gseo { will-change: auto !important; }

/* Menu superior fijo: acompana al scroll */
.framer-1de6aqf-container { position: fixed !important; top: 0 !important; }
.framer-1de6aqf-container .framer-p2fpcy { transition: background-color .35s ease, box-shadow .35s ease, padding .35s ease; }
.mh-scrolled .framer-1de6aqf-container .framer-p2fpcy { background-color: rgba(0, 40, 95, .82) !important; box-shadow: 0 10px 30px rgba(0, 20, 50, .18); }

/* Scroll suave (Lenis) */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
html:not(.lenis) { scroll-behavior: smooth; }


/* Servicios: el icono se vuelve blanco al pasar el raton por la tarjeta */
#features a[aria-label="Feature Card"] svg[data-mh-icon] g { transition: stroke .3s ease; }
#features a[aria-label="Feature Card"]:hover svg[data-mh-icon] g { stroke: #fff !important; }

/* Pase de fotos de Mallorca (La Empresa) */
#aboutus .framer-2vfdnv { overflow: hidden !important; }
.mh-slider { position: absolute; inset: 0; z-index: 2; border-radius: inherit; overflow: hidden; background: var(--mh-blue-dark); }
.mh-slider__img { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transform: scale(1.12); transition: opacity 1.2s ease, transform 6s linear; }
.mh-slider__img.is-on { opacity: 1; transform: scale(1); }
.mh-slider::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 25, 60, .6) 100%); }
.mh-slider__cap { position: absolute; left: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: var(--mh-head); font-weight: 600; font-size: 15px; letter-spacing: -.01em; }
.mh-slider__cap.is-in { animation: mhCap .7s cubic-bezier(.2, .8, .2, 1); }
@keyframes mhCap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.mh-slider__dots { position: absolute; right: 14px; bottom: 18px; z-index: 1; display: flex; gap: 5px; }
.mh-slider__dots i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .5); transition: width .4s ease, background-color .4s ease; }
.mh-slider__dots i.is-on { width: 18px; background: #fff; }
@media (prefers-reduced-motion: reduce) { .mh-slider__img { transition: opacity .6s ease; transform: none; } }

/* El logo no debe verse pixelado (la plantilla forzaba image-rendering: pixelated) */
.framer-il1ncf, .framer-1oib5yw { image-rendering: auto !important; }

/* Menu superior: opciones alineadas a la derecha, junto al boton Contacta */
@media (min-width: 810px) {
  .framer-NFjj6 .framer-mz71g2 { flex: none !important; width: auto !important; margin-left: 16px; }
  .framer-NFjj6 .framer-xe8su1 { margin-left: auto; }
}
