/* =============================================
   Landing Page — Negocios Locales Madrid
   ============================================= */

.lm {
	--lm-navy: #0f172a;
	--lm-navy-light: #1e293b;
	--lm-blue: #2563eb;
	--lm-blue-dark: #1d4ed8;
	--lm-teal: #0d9488;
	--lm-bg: #f8fafc;
	--lm-white: #ffffff;
	--lm-text: #1e293b;
	--lm-text-light: #64748b;
	--lm-border: #e2e8f0;
	--lm-radius: 16px;
	--lm-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	--lm-shadow-hover: 0 10px 30px rgba(15, 23, 42, 0.12);

	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	color: var(--lm-text);
	background: var(--lm-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.lm * {
	box-sizing: border-box;
}

.lm h1,
.lm h2,
.lm h3,
.lm h4 {
	font-family: 'Poppins', 'Inter', sans-serif;
	color: var(--lm-navy);
	line-height: 1.2;
	margin: 0;
}

.lm a {
	text-decoration: none;
}

.lm img,
.lm svg {
	max-width: 100%;
	display: block;
}

.lm__container {
	width: 100%;
	max-width: 1140px;
	margin-inline: auto;
	padding-inline: 24px;
}

.lm__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--lm-blue);
	background: rgba(37, 99, 235, 0.08);
	padding: 6px 14px;
	border-radius: 999px;
	margin-bottom: 16px;
}

.lm__section-head {
	max-width: 680px;
	margin: 0 auto 48px;
	text-align: center;
}

.lm__section-head h2 {
	font-size: clamp(1.6rem, 3vw, 2.3rem);
	margin-bottom: 14px;
}

.lm__section-head p {
	color: var(--lm-text-light);
	font-size: 1.05rem;
}

/* -------------------- Header -------------------- */

.lm__header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: saturate(180%) blur(10px);
	border-bottom: 1px solid var(--lm-border);
}

.lm__header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-block: 14px;
	position: relative;
}

.lm__brand {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 1.15rem;
	color: var(--lm-navy);
}

.lm__brand span {
	color: var(--lm-blue);
}

.lm__nav {
	display: flex;
	align-items: center;
	gap: 32px;
}

.lm__nav > a {
	font-weight: 500;
	font-size: 0.95rem;
	color: var(--lm-text);
	transition: color 0.2s ease;
}

.lm__nav > a:hover {
	color: var(--lm-blue);
}

.lm__header-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--lm-navy);
	color: var(--lm-white) !important;
	font-weight: 600;
	font-size: 0.9rem;
	padding: 10px 20px;
	border-radius: 999px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.lm__header-cta:hover {
	background: var(--lm-blue);
	transform: translateY(-1px);
}

/* Menú móvil (sin JS, técnica checkbox) */

.lm__menu-toggle {
	display: none;
}

.lm__hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 30px;
	height: 24px;
	cursor: pointer;
}

.lm__hamburger span {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--lm-navy);
	border-radius: 2px;
}

@media (max-width: 780px) {
	.lm__hamburger {
		display: flex;
	}

	.lm__nav {
		position: absolute;
		top: calc(100% + 1px);
		left: 0;
		right: 0;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		background: var(--lm-white);
		border-bottom: 1px solid var(--lm-border);
		box-shadow: var(--lm-shadow);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.25s ease;
	}

	.lm__nav > a {
		padding: 16px 24px;
		border-top: 1px solid var(--lm-border);
	}

	.lm__nav > a.lm__header-cta {
		margin: 16px 24px;
		justify-content: center;
	}

	.lm__menu-toggle:checked ~ .lm__nav {
		max-height: 400px;
	}
}

/* -------------------- Botones -------------------- */

.lm__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	font-weight: 600;
	font-size: 1rem;
	padding: 16px 32px;
	border-radius: 999px;
	border: none;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.lm__btn--primary {
	background: linear-gradient(135deg, var(--lm-blue), var(--lm-teal));
	color: var(--lm-white) !important;
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}

.lm__btn--primary:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(37, 99, 235, 0.45);
}

.lm__btn--block {
	width: 100%;
}

/* -------------------- Hero -------------------- */

.lm__hero {
	position: relative;
	overflow: hidden;
	background: radial-gradient(circle at 15% 20%, #12203d 0%, var(--lm-navy) 55%, #0a1222 100%);
	color: var(--lm-white);
	padding-block: 96px 80px;
	text-align: center;
}

.lm__hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.35), transparent 40%),
		radial-gradient(circle at 10% 90%, rgba(13, 148, 136, 0.3), transparent 45%);
	pointer-events: none;
}

