/* ==========================================================================
   Quierovenderseguros
   1. Tipografía y variables
   2. Base
   3. Piezas comunes (botones, enlaces, secciones)
   4. Cabecera
   5. Portada: cabecera con bocadillo y panel
   6. Portada: qué ofrecemos
   7. Portada: para quién
   8. Portada: cómo funciona
   9. Portada: dudas
   10. Portada: formulario
   11. Pie
   12. Páginas interiores
   13. Movimiento
   ========================================================================== */

/* 1. Tipografía y variables ------------------------------------------------ */

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 500;
	font-display: swap;
	src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 600;
	font-display: swap;
	src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

@font-face {
	font-family: "Poppins";
	font-style: normal;
	font-weight: 800;
	font-display: swap;
	src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2");
}

:root {
	--tinta: #0c2b28;
	--tinta-2: #14403b;
	--verde: #0e9f6e;
	--verde-claro: #bfe8d3;
	--amarillo: #ffd233;
	--amarillo-claro: #fff1b8;
	--menta: #e6f5ec;
	--papel: #ffffff;
	--coral: #ff6b4a;
	--gris: #4a635f;
	--linea: #d3e4da;

	--borde: 2.5px solid var(--tinta);
	--radio-s: 14px;
	--radio-m: 20px;
	--radio-l: 28px;
	--ancho: 1180px;
	--cabecera: 76px;
}

/* 2. Base ------------------------------------------------------------------ */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: calc(var(--cabecera) + 16px);
}

body {
	margin: 0;
	background: var(--papel);
	color: var(--tinta);
	font-family: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 1.0625rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
	margin: 0;
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: -0.028em;
	text-wrap: balance;
}

p {
	margin: 0;
}

img,
svg {
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

ul,
ol {
	margin: 0;
	padding: 0;
}

:focus-visible {
	outline: 3px solid var(--verde);
	outline-offset: 3px;
	border-radius: 6px;
}

.wrap {
	width: min(100% - 40px, var(--ancho));
	margin-inline: auto;
}

.wrap--narrow {
	width: min(100% - 40px, 760px);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -80px;
	z-index: 100;
	padding: 12px 18px;
	border-radius: var(--radio-s);
	background: var(--tinta);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
}

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

.icon {
	width: 1.25em;
	height: 1.25em;
	flex: 0 0 auto;
}

/* 3. Piezas comunes -------------------------------------------------------- */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 58px;
	padding: 14px 30px;
	border: var(--borde);
	border-radius: 999px;
	background: var(--amarillo);
	color: var(--tinta);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	box-shadow: 0 5px 0 var(--tinta);
	transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.btn:hover {
	transform: translateY(2px);
	box-shadow: 0 3px 0 var(--tinta);
}

.btn:active {
	transform: translateY(5px);
	box-shadow: 0 0 0 var(--tinta);
}

.btn--small {
	min-height: 46px;
	padding: 9px 20px;
	font-size: 0.95rem;
	box-shadow: 0 3px 0 var(--tinta);
}

.btn--small:hover {
	transform: translateY(1px);
	box-shadow: 0 2px 0 var(--tinta);
}

.link {
	display: inline-block;
	font-weight: 600;
	text-decoration: underline;
	text-decoration-thickness: 2.5px;
	text-decoration-color: var(--amarillo);
	text-underline-offset: 6px;
	transition: text-decoration-color 0.15s ease;
}

.link:hover {
	text-decoration-color: var(--tinta);
}

.section {
	padding-block: clamp(72px, 9vw, 128px);
}

.section__head {
	max-width: 720px;
	margin-bottom: clamp(36px, 5vw, 60px);
}

.section__head h2 {
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.035em;
}

.section__head p {
	margin-top: 18px;
	max-width: 56ch;
	font-size: 1.2rem;
	color: var(--gris);
}

.notice-admin {
	padding: 16px 18px;
	border: 2px dashed var(--coral);
	border-radius: var(--radio-s);
	background: #fff5f2;
	font-size: 0.95rem;
}

/* 4. Cabecera -------------------------------------------------------------- */

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--menta);
	transition: box-shadow 0.2s ease, background-color 0.2s ease;
}

.site-header.is-stuck {
	background: #fff;
	box-shadow: 0 2px 0 var(--linea);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: var(--cabecera);
}

