/* Identidad de marca y valores compartidos. */
:root{
  --blue: #0d47a1;
  --blue-bright: #1976d2;
  --blue-light: #64b5f6;
  --ink: #182f49;
  --muted: #526476;
  --paper: #f5f7fa;
  --white: #fff;
  --line: #dbe3ed;
  --radius: 12px;
  --container: 1180px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

::selection{
  color: var(--white);
  background: var(--blue);
}

a{
  color: inherit;
  text-underline-offset: 5px;
}

a, button{
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible, button:focus-visible{
  outline: 3px solid var(--blue-bright);
  outline-offset: 6px;
}

img{
  display: block;
  max-width: 100%;
  height: auto;
}

button{
  font: inherit;
}

[hidden]{
  display: none !important;
}

.container{
  width: min(var(--container), calc(100% - 80px));
  margin-inline: auto;
}

h1, h2, h3, p{
  margin-top: 0;
}

h1, h2, h3{
  line-height: 1.14;
  text-wrap: balance;
}

h1{
  margin-bottom: 26px;
  font-size: clamp(2.5rem, 4.4vw, 4rem);
  font-weight: 800;
  letter-spacing: -.035em;
}

h2{
  margin-bottom: 24px;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  letter-spacing: -.03em;
}

h3{
  font-size: 1.45rem;
  letter-spacing: -.02em;
}

p{
  max-width: 65ch;
}

.skip-link{
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 20;
  padding: 12px;
  background: white;
}

.skip-link:focus{
  top: 10px;
}

.site-header{
  position: relative;
  z-index: 20;
  background: white;
  border-bottom: 1px solid var(--line);
}

.header-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 108px;
}

.brand{
  width: 168px;
  flex-shrink: 0;
}

nav{
  display: flex;
  align-items: center;
  gap: 30px;
}

nav a{
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

nav a:hover{
  color: var(--blue-bright);
}

.button{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 17px 23px;
  border-radius: 6px;
  background: var(--blue);
  color: white;
  font-size: .88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}

.button:hover{
  background: #093677;
  color: white;
}

.button-small{
  padding: 12px 18px;
  font-size: .78rem;
}

.menu-toggle{
  display: none;
}

.hero{
  padding-top: 80px;
  background: var(--paper);
}

.hero-layout{
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: 70px;
  padding-bottom: 72px;
}

h1 span{
  color: var(--blue);
}

.hero-copy > p{
  max-width: 46ch;
  font-size: 1.12rem;
  color: var(--muted);
}

.hero-copy .hero-detail{
  font-size: .94rem;
  margin-bottom: 30px;
}

.hero-actions{
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 19px;
}

.text-link{
  color: var(--blue);
  font-size: .88rem;
  font-weight: 600;
}

.text-link:hover{
  text-decoration-thickness: 2px;
}

.trust-line{
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-block: 23px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted);
}

.section{
  padding-block: 95px;
}

.section-heading{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 60px;
  margin-bottom: 38px;
}

.section-heading h2{
  margin-bottom: 0;
}

.section-heading p{
  max-width: 43ch;
  margin-bottom: 0;
  color: var(--muted);
}

.service-list{
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 65px;
}

.service{
  border-top: 1px solid var(--line);
  padding: 30px 0;
}

.service h3{
  margin-bottom: 16px;
}

.service p{
  max-width: 48ch;
  color: var(--muted);
  font-size: .94rem;
}

.service a{
  display: inline-flex;
  gap: 20px;
  font-size: .83rem;
  font-weight: 700;
  color: var(--blue);
}

.about{
  background: var(--paper);
}

.about-layout{
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 100px;
}

.about h2{
  max-width: 13ch;
}

.about p{
  color: var(--muted);
}

.about .lead{
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 500;
}

.contact{
  background: var(--blue);
  color: white;
}

.contact-layout{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 90px;
  align-items: center;
}

.contact p{
  color: #dbeeff;
  margin-bottom: 28px;
}

.button-white{
  background: white;
  color: var(--blue);
}

.button-white:hover{
  background: #dbeeff;
  color: var(--blue);
}

.contact address{
  display: grid;
  gap: 27px;
  font-style: normal;
}

.contact address a{
  text-decoration: none;
  overflow-wrap: anywhere;
}

.contact address a:hover{
  text-decoration: underline;
}

.contact address span{
  display: block;
  color: #c4e1ff;
  font-size: .75rem;
  margin-bottom: 4px;
}

.contact address p{
  color: white;
  margin: 0;
}

.contact a:focus-visible{
  outline-color: white;
}

.footer-inner{
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  color: var(--muted);
  font-size: .75rem;
}

.footer-inner p{
  margin-bottom: 0;
}

@media (max-width: 1100px){
  nav{
    gap: 18px;
  }

  .hero-layout{
    gap: 35px;
  }

  .about-layout, .contact-layout{
    gap: 50px;
  }

}

@media (max-width: 900px){
  .container{
    width: calc(100% - 40px);
  }

  .header-inner{
    flex-wrap: wrap;
    min-height: 90px;
    padding-block: 12px;
  }

  .brand{
    width: 135px;
  }

  nav{
    width: 100%;
    flex-wrap: wrap;
    padding-block: 12px;
  }

  .header-inner {
    min-height: 82px;
    padding-block: 8px;
  }

  .brand {
    width: 128px;
  }

  .has-js .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: #eaf3fd;
    color: var(--blue);
    cursor: pointer;
  }

  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: var(--blue);
    color: white;
  }

  .menu-toggle path {
    transform-origin: center;
    transition: transform .18s ease, opacity .18s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-line-top {
    transform: translateY(6px) rotate(45deg);
    transform-origin: 12px 6px;
  }

  .menu-toggle[aria-expanded="true"] .menu-line-middle {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] .menu-line-bottom {
    transform: translateY(-6px) rotate(-45deg);
    transform-origin: 12px 18px;
  }

  /* El panel flota bajo la cabecera sin desplazar el contenido. */
  .has-js #navigation {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100dvh - 82px);
    overflow-y: auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 20px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 14px 24px rgb(0 0 0 / 10%);
  }

  .has-js #navigation.is-open {
    display: flex;
  }

  .has-js #navigation > a:not(.button) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
  }

  .has-js #navigation > a:not(.button)::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 5px;
    border-top: 1.5px solid var(--blue);
    border-right: 1.5px solid var(--blue);
    transform: rotate(45deg);
  }

  .has-js #navigation .button {
    width: 100%;
    max-width: none;
    min-height: 50px;
    margin-top: 18px;
    padding: 14px 18px;
    font-size: .85rem;
  }

  .hero{
    padding-top: 48px;
  }

  .hero-layout{
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 40px;
  }

  .hero-copy{
    max-width: 650px;
  }

