/* latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
		:root {
			--red: #e01b22;
			--red-bright: #ff2e36;
			--red-dark: #a80f14;
			--red-deep: #6e0a0e;
			--ink: #1c1114;
			--ink-2: #3a2b2f;
			--gray: #6f6468;
			--line: #eadfe1;
			--bg: #ffffff;
			--bg-soft: #faf6f7;
			--bg-dark: #190c0e;
			--radius: 18px;
			--shadow: 0 18px 50px -18px rgba(110, 10, 14, .22);
			--font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
			--mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
		}

		* {
			margin: 0;
			padding: 0;
			box-sizing: border-box
		}

		html {
			scroll-behavior: smooth
		}

		body {
			font-family: var(--font);
			color: var(--ink);
			background: var(--bg);
			line-height: 1.6;
			overflow-x: hidden
		}

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

		a {
			text-decoration: none;
			color: inherit
		}

		ul {
			list-style: none
		}

		.container {
			width: min(1180px, 92%);
			margin-inline: auto
		}

		section {
			position: relative
		}

		/* ---------- Topbar ---------- */
		.topbar {
			background: var(--ink);
			color: #fff;
			font-size: .83rem
		}

		.topbar .container {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1rem;
			padding: .45rem 0
		}

		.topbar .left {
			display: flex;
			gap: 1.4rem;
			flex-wrap: wrap
		}

		.topbar a {
			display: flex;
			align-items: center;
			gap: .4rem;
			color: #f2e9ea;
			transition: color .2s
		}

		.topbar a:hover {
			color: var(--red-bright)
		}

		.topbar .tag {
			color: #c9b8bb;
			display: flex;
			align-items: center;
			gap: .4rem
		}

		.topbar svg {
			width: 14px;
			height: 14px;
			flex: none
		}

		@media(max-width:640px) {
			.topbar .tag {
				display: none
			}
		}

		/* ---------- Header ---------- */
		header {
			position: sticky;
			top: 0;
			z-index: 100;
			background: rgba(255, 255, 255, .92);
			backdrop-filter: blur(12px);
			border-bottom: 1px solid transparent;
			transition: box-shadow .3s, border-color .3s
		}

		header.scrolled {
			box-shadow: 0 8px 30px -12px rgba(28, 17, 20, .18);
			border-color: var(--line)
		}

		.nav {
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 1.5rem;
			padding: .8rem 0
		}

		.brand {
			display: flex;
			align-items: center;
			gap: .65rem;
			flex: none
		}

		.brand .logotype {
			display: flex;
			flex-direction: column;
			line-height: 1
		}

		.brand img {
			height: 58px;
			width: auto
		}

		nav.menu {
			display: flex;
			align-items: center;
			gap: 1.9rem;
			font-weight: 500;
			font-size: .98rem
		}

		nav.menu a {
			position: relative;
			padding: .35rem 0;
			color: var(--ink-2);
			transition: color .2s
		}

		nav.menu a::after {
			content: "";
			position: absolute;
			left: 0;
			bottom: 0;
			width: 0;
			height: 2.5px;
			border-radius: 2px;
			background: var(--red);
			transition: width .25s
		}

		nav.menu a:hover,
		nav.menu a.active {
			color: var(--red)
		}

		nav.menu a:hover::after,
		nav.menu a.active::after {
			width: 100%
		}

		.btn {
			display: inline-flex;
			align-items: center;
			justify-content: center;
			gap: .55rem;
			padding: .78rem 1.6rem;
			border-radius: 999px;
			font-weight: 600;
			font-size: .95rem;
			border: 2px solid transparent;
			cursor: pointer;
			transition: transform .2s, box-shadow .2s, background .2s, color .2s;
			font-family: var(--font)
		}

		.btn-red {
			background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
			color: #fff;
			box-shadow: 0 10px 24px -8px rgba(224, 27, 34, .55)
		}

		.btn-red:hover {
			transform: translateY(-2px);
			box-shadow: 0 16px 30px -8px rgba(224, 27, 34, .6)
		}

		.btn-ghost {
			border-color: rgba(255, 255, 255, .55);
			color: #fff
		}

		.btn-ghost:hover {
			background: rgba(255, 255, 255, .12)
		}

		.btn-outline {
			border-color: var(--red);
			color: var(--red)
		}

		.btn-outline:hover {
			background: var(--red);
			color: #fff
		}

		.hamburger {
			display: none;
			flex-direction: column;
			gap: 5px;
			background: none;
			border: 0;
			cursor: pointer;
			padding: .4rem
		}

		.hamburger span {
			width: 26px;
			height: 3px;
			border-radius: 3px;
			background: var(--red);
			transition: transform .3s, opacity .3s
		}

		@media(max-width:920px) {
			nav.menu {
				position: fixed;
				inset: 0 0 0 auto;
				width: min(320px, 80vw);
				background: #fff;
				flex-direction: column;
				align-items: flex-start;
				justify-content: flex-start;
				gap: .4rem;
				padding: 5.5rem 2rem 2rem;
				box-shadow: -20px 0 60px rgba(28, 17, 20, .18);
				transform: translateX(110%);
				transition: transform .35s;
				z-index: 99
			}

			nav.menu.open {
				transform: none
			}

			nav.menu a {
				font-size: 1.15rem;
				padding: .7rem 0;
				width: 100%
			}

			.hamburger {
				display: flex;
				z-index: 100
			}

			.hamburger.open span:nth-child(1) {
				transform: translateY(8px) rotate(45deg)
			}

			.hamburger.open span:nth-child(2) {
				opacity: 0
			}

			.hamburger.open span:nth-child(3) {
				transform: translateY(-8px) rotate(-45deg)
			}

			.nav .btn-red {
				display: none
			}
		}

		/* ---------- Hero ---------- */
		.hero {
			background: radial-gradient(1200px 600px at 85% -10%, #8c1016 0%, transparent 60%), linear-gradient(150deg, #2a0c0f 0%, #4d0b10 45%, #8c1016 80%, #b3131a 100%);
			color: #fff;
			overflow: hidden
		}

		.hero canvas {
			position: absolute;
			inset: 0;
			width: 100%;
			height: 100%;
			opacity: .5
		}

		.hero .container {
			position: relative;
			display: grid;
			grid-template-columns: 1.05fr .95fr;
			gap: 3rem;
			align-items: center;
			padding: 5.5rem 0 8.5rem
		}

		.eyebrow {
			display: inline-flex;
			align-items: center;
			gap: .6rem;
			font-family: var(--mono);
			font-size: .78rem;
			letter-spacing: .18em;
			text-transform: uppercase;
			color: #ffb9bc;
			margin-bottom: 1.2rem
		}

		.eyebrow::before {
			content: "";
			width: 34px;
			height: 2px;
			background: var(--red-bright)
		}

		.hero h1 {
			font-size: clamp(2.3rem, 4.6vw, 3.7rem);
			font-weight: 800;
			line-height: 1.08;
			letter-spacing: -.02em
		}

		.hero h1 .hl {
			background: linear-gradient(120deg, #ffd6d8, #ff8f94);
			-webkit-background-clip: text;
			background-clip: text;
			color: transparent
		}

		.hero p.lead {
			margin: 1.4rem 0 2.2rem;
			font-size: 1.13rem;
			color: #f4dfe0;
			max-width: 33rem;
			font-weight: 300
		}

		.hero .cta-row {
			display: flex;
			gap: 1rem;
			flex-wrap: wrap;
			align-items: center
		}

		.hero .chips {
			display: flex;
			gap: .6rem;
			flex-wrap: wrap;
			margin-top: 2.4rem
		}

		.chip {
			display: inline-flex;
			align-items: center;
			gap: .45rem;
			font-size: .83rem;
			font-weight: 500;
			padding: .42rem .95rem;
			border-radius: 999px;
			background: rgba(255, 255, 255, .1);
			border: 1px solid rgba(255, 255, 255, .22);
			backdrop-filter: blur(4px)
		}

		.chip svg {
			width: 14px;
			height: 14px
		}

		.hero-visual {
			position: relative;
			display: flex;
			justify-content: center
		}

		.hero-visual img {
			width: min(540px, 100%);
			height: auto;
			filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45))
		}

		.wave {
			position: absolute;
			bottom: -1px;
			left: 0;
			width: 100%;
			line-height: 0;
			pointer-events: none
		}

		.wave svg {
			width: 100%;
			height: 90px
		}

		@media(max-width:920px) {
			.hero .container {
				grid-template-columns: 1fr;
				padding: 3.5rem 0 7rem;
				text-align: center
			}

			.hero p.lead {
				margin-inline: auto
			}

			.hero .cta-row,
			.hero .chips {
				justify-content: center
			}

			.hero-visual {
				order: -1
			}

			.hero-visual img {
				width: min(420px, 92%)
			}
		}

		/* ---------- Stats ---------- */
		.stats {
			margin-top: -3.4rem;
			position: relative;
			z-index: 5
		}

		.stats .grid {
			display: grid;
			grid-template-columns: repeat(4, 1fr);
			background: #fff;
			border-radius: var(--radius);
			box-shadow: var(--shadow);
			overflow: hidden;
			border: 1px solid var(--line)
		}

		.stat {
			padding: 1.7rem 1.4rem;
			text-align: center;
			border-left: 1px solid var(--line)
		}

		.stat:first-child {
			border-left: 0
		}

		.stat b {
			display: block;
			font-size: 2rem;
			font-weight: 800;
			color: var(--red);
			letter-spacing: -.02em
		}

		.stat span {
			font-size: .88rem;
			color: var(--gray)
		}

		@media(max-width:760px) {
			.stats .grid {
				grid-template-columns: repeat(2, 1fr)
			}

			.stat:nth-child(3) {
				border-left: 0
			}

			.stat:nth-child(n+3) {
				border-top: 1px solid var(--line)
			}
		}

		/* ---------- Section scaffolding ---------- */
		.section {
			padding: 5.5rem 0
		}

		.section.soft {
			background: var(--bg-soft)
		}

		.sec-head {
			max-width: 46rem;
			margin-bottom: 3rem
		}

		.sec-head.center {
			margin-inline: auto;
			text-align: center
		}

		.kicker {
			display: inline-flex;
			align-items: center;
			gap: .55rem;
			color: var(--red);
			font-family: var(--mono);
			font-size: .78rem;
			font-weight: 600;
			letter-spacing: .16em;
			text-transform: uppercase;
			margin-bottom: .8rem
		}

		.kicker::before {
			content: "//"
		}

		h2.title {
			font-size: clamp(1.8rem, 3.3vw, 2.6rem);
			font-weight: 800;
			line-height: 1.15;
			letter-spacing: -.02em
		}

		h2.title .hl {
			color: var(--red)
		}

		.sec-head p {
			margin-top: 1rem;
			color: var(--gray);
			font-size: 1.05rem
		}

		/* ---------- Nosotros ---------- */
		.about {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 4rem;
			align-items: center
		}

		.about-visual {
			position: relative
		}

		.about-visual .frame {
			border-radius: var(--radius);
			overflow: hidden;
			box-shadow: var(--shadow)
		}

		.about-visual .badge-float {
			position: absolute;
			right: -18px;
			bottom: -24px;
			background: #fff;
			border-radius: 16px;
			box-shadow: 0 20px 44px -14px rgba(110, 10, 14, .35);
			padding: 1rem 1.2rem;
			display: flex;
			align-items: center;
			gap: .8rem;
			border: 1px solid var(--line)
		}

		.badge-float .seal {
			width: 52px;
			height: 52px;
			flex: none
		}

		.badge-float b {
			display: block;
			font-size: .92rem;
			line-height: 1.25
		}

		.badge-float span {
			font-size: .78rem;
			color: var(--gray)
		}

		.about-list {
			margin-top: 1.8rem;
			display: grid;
			gap: 1.3rem
		}

		.about-item {
			display: flex;
			gap: 1rem
		}

		.about-item .ico {
			width: 52px;
			height: 52px;
			flex: none;
			border-radius: 14px;
			background: linear-gradient(135deg, #fdecec, #fbd9da);
			display: grid;
			place-items: center;
			color: var(--red)
		}

		.about-item .ico svg {
			width: 26px;
			height: 26px
		}

		.about-item h4 {
			font-size: 1.05rem;
			font-weight: 700
		}

		.about-item p {
			color: var(--gray);
			font-size: .95rem
		}

		@media(max-width:920px) {
			.about {
				grid-template-columns: 1fr;
				gap: 3rem
			}

			.about-visual {
				max-width: 520px;
				margin-inline: auto
			}
		}

		/* ---------- Cómo funciona ---------- */
		.steps {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 1.6rem;
			counter-reset: step
		}

		.step {
			background: #fff;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			padding: 2.1rem 1.7rem;
			position: relative;
			transition: transform .25s, box-shadow .25s
		}

		.step:hover {
			transform: translateY(-6px);
			box-shadow: var(--shadow)
		}

		.step::before {
			counter-increment: step;
			content: "0" counter(step);
			position: absolute;
			top: 1.2rem;
			right: 1.4rem;
			font-family: var(--mono);
			font-weight: 600;
			font-size: 1rem;
			color: #f0c7c9
		}

		.step .ico {
			width: 60px;
			height: 60px;
			border-radius: 16px;
			background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
			display: grid;
			place-items: center;
			color: #fff;
			margin-bottom: 1.3rem;
			box-shadow: 0 12px 24px -8px rgba(224, 27, 34, .5)
		}

		.step .ico svg {
			width: 30px;
			height: 30px
		}

		.step h3 {
			font-size: 1.15rem;
			font-weight: 700;
			margin-bottom: .5rem
		}

		.step p {
			color: var(--gray);
			font-size: .95rem
		}

		@media(max-width:860px) {
			.steps {
				grid-template-columns: 1fr
			}
		}

		/* ---------- Características ---------- */
		.feat-grid {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 1.6rem
		}

		.feat {
			background: #fff;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			padding: 2rem 1.7rem;
			transition: transform .25s, box-shadow .25s, border-color .25s;
			position: relative;
			overflow: hidden
		}

		.feat::after {
			content: "";
			position: absolute;
			inset: auto 0 0 0;
			height: 4px;
			background: linear-gradient(90deg, var(--red-bright), var(--red-dark));
			transform: scaleX(0);
			transform-origin: left;
			transition: transform .3s
		}

		.feat:hover {
			transform: translateY(-6px);
			box-shadow: var(--shadow);
			border-color: #f4c7c9
		}

		.feat:hover::after {
			transform: none
		}

		.feat .ico {
			width: 56px;
			height: 56px;
			border-radius: 15px;
			background: linear-gradient(135deg, #fdecec, #fbd9da);
			color: var(--red);
			display: grid;
			place-items: center;
			margin-bottom: 1.2rem
		}

		.feat .ico svg {
			width: 28px;
			height: 28px
		}

		.feat h3 {
			font-size: 1.12rem;
			font-weight: 700;
			margin-bottom: .5rem
		}

		.feat p {
			color: var(--gray);
			font-size: .94rem
		}

		@media(max-width:960px) {
			.feat-grid {
				grid-template-columns: repeat(2, 1fr)
			}
		}

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

		/* ---------- Specs band ---------- */
		.specs {
			background: linear-gradient(150deg, #20090b 0%, #3f0c10 55%, #6e0a0e 100%);
			color: #fff;
			border-radius: calc(var(--radius) + 8px);
			padding: 3.4rem;
			display: grid;
			grid-template-columns: 1fr 1.2fr;
			gap: 3rem;
			align-items: center;
			overflow: hidden;
			position: relative
		}

		.specs::before {
			content: "";
			position: absolute;
			width: 420px;
			height: 420px;
			border-radius: 50%;
			background: radial-gradient(circle, rgba(255, 46, 54, .28), transparent 70%);
			top: -160px;
			right: -120px
		}

		.specs h3 {
			font-size: clamp(1.5rem, 2.6vw, 2.1rem);
			font-weight: 800;
			letter-spacing: -.02em;
			line-height: 1.15
		}

		.specs .sub {
			color: #e9c9cb;
			margin-top: .9rem;
			font-weight: 300
		}

		.spec-list {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: .4rem 2rem;
			position: relative
		}

		.spec-list li {
			display: flex;
			justify-content: space-between;
			gap: 1rem;
			padding: .72rem 0;
			border-bottom: 1px solid rgba(255, 255, 255, .14);
			font-size: .92rem
		}

		.spec-list li span {
			color: #d9b6b8
		}

		.spec-list li b {
			font-weight: 600;
			text-align: right
		}

		@media(max-width:920px) {
			.specs {
				grid-template-columns: 1fr;
				padding: 2.4rem
			}

			.spec-list {
				grid-template-columns: 1fr
			}
		}

		/* ---------- Blog ---------- */
		.blog-grid {
			display: grid;
			grid-template-columns: repeat(3, 1fr);
			gap: 1.6rem
		}

		.post {
			background: #fff;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			overflow: hidden;
			display: flex;
			flex-direction: column;
			transition: transform .25s, box-shadow .25s
		}

		.post:hover {
			transform: translateY(-6px);
			box-shadow: var(--shadow)
		}

		.post .thumb {
			aspect-ratio: 16/9;
			overflow: hidden
		}

		.post .thumb svg {
			width: 100%;
			height: 100%
		}

		.post .body {
			padding: 1.5rem 1.5rem 1.7rem;
			display: flex;
			flex-direction: column;
			flex: 1
		}

		.post .meta {
			display: flex;
			gap: 1rem;
			font-size: .78rem;
			color: var(--gray);
			font-family: var(--mono);
			margin-bottom: .7rem
		}

		.post .meta em {
			color: var(--red);
			font-style: normal;
			font-weight: 600
		}

		.post h3 {
			font-size: 1.1rem;
			font-weight: 700;
			line-height: 1.35;
			margin-bottom: .6rem
		}

		.post p {
			color: var(--gray);
			font-size: .92rem;
			flex: 1
		}

		.post .more {
			margin-top: 1.2rem;
			display: inline-flex;
			align-items: center;
			gap: .5rem;
			color: var(--red);
			font-weight: 600;
			font-size: .92rem
		}

		.post .more svg {
			width: 16px;
			height: 16px;
			transition: transform .2s
		}

		.post:hover .more svg {
			transform: translateX(5px)
		}

		@media(max-width:960px) {
			.blog-grid {
				grid-template-columns: 1fr;
				max-width: 520px;
				margin-inline: auto
			}
		}

		/* ---------- CTA band ---------- */
		.cta-band {
			background: linear-gradient(135deg, var(--red-bright), var(--red-deep));
			border-radius: calc(var(--radius) + 8px);
			color: #fff;
			padding: 3.2rem;
			display: flex;
			align-items: center;
			justify-content: space-between;
			gap: 2rem;
			flex-wrap: wrap;
			position: relative;
			overflow: hidden
		}

		.cta-band::before,
		.cta-band::after {
			content: "";
			position: absolute;
			border-radius: 50%;
			border: 1.5px solid rgba(255, 255, 255, .18)
		}

		.cta-band::before {
			width: 300px;
			height: 300px;
			right: -80px;
			top: -120px
		}

		.cta-band::after {
			width: 200px;
			height: 200px;
			right: 60px;
			bottom: -100px
		}

		.cta-band h3 {
			font-size: clamp(1.5rem, 2.6vw, 2.1rem);
			font-weight: 800;
			letter-spacing: -.02em
		}

		.cta-band p {
			color: #ffd9db;
			margin-top: .4rem;
			font-weight: 300
		}

		.btn-white {
			background: #fff;
			color: var(--red-dark)
		}

		.btn-white:hover {
			transform: translateY(-2px);
			box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .35)
		}

		/* ---------- Contacto ---------- */
		.contact {
			display: grid;
			grid-template-columns: 1fr 1.15fr;
			gap: 3.5rem;
			align-items: start
		}

		.contact-info .item {
			display: flex;
			gap: 1rem;
			padding: 1.15rem 0;
			border-bottom: 1px solid var(--line)
		}

		.contact-info .item:last-child {
			border-bottom: 0
		}

		.contact-info .ico {
			width: 48px;
			height: 48px;
			flex: none;
			border-radius: 13px;
			background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
			color: #fff;
			display: grid;
			place-items: center
		}

		.contact-info .ico svg {
			width: 23px;
			height: 23px
		}

		.contact-info b {
			display: block;
			font-size: .98rem
		}

		.contact-info span {
			color: var(--gray);
			font-size: .93rem
		}

		.contact-info a span:hover {
			color: var(--red)
		}

		.form-card {
			background: #fff;
			border: 1px solid var(--line);
			border-radius: var(--radius);
			box-shadow: var(--shadow);
			padding: 2.4rem
		}

		.form-grid {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 1.1rem
		}

		.form-grid .full {
			grid-column: 1/-1
		}

		.field label {
			display: block;
			font-size: .85rem;
			font-weight: 600;
			margin-bottom: .35rem;
			color: var(--ink-2)
		}

		.field input,
		.field textarea,
		.field select {
			width: 100%;
			padding: .85rem 1rem;
			border: 1.5px solid var(--line);
			border-radius: 12px;
			font-family: var(--font);
			font-size: .95rem;
			color: var(--ink);
			background: var(--bg-soft);
			transition: border-color .2s, box-shadow .2s;
			outline: none
		}

		.field textarea {
			resize: vertical;
			min-height: 120px
		}

		.field input:focus,
		.field textarea:focus,
		.field select:focus {
			border-color: var(--red);
			box-shadow: 0 0 0 4px rgba(224, 27, 34, .12);
			background: #fff
		}

		.form-note {
			font-size: .8rem;
			color: var(--gray);
			margin-top: .9rem
		}

		.form-ok {
			display: none;
			margin-top: 1rem;
			padding: .9rem 1.1rem;
			border-radius: 12px;
			background: #eefaf0;
			border: 1px solid #bfe8c8;
			color: #1c7a34;
			font-size: .92rem;
			font-weight: 500
		}

		.form-err {
			display: none;
			margin-top: 1rem;
			padding: .9rem 1.1rem;
			border-radius: 12px;
			background: #fdecec;
			border: 1px solid #f4c7c9;
			color: #a3121a;
			font-size: .92rem;
			font-weight: 500
		}

		/* campo trampa anti-spam: invisible para el visitante */
		.hp {
			position: absolute;
			left: -9999px;
			width: 1px;
			height: 1px;
			overflow: hidden
		}

		#quoteForm.sending button[type=submit] {
			opacity: .65;
			pointer-events: none
		}

		@media(max-width:920px) {
			.contact {
				grid-template-columns: 1fr
			}

			.form-grid {
				grid-template-columns: 1fr
			}
		}

		/* ---------- Footer ---------- */
		footer {
			background: var(--bg-dark);
			color: #cbbdbf;
			margin-top: 5.5rem
		}

		.foot-grid {
			display: grid;
			grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
			gap: 2.5rem;
			padding: 4rem 0 3rem
		}

		.foot-grid h4 {
			color: #fff;
			font-size: 1rem;
			font-weight: 700;
			margin-bottom: 1.1rem
		}

		.foot-grid p {
			font-size: .92rem;
			font-weight: 300
		}

		.foot-grid ul {
			display: grid;
			gap: .55rem;
			font-size: .93rem
		}

		.foot-grid ul a {
			transition: color .2s
		}

		.foot-grid ul a:hover {
			color: var(--red-bright)
		}

		.foot-brand img {
			height: 74px;
			width: auto;
			margin-bottom: 1rem
		}

		.socials {
			display: flex;
			gap: .7rem;
			margin-top: 1.3rem
		}

		.socials a {
			width: 38px;
			height: 38px;
			border-radius: 10px;
			background: rgba(255, 255, 255, .08);
			display: grid;
			place-items: center;
			color: #fff;
			transition: background .2s, transform .2s
		}

		.socials a:hover {
			background: var(--red);
			transform: translateY(-3px)
		}

		.socials svg {
			width: 17px;
			height: 17px
		}

		.foot-contact li {
			display: flex;
			gap: .7rem;
			align-items: flex-start;
			font-size: .92rem
		}

		.foot-contact svg {
			width: 16px;
			height: 16px;
			flex: none;
			margin-top: .25rem;
			color: var(--red-bright)
		}

		.copyright {
			border-top: 1px solid rgba(255, 255, 255, .1);
			padding: 1.3rem 0;
			font-size: .83rem;
			display: flex;
			justify-content: space-between;
			gap: 1rem;
			flex-wrap: wrap;
			color: #9d8d90
		}

		.copyright b {
			color: #fff;
			font-weight: 600
		}

		@media(max-width:920px) {
			.foot-grid {
				grid-template-columns: 1fr 1fr
			}
		}

		@media(max-width:600px) {
			.foot-grid {
				grid-template-columns: 1fr
			}
		}

		/* ---------- Reveal on scroll ---------- */
		html.js .reveal {
			opacity: 0;
			transform: translateY(26px);
			transition: opacity .7s ease, transform .7s ease
		}

		html.js .reveal.in {
			opacity: 1;
			transform: none
		}

		/* ---------- Back to top ---------- */
		#toTop {
			position: fixed;
			right: 1.4rem;
			bottom: 1.4rem;
			width: 46px;
			height: 46px;
			border-radius: 12px;
			border: 0;
			background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
			color: #fff;
			display: grid;
			place-items: center;
			cursor: pointer;
			opacity: 0;
			pointer-events: none;
			transition: opacity .3s, transform .3s;
			z-index: 90;
			box-shadow: 0 12px 26px -8px rgba(224, 27, 34, .55)
		}

		#toTop.show {
			opacity: 1;
			pointer-events: auto
		}

		#toTop:hover {
			transform: translateY(-3px)
		}

		#toTop svg {
			width: 20px;
			height: 20px
		}

