/* ============================================================
   KIT TIPOGRÁFICO: corporativo (Inter — autoalojado, 1 archivo)
   woff2 en /css/fonts/ + preload de la fuente en head.php.
   Para cambiar de kit: sustituir SOLO este bloque por el kit.css
   de /font-kits/ y (si es autoalojado) copiar los woff2 a /css/fonts/.
   PROHIBIDO usar font-family directos fuera de este bloque:
   siempre var(--font-titulares) / var(--font-texto).
   ============================================================ */
@font-face {
	font-family: 'Inter';
	src: url('fonts/inter-var.woff2') format('woff2');
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}
:root {
	--font-titulares: 'Inter', system-ui, sans-serif;
	--font-texto: 'Inter', system-ui, sans-serif;
}
/* Aplicación del kit (sobrescribe los defaults de w3.css sin tocarlo) */
body { font-family: var(--font-texto); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-titulares); }
/* Ajustes de composición del kit corporativo */
h1, h2 { font-weight: 700; letter-spacing: -0.02em; }

/* ============================================================
   ESTILOS DE PARTIDA DEL CLIENTE (CLIENT-BRIEF §4 — Capa 1)
   Paleta DiarioTrading: verde esmeralda profundo (mercado,
   dinero, disciplina) + ámbar dorado para las llamadas a la
   acción. Sistema de temas w3-theme-*: solo cambiar valores de
   color, nunca los nombres de clase (los consume la plantilla).
   ============================================================ */