.trust-line{
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 30px;
  }

  .section{
    padding-block: 60px;
  }

  .section-heading{
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .about-layout, .contact-layout{
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .about h2{
    max-width: 22ch;
  }

  .contact address{
    border-top: 1px solid #5081c1;
    padding-top: 30px;
  }

}

@media (max-width: 520px){
  .service-list{
    grid-template-columns: 1fr;
  }

  h1{
    font-size: 2.5rem;
  }

  .button{
    padding: 16px 18px;
    font-size: .8rem;
    gap: 13px;
  }

.logo-surface{
    margin-inline: 15px;
  }

  .footer-inner{
    flex-wrap: wrap;
  }

  .footer-inner p{
    width: 100%;
  }

}

@media (prefers-reduced-motion: reduce){
  html{
    scroll-behavior: auto;
  }

  *, *::before, *::after{
    transition: none !important;
  }

}

/* Iconografía circular basada en la guía visual de LM. */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin-bottom: 22px;
  border: 3px solid #c4e1ff;
  border-radius: 50%;
  background: var(--blue);
}
.icon-badge img {
  width: 30px;
  height: 30px;
  filter: brightness(0) invert(1);
  background: transparent;
}
.service:nth-child(2) .icon-badge,
.service:nth-child(3) .icon-badge {
  background: var(--blue-bright);
}
.project-section {
  position: relative;
  overflow: hidden;
  background: #eaf3fd;
}
.project-layout,
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
}
.project-section p,
.faq p {
  color: var(--muted);
}
.project-audiences {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
}
.project-audiences h3 {
  margin-bottom: 14px;
}
.project-audiences p {
  margin-bottom: 0;
  font-size: .9rem;
}
.faq details {
  border-top: 1px solid var(--line);
  padding-block: 22px;
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: .95rem;
  padding-right: 10px;
}
.faq summary::marker {
  color: var(--blue);
}
.faq summary:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 6px;
}
.faq details p {
  margin: 18px 0 0;
  font-size: .9rem;
}
.instagram-section {
  padding-block: 35px;
  border-top: 1px solid var(--line);
}
.instagram-layout {
  display: flex;
  align-items: center;
  gap: 25px;
}
.instagram-layout .icon-badge {
  margin: 0;
  flex-shrink: 0;
}
.instagram-layout h2 {
  font-size: 1.4rem;
  margin-bottom: 7px;
}
.instagram-layout p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .88rem;
}
.instagram-layout > a {
  margin-left: auto;
  overflow-wrap: anywhere;
}
/* Siempre visible, con margen para las áreas seguras de los teléfonos. */
.whatsapp-float {
  position: fixed;
  right: max(24px, env(safe-area-inset-right));
  bottom: calc(24px + env(safe-area-inset-bottom));
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  box-shadow: 0 5px 20px rgb(0 0 0 / 22%);
  transition: background .2s ease;
}
.whatsapp-float svg {
  width: 34px;
  height: 34px;
}
.whatsapp-float:hover {
  background: var(--blue-bright);
}
.site-footer {
  padding-bottom: 85px;
}
@media (max-width: 1100px) {
  nav {
    gap: 16px;
  }
  nav .button-small {
    max-width: 210px;
  }
}
@media (max-width: 900px) {
  .project-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .instagram-layout {
    flex-wrap: wrap;
  }
  .instagram-layout > a {
    margin-left: 0;
    width: 100%;
  }
}
@media (max-width: 520px) {
  .project-audiences {
    grid-template-columns: 1fr;
  }
  .whatsapp-float {
    right: max(16px, env(safe-area-inset-right));
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float {
    transition: none;
  }
}
/* Portada fotográfica: azul corporativo y curvas de la identidad de LM. */
.hero {
  padding-top: 0;
  background: var(--blue);
  color: var(--white);
}
.hero-layout {
  min-height: 640px;
  grid-template-columns: 1fr 1.08fr;
  gap: 55px;
  padding-block: 66px;
}
.hero h1 {
  font-size: clamp(2.8rem, 4.7vw, 4.4rem);
}
.hero h1 span {
  color: #a9d5ff;
}
.hero-copy > p {
  color: #e1efff;
}
.hero-actions .button {
  color: var(--blue);
  background: white;
}
.hero-actions .button:hover {
  background: #dceeff;
}
.hero-actions .text-link {
  color: white;
}
.hero a:focus-visible {
  outline-color: white;
}
.hero-photo {
  position: relative;
  margin: 0;
  align-self: stretch;
  min-width: 0;
  min-height: 490px;
}
.hero-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
  border-radius: 150px 16px 150px 16px;
}
.hero-photo figcaption {
  position: absolute;
  bottom: 27px;
  left: -20px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 25px;
  border-radius: 12px;
  background: white;
  color: var(--ink);
  box-shadow: 0 10px 30px rgb(0 0 0 / 12%);
  font-size: .85rem;
}
.hero-photo figcaption img {
  filter: invert(20%) sepia(85%) saturate(1662%) hue-rotate(199deg) brightness(90%) contrast(103%);
  flex-shrink: 0;
}
.hero-photo figcaption strong {
  color: var(--blue);
}
.trust-line {
  color: #e1efff;
  border-color: #4375b9;
}
.services {
  padding-bottom: 75px;
}
.service-list {
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.service {
  padding-top: 28px;
}
.service h3 {
  font-size: 1.25rem;
}
.service p {
  font-size: .88rem;
}
.service a {
  font-size: .78rem;
  gap: 10px;
}
.about {
  background: var(--paper);
}
.about-layout {
  grid-template-columns: 1.05fr 1fr;
  gap: 75px;
  align-items: center;
}
.work-photo {
  margin: 0;
  min-width: 0;
}
.work-photo > img {
  width: 100%;
  height: 490px;
  object-fit: cover;
  object-position: center;
  border-radius: 16px 110px 16px 16px;
}
.work-photo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: .75rem;
}
.about h2 {
  max-width: none;
}
.about-copy .lead {
  font-weight: 700;
  color: var(--blue);
}
.project-section {
  background: white;
}
.project-audiences .icon-badge {
  width: 76px;
  height: 76px;
}
.faq {
  background: #eaf3fd;
}
.whatsapp-float {
  background: var(--blue);
  box-shadow: 0 5px 20px rgb(0 0 0 / 22%);
  border: 2px solid white;
}
.whatsapp-float:hover {
  background: var(--blue-bright);
}
.whatsapp-float svg {
  width: 30px;
  height: 30px;
}
@media (max-width: 1100px) {
  .hero-layout {
    gap: 35px;
  }
  .hero-photo {
    min-height: 460px;
  }
  .service-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px 45px;
  }
  .about-layout {
    gap: 40px;
  }
}
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 45px;
  }
  .hero-copy {
    max-width: 620px;
  }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .hero-photo {
    min-height: 0;
    height: 430px;
  }
  .hero-photo > img {
    border-radius: 90px 12px 90px 12px;
    object-position: center 40%;
  }
  .hero-photo figcaption {
    left: 18px;
    bottom: 18px;
  }
  .about-layout {
    grid-template-columns: 1fr;
  }
  .work-photo > img {
    height: 420px;
  }
}
@media (max-width: 520px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  .hero-photo {
    height: 340px;
  }
  .hero-photo > img {
    border-radius: 65px 10px 65px 10px;
    object-position: 62% center;
  }
  .hero-photo figcaption {
    padding: 13px;
    gap: 10px;
    font-size: .8rem;
    right: 18px;
  }
  .hero-photo figcaption img {
    width: 29px;
  }
  .service-list {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .service {
    display: grid;
    grid-template-columns: 65px 1fr;
    gap: 0 18px;
    padding-block: 25px;
  }
  .service .icon-badge {
    grid-row: span 3;
    width: 60px;
    height: 60px;
  }
  .service p,
  .service a {
    grid-column: 2;
  }
  .work-photo > img {
    height: 330px;
    border-top-right-radius: 70px;
  }
}
@media (max-width: 900px) {
  .hero-copy {
    display: contents;
  }
  .hero h1 {
    order: 0;
    margin-bottom: 0;
  }
  .hero-photo {
    order: 1;
  }
  .hero-actions {
    order: 2;
  }
  .hero-copy > p {
    order: 3;
    margin-bottom: 0;
  }
  .hero-copy .hero-detail {
    order: 4;
    margin-bottom: 0;
  }
}
@media (max-width: 520px) {
  .hero-layout {
    gap: 25px;
  }
  .hero h1 {
    font-size: clamp(2.25rem, 10vw, 2.8rem);
  }
}

/* Transiciones breves, sin efectos repetidos ni movimiento permanente. */
.button,
.whatsapp-float {
  transition: background .18s ease, transform .18s ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover,
  .whatsapp-float:hover {
    transform: translateY(-2px);
  }
}
.button:active,
.whatsapp-float:active {
  transform: scale(.98);
}
@keyframes menu-appear {
  from {
    opacity: .75;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 900px) {
  .has-js #navigation.is-open {
    animation: menu-appear .2s cubic-bezier(0.16, 1, 0.3, 1);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .button:hover,
  .button:active,
  .whatsapp-float:hover,
  .whatsapp-float:active {
    transform: none;
  }
}