/* ---------- Integración WordPress ---------- */
body.admin-bar header {
	top: 32px
}

@media(max-width:782px) {
	body.admin-bar header {
		top: 46px
	}
}

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto
	}

	html.js .reveal {
		opacity: 1;
		transform: none;
		transition: none
	}

	.hero canvas {
		display: none
	}

	*,
	*::before,
	*::after {
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: .01ms !important
	}
}

/* ---------- Widget WhatsApp ---------- */
.wa {
	position: fixed;
	right: 1.4rem;
	bottom: 1.4rem;
	z-index: 95;
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: .9rem
}

.wa-btn {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	border: 0;
	cursor: pointer;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, #2fd66b, #12a544);
	box-shadow: 0 14px 30px -8px rgba(18, 165, 68, .6);
	transition: transform .25s, box-shadow .25s;
	position: relative
}

.wa-btn::before {
	content: "";
	position: absolute;
	inset: -6px;
	border-radius: 50%;
	border: 2px solid rgba(37, 211, 102, .55);
	animation: wa-pulse 2.2s ease-out infinite
}

@keyframes wa-pulse {
	0% {
		transform: scale(.85);
		opacity: .9
	}

	100% {
		transform: scale(1.35);
		opacity: 0
	}
}

.wa-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 18px 34px -8px rgba(18, 165, 68, .7)
}