.brand,
.custom-logo-link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--tinta);
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	max-height: 48px;
}

.brand__mark {
	width: 38px;
	height: 38px;
	flex: 0 0 auto;
}

.brand__name {
	font-size: 1.12rem;
	font-weight: 700;
	letter-spacing: -0.03em;
	white-space: nowrap;
}

.brand__tld {
	color: var(--verde);
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 28px;
	list-style: none;
}

.nav__list a {
	padding: 8px 0;
	font-size: 0.98rem;
	font-weight: 500;
	text-decoration: none;
	background: linear-gradient(var(--amarillo), var(--amarillo)) no-repeat 0 100% / 0 3px;
	transition: background-size 0.2s ease;
}

.nav__list a:hover,
.nav__list .current-menu-item > a {
	background-size: 100% 3px;
}

.nav-toggle {
	display: none;
	width: 46px;
	height: 46px;
	padding: 0;
	border: var(--borde);
	border-radius: 14px;
	background: #fff;
	color: var(--tinta);
	cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block;
	width: 20px;
	height: 2.5px;
	margin-inline: auto;
	border-radius: 2px;
	background: currentColor;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.nav-toggle__bars {
	position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
	content: "";
	position: absolute;
	left: 0;
}

.nav-toggle__bars::before {
	top: -7px;
}

.nav-toggle__bars::after {
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
	transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 960px) {
	.nav-toggle {
		display: block;
	}

	.nav {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 8px;
		padding: 12px 20px 24px;
		background: #fff;
		border-bottom: var(--borde);
	}

	.nav.is-open {
		display: flex;
	}

	.nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.nav__list a {
		display: block;
		padding: 14px 0;
		border-bottom: 2px solid var(--linea);
		font-size: 1.1rem;
		background: none;
	}

	.nav .btn {
		margin-top: 12px;
	}
}

@media (max-width: 400px) {
	.brand__mark {
		width: 32px;
		height: 32px;
	}

	.brand__name {
		font-size: 0.98rem;
	}
}

/* 5. Portada: cabecera con bocadillo y panel -------------------------------- */

.hero {
	background: var(--menta);
	overflow: hidden;
}

.hero__inner {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
	align-items: center;
	gap: clamp(32px, 5vw, 72px);
	padding-block: clamp(36px, 5vw, 72px) clamp(40px, 5vw, 64px);
}

.hero__title {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: clamp(18px, 2.4vw, 28px);
}

.hero__bubble {
	position: relative;
	display: inline-block;
	padding: 10px 22px 11px;
	border: var(--borde);
	border-radius: 24px 24px 24px 6px;
	background: var(--amarillo);
	font-size: clamp(1.15rem, 2.1vw, 1.6rem);
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.015em;
	box-shadow: 4px 4px 0 var(--tinta);
	transform: rotate(-2deg);
	transform-origin: left bottom;
}

.hero__dots {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	opacity: 0;
}

.hero__dots i {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--tinta);
}

.hero__answer {
	font-size: clamp(2.45rem, 5.2vw, 4.2rem);
	line-height: 1.03;
	letter-spacing: -0.04em;
}

.hero__text {
	max-width: 52ch;
	margin-top: clamp(20px, 2.4vw, 28px);
	font-size: clamp(1.08rem, 1.5vw, 1.25rem);
	color: var(--gris);
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 18px 28px;
	margin-top: clamp(26px, 3vw, 36px);
}

.hero__note {
	margin-top: 18px;
	font-size: 0.95rem;
	color: var(--gris);
}

/* Panel ilustrado: todo se mide en «em» para que encoja a la vez que el hueco disponible */

.hero__visual {
	position: relative;
	width: 100%;
	max-width: 540px;
	aspect-ratio: 1 / 0.94;
	justify-self: end;
	container-type: inline-size;
	line-height: 1.3;
}

.hero__sun {
	position: absolute;
	right: 0;
	top: 3%;
	width: 80%;
	aspect-ratio: 1;
	border-radius: 50%;
	background: var(--amarillo);
}

.mock {
	position: absolute;
	border: var(--borde);
	border-radius: 1.3em;
	background: #fff;
	box-shadow: 0.42em 0.42em 0 var(--tinta);
	font-size: 13px;
	font-size: clamp(11px, 2.6cqw, 14px);
}

.mock b,
.mock strong {
	display: block;
	font-weight: 600;
}

