/*
 * Mudanzas y Reformas LYM — CSS estático para Cloudflare Pages
 * Diseño: industrial contemporáneo, azul profesional, responsive y sin dependencias.
 */
@font-face { font-family: "Bebas Neue"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/bebas-neue-400.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/work-sans-400.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/work-sans-500.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/work-sans-600.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/work-sans-700.ttf") format("truetype"); }
@font-face { font-family: "Work Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/work-sans-800.ttf") format("truetype"); }

:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-100: #dbeafe;
  --ink: #172033;
  --ink-soft: #48566f;
  --slate: #111827;
  --paper: #f8fafc;
  --line: #d9e2ef;
  --white: #ffffff;
  --max-width: 1200px;
  --shadow: 7px 7px 0 rgba(29, 78, 216, .16);
  --shadow-dark: 7px 7px 0 rgba(15, 23, 42, .25);
  --radius: 2px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: "Work Sans", Arial, sans-serif; line-height: 1.6; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
.container { width: min(var(--max-width), calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Navegación */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.97); border-bottom: 2px solid var(--line); backdrop-filter: blur(10px); }
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; min-height: 50px; }
.brand img { width: 68px; max-height: 50px; object-fit: contain; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 30px; list-style: none; padding: 0; margin: 0; }
.nav-links a { color: var(--ink); font-size: .96rem; font-weight: 600; text-decoration: none; transition: color .18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--blue-700); }
.nav-phone, .button { align-items: center; border: 2px solid var(--blue-700); border-radius: var(--radius); cursor: pointer; display: inline-flex; font-weight: 700; gap: 10px; justify-content: center; line-height: 1; min-height: 48px; padding: 0 21px; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, background-color .16s ease; }
.nav-phone, .button-primary { background: var(--blue-700); color: var(--white); box-shadow: 4px 4px 0 rgba(29,78,216,.23); }
.nav-phone:hover, .button-primary:hover { background: #1740ad; transform: translate(-1px, -1px); box-shadow: 6px 6px 0 rgba(29,78,216,.2); }
.button-outline { background: rgba(255,255,255,.78); color: var(--ink); border-color: #8794aa; }
.button-outline:hover { background: var(--white); border-color: var(--ink); }
.button:active, .nav-phone:active { transform: scale(.98); }
.menu-button { background: transparent; border: 0; color: var(--ink); cursor: pointer; display: none; padding: 10px; }
.menu-button svg { width: 27px; height: 27px; }

/* Tipografía y componentes */
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 8px 14px; background: var(--blue-700); color: white; font-size: .81rem; font-weight: 800; letter-spacing: .08em; line-height: 1; }
h1, h2, h3, h4 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: .02em; line-height: .98; margin: 0; }
h1 { font-size: clamp(3.6rem, 7vw, 6.8rem); }
h2 { font-size: clamp(3rem, 5vw, 5.4rem); }
h3 { font-size: clamp(2rem, 3vw, 3.2rem); }
p { margin-top: 0; }
.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-heading { max-width: 800px; margin: 0 auto 58px; text-align: center; }
.section-heading p { color: var(--ink-soft); font-size: 1.15rem; margin: 20px auto 0; max-width: 680px; }
.icon { width: 1.15em; height: 1.15em; flex: 0 0 auto; }