.wa-btn .wa-ico,
.wa-btn .wa-x {
	grid-area: 1/1;
	display: grid;
	place-items: center;
	transition: transform .3s, opacity .3s
}

.wa-btn .wa-ico svg,
.wa-btn .wa-x {
	width: 30px;
	height: 30px
}

.wa-btn .wa-x {
	opacity: 0;
	transform: rotate(-90deg) scale(.6)
}

.wa.open .wa-btn .wa-ico {
	opacity: 0;
	transform: rotate(90deg) scale(.6)
}

.wa.open .wa-btn .wa-x {
	opacity: 1;
	transform: none
}

.wa.open .wa-btn::before {
	animation: none;
	opacity: 0
}

.wa-panel {
	width: min(360px, calc(100vw - 2.8rem));
	background: #fff;
	border-radius: var(--radius);
	border: 1px solid var(--line);
	box-shadow: 0 24px 60px -18px rgba(28, 17, 20, .35);
	overflow: hidden;
	opacity: 0;
	transform: translateY(14px) scale(.97);
	transform-origin: bottom right;
	pointer-events: none;
	transition: opacity .28s, transform .28s
}

.wa.open .wa-panel {
	opacity: 1;
	transform: none;
	pointer-events: auto
}

.wa-head {
	background: linear-gradient(135deg, var(--red-bright), var(--red-dark));
	color: #fff;
	padding: 1.3rem 1.4rem;
	display: flex;
	gap: .9rem;
	align-items: flex-start
}