.mock small {
	display: block;
	font-size: 0.86em;
	color: var(--gris);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mock__txt {
	min-width: 0;
}

.mock--panel {
	left: 9%;
	top: 13%;
	width: 71%;
	padding: 1.15em 1.3em 0.55em;
}

.mock__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.85em;
	padding-bottom: 0.85em;
}

.mock__head strong {
	font-size: 1.15em;
	font-weight: 700;
	letter-spacing: -0.02em;
}

.mock__search {
	width: 38%;
	height: 1.85em;
	border-radius: 999px;
	background: var(--menta);
}

.mock__list {
	list-style: none;
}

.mock__list li {
	display: grid;
	grid-template-columns: 2.7em minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.85em;
	padding: 0.72em 0;
	border-top: 2px solid var(--menta);
}

.mock__ico {
	display: grid;
	place-items: center;
	width: 2.7em;
	height: 2.7em;
	border-radius: 0.8em;
	background: var(--menta);
}

.mock__ico--b {
	background: var(--amarillo-claro);
}

.mock__ico--c {
	background: #ffe2da;
}

.mock__ico .icon {
	width: 1.45em;
	height: 1.45em;
}

.mock__tag {
	padding: 0.3em 0.8em;
	border-radius: 999px;
	font-size: 0.82em;
	font-weight: 600;
	white-space: nowrap;
}

.mock__tag--ok {
	background: #d3f1e2;
	color: #0a5a40;
}

.mock__tag--warn {
	background: var(--amarillo-claro);
	color: #5e4700;
}

.mock__tag--new {
	background: var(--tinta);
	color: #fff;
}

.mock--pay {
	right: 0;
	top: 2%;
	display: flex;
	align-items: center;
	gap: 0.85em;
	padding: 0.85em 1.3em 0.85em 0.85em;
	background: var(--tinta);
	color: #fff;
	box-shadow: 0.42em 0.42em 0 var(--verde);
}

.mock--pay small {
	color: var(--verde-claro);
}

.mock__check {
	display: grid;
	place-items: center;
	width: 2.7em;
	height: 2.7em;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--amarillo);
	color: var(--tinta);
}

.mock__check .icon {
	width: 1.55em;
	height: 1.55em;
	stroke-width: 3;
}

.mock--chat {
	left: 0;
	bottom: 9%;
	display: flex;
	align-items: center;
	gap: 0.85em;
	padding: 0.8em 1.3em 0.8em 0.8em;
	border-radius: 1.3em 1.3em 1.3em 0.4em;
}

.mock__avatar {
	width: 3.1em;
	height: 3.1em;
	flex: 0 0 auto;
	border-radius: 50%;
	overflow: hidden;
	border: 2px solid var(--tinta);
}

.mock__avatar svg {
	display: block;
	width: 100%;
	height: 100%;
}

.mock--compare {
	right: 0;
	bottom: 2%;
	width: 31%;
	padding: 0.85em 1em 1em;
}

.mock--compare small {
	margin-bottom: 0.7em;
	font-weight: 600;
	color: var(--tinta);
}

.mock__bars {
	display: grid;
	gap: 0.45em;
}

.mock__bars i {
	display: block;
	height: 0.65em;
	border-radius: 999px;
	background: var(--verde);
	transform-origin: left center;
}

.mock__bars i:nth-child(1) {
	width: 55%;
	background: var(--amarillo);
	box-shadow: inset 0 0 0 2px var(--tinta);
}

.mock__bars i:nth-child(2) {
	width: 78%;
}

.mock__bars i:nth-child(3) {
	width: 100%;
	background: var(--verde-claro);
}

/* Tres casos bajo la cabecera */

.hero__cases {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	padding-block: 22px 30px;
	border-top: 2px solid rgba(12, 43, 40, 0.12);
}

.hero__cases-label {
	font-weight: 600;
}

.hero__cases ul {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	list-style: none;
}

.hero__cases a {
	display: block;
	padding: 8px 18px;
	border: 2px solid var(--tinta);
	border-radius: 999px;
	background: #fff;
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.hero__cases a:hover {
	background: var(--amarillo);
}

@media (max-width: 900px) {
	.hero__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.hero__visual {
		justify-self: center;
		max-width: 480px;
	}
}

@media (max-width: 480px) {
	.hero__visual {
		aspect-ratio: 1 / 1.06;
	}

	.hero__sun {
		width: 92%;
	}

	.mock--panel {
		left: 3%;
		top: 16%;
		width: 86%;
	}

	.mock--chat {
		bottom: 1%;
	}

	.mock--compare {
		display: none;
	}
}

/* 6. Portada: qué ofrecemos ------------------------------------------------ */

.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 20px;
}