html,body{
	font-size:16px
}
.menufront {color:#047857; font-family:var(--font-titulares);} /* MENU FRONT   TIPUS LLETRA TITULARS + COLOR */
.titular1 {color:#064e3b; font-family:var(--font-titulares);} /* TIPUS LLETRA TITULARS + COLOR */
.titular2 {color:#047857; font-family:var(--font-titulares);} /* TIPUS LLETRA TITULARS + COLOR */
.w3-theme-l5 {color:#fff; background-color:#047857} /* BOTO CAPÇALERA */
.w3-theme-l4 {color:#047857; background-color:#fff} /* BOTO IDIOMES ACTIU */
.w3-theme-l3 {color:#9ca3af; background-color:#fff} /* BOTO IDIOMES */
.w3-theme-l2 {color:#fff; background-color:#022c22} /* FOOTER */
.w3-theme-l1 {color:#064e3b; background-color:#d1fae5} /* BOTO FOOTER / BREADCRUMB */
.w3-theme-d1 {color:#fff; background-color:#047857} /* MENU MOBIL */
.w3-theme-d2 {color:#047857; background-color:#fff} /* COLOR ICONES */
.w3-theme-d3 {color:#064e3b; background-color:#d1fae5} /* COLOR FONS TEXT SLIDESHOW */
.w3-theme-d4 {color:#fff; background-color:#065f46} /* COLOR TITULARS DESTACATS / BANNER COOKIES */
.w3-theme-d5 {color:#fff; background-color:#b45309} /* COLOR BOTO FORMULARI / CTA */
.w3-theme {color:#1f2937; background-color:#fff} /* ESTIL GENERAL D'UNA SECCIO */
.w3-text-theme {color:#4b5563} /* COLOR DEL TEXT GENERAL */

/*	COMPONENTS OW — EXTENSIÓ REUTILITZABLE SOBRE W3.CSS
	==================================================
	No modificar w3.css original.
	Capa pròpia reutilitzable per a webs corporatives:
	seccions, contenidors, grids, targetes, botons i blocs visuals.
*/

/* Variables corporatives reutilitzables — paleta DiarioTrading */
:root {
	--color-primary: #047857;
	--color-primary-dark: #064e3b;
	--color-text: #374151;
	--color-bg-light: #ecfdf5;
	--color-white: #FFFFFF;
	--color-accent: #b45309;
}

/* Contenidors generals */
.ow-section {
	padding: 70px 20px;
}

.ow-section-light {
	background: var(--color-bg-light);
}

.ow-container {
	max-width: 1180px;
	margin: 0 auto;
}

/* Titulars i textos útils */
.ow-section-title {
	color: var(--color-primary-dark);
	font-weight: 700;
	line-height: 1.25;
}

.ow-section-intro {
	max-width: 860px;
	margin: 0 auto 35px auto;
	font-size: 17px;
	color: var(--color-text);
}

/* Grid modern reutilitzable */
.ow-grid {
	display: grid;
	gap: 24px;
}

.ow-grid-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ow-grid-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ow-grid-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Targetes reutilitzables */
.ow-card {
	background: var(--color-white);
	padding: 28px;
	border-radius: 12px;
	box-shadow: 0 6px 18px rgba(0,0,0,0.06);
	transition: all 0.2s ease-in-out;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.ow-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

.ow-card-icon {
	font-size: 36px;
	line-height: 1;
	margin-bottom: 14px;
	color: var(--color-primary);
}

.ow-card h3 {
	margin-top: 8px;
	margin-bottom: 12px;
	color: var(--color-primary-dark);
	font-weight: 700;
}

.ow-card p {
	flex-grow: 1;
	margin-bottom: 20px;
	color: var(--color-text);
}

.ow-card-link {
	margin-top: auto;
	color: var(--color-primary);
	font-weight: 700;
	text-decoration: none;
	font-size: 15px;
}

.ow-card-link:hover {
	text-decoration: underline;
}

/* Botons reutilitzables */
.ow-btn-primary {
	background: var(--color-primary);
	color: #ffffff;
	padding: 14px 24px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	margin: 6px 8px 6px 0;
}

.ow-btn-primary:hover {
	background: var(--color-primary-dark);
	color: #ffffff;
}

.ow-btn-secondary {
	border: 2px solid var(--color-primary);
	color: var(--color-primary);
	padding: 12px 22px;
	border-radius: 6px;
	text-decoration: none;
	display: inline-block;
	font-weight: 600;
	margin: 6px 8px 6px 0;
	background: transparent;
}

.ow-btn-secondary:hover {
	background: var(--color-primary);
	color: #ffffff;
}

/* Hero reutilitzable */
.ow-hero {
	background: linear-gradient(90deg, #ffffff 0%, var(--color-bg-light) 100%);
	padding: 80px 20px;
}

.ow-hero-subtitle {
	font-size: 20px;
	margin: 25px 0;
	color: var(--color-text);
}

/* Cajas de confianza */
.ow-trust-item {
	background: #ffffff;
	border-left: 4px solid var(--color-primary);
	padding: 16px;
	margin-bottom: 12px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	min-height: 76px;
	display: flex;
	align-items: center;
	font-weight: 600;
}

/* Bloques de proceso */
.ow-process-step {
	background: #ffffff;
	padding: 26px;
	border-radius: 12px;
	min-height: 240px;
	border-top: 5px solid var(--color-primary);
}

.ow-step-number {
	background: var(--color-primary);
	color: #ffffff;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: bold;
	margin-bottom: 16px;
}

/* FAQ reutilizable */
.ow-faq-box {
	border-bottom: 1px solid #ddd;
	padding: 22px 0;
}

.ow-faq-box h3 {
	margin-bottom: 8px;
	font-size: 20px;
	font-weight: 700;
	color: var(--color-primary-dark);
}

/* CTA final */
.ow-cta-final {
	background: var(--color-primary-dark);
	color: #ffffff;
	padding: 70px 20px;
	text-align: center;
}

.ow-cta-final h2,
.ow-cta-final p {
	color: #ffffff;
}

/* Barra móvil fija */
.ow-mobile-fixed-bar {
	display: none;
}

/* Aviso destacado (honestidad: no somos broker / hoja de ruta / nota divisas) */
.ow-aviso {
	background: #fffbeb;
	border-left: 4px solid var(--color-accent);
	padding: 16px 20px;
	border-radius: 0 8px 8px 0;
	color: var(--color-text);
	max-width: 860px;
	margin: 0 auto;
}

/* Frase de ejemplo estilo burbuja (hechos del trade / resultados calculados) */
.ow-frase {
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px 12px 12px 2px;
	padding: 12px 16px;
	margin: 10px 0;
	font-style: italic;
	color: var(--color-text);
	box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Etiqueta píldora para métricas destacadas (pips / € / R) */
.ow-boton-aviso {
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 14px;
	color: #ffffff;
	background: var(--color-primary);
	margin: 2px 4px 2px 0;
}

/* Icono SVG inline del sprite (/img/icons.svg): tamaño base alineado con el texto */
.icono { width:1em; height:1em; vertical-align:-0.125em; }
/* Icono grande (redes sociales, destacados) */
.icono-xl { width:1.5em; height:1.5em; vertical-align:-0.3em; }

/* Espaciadores de sección (sustituyen a <div>&nbsp;</div>) */
.section-spacer    { padding-bottom: 64px; }
.section-spacer-sm { padding-bottom: 32px; }

/* Media queries — ORDRE CORRECTE AMB max-width:
   Primer el breakpoint més ample i després el més petit.
*/

/* ≤992px : tablets mitjanes */
@media (max-width:992px){
	html,body{font-size:14px;line-height:1.2}
	h1{font-size:32px}h2{font-size:26px}h3{font-size:20px}h4{font-size:16px}h5{font-size:12px}h6{font-size:12px}
	.w3-large{font-size:16px!important}.w3-xlarge{font-size:20px!important}.w3-xxlarge{font-size:32px!important}.w3-xxxlarge{font-size:44px!important}.w3-jumbo{font-size:60px!important}

	.ow-grid-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ow-grid-3 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* ≤768px : mòbils i tablets petites */
@media (max-width:768px){
	html,body{font-size:14px;line-height:1.2}
	h1{font-size:20px}h2{font-size:18px}h3{font-size:16px}h4{font-size:14px}h5{font-size:12px}h6{font-size:12px}
	.w3-large{font-size:16px!important}.w3-xlarge{font-size:18px!important}.w3-xxlarge{font-size:20px!important}.w3-xxxlarge{font-size:22px!important}.w3-jumbo{font-size:36px!important}

	.ow-section {
		padding: 50px 20px;
	}

	.ow-hero {
		padding: 50px 20px;
	}

	.ow-grid-2,
	.ow-grid-3,
	.ow-grid-4 {
		grid-template-columns: 1fr;
	}

	.ow-card {
		min-height: auto;
	}

	.ow-mobile-fixed-bar {
		display: flex;
		position: fixed;
		bottom: 0;
		left: 0;
		right: 0;
		z-index: 9999;
		background: #ffffff;
		box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
	}

	.ow-mobile-fixed-bar a {
		flex: 1;
		text-align: center;
		padding: 12px 6px;
		font-size: 14px;
		text-decoration: none;
		font-weight: bold;
		color: var(--color-primary-dark);
		border-right: 1px solid #ddd;
	}

	body {
		padding-bottom: 58px;
	}
}