.wa-head>svg {
	width: 34px;
	height: 34px;
	flex: none;
	margin-top: .1rem
}

.wa-head b {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.25
}

.wa-head span {
	display: block;
	font-size: .86rem;
	color: #ffd9db;
	font-weight: 300;
	margin-top: .25rem
}

.wa-note {
	font-size: .8rem;
	color: var(--gray);
	padding: .9rem 1.4rem 0;
	font-family: var(--mono)
}

.wa-list {
	padding: .8rem 1rem 1.1rem;
	display: grid;
	gap: .6rem
}

.wa-item {
	display: flex;
	align-items: center;
	gap: .9rem;
	padding: .8rem .95rem;
	border-radius: 14px;
	background: var(--bg-soft);
	border: 1px solid var(--line);
	border-left: 3px solid #25d366;
	transition: transform .2s, box-shadow .2s, background .2s
}

.wa-item:hover {
	transform: translateX(3px);
	background: #fff;
	box-shadow: var(--shadow)
}

.wa-avatar {
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: 50%;
	display: grid;
	place-items: center;
	color: #fff;
	background: linear-gradient(135deg, #2fd66b, #12a544)
}

.wa-avatar svg {
	width: 24px;
	height: 24px
}

.wa-txt {
	flex: 1;
	display: flex;
	flex-direction: column;
	line-height: 1.25
}

.wa-txt b {
	font-weight: 700;
	font-size: .98rem;
	color: var(--ink)
}

.wa-txt span {
	font-size: .82rem;
	color: var(--gray)
}

.wa-go {
	width: 18px;
	height: 18px;
	color: var(--red);
	flex: none;
	transition: transform .2s
}

.wa-item:hover .wa-go {
	transform: translateX(4px)
}

/* El botón "subir" se recorre para no tapar el de WhatsApp */
#toTop {
	bottom: calc(1.4rem + 60px + .9rem);
	right: calc(1.4rem + 7px)
}

