/* ==========================================================================
   INSTALACIONES MICHELLOD — v1.3 CLEAN
   --------------------------------------------------------------------------
   One stylesheet, ordered roughly like the page itself.

   Quick tuning:
   - Main colours: edit the variables in section 1.
   - Menu size/spacing: section 3.
   - Hero sizes: section 4.
   - Section titles/cards: sections 5–6.
   - Mobile behaviour: section 12.

   The old v0.x / v1.x override layers have been consolidated here.
   Class names such as "-v07" are intentionally kept so the HTML structure
   does not need to change just for housekeeping.
   ========================================================================== */


/* 1. SITE VARIABLES -------------------------------------------------------- */

:root {
  --orange: #ff6a00;
  --orange-dark: #ff6a00;


  --ink: #202124;
  --soft: #545960;
  --line: #d9dde2;
  --mist: #f4f5f6;
  --paper: #ffffff;
  --max: 1180px;
  --shadow: 0 14px 45px rgba(25, 28, 31, 0.08);

  /* Neutral system stack: no external font download required. */
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", sans-serif;
}


/* 2. GLOBAL BASICS --------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 0 !important;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}


/* 3. MENU ------------------------------------------------------------------ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.menu-wrap-v07 {
  width: 100%;
  padding: 0 18px;
}

.menu-v07 {
  min-height: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 2.7vw, 3.3rem);
  font-family: var(--font-main);
  font-weight: 400;
}

.menu-v07 > a,
.menu-home-v07,
.lang-v07 a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  white-space: nowrap;
}

.menu-v07 > a,
.menu-home-v07 {
  font-size: 1.05rem;
  line-height: 1.2;
}

.menu-home-v07 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.menu-logo-v07 {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 10px;
}

.menu-v07 a:hover {
  color: var(--orange);
}

/* Languages stay pinned to the far right on wide screens. */
.lang-v07 {
  margin-left: auto;
  display: flex;
  gap: 0.4rem;
}

.lang-v07 a {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  border: 1px solid #bfc4c9;
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
  background: var(--paper);
}

.lang-v07 a.active {
  border-color: var(--orange);
  background: #fff5ee;
}


/* 4. HERO ------------------------------------------------------------------ */

