/* ==========================================================================
   Portafolio · Base
   Tokens de diseño, tipografía y utilidades compartidas.
   ========================================================================== */

:root {
	/* Colores */
	--ans-black: #000000;
	--ans-white: #ffffff;
	--ans-cream: #f5f0ea;
	--ans-sky: #b8cede;
	--ans-wine: #6b1c29;

	/* Tipografías */
	--ans-font-sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
	--ans-font-script: "Parfumerie", "Parfumerie Script", "Parfumerie Script Regular", cursive;
	--ans-tracking: 2.1px;

	/* Escala tipográfica única para todo el sitio.
	   --ans-text:    párrafos y textos de contenido.
	   --ans-text-sm: botones, etiquetas y textos de apoyo.
	   Los títulos (Parfumerie / mayúsculas grandes) son piezas de diseño y
	   conservan su tamaño propio. */
	--ans-text: clamp(15px, 1.1vw, 18px);
	--ans-text-sm: clamp(12px, 0.85vw, 14px);

	/* Movimiento */
	--ans-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   Documento
   -------------------------------------------------------------------------- */

body.ans-site {
	margin: 0;
	background: var(--ans-cream);
	color: var(--ans-black);
	font-family: var(--ans-font-sans);
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.ans-home {
	position: relative;
	display: block;
	width: 100%;
	/* Evita desplazamiento horizontal sin romper position: sticky / pin. */
	overflow-x: clip;
}

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

.ans-home img,
.ans-home video {
	display: block;
	max-width: none;
	height: auto;
	border: 0;
	border-radius: 0;
	box-shadow: none;
}

.ans-home img {
	-webkit-user-drag: none;
	user-select: none;
}

.ans-home h1,
.ans-home h2,
.ans-home p,
.ans-home ul,
.ans-home figure {
	margin: 0;
	padding: 0;
}

.ans-home ul {
	list-style: none;
}

/* Neutraliza estilos genéricos de enlaces y botones del reset de Hello
   Elementor (color #c36, subrayado en :visited, fondo en :hover/:focus). */
.ans-home a,
.ans-home a:visited {
	text-decoration: none;
}

.ans-home button,
.ans-home button:hover,
.ans-home button:focus {
	font: inherit;
	color: inherit;
	background-color: transparent;
	border: 0;
	border-radius: 0;
	padding: 0;
	white-space: normal;
}

/* --------------------------------------------------------------------------
   Tipografía
   -------------------------------------------------------------------------- */

.ans-script {
	font-family: var(--ans-font-script);
	font-weight: 400;
	font-style: normal;
	letter-spacing: 0;
	text-transform: none;
}

.ans-caps {
	font-family: var(--ans-font-sans);
	font-weight: 600;
	text-transform: uppercase;
}

.ans-subtitle {
	font-family: var(--ans-font-sans);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: var(--ans-tracking);
}

/* --------------------------------------------------------------------------
   Botón con contorno
   -------------------------------------------------------------------------- */

.ans-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--ans-font-sans);
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.35s var(--ans-ease), color 0.35s var(--ans-ease), transform 0.35s var(--ans-ease);
}

.ans-btn--outline {
	color: var(--ans-white);
	background: transparent;
	border: 2px solid var(--ans-white);
	border-radius: 999px;
}

.ans-btn--outline:hover,
.ans-btn--outline:focus-visible {
	color: var(--ans-black);
	background: var(--ans-white);
}

.ans-btn:focus-visible,
.ans-home a:focus-visible,
.ans-home button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Accesibilidad
   -------------------------------------------------------------------------- */

.ans-sr-only {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.ans-skip-link {
	position: fixed;
	top: 12px;
	left: 12px;
	z-index: 1000;
	padding: 10px 16px;
	font: 600 14px/1 var(--ans-font-sans);
	color: var(--ans-white);
	background: var(--ans-black);
	border-radius: 999px;
	transform: translateY(-200%);
	transition: transform 0.25s var(--ans-ease);
}

.ans-skip-link:focus {
	transform: none;
}