/* Inicio */
.hero { min-height: calc(100vh - 80px); position: relative; display: grid; align-items: center; background-image: linear-gradient(90deg, rgba(248,250,252,.98) 0%, rgba(248,250,252,.88) 43%, rgba(248,250,252,.15) 75%), url("../images/hero-mudanzas-lym.png"); background-position: center; background-size: cover; }
.hero-content { padding: 90px 0; max-width: 760px; }
.hero p { color: #202a3b; font-size: clamp(1.16rem, 2.1vw, 1.45rem); font-weight: 500; line-height: 1.55; margin: 26px 0 35px; max-width: 670px; }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; }
.stats { background: var(--slate); color: white; padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat strong { color: var(--blue-500); display: block; font-family: "Bebas Neue", Impact, sans-serif; font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 400; line-height: 1; }
.stat span { font-size: .98rem; font-weight: 600; }

.services { background: var(--paper); position: relative; overflow: hidden; }
.services::before { content: ""; position: absolute; inset: 0; background: url("../images/fondo-servicios-lym.png") center / cover; opacity: .035; pointer-events: none; }
.services .container { position: relative; }
.service-group + .service-group { margin-top: 68px; }
.group-title { align-items: center; display: flex; gap: 14px; margin-bottom: 27px; }
.group-title .group-icon { color: var(--blue-700); height: 38px; width: 38px; }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.card-grid.reforms { grid-template-columns: repeat(5, 1fr); }
.service-card { background: white; border: 2px solid var(--line); box-shadow: 0 0 0 transparent; min-height: 232px; padding: 28px; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.service-card:hover { border-color: var(--blue-700); box-shadow: var(--shadow); transform: translate(-4px, -4px); }
.service-icon { background: var(--blue-100); color: var(--blue-700); display: inline-grid; height: 48px; margin-bottom: 18px; place-items: center; width: 48px; }
.service-icon svg { height: 26px; width: 26px; }
.service-card h4 { font-size: 1.72rem; margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: .95rem; margin: 0; }

.about { background: #172033 url("../images/fondo-nosotros-lym.png") center / cover; color: white; position: relative; }
.about::before { background: rgba(17,24,39,.90); content: ""; inset: 0; position: absolute; }
.about .container { position: relative; }
.about-grid { align-items: center; display: grid; gap: 64px; grid-template-columns: 1fr 1fr; }
.about p { color: rgba(255,255,255,.88); font-size: 1.13rem; margin: 22px 0; }
.about-image { border: 4px solid var(--blue-500); box-shadow: var(--shadow-dark); width: 100%; }

.gallery-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.gallery-card { border: 2px solid var(--line); box-shadow: 3px 3px 0 rgba(29,78,216,.10); height: 320px; overflow: hidden; position: relative; }
.gallery-card img { height: 100%; object-fit: cover; transition: transform .35s ease; width: 100%; }
.gallery-card:hover img { transform: scale(1.06); }
.gallery-label { background: rgba(17,24,39,.9); bottom: 0; color: white; font-size: .92rem; font-weight: 700; left: 0; margin: 0; padding: 12px 14px; position: absolute; right: 0; }
.video-section { background: var(--slate); color: white; }
.video-section .section-heading p { color: rgba(255,255,255,.76); }
.video-grid { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.video-card { border: 2px solid rgba(255,255,255,.18); box-shadow: var(--shadow-dark); overflow: hidden; }
.video-card video { aspect-ratio: 16 / 9; background: #030712; object-fit: cover; width: 100%; }
.video-copy { background: white; color: var(--ink); padding: 18px 20px; }
.video-copy h3 { font-size: 1.65rem; }
.video-copy p { color: var(--ink-soft); font-size: .94rem; margin: 5px 0 0; }
.contact { background: var(--paper) url("../images/fondo-contacto-lym.png") center / cover; position: relative; }
.contact::before { background: rgba(248,250,252,.94); content: ""; inset: 0; position: absolute; }
.contact .container { position: relative; }
.contact-inner { margin: 0 auto; max-width: 900px; text-align: center; }
.contact-intro { color: var(--ink-soft); font-size: 1.15rem; margin: 20px auto 42px; max-width: 700px; }
.contact-grid { display: grid; gap: 24px; grid-template-columns: repeat(2, 1fr); margin-bottom: 28px; }
.contact-card { background: white; border: 2px solid var(--line); box-shadow: var(--shadow); padding: 34px; }
.contact-card .service-icon { margin-bottom: 15px; }
.contact-card h3 { font-size: 2.4rem; }
.contact-card a { color: var(--blue-700); display: inline-block; font-size: 1.45rem; font-weight: 800; margin: 10px 0; text-decoration: none; }
.contact-card p { color: var(--ink-soft); font-size: .93rem; margin: 4px 0; }
.quote-box { background: var(--blue-100); border: 2px solid var(--blue-600); padding: 38px; }
.quote-box h3 { font-size: 2.5rem; }
.quote-box p { color: var(--ink-soft); margin: 16px auto 24px; max-width: 660px; }

/* Footer */
.site-footer { background: var(--slate); border-top: 4px solid var(--blue-700); color: white; padding: 60px 0 34px; }
.footer-grid { display: grid; gap: 42px; grid-template-columns: 1.25fr 1fr 1fr; }
.footer-grid h3 { font-size: 1.85rem; margin-bottom: 14px; }
.footer-grid p, .footer-grid li { color: rgba(255,255,255,.72); font-size: .95rem; }
.footer-grid p { margin-bottom: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li + li { margin-top: 7px; }
.footer-grid a { text-decoration: none; }
.footer-grid a:hover, .footer-grid a:focus { color: white; text-decoration: underline; }
.footer-bottom { border-top: 2px solid rgba(255,255,255,.14); color: rgba(255,255,255,.56); margin-top: 42px; padding-top: 24px; text-align: center; }
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { color: #8ec1ff; }
.whatsapp-float { align-items: center; background: #25d366; border: 2px solid white; border-radius: 50%; bottom: 22px; box-shadow: 0 7px 18px rgba(0,0,0,.25); color: white; display: flex; height: 58px; justify-content: center; position: fixed; right: 22px; transition: transform .18s ease; width: 58px; z-index: 25; }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.04); }
.whatsapp-float svg { height: 29px; width: 29px; }

/* Blog */
.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 92px 0 64px; }
.page-hero .container { max-width: 860px; }
.page-hero h1 { font-size: clamp(3.4rem, 6vw, 5.8rem); }
.page-hero p { color: var(--ink-soft); font-size: 1.17rem; margin: 20px 0 0; max-width: 650px; }
.articles-grid { display: grid; gap: 26px; grid-template-columns: repeat(3, 1fr); }
.article-card { background: white; border: 2px solid var(--line); display: flex; flex-direction: column; min-height: 100%; overflow: hidden; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.article-card:hover { border-color: var(--blue-700); box-shadow: var(--shadow); transform: translate(-4px, -4px); }
.article-card img { height: 220px; object-fit: cover; width: 100%; }
.article-card-body { display: flex; flex: 1; flex-direction: column; padding: 24px; }
.article-category { color: var(--blue-700); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.article-meta { color: var(--ink-soft); font-size: .83rem; margin-top: 10px; }
.article-card h2 { font-size: 2rem; margin: 14px 0 13px; }
.article-card p { color: var(--ink-soft); font-size: .94rem; }
.article-card .text-link { color: var(--blue-700); font-weight: 800; margin-top: auto; text-decoration: none; }
.article-card .text-link:hover { text-decoration: underline; }
.blog-cta { background: var(--blue-700); color: white; text-align: center; }
.blog-cta .container { max-width: 750px; }
.blog-cta h2 { font-size: clamp(2.9rem, 5vw, 4.8rem); }
.blog-cta p { color: rgba(255,255,255,.85); font-size: 1.1rem; margin: 20px auto 28px; }
.blog-cta .button-outline { border-color: white; color: white; background: transparent; }
.blog-cta .button-outline:hover { background: white; color: var(--blue-700); }

/* Artículos */
.article-header { background: var(--paper); border-bottom: 1px solid var(--line); padding: 94px 0 60px; }
.article-header .container { max-width: 900px; }
.back-link { color: var(--blue-700); display: inline-flex; font-weight: 800; margin-bottom: 30px; text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.article-header h1 { font-size: clamp(3.1rem, 5.5vw, 5.4rem); }
.article-info { color: var(--ink-soft); display: flex; flex-wrap: wrap; font-size: .92rem; gap: 9px 22px; margin-top: 22px; }
.article-content { font-size: 1.07rem; max-width: 820px; }
.article-content h2 { font-size: clamp(2.2rem, 4vw, 3.25rem); margin: 50px 0 19px; }
.article-content h3 { font-size: clamp(1.7rem, 3vw, 2.35rem); margin: 37px 0 14px; }
.article-content p { color: #344057; margin-bottom: 20px; }
.article-content strong { color: var(--ink); }
.article-content .article-contact { background: var(--blue-100); border-left: 5px solid var(--blue-700); margin-top: 42px; padding: 22px 24px; }
.article-content .article-contact p { margin: 4px 0; }

@media (max-width: 1100px) {
  .card-grid, .card-grid.reforms { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .container { width: min(100% - 30px, var(--max-width)); }
  .nav { min-height: 70px; }
  .brand img { width: 62px; }
  .menu-button { display: block; }
  .nav-links { background: white; border-bottom: 2px solid var(--line); box-shadow: 0 12px 18px rgba(15,23,42,.1); display: none; flex-direction: column; gap: 0; left: 0; padding: 10px 15px 18px; position: absolute; right: 0; top: 70px; }
  .nav-links.is-open { display: flex; }
  .nav-links li, .nav-links a { width: 100%; }
  .nav-links a { display: block; padding: 12px 4px; }
  .nav-phone { margin-top: 8px; }
  .hero { min-height: 680px; background-image: linear-gradient(90deg, rgba(248,250,252,.98) 0%, rgba(248,250,252,.90) 67%, rgba(248,250,252,.58) 100%), url("../images/hero-mudanzas-lym.png"); }
  .hero-content { padding: 70px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .card-grid, .card-grid.reforms { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .footer-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 34px; }
  .gallery-grid, .video-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-card { height: 290px; }
  .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .section { padding: 64px 0; }
  .button-row { flex-direction: column; }
  .button { width: 100%; }
  .card-grid, .card-grid.reforms { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .contact-card, .quote-box { padding: 28px 20px; }
  .article-header { padding-top: 78px; }
  .article-content { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