.tile {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 32px;
	min-height: 380px;
	padding: clamp(24px, 3vw, 36px);
	border-radius: var(--radio-l);
	overflow: hidden;
}

.tile__copy {
	max-width: 46ch;
}

.tile h3 {
	font-size: clamp(1.35rem, 2vw, 1.65rem);
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -0.025em;
}

.tile p {
	margin-top: 12px;
	color: var(--gris);
}

.tile--companias {
	grid-column: span 7;
	background: var(--tinta);
	color: #fff;
}

.tile--tarificador {
	grid-column: span 5;
	background: var(--menta);
}

.tile--erp {
	grid-column: span 5;
	border: 2px solid var(--linea);
}

.tile--gestion {
	grid-column: span 7;
	background: var(--amarillo);
}

.tile--comisiones {
	grid-column: span 7;
	background: var(--menta);
}

.tile--asesor {
	grid-column: span 5;
	background: var(--tinta-2);
	color: #fff;
}

.tile--companias .tile__copy p,
.tile--asesor .tile__copy p {
	color: #bcd6cb;
}

.tile--gestion .tile__copy p {
	color: #4a3d08;
}

.tile--gestion,
.tile--comisiones {
	flex-direction: row;
	align-items: center;
}

.tile--gestion > *,
.tile--comisiones > * {
	flex: 1 1 0;
	min-width: 0;
}

.tile--gestion .tile__copy {
	flex-grow: 1.3;
}

/* Compañías en movimiento */

.chips {
	display: grid;
	gap: 12px;
	margin-inline: calc(clamp(24px, 3vw, 36px) * -1);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.chips__track {
	display: flex;
	width: max-content;
}

.chips__track ul {
	display: flex;
	gap: 12px;
	padding-right: 12px;
	list-style: none;
}

.chips__track li {
	padding: 10px 20px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-radius: 999px;
	font-weight: 500;
	white-space: nowrap;
}

.chips__row--reverse li:nth-child(3n + 1),
.chips__row:not(.chips__row--reverse) li:nth-child(4n + 2) {
	border-color: var(--amarillo);
	background: var(--amarillo);
	color: var(--tinta);
}

/* Comparador */

.compare {
	display: grid;
	gap: 10px;
}

.compare__row {
	display: grid;
	grid-template-columns: 26px minmax(0, 1fr) auto;
	align-items: center;
	gap: 6px 12px;
	padding: 12px 16px;
	border: 2px solid transparent;
	border-radius: var(--radio-s);
	background: #fff;
}

.compare__row--best {
	border: var(--borde);
	box-shadow: 4px 4px 0 var(--tinta);
}

.compare__dot {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: var(--verde);
}

.compare__dot--b {
	background: var(--coral);
	border-radius: 50%;
}

.compare__dot--c {
	background: var(--tinta-2);
	border-radius: 50% 50% 8px 50%;
}

.compare__bar {
	display: block;
	height: 10px;
	border-radius: 999px;
	background: var(--menta);
}

.compare__bar i {
	display: block;
	width: var(--w, 60%);
	height: 100%;
	border-radius: inherit;
	background: var(--tinta);
	transform-origin: left center;
}

.compare__row b {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.compare__row em {
	grid-column: 2 / -1;
	justify-self: start;
	padding: 2px 10px;
	border-radius: 999px;
	background: var(--amarillo);
	font-size: 0.78rem;
	font-style: normal;
	font-weight: 600;
}

/* Ficha de cliente */

.ficha {
	padding: 18px;
	border-radius: var(--radio-m);
	background: var(--menta);
	font-size: 0.92rem;
	line-height: 1.35;
}

.ficha b {
	display: block;
	font-weight: 600;
}

.ficha small {
	font-size: 0.82rem;
	color: var(--gris);
}

.ficha__head {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ficha__avatar {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--tinta);
	color: var(--amarillo);
	font-size: 0.9rem;
	font-weight: 700;
}

.ficha__polizas {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-block: 16px 6px;
}

.ficha__polizas span {
	padding: 5px 14px;
	border: 2px solid var(--tinta);
	border-radius: 999px;
	background: #fff;
	font-weight: 500;
}

.ficha__line {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding-top: 10px;
	margin-top: 10px;
	border-top: 2px dashed rgba(12, 43, 40, 0.18);
}

/* Lista de gestiones */

.tareas {
	display: grid;
	gap: 12px;
	list-style: none;
}

.tareas li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 18px 13px 13px;
	border: var(--borde);
	border-radius: 999px;
	background: #fff;
	font-weight: 500;
	line-height: 1.25;
}

.tareas span {
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--tinta);
	color: var(--amarillo);
}