.lm__hero-inner {
	position: relative;
	max-width: 780px;
	margin-inline: auto;
}

.lm__hero .lm__eyebrow {
	background: rgba(255, 255, 255, 0.1);
	color: #93c5fd;
}

.lm__hero h1 {
	color: var(--lm-white);
	font-size: clamp(2rem, 4.5vw, 3.2rem);
	margin-bottom: 20px;
}

.lm__hero p {
	font-size: clamp(1rem, 2vw, 1.2rem);
	color: #cbd5e1;
	max-width: 620px;
	margin: 0 auto 36px;
}

.lm__hero-note {
	margin-top: 18px;
	font-size: 0.85rem;
	color: #94a3b8;
}

.lm__pills {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 40px;
}

.lm__pill {
	font-size: 0.85rem;
	font-weight: 500;
	color: #e2e8f0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.15);
	padding: 8px 16px;
	border-radius: 999px;
}

/* -------------------- Quién soy -------------------- */

.lm__about {
	padding-block: 80px;
}

.lm__about-inner {
	display: flex;
	align-items: center;
	gap: 48px;
}

.lm__about-avatar {
	flex: 0 0 auto;
	width: 140px;
	height: 140px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--lm-blue), var(--lm-teal));
	color: var(--lm-white);
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 3rem;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--lm-shadow);
}

.lm__about-content h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin: 10px 0 16px;
}

.lm__about-content p {
	color: var(--lm-text-light);
	font-size: 1.02rem;
	margin: 0 0 20px;
}

.lm__about-tags {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.lm__about-tags li {
	font-size: 0.9rem;
	font-weight: 500;
	background: var(--lm-bg);
	border: 1px solid var(--lm-border);
	padding: 8px 16px;
	border-radius: 999px;
}

@media (max-width: 640px) {
	.lm__about-inner {
		flex-direction: column;
		text-align: center;
	}

	.lm__about-tags {
		justify-content: center;
	}
}

/* -------------------- Problemas -------------------- */

.lm__problems {
	padding-block: 88px;
	background: var(--lm-bg);
}

.lm__grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lm__problem-card {
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	border-radius: var(--lm-radius);
	padding: 32px 28px;
	box-shadow: var(--lm-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lm__problem-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lm-shadow-hover);
}

.lm__icon-badge {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.4rem;
	margin-bottom: 20px;
	background: rgba(220, 38, 38, 0.08);
}

.lm__problem-card p {
	font-weight: 500;
	color: var(--lm-text);
	margin: 0;
}

/* -------------------- Pack 360 -------------------- */

.lm__pack {
	padding-block: 88px;
}

.lm__pack .lm__grid-3 {
	align-items: stretch;
}

.lm__pack-card {
	position: relative;
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	border-radius: var(--lm-radius);
	padding: 36px 30px;
	box-shadow: var(--lm-shadow);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.lm__pack-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--lm-shadow-hover);
	border-color: rgba(37, 99, 235, 0.3);
}

.lm__pack-card--highlight {
	border-color: var(--lm-blue);
}

.lm__pack-number {
	font-family: 'Poppins', sans-serif;
	font-weight: 700;
	font-size: 0.85rem;
	color: var(--lm-blue);
	background: rgba(37, 99, 235, 0.08);
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.lm__pack-card h3 {
	font-size: 1.2rem;
	margin-bottom: 12px;
}

.lm__pack-card p {
	color: var(--lm-text-light);
	font-size: 0.98rem;
	margin: 0;
}

/* -------------------- Por qué nosotros -------------------- */

.lm__why {
	padding-block: 88px;
	background: var(--lm-navy);
	color: var(--lm-white);
}

.lm__why .lm__section-head h2,
.lm__why .lm__section-head p {
	color: var(--lm-white);
}

.lm__why .lm__section-head p {
	color: #94a3b8;
}

.lm__why-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lm__why-item {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: var(--lm-radius);
	padding: 32px 28px;
}

.lm__why-item .lm__icon-badge {
	background: rgba(13, 148, 136, 0.2);
}

.lm__why-item h3 {
	color: var(--lm-white);
	font-size: 1.1rem;
	margin-bottom: 10px;
}

.lm__why-item p {
	color: #94a3b8;
	margin: 0;
	font-size: 0.95rem;
}

/* -------------------- Contacto -------------------- */

.lm__contact {
	padding-block: 96px;
	background: var(--lm-bg);
}

.lm__contact-wrap {
	max-width: 640px;
	margin-inline: auto;
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	border-radius: 20px;
	box-shadow: var(--lm-shadow);
	padding: 48px 40px;
}

.lm__contact-head {
	text-align: center;
	margin-bottom: 32px;
}

.lm__contact-head h2 {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 12px;
}

.lm__contact-head p {
	color: var(--lm-text-light);
}

.lm__form-row {
	margin-bottom: 20px;
}

.lm__form-row label {
	display: block;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--lm-navy);
	margin-bottom: 8px;
}