@media (prefers-reduced-motion: reduce) {
	.wa-btn::before {
		animation: none
	}
}

/* Logo real: tamaño en móvil */
@media(max-width:640px) {
	.brand img {
		height: 48px
	}
}

/* ---------- Calugas bajo el citófono ---------- */
.hero-visual {
	flex-direction: column;
	align-items: center;
	gap: 1.8rem
}

.hero-visual .chips {
	margin-top: 0;
	justify-content: center
}

/* ---------- Botón Portal Clientes ---------- */
.btn-portal {
	background: #fff
}

@media(max-width:920px) {
	.nav .btn-portal {
		padding: .6rem 1.1rem;
		font-size: .88rem
	}
}

/* ---------- Agrupación de botones del header ---------- */
.nav-actions {
	display: flex;
	align-items: center;
	gap: .7rem;
	flex: none
}

/* ---------- Blog: índice ---------- */
.post .thumb {
	display: block
}

.post .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.post h3 a {
	transition: color .2s
}

.post h3 a:hover {
	color: var(--red)
}

.blog-nav {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2.6rem;
	font-weight: 600
}

.blog-nav a {
	color: var(--red)
}

.blog-nav a:hover {
	text-decoration: underline
}

/* ---------- Blog: entrada individual ---------- */
.entrada-wrap {
	max-width: 820px
}