.tareas .icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

/* Calendario de comisiones */

.calendario {
	display: grid;
	gap: 16px;
	padding: 20px;
	border: var(--borde);
	border-radius: var(--radio-m);
	background: #fff;
}

.calendario__grid {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 7px;
}

.calendario__grid span {
	display: grid;
	place-items: center;
	aspect-ratio: 1;
	border-radius: 9px;
	background: var(--menta);
}

.calendario__grid .is-pago {
	background: var(--amarillo);
	box-shadow: 0 0 0 2.5px var(--tinta);
}

.calendario__grid .icon {
	width: 62%;
	height: 62%;
	stroke-width: 3;
}

.calendario__nota {
	margin: 0;
	line-height: 1.3;
}

.tile .calendario__nota {
	margin-top: 0;
	color: var(--tinta);
}

.calendario__nota b {
	display: block;
	font-weight: 600;
}

.calendario__nota small {
	font-size: 0.85rem;
	color: var(--gris);
}

/* Conversación con el asesor */

.chat {
	display: grid;
	gap: 12px;
}

.tile .chat__msg {
	margin: 0;
	max-width: 88%;
	padding: 12px 18px;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.35;
}

.tile .chat__msg--yo {
	justify-self: end;
	border-radius: 20px 20px 6px 20px;
	background: rgba(255, 255, 255, 0.14);
	color: #fff;
}

.tile .chat__msg--asesor {
	justify-self: start;
	border-radius: 20px 20px 20px 6px;
	background: var(--amarillo);
	color: var(--tinta);
}

@media (max-width: 960px) {
	.tile--companias,
	.tile--tarificador,
	.tile--erp,
	.tile--gestion,
	.tile--comisiones,
	.tile--asesor {
		grid-column: span 6;
	}

	.tile--companias,
	.tile--gestion {
		grid-column: span 12;
	}

	.tile--comisiones {
		flex-direction: column;
		align-items: stretch;
	}

	.tile--comisiones > * {
		flex: 0 0 auto;
	}
}

@media (max-width: 680px) {
	.tile--companias,
	.tile--tarificador,
	.tile--erp,
	.tile--gestion,
	.tile--comisiones,
	.tile--asesor {
		grid-column: span 12;
		min-height: 0;
	}

	.tile--gestion {
		flex-direction: column;
		align-items: stretch;
	}

	.tile--gestion > * {
		flex: 0 0 auto;
	}
}

/* 7. Portada: para quién ---------------------------------------------------- */

.perfiles {
	padding-top: 0;
}

.perfiles__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 40px);
}

.perfil__img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border: var(--borde);
	border-radius: var(--radio-l);
	background: var(--menta);
}

.perfil h3 {
	margin-top: 24px;
	font-size: clamp(1.3rem, 1.9vw, 1.55rem);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.025em;
}

.perfil p {
	margin-top: 12px;
	color: var(--gris);
}

.perfil .link {
	margin-top: 18px;
}

@media (max-width: 860px) {
	.perfiles__grid {
		grid-template-columns: minmax(0, 1fr);
		max-width: 520px;
	}
}

/* 8. Portada: cómo funciona -------------------------------------------------- */

.pasos {
	background: var(--tinta);
	color: #fff;
}

.ruta {
	--hueco: clamp(24px, 3vw, 40px);
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: var(--hueco);
	list-style: none;
}

.ruta::before {
	content: "";
	position: absolute;
	left: 28px;
	right: calc(25% - var(--hueco) * 0.75 - 29px);
	top: 27px;
	border-top: 3px dashed rgba(255, 255, 255, 0.4);
}