.hero {
  min-height: auto;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(255, 106, 0, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, #ffffff 0%, #f7f8f9 100%);
  background-size: 52px 52px, 52px 52px, auto;
  border-bottom: 1px solid var(--line);
}

.hero-v13 {
  padding: 48px 0 52px;
}

.hero-primary-v13,
.hero-secondary-v13 {
  margin: 0;
  font-family: var(--font-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}

.hero-primary-v13 {
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
  color: var(--orange);
}

.hero-secondary-v13 {
  margin-top: 0.35rem;
  font-size: clamp(1.5rem, 2.45vw, 2.45rem);
  color: var(--ink);
}

.hero-text-v09 {
  max-width: 980px;
  margin: 1rem 0 0;
  font-family: var(--font-main);
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--soft);
}


/* 5. COMMON SECTION STYLING ------------------------------------------------ */

.section {
  padding: 64px 0;
}

.alt {
  background: var(--mist);
}

.section-label {
  color: var(--orange-dark);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.section-head-v08 {
  margin-bottom: 1.5rem;
}

.section-head-v08 p {
  max-width: 850px;
  margin: 0.85rem 0 0;
  font-size: 1.08rem;
}

.section-title-v08 {
  margin: 0.25rem 0 0;
  font-family: var(--font-main);
  font-size: clamp(1.65rem, 2.7vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.nowrap-title {
  white-space: nowrap;
  font-size: clamp(1.5rem, 2.45vw, 2.45rem);
}


/* 6. SERVICES -------------------------------------------------------------- */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.services.services-6 {
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.card {
  position: relative;
  overflow: hidden;
  min-height: 0;
  padding: 1.15rem 1.22rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 100%;
  background: var(--orange);
}

.card h3 {
  margin: 0.6rem 0 0.5rem;
  font-size: 1.35rem;
  line-height: 1.1;
}

.card p {
  margin: 0;
  color: var(--soft);
  line-height: 1.46;
}


/* 7. SERVICE AREA + BASE --------------------------------------------------- */

.map-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.map-full-v10 {
  position: relative;
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.map-full-v10 img {
  display: block;
  width: 100%;
  height: auto;
}

.home-base-v10 {
  /* Desktop: stay comfortably inside the lower-left quarter of the map. */
  position: absolute;
  left: 4%;
  bottom: 6%;
  width: 42%;
  max-width: 360px;
  max-height: 42%;
  box-sizing: border-box;
  padding: 1.25rem 1.35rem;
  overflow: auto;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: 14px;

  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: end;


}

.home-base-right {
  text-align: right;
  white-space: nowrap;
}


.home-base-v10 h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.35rem;
}

.home-base-v10 p {
  margin: 0.25rem 0;
}

.home-base-v10 a {
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
}

.home-base-v10 a:hover {
  text-decoration: underline;
}


/* 8. ABOUT ----------------------------------------------------------------- */

.about-v08 {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 2rem;
  align-items: start;
}

.about-copy-v08 p {
  margin: 0 0 1rem;
  font-size: 1.08rem;
}

.portrait-small-v08 {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  max-height: 150px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(135deg, #eef0f2, #d8dde2);
  display: grid;
  place-items: center;
}

.portrait-small-v08 img {
  width: 88%;
}

/* 9. CONTACT --------------------------------------------------------------- */

.contact {
  background: var(--ink);
  color: #ffffff;
}

.contact .section-label {
  color: #ff914d;
}

.light-title {
  color: #ffffff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.contact-copy p {
  font-size: 1.08rem;
  color: #cfd3d7;
}

.contact-actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.contact-actions a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.05rem;
  text-decoration: none;
  border: 1px solid #464a4f;
  background: #27292d;
  border-radius: 14px;
}

.contact-actions a:hover {
  border-color: var(--orange);
}

a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.contact-actions small {
  display: block;
  color: #aeb3b8;
}


/* 10. FOOTER --------------------------------------------------------------- */

.footer {
  background: #18191c;
  color: #aeb3b8;
  border-top: 1px solid #303338;
  padding: 1.8rem 0 1.2rem;
  font-size: 0.88rem;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links-v08 {
  display: flex;
  gap: 1rem;
}


/* 11. LANGUAGE LANDING + LEGAL PAGES -------------------------------------- */

.lang-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(255, 106, 0, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(255, 106, 0, 0.06) 1px, transparent 1px),
    #f7f8f9;
  background-size: 52px 52px;
}

.lang-panel {
  width: min(760px, 100%);
  padding: clamp(2rem, 6vw, 4.2rem);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}

.lang-logo {
  width: min(210px, 55%);
  margin: 0 auto 0.5rem;
}

/* Root landing page: same visual hierarchy as the Spanish hero. */
.landing-primary-v13 {
  margin: 0;
  font-family: var(--font-main);
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--orange);
}

.landing-secondary-v13 {
  margin: 0.35rem 0 3rem;
  max-width: none;
  font-family: var(--font-main);
  font-size: clamp(1.5rem, 2.45vw, 2.45rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
  color: var(--ink);
}

/* Placeholder language pages still use their simple original heading style. */
.lang-panel > h1:not(.landing-primary-v13):not(.landing-secondary-v13) {
  font-size: clamp(2.4rem, 7vw, 5.1rem);
  margin: 0.5rem 0 1rem;
}

.lang-panel > p:not(.landing-secondary-v13) {
  color: var(--soft);
  margin: 0 auto 3rem;
  max-width: 560px;
}

.lang-panel > p.lang-legal-links {
  margin: 3rem auto 0;
  font-size: 0.95rem;
  color: var(--soft);
}

.lang-legal-links a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.lang-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.lang-buttons a {
  padding: 1rem 0.7rem;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 850;
  background: var(--paper);
}

.lang-buttons a:hover,
.lang-buttons a.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: #111111;
}

.legal-v08 {
  max-width: 820px;
}

.legal-v08 h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.65rem, 2.7vw, 2.75rem);
}

.legal-back-link {
  margin-top: 2rem;
}


/* 12. RESPONSIVE RULES ----------------------------------------------------- */

@media (max-width: 980px) {
  .nowrap-title {
    white-space: normal;
  }
}

@media (max-width: 920px) {
  .menu-v07 {
    gap: 0.65rem;
  }

  .menu-home-v07 span {
    max-width: 145px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .lang-v07 a {
    padding: 0.3rem 0.42rem;
    font-size: 0.72rem;
  }
}

@media (max-width: 900px) {
  .services.services-6 {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  /* Keep every menu item available: scroll sideways instead of hiding links. */
  .menu-wrap-v07 {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .menu-wrap-v07::-webkit-scrollbar {
    display: none;
  }

  .menu-v07 {
    min-width: max-content;
    flex-wrap: nowrap;
    gap: 0.85rem;
    padding-right: 10px;
  }

  .menu-home-v07 span {
    max-width: none;
    overflow: visible;
  }

  .lang-v07 {
    margin-left: 1rem;
  }
}

@media (max-width: 720px) {
  .about-v08 {
    grid-template-columns: 1fr 150px;
    gap: 1.2rem;
  }

  .portrait-small-v08 {
    max-height: 170px;
  }
}

@media (max-width: 700px) {
  /* On a small screen the overlay would cover too much of the map. */
  .map-full-v10 {
    overflow: visible;
  }

  .home-base-v10 {
    position: static;
    width: auto;
    max-width: none;
    max-height: none;
    margin-top: 1rem;
    overflow: visible;
  }
}

@media (max-width: 620px) {
  .wrap {
    width: min(calc(100% - 28px), var(--max));
  }

  .services.services-6,
  .lang-buttons {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 54px 0;
  }
}

@media (max-width: 560px) {
  .about-v08 {
    grid-template-columns: 1fr;
  }

  .portrait-small-v08 {
    width: 150px;
    max-height: 165px;
  }
}