.entrada-head .title {
	margin: .4rem 0 1.1rem
}

.entrada-head .meta {
	display: flex;
	gap: 1rem;
	font-size: .85rem;
	color: var(--gray);
	font-family: var(--mono)
}

.entrada-head .meta em {
	color: var(--red);
	font-style: normal;
	font-weight: 600
}

.entrada-img {
	margin-top: 2rem
}

.entrada-img img {
	border-radius: var(--radius);
	box-shadow: var(--shadow)
}

.entrada-body {
	margin-top: 2rem;
	font-size: 1.03rem;
	line-height: 1.75;
	color: var(--ink-2)
}

.entrada-body h2 {
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.01em;
	color: var(--ink);
	margin: 2.2rem 0 .8rem
}

.entrada-body h3 {
	font-size: 1.18rem;
	font-weight: 700;
	color: var(--ink);
	margin: 1.8rem 0 .6rem
}

.entrada-body p {
	margin-bottom: 1.1rem
}

.entrada-body ul,
.entrada-body ol {
	margin: 0 0 1.2rem 1.4rem
}

.entrada-body ul {
	list-style: disc
}

.entrada-body ol {
	list-style: decimal
}

.entrada-body li {
	margin-bottom: .5rem
}

.entrada-body strong {
	color: var(--ink)
}

.entrada-body a {
	color: var(--red);
	font-weight: 600
}

.entrada-body a:hover {
	text-decoration: underline
}

.entrada-body img {
	border-radius: var(--radius)
}

.entrada-pie {
	margin-top: 2.6rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line)
}

/* ---------- Card del artículo: respiración interna ---------- */
article.entrada {
	padding: 3rem 3.4rem
}

article.entrada:hover {
	transform: none;
	box-shadow: none
}

@media(max-width:640px) {
	article.entrada {
		padding: 1.8rem 1.4rem
	}
}

/* ---------- Menú móvil: el blur del header lo convertia en contenedor del panel fijo ---------- */
@media(max-width:920px) {
	header {
		backdrop-filter: none;
		background: #fff
	}
}