.ruta__num {
	position: relative;
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border-radius: 50%;
	background: var(--amarillo);
	color: var(--tinta);
	font-size: 1.35rem;
	font-weight: 700;
	box-shadow: 0 0 0 8px var(--tinta);
}

.ruta__paso h3 {
	margin-top: 24px;
	font-size: 1.35rem;
	font-weight: 600;
	letter-spacing: -0.02em;
}

.ruta__paso p {
	margin-top: 10px;
	color: #bcd6cb;
}

@media (max-width: 860px) {
	.ruta {
		grid-template-columns: minmax(0, 1fr);
		gap: 36px;
	}

	.ruta::before {
		left: 27px;
		right: auto;
		top: 10px;
		bottom: 40px;
		border-top: 0;
		border-left: 3px dashed rgba(255, 255, 255, 0.4);
	}

	.ruta__paso {
		display: grid;
		grid-template-columns: 58px minmax(0, 1fr);
		column-gap: 22px;
	}

	.ruta__num {
		grid-row: span 2;
	}

	.ruta__paso h3 {
		margin-top: 4px;
	}
}

/* 9. Portada: dudas ---------------------------------------------------------- */

.dudas__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: start;
}

.dudas .section__head {
	margin-bottom: 0;
}

.duda {
	border-bottom: 2px solid var(--linea);
}

.duda:first-child {
	border-top: 2px solid var(--linea);
}

.duda summary {
	position: relative;
	padding: 24px 52px 24px 0;
	font-size: 1.18rem;
	font-weight: 600;
	line-height: 1.3;
	letter-spacing: -0.015em;
	list-style: none;
	cursor: pointer;
}

.duda summary::-webkit-details-marker {
	display: none;
}

.duda summary::before,
.duda summary::after {
	content: "";
	position: absolute;
	right: 8px;
	top: 50%;
	width: 18px;
	height: 3px;
	margin-top: -1.5px;
	border-radius: 2px;
	background: var(--tinta);
	transition: transform 0.2s ease;
}

.duda summary::after {
	transform: rotate(90deg);
}

.duda[open] summary::after {
	transform: rotate(0deg);
}

.duda p {
	max-width: 60ch;
	padding: 0 52px 26px 0;
	color: var(--gris);
}

@media (max-width: 860px) {
	.dudas__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.duda p {
		padding-right: 0;
	}
}

/* 10. Portada: formulario ---------------------------------------------------- */

.contacto {
	background: var(--menta);
}

.contacto__inner {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: clamp(32px, 5vw, 72px);
	align-items: start;
}

.contacto__copy h2 {
	font-size: clamp(2rem, 4.2vw, 3.25rem);
	line-height: 1.06;
	letter-spacing: -0.035em;
}

.contacto__text {
	margin-top: 18px;
	max-width: 40ch;
	font-size: 1.2rem;
	color: var(--gris);
}

.contacto__puntos {
	display: grid;
	gap: 14px;
	margin-top: 30px;
	list-style: none;
}

.contacto__puntos li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-weight: 500;
	line-height: 1.3;
}

.contacto__puntos span {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	flex: 0 0 auto;
	border-radius: 50%;
	background: var(--tinta);
	color: var(--amarillo);
}

.contacto__puntos .icon {
	width: 18px;
	height: 18px;
	stroke-width: 3;
}

.contacto__img {
	display: block;
	width: min(100%, 340px);
	margin-top: 36px;
}

.form-card,
.entry .qvsf {
	padding: clamp(22px, 3.4vw, 40px);
	border: var(--borde);
	border-radius: var(--radio-l);
	background: #fff;
	box-shadow: 10px 10px 0 var(--tinta);
}

.qvsf {
	--qvsf-ink: var(--tinta);
	--qvsf-muted: var(--gris);
	--qvsf-line: var(--linea);
	--qvsf-soft: var(--menta);
	--qvsf-accent: var(--amarillo);
	--qvsf-focus: var(--verde);
}

.qvsf .qvsf__submit {
	border: var(--borde);
}

@media (max-width: 860px) {
	.contacto__inner {
		grid-template-columns: minmax(0, 1fr);
	}

	.contacto__img {
		display: none;
	}

	.form-card,
	.entry .qvsf {
		box-shadow: 6px 6px 0 var(--tinta);
	}
}

/* 11. Pie -------------------------------------------------------------------- */