.lm__form-row input,
.lm__form-row select {
	width: 100%;
	font-family: inherit;
	font-size: 1rem;
	padding: 14px 16px;
	border: 1px solid var(--lm-border);
	border-radius: 10px;
	background: var(--lm-bg);
	color: var(--lm-text);
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lm__form-row input:focus,
.lm__form-row select:focus {
	outline: none;
	border-color: var(--lm-blue);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
	background: var(--lm-white);
}

.lm__form-checkbox label {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-weight: 400;
	cursor: pointer;
}

.lm__form-checkbox input[type="checkbox"] {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
	margin-top: 3px;
	accent-color: var(--lm-blue);
}

.lm__form-checkbox span {
	font-size: 0.88rem;
	color: var(--lm-text-light);
	line-height: 1.5;
}

.lm__form-checkbox a {
	color: var(--lm-blue);
	font-weight: 600;
}

.lm__form-honeypot {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.lm__form-note {
	text-align: center;
	font-size: 0.82rem;
	color: var(--lm-text-light);
	margin-top: 16px;
}

.lm__alert {
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 28px;
	font-size: 0.95rem;
	font-weight: 500;
}

.lm__alert--success {
	background: rgba(13, 148, 136, 0.1);
	color: #0f766e;
	border: 1px solid rgba(13, 148, 136, 0.3);
}

.lm__alert--error {
	background: rgba(220, 38, 38, 0.08);
	color: #b91c1c;
	border: 1px solid rgba(220, 38, 38, 0.25);
}

/* -------------------- Blog (últimos artículos) -------------------- */

.lm__blog {
	padding-block: 88px;
	background: var(--lm-bg);
}

.lm__blog-card {
	display: block;
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	border-radius: var(--lm-radius);
	padding: 28px 26px;
	box-shadow: var(--lm-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lm__blog-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--lm-shadow-hover);
}

.lm__blog-card h3 {
	font-size: 1.1rem;
	margin: 12px 0 10px;
}

.lm__blog-card p {
	color: var(--lm-text-light);
	font-size: 0.95rem;
	margin: 0;
}

.lm__blog-more {
	text-align: center;
	margin-top: 40px;
}

/* -------------------- Índice del blog -------------------- */

.lm__blog-hero {
	background: radial-gradient(circle at 15% 20%, #12203d 0%, var(--lm-navy) 55%, #0a1222 100%);
	color: var(--lm-white);
	padding-block: 72px 56px;
	text-align: center;
}

.lm__blog-hero h1 {
	color: var(--lm-white);
	font-size: clamp(1.8rem, 4vw, 2.6rem);
	margin: 16px 0;
}

.lm__blog-hero p {
	max-width: 620px;
	margin-inline: auto;
	color: #cbd5e1;
	font-size: 1.05rem;
}

.lm__blog-hero .lm__eyebrow {
	background: rgba(255, 255, 255, 0.1);
	color: #93c5fd;
}

.lm__blog-index {
	padding-block: 72px;
	background: var(--lm-bg);
}

.lm__blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lm__blog-index-card {
	display: flex;
	flex-direction: column;
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	border-radius: var(--lm-radius);
	overflow: hidden;
	box-shadow: var(--lm-shadow);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lm__blog-index-card:hover {
	transform: translateY(-6px);
	box-shadow: var(--lm-shadow-hover);
}

.lm__blog-index-cover {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.lm__blog-index-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.lm__blog-index-card:hover .lm__blog-index-cover img {
	transform: scale(1.05);
}

.lm__blog-index-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(15, 23, 42, 0.75);
	color: var(--lm-white);
	font-size: 0.75rem;
	font-weight: 600;
	padding: 6px 12px;
	border-radius: 999px;
	backdrop-filter: blur(4px);
}

.lm__blog-index-body {
	padding: 24px 26px 28px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.lm__blog-index-body h2 {
	font-size: 1.15rem;
	margin-bottom: 10px;
}

.lm__blog-index-body p {
	color: var(--lm-text-light);
	font-size: 0.95rem;
	margin: 0 0 16px;
	flex-grow: 1;
}

.lm__blog-index-readmore {
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--lm-blue);
}

.lm__blog-pagination {
	margin-top: 48px;
	display: flex;
	justify-content: center;
}

.lm__blog-pagination .nav-links {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: center;
}

.lm__blog-pagination a,
.lm__blog-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 14px;
	border-radius: 999px;
	background: var(--lm-white);
	border: 1px solid var(--lm-border);
	color: var(--lm-text);
	font-weight: 500;
	font-size: 0.9rem;
}

.lm__blog-pagination a:hover {
	border-color: var(--lm-blue);
	color: var(--lm-blue);
}

.lm__blog-pagination span.current {
	background: var(--lm-navy);
	border-color: var(--lm-navy);
	color: var(--lm-white);
}

@media (max-width: 900px) {
	.lm__blog-grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.lm__blog-grid {
		grid-template-columns: 1fr;
	}

	.lm__blog-hero,
	.lm__blog-index {
		padding-block: 56px;
	}
}

/* -------------------- Entrada individual del blog -------------------- */

.lm__post-cover {
	width: 100%;
	max-height: 420px;
	overflow: hidden;
}

.lm__post-cover img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.lm__post-head {
	max-width: 760px;
	margin: 40px auto 0;
	text-align: center;
}

.lm__post-cat {
	display: inline-flex;
	text-decoration: none;
}

.lm__post-head h1 {
	font-size: clamp(1.7rem, 3.5vw, 2.4rem);
	margin: 16px 0 12px;
}

.lm__post-meta {
	color: var(--lm-text-light);
	font-size: 0.9rem;
}

.lm__post-content {
	max-width: 720px;
	margin: 40px auto 0;
	font-size: 1.05rem;
	line-height: 1.75;
	color: var(--lm-text);
}

.lm__post-content h2 {
	font-size: 1.4rem;
	margin: 2em 0 0.6em;
}

.lm__post-content h3 {
	font-size: 1.15rem;
	margin: 1.6em 0 0.5em;
}

.lm__post-content p {
	margin: 0 0 1.2em;
}

.lm__post-content ul {
	margin: 0 0 1.2em 1.2em;
}

.lm__post-back {
	max-width: 720px;
	margin: 8px auto 64px;
}

.lm__post-back a {
	font-weight: 600;
	color: var(--lm-blue);
}

@media (max-width: 640px) {
	.lm__post-cover {
		max-height: 220px;
	}

	.lm__post-head,
	.lm__post-content,
	.lm__post-back {
		margin-top: 28px;
	}
}

/* -------------------- WhatsApp flotante -------------------- */

.lm__whatsapp {
	position: fixed;
	right: 24px;
	bottom: 24px;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: #25d366;
	color: var(--lm-white);
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
	z-index: 999;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lm__whatsapp:hover {
	transform: scale(1.08);
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3);
	color: var(--lm-white);
}

.lm__whatsapp svg {
	width: 30px;
	height: 30px;
}

.lm__whatsapp-pulse {
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: #25d366;
	opacity: 0.6;
	animation: lm-whatsapp-pulse 2.2s ease-out infinite;
	z-index: -1;
}

@keyframes lm-whatsapp-pulse {
	0% {
		transform: scale(1);
		opacity: 0.6;
	}
	100% {
		transform: scale(1.8);
		opacity: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.lm__whatsapp-pulse {
		animation: none;
		display: none;
	}
}

@media (max-width: 640px) {
	.lm__whatsapp {
		width: 52px;
		height: 52px;
		right: 16px;
		bottom: 16px;
	}

	.lm__whatsapp svg {
		width: 26px;
		height: 26px;
	}
}

/* -------------------- Footer -------------------- */

.lm__footer {
	background: var(--lm-navy);
	color: #94a3b8;
	text-align: center;
	padding-block: 28px;
	font-size: 0.85rem;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lm__footer strong {
	color: var(--lm-white);
}

/* -------------------- Responsive -------------------- */

@media (max-width: 900px) {
	.lm__grid-3,
	.lm__why-list {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.lm__hero {
		padding-block: 72px 56px;
	}

	.lm__grid-3,
	.lm__why-list {
		grid-template-columns: 1fr;
	}

	.lm__contact-wrap {
		padding: 32px 22px;
		border-radius: 16px;
	}

	.lm__header-cta span {
		display: none;
	}

	.lm__problems,
	.lm__pack,
	.lm__why,
	.lm__contact {
		padding-block: 64px;
	}

	.lm__section-head {
		margin-bottom: 32px;
	}
}