.site-footer {
	padding-block: 64px 28px;
	background: var(--tinta);
	color: #bcd6cb;
	font-size: 0.98rem;
}

.site-footer__inner {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 40px 64px;
}

.site-footer__brand {
	max-width: 46ch;
}

.site-footer .brand,
.site-footer .custom-logo-link {
	color: #fff;
}

.site-footer .brand__tld {
	color: var(--amarillo);
}

.site-footer__brand p {
	margin-top: 18px;
}

.site-footer__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 64px;
}

.site-footer__nav ul {
	display: grid;
	gap: 12px;
	align-content: start;
	list-style: none;
}

.site-footer__nav a {
	color: #fff;
	font-weight: 500;
	text-decoration: none;
}

.site-footer__nav a:hover {
	text-decoration: underline;
	text-decoration-color: var(--amarillo);
	text-decoration-thickness: 2px;
	text-underline-offset: 5px;
}

.site-footer__legal {
	margin-top: 48px;
	padding-top: 22px;
	border-top: 2px solid rgba(255, 255, 255, 0.14);
	font-size: 0.9rem;
}

/* 12. Páginas interiores ------------------------------------------------------ */

.pagina__head {
	padding-block: clamp(40px, 6vw, 72px) clamp(36px, 5vw, 56px);
	background: var(--menta);
}

.pagina__head h1 {
	font-size: clamp(2.1rem, 4.6vw, 3.4rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
}

.entry {
	padding-block: clamp(36px, 5vw, 56px) clamp(72px, 9vw, 120px);
}

.entry > * + * {
	margin-top: 1.2em;
}

.entry h2 {
	margin-top: 1.8em;
	font-size: 1.75rem;
}

.entry h3 {
	margin-top: 1.6em;
	font-size: 1.35rem;
	font-weight: 600;
}

.entry ul,
.entry ol {
	padding-left: 1.3em;
}

.entry li + li {
	margin-top: 0.4em;
}

.entry a:not(.btn) {
	font-weight: 500;
	text-decoration: underline;
	text-decoration-color: var(--verde);
	text-decoration-thickness: 2px;
	text-underline-offset: 4px;
}

.entry img {
	border-radius: var(--radio-m);
}

.entry .qvsf {
	margin-top: 36px;
}

.has-qvs-form .entry > p:first-child {
	font-size: 1.2rem;
	color: var(--gris);
}

.resumen + .resumen {
	margin-top: 40px;
	padding-top: 40px;
	border-top: 2px solid var(--linea);
}

.resumen h2 {
	margin-top: 0;
}

.resumen h2 a {
	text-decoration: none;
}

.alignwide {
	width: min(100vw - 40px, var(--ancho));
	max-width: none;
	margin-inline: calc((min(100vw - 40px, var(--ancho)) - 100%) / -2);
}

.alignfull {
	width: 100vw;
	max-width: none;
	margin-inline: calc((100vw - 100%) / -2);
}

/* 13. Movimiento ---------------------------------------------------------------
   Una sola secuencia al cargar (bocadillo, respuesta y panel) y pequeños gestos
   dentro de cada ventaja cuando entra en pantalla. Con «reducir movimiento»
   activado en el dispositivo, todo aparece quieto y completo. */

@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}

	.hero__bubble {
		animation: qvs-pop 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
	}

	.hero__bubble-text {
		animation: qvs-show 0.01s 0.75s both;
	}

	.hero__dots {
		animation: qvs-hide 0.01s 0.75s both;
	}

	.hero__dots i {
		animation: qvs-dot 0.6s ease-in-out infinite alternate;
	}

	.hero__dots i:nth-child(2) {
		animation-delay: 0.15s;
	}

	.hero__dots i:nth-child(3) {
		animation-delay: 0.3s;
	}

	.hero__answer {
		animation: qvs-rise 0.6s 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.hero__text,
	.hero__actions,
	.hero__note {
		animation: qvs-rise 0.6s 1.05s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.hero__sun {
		animation: qvs-grow 0.8s 0.1s cubic-bezier(0.2, 0.9, 0.3, 1) both;
	}

	.mock--panel {
		animation: qvs-rise 0.7s 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
	}

	.mock--pay {
		animation: qvs-pop 0.45s 1s cubic-bezier(0.2, 1.3, 0.4, 1) both, qvs-float 5s 1.5s ease-in-out infinite alternate;
	}

	.mock--chat {
		animation: qvs-pop 0.45s 1.3s cubic-bezier(0.2, 1.3, 0.4, 1) both, qvs-float 6s 1.8s ease-in-out infinite alternate-reverse;
	}

	.mock--compare {
		animation: qvs-pop 0.45s 1.6s cubic-bezier(0.2, 1.3, 0.4, 1) both;
	}

	.mock__bars i {
		animation: qvs-bar 2.8s 2s ease-in-out infinite alternate;
	}

	.mock__bars i:nth-child(2) {
		animation-delay: 2.3s;
	}

	.mock__bars i:nth-child(3) {
		animation-delay: 2.6s;
	}

	.chips__track {
		animation: qvs-marquee 38s linear infinite;
	}

	.chips__row--reverse .chips__track {
		animation-direction: reverse;
		animation-duration: 46s;
	}

	.chips:hover .chips__track {
		animation-play-state: paused;
	}

	/* Gestos dentro de las ventajas: solo si hay JavaScript para activarlos */

	.js [data-animate] .compare__bar i {
		transform: scaleX(0);
		transition: transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
	}

	.js [data-animate] .compare__row:nth-child(2) .compare__bar i {
		transition-delay: 0.12s;
	}

	.js [data-animate] .compare__row:nth-child(3) .compare__bar i {
		transition-delay: 0.24s;
	}

	.js [data-animate].is-in .compare__bar i {
		transform: scaleX(1);
	}

	.js [data-animate] .compare__row em,
	.js [data-animate] .calendario__grid .is-pago,
	.js [data-animate] .tareas span {
		scale: 0;
		transition: scale 0.4s cubic-bezier(0.2, 1.5, 0.4, 1);
	}

	.js [data-animate] .compare__row em {
		transition-delay: 0.9s;
	}

	.js [data-animate] .calendario__grid .is-pago {
		transition-delay: 0.5s;
	}

	.js [data-animate] .tareas li:nth-child(1) span {
		transition-delay: 0.2s;
	}

	.js [data-animate] .tareas li:nth-child(2) span {
		transition-delay: 0.55s;
	}

	.js [data-animate] .tareas li:nth-child(3) span {
		transition-delay: 0.9s;
	}

	.js [data-animate].is-in .compare__row em,
	.js [data-animate].is-in .calendario__grid .is-pago,
	.js [data-animate].is-in .tareas span {
		scale: 1;
	}

	.js [data-animate] .chat__msg {
		opacity: 0;
		translate: 0 12px;
		transition: opacity 0.4s ease, translate 0.4s ease;
	}

	.js [data-animate] .chat__msg--yo {
		transition-delay: 0.2s;
	}

	.js [data-animate] .chat__msg--asesor {
		transition-delay: 1s;
	}

	.js [data-animate].is-in .chat__msg {
		opacity: 1;
		translate: 0 0;
	}

	.js .ruta[data-animate]::before {
		clip-path: inset(-4px 100% -4px 0);
		transition: clip-path 1.4s 0.2s ease-in-out;
	}

	.js .ruta[data-animate].is-in::before {
		clip-path: inset(-4px 0 -4px 0);
	}
}

@media (prefers-reduced-motion: no-preference) and (max-width: 860px) {
	.js .ruta[data-animate]::before {
		clip-path: inset(0 -4px 100% -4px);
	}

	.js .ruta[data-animate].is-in::before {
		clip-path: inset(0 -4px 0 -4px);
	}
}

@keyframes qvs-pop {
	from {
		opacity: 0;
		scale: 0.6;
	}
}

@keyframes qvs-rise {
	from {
		opacity: 0;
		translate: 0 22px;
	}
}

@keyframes qvs-grow {
	from {
		opacity: 0;
		scale: 0.7;
	}
}

@keyframes qvs-show {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes qvs-hide {
	from {
		opacity: 1;
	}

	to {
		opacity: 0;
	}
}

@keyframes qvs-dot {
	to {
		translate: 0 -5px;
		opacity: 0.4;
	}
}

@keyframes qvs-float {
	to {
		translate: 0 -9px;
	}
}

@keyframes qvs-bar {
	0%,
	20% {
		transform: scaleX(0.35);
	}

	80%,
	100% {
		transform: scaleX(1);
	}
}

@keyframes qvs-marquee {
	to {
		transform: translateX(-50%);
	}
}
