/*
Theme Name: Metric Data BI
Theme URI: https://metricdatabi.com
Description: Recreación 1:1 del sitio metricdatabi.com (React/Tailwind) como tema WordPress clásico. Requiere el plugin Metric Data BI Core para CPTs, formularios y configuración.
Version: 1.3.0
Author: DrMKT / Metric Data BI
License: GPL-2.0-or-later
Text Domain: metric-data-bi
*/

/* ---------------------------------------------------------- Tokens */
:root {
	--background: 220 20% 97%;
	--foreground: 220 10% 37%;
	--primary: 220 50% 20%;
	--primary-foreground: 0 0% 100%;
	--secondary: 220 40% 25%;
	--accent: 90 60% 55%;
	--accent-foreground: 220 50% 20%;
	--muted: 90 45% 70%;
	--muted-foreground: 220 50% 20%;
	--card: 0 0% 100%;
	--card-foreground: 220 10% 37%;
	--border: 220 15% 88%;
	--destructive: 0 84% 60%;
	--radius: 0.5rem;
	--wa-green: #25D366;
	--wa-green-hover: #1fb857;
}

/* ------------------------------------------------------------ Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; margin-top: 0 !important; }
body {
	margin: 0;
	font-family: "DM Sans", sans-serif;
	background-color: hsl(var(--background));
	color: hsl(var(--foreground));
	overflow-x: clip;
	font-feature-settings: "kern" 1, "liga" 1;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	font-size: 16px;
	line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
	text-wrap: balance;
	letter-spacing: -0.02em;
	color: hsl(var(--primary));
	margin: 0 0 0.5em;
	line-height: 1.2;
}
p { text-wrap: pretty; margin: 0 0 1em; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
.mdb-h1-white, .mdb-on-navy h1, .mdb-on-navy h2 { color: hsl(var(--primary-foreground)); }

.mdb-container { max-width: 1280px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .mdb-container { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .mdb-container { padding-left: 32px; padding-right: 32px; } }
.mdb-container-4xl { max-width: 896px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.mdb-container-3xl { max-width: 768px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 640px) { .mdb-container-4xl, .mdb-container-3xl { padding-left: 24px; padding-right: 24px; } }
@media (min-width: 1024px) { .mdb-container-4xl, .mdb-container-3xl { padding-left: 32px; padding-right: 32px; } }

.mdb-section { padding-top: 80px; padding-bottom: 80px; }
.bg-background { background-color: hsl(var(--background)); }
.bg-muted { background-color: hsl(var(--muted)); }
.mdb-muted-fg { color: hsl(var(--muted-foreground)); }

.mdb-skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: hsl(var(--primary)); color: #fff; padding: 12px 20px; border-radius: 0 0 8px 0;
}
.mdb-skip-link:focus { left: 0; }

/* ------------------------------------------------------- Tipografía */
.mdb-h1 { font-size: 36px; font-weight: 700; line-height: 1.2; }
.mdb-h2 { font-size: 30px; font-weight: 700; line-height: 1.2; }
.mdb-h3 { font-size: 20px; font-weight: 600; line-height: 1.35; }
@media (min-width: 768px) {
	.mdb-h1 { font-size: 48px; }
	.mdb-h1-hero { font-size: 48px; }
	.mdb-h2 { font-size: 36px; }
}
@media (min-width: 1024px) { .mdb-h1-hero { font-size: 60px; } }
.mdb-lead { font-size: 18px; line-height: 1.65; }
@media (min-width: 768px) { .mdb-lead-xl { font-size: 20px; } }
.mdb-section-head { text-align: center; margin-bottom: 64px; }
.mdb-section-head h2 { margin-bottom: 16px; }
.mdb-section-head p { max-width: 672px; margin-left: auto; margin-right: auto; }

/* ----------------------------------------------------------- Header */
.mdb-header {
	position: sticky; top: 0; z-index: 50; width: 100%;
	border-bottom: 1px solid hsl(var(--border) / 0.4);
	background-color: hsl(var(--background) / 0.95);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
@supports (backdrop-filter: blur(8px)) { .mdb-header { background-color: hsl(var(--background) / 0.6); } }
.mdb-header-inner { display: flex; height: 80px; align-items: center; justify-content: space-between; }
.mdb-logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mdb-logo-link img { height: 56px; width: auto; object-fit: contain; transition: transform 200ms; }
.mdb-logo-link:hover img { transform: scale(1.05); }
.mdb-nav { display: none; align-items: center; gap: 4px; }
@media (min-width: 1024px) { .mdb-nav { display: flex; } }
.mdb-nav li, .mdb-mobile-menu li { list-style: none; margin: 0; padding: 0; }
.mdb-nav a {
	padding: 8px 16px; font-size: 14px; font-weight: 500; border-radius: var(--radius);
	color: hsl(var(--muted-foreground)); text-decoration: none; transition: all 200ms;
}
.mdb-nav a:hover { color: hsl(var(--foreground)); background-color: hsl(var(--muted)); }
.mdb-nav a.current-menu-item, .mdb-nav a.current_page_item, .mdb-nav a[aria-current="page"] {
	color: hsl(var(--primary-foreground)); background-color: hsl(var(--primary) / 0.2);
}
.mdb-burger {
	display: block; padding: 8px; color: hsl(var(--foreground)); background: none; border: 0;
	border-radius: var(--radius); cursor: pointer;
}
.mdb-burger:hover { background-color: hsl(var(--muted)); }
@media (min-width: 1024px) { .mdb-burger { display: none; } }
.mdb-burger svg { width: 24px; height: 24px; display: block; }
.mdb-mobile-menu { display: none; padding: 16px 0; border-top: 1px solid hsl(var(--border) / 0.4); }
.mdb-mobile-menu.open { display: block; }
.mdb-mobile-menu nav { display: flex; flex-direction: column; gap: 8px; }
.mdb-mobile-menu a {
	padding: 12px 16px; font-size: 14px; font-weight: 500; border-radius: var(--radius);
	color: hsl(var(--muted-foreground)); text-decoration: none; transition: all 200ms;
}
.mdb-mobile-menu a:hover { color: hsl(var(--foreground)); background-color: hsl(var(--muted)); }
.mdb-mobile-menu a.current-menu-item, .mdb-mobile-menu a.current_page_item {
	color: hsl(var(--primary-foreground)); background-color: hsl(var(--primary) / 0.2);
}
@media (min-width: 768px) { .mdb-mobile-menu { display: none !important; } }

/* ---------------------------------------------------------- Botones */
.mdb-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.25;
	padding: 10px 20px; border-radius: var(--radius); border: 0; cursor: pointer;
	text-decoration: none; transition: all 200ms; white-space: nowrap;
}
.mdb-btn:active { transform: scale(0.98); }
.mdb-btn:focus-visible { outline: 2px solid hsl(var(--accent)); outline-offset: 2px; }
.mdb-btn-primary { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.mdb-btn-primary:hover { background: hsl(var(--primary) / 0.9); }
.mdb-btn-accent { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.mdb-btn-accent:hover { background: hsl(var(--accent) / 0.9); }
.mdb-btn-outline { background: transparent; border: 1px solid hsl(var(--primary)); color: hsl(var(--primary)); }
.mdb-btn-outline:hover { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.mdb-btn-ghost-hero {
	background: hsl(var(--primary-foreground) / 0.1); color: hsl(var(--primary-foreground));
	border: 1px solid hsl(var(--primary-foreground) / 0.2);
}
.mdb-btn-ghost-hero:hover { background: hsl(var(--primary-foreground) / 0.2); }
.mdb-btn-lg { font-size: 18px; padding: 16px 32px; }
.mdb-btn-block { width: 100%; }
.mdb-btn[disabled] { opacity: 0.7; cursor: not-allowed; }
.mdb-btn svg { width: 16px; height: 16px; }
.mdb-btn-lg svg { width: 18px; height: 18px; }

/* ------------------------------------------------------------- Hero */
.mdb-hero {
	position: relative; min-height: calc(100dvh - 80px); display: flex; align-items: center; justify-content: center;
	overflow: hidden;
}
.mdb-hero-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; }
.mdb-hero-bg::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(to bottom right, hsl(var(--primary) / 0.95), hsl(var(--primary) / 0.9), hsl(var(--secondary) / 0.8));
}
.mdb-hero-content { position: relative; z-index: 1; text-align: center; padding-top: 64px; padding-bottom: 64px; }
.mdb-hero h1 { color: hsl(var(--primary-foreground)); margin-bottom: 24px; }
.mdb-hero .mdb-hero-sub {
	font-size: 20px; color: hsl(var(--primary-foreground) / 0.9);
	max-width: 768px; margin: 0 auto 32px; line-height: 1.65;
}
@media (min-width: 768px) { .mdb-hero .mdb-hero-sub { font-size: 24px; } }
.mdb-hero-ctas { display: flex; flex-direction: column; gap: 16px; justify-content: center; margin-bottom: 48px; }
@media (min-width: 640px) { .mdb-hero-ctas { flex-direction: row; } }
.mdb-hero-badge {
	display: inline-flex; align-items: center; gap: 8px;
	background: hsl(var(--primary-foreground) / 0.1); backdrop-filter: blur(4px);
	padding: 12px 24px; border-radius: 9999px; border: 1px solid hsl(var(--primary-foreground) / 0.2);
	color: hsl(var(--primary-foreground)); font-weight: 500;
}
.mdb-hero-badge svg { width: 20px; height: 20px; color: hsl(var(--accent)); }

/* ------------------------------------------------------ Banda navy */
.mdb-band {
	padding: 80px 0; text-align: center; color: hsl(var(--primary-foreground));
	background: linear-gradient(to bottom right, hsl(var(--primary)), hsl(var(--primary) / 0.95), hsl(var(--secondary) / 0.9));
}
.mdb-band h1 { color: hsl(var(--primary-foreground)); margin-bottom: 24px; font-size: 36px; font-weight: 700; }
@media (min-width: 768px) { .mdb-band h1 { font-size: 48px; } }
.mdb-band p { font-size: 20px; color: hsl(var(--primary-foreground) / 0.9); max-width: 768px; margin: 0 auto; line-height: 1.65; }

/* ---------------------------------------------------------- Tarjetas */
.mdb-card {
	background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.5);
	border-radius: 16px; padding: 24px; height: 100%;
	display: flex; flex-direction: column;
	transition: all 300ms;
}
.mdb-card-lift:hover { box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1); transform: translateY(-4px); }
.mdb-card h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin-bottom: 0; }
.mdb-card .mdb-card-text { color: hsl(var(--muted-foreground)); line-height: 1.65; margin: 16px 0; }
.mdb-icon-box {
	display: inline-flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; border-radius: 12px;
	background: hsl(var(--primary) / 0.1); color: hsl(var(--primary));
	margin-bottom: 16px; transition: all 300ms;
}
.mdb-icon-box svg { width: 24px; height: 24px; }
.mdb-card-lift:hover .mdb-icon-box-invert { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.mdb-icon-box-secondary { background: hsl(var(--secondary) / 0.1); color: hsl(var(--secondary)); }
.mdb-icon-box-lg { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 24px; }
.mdb-icon-box-lg svg { width: 32px; height: 32px; }
.mdb-bullets { list-style: none; margin: 0 0 24px; padding: 0; }
.mdb-bullets li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; margin-bottom: 8px; }
.mdb-bullets li .dot { color: hsl(var(--secondary)); margin-top: 2px; }
.mdb-bullets li span:last-child { color: hsl(var(--foreground) / 0.8); }
.mdb-link-more {
	margin-top: auto; display: inline-flex; align-items: center; gap: 8px;
	color: hsl(var(--primary)); font-weight: 500; text-decoration: none; transition: all 200ms;
}
.mdb-link-more:hover { gap: 12px; }
.mdb-link-more svg { width: 16px; height: 16px; }

/* ---------------------------------------------------- Grid layouts */
.mdb-grid { display: grid; gap: 32px; }
.mdb-grid-2 { grid-template-columns: 1fr; }
.mdb-grid-3 { grid-template-columns: 1fr; gap: 24px; }
.mdb-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 768px) {
	.mdb-grid-2 { grid-template-columns: repeat(2, 1fr); }
	.mdb-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.mdb-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
	.mdb-grid-3 { grid-template-columns: repeat(3, 1fr); }
	.mdb-grid-4 { grid-template-columns: repeat(4, 1fr); }
}
.mdb-stack-24 > * + * { margin-top: 96px; }
.mdb-stack-32 > * + * { margin-top: 128px; }

/* -------------------------------------------------------- Productos */
.mdb-product { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 768px) { .mdb-product { grid-template-columns: repeat(2, 1fr); gap: 48px; } }
.mdb-product-img { border-radius: 16px; overflow: hidden; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15); }
.mdb-product-img img { width: 100%; height: auto; object-fit: cover; display: block; }
@media (min-width: 768px) {
	.mdb-product-reverse .mdb-product-img { order: 2; }
	.mdb-product-reverse .mdb-product-body { order: 1; }
}
.mdb-product-body h3 { font-size: 30px; font-weight: 700; margin-bottom: 16px; line-height: 1.2; }
.mdb-product-body > p { font-size: 18px; color: hsl(var(--muted-foreground)); line-height: 1.65; margin-bottom: 24px; }
.mdb-checklist { list-style: none; margin: 0 0 32px; padding: 0; }
.mdb-checklist li { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.mdb-checklist .check {
	display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
	width: 24px; height: 24px; border-radius: 9999px; margin-top: 2px;
	background: hsl(var(--secondary) / 0.1); color: hsl(var(--secondary));
	font-size: 13px; font-weight: 700;
}
.mdb-checklist li span:last-child { color: hsl(var(--foreground)); line-height: 1.65; }

/* -------------------------------------------------- Diferenciadores */
.mdb-diff { text-align: center; }
.mdb-diff h3 { font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.mdb-diff p { color: hsl(var(--muted-foreground)); line-height: 1.65; margin: 0; }
.mdb-diff .mdb-icon-box-lg { margin-left: auto; margin-right: auto; margin-bottom: 16px; }

/* ------------------------------------------------------------ Badge */
.mdb-badge {
	display: inline-flex; align-items: center; padding: 2px 10px;
	border-radius: 9999px; font-size: 12px; font-weight: 600;
	background: hsl(var(--secondary) / 0.1); color: hsl(var(--secondary));
}

/* ------------------------------------------------------------ Casos */
.mdb-case-card { cursor: pointer; }
.mdb-case-card:hover h3 { color: hsl(var(--primary)); }
.mdb-case-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mdb-case-client { display: flex; align-items: center; gap: 8px; color: hsl(var(--muted-foreground)); font-size: 14px; font-weight: 500; }
.mdb-case-client svg { width: 16px; height: 16px; }
.mdb-case-results { margin-top: auto; padding-top: 16px; border-top: 1px solid hsl(var(--border) / 0.5); }
.mdb-case-results-head { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: hsl(var(--secondary)); margin-bottom: 8px; }
.mdb-case-results-head svg { width: 16px; height: 16px; }
.mdb-case-results ul { list-style: none; margin: 0; padding: 0; }
.mdb-case-results li { font-size: 14px; color: hsl(var(--foreground) / 0.8); margin-bottom: 4px; }
.mdb-case-service { margin-top: 16px; font-size: 12px; }
.mdb-case-service .lbl { color: hsl(var(--muted-foreground)); }
.mdb-case-service .val { font-weight: 500; color: hsl(var(--primary)); }

/* Chips de filtro */
.mdb-filter-band { padding: 48px 0; border-bottom: 1px solid hsl(var(--border) / 0.5); }
.mdb-chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.mdb-chip {
	font-family: inherit; font-size: 14px; font-weight: 500; padding: 10px 20px;
	border-radius: var(--radius); border: 1px solid hsl(var(--border));
	background: transparent; color: hsl(var(--foreground)); cursor: pointer; transition: all 200ms;
}
.mdb-chip:hover { background: hsl(var(--muted)); }
.mdb-chip[aria-pressed="true"] { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); border-color: hsl(var(--primary)); }
.mdb-hidden { display: none !important; }
.mdb-empty-state { text-align: center; color: hsl(var(--muted-foreground)); padding: 48px 0; }

/* --------------------------------------------------------- Recursos */
.mdb-resource-type { font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--primary)); display: block; margin-bottom: 8px; }
.mdb-resources-h2 { font-size: 30px; font-weight: 700; margin: 0 0 32px; }
.mdb-resources-group { margin-bottom: 80px; }
.mdb-resources-group:last-child { margin-bottom: 0; }

/* -------------------------------------------------------- Formularios */
.mdb-form-card {
	background: hsl(var(--card)); border: 1px solid hsl(var(--border) / 0.5);
	border-radius: 16px; padding: 24px; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1);
	width: 100%; max-width: 672px; margin-left: auto; margin-right: auto;
}
.mdb-form-card-lg { padding: 32px; }
.mdb-form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
@media (min-width: 768px) { .mdb-form-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 24px; } }
.mdb-field label { display: block; font-size: 14px; font-weight: 500; color: hsl(var(--card-foreground)); margin-bottom: 8px; }
.mdb-field input, .mdb-field select, .mdb-field textarea {
	width: 100%; font-family: inherit; font-size: 14px; color: hsl(var(--foreground));
	background: hsl(var(--background)); border: 1px solid hsl(var(--border));
	border-radius: var(--radius); padding: 10px 12px; line-height: 1.5;
}
.mdb-field input:focus, .mdb-field select:focus, .mdb-field textarea:focus {
	outline: 2px solid hsl(var(--accent)); outline-offset: 0; border-color: hsl(var(--accent));
}
.mdb-field .mdb-error { display: none; font-size: 14px; color: hsl(var(--destructive)); margin: 4px 0 0; }
.mdb-field.mdb-invalid .mdb-error { display: block; }
.mdb-field.mdb-invalid input, .mdb-field.mdb-invalid select, .mdb-field.mdb-invalid textarea { border-color: hsl(var(--destructive)); }
.mdb-field-disabled select { background: hsl(var(--muted) / 0.5); border-style: dashed; color: hsl(var(--muted-foreground)); }
.mdb-honeypot { position: absolute; left: -9999px; top: -9999px; height: 0; width: 0; overflow: hidden; }
.mdb-form-note { font-size: 13px; color: hsl(var(--muted-foreground)); margin-top: 12px; text-align: center; }

/* Toast */
.mdb-toast {
	position: fixed; top: 20px; right: 20px; z-index: 100;
	background: hsl(var(--card)); color: hsl(var(--card-foreground));
	border: 1px solid hsl(var(--destructive)); border-left-width: 4px;
	border-radius: var(--radius); padding: 14px 18px; box-shadow: 0 10px 25px rgba(0,0,0,0.15);
	max-width: 360px; font-size: 14px;
}

/* ----------------------------------------------------------- Modales */
dialog.mdb-modal {
	border: 0; border-radius: 16px; padding: 0; width: calc(100% - 32px);
	max-width: 768px; max-height: 90vh; overflow-y: auto;
	background: hsl(var(--card)); color: hsl(var(--card-foreground));
	box-shadow: 0 25px 50px -12px rgba(0,0,0,0.35);
}
dialog.mdb-modal-sm { max-width: 600px; }
dialog.mdb-modal::backdrop { background: rgba(10, 15, 28, 0.6); }
.mdb-modal-inner { padding: 24px; }
@media (min-width: 640px) { .mdb-modal-inner { padding: 32px; } }
.mdb-modal-close {
	position: absolute; top: 12px; right: 12px;
	background: none; border: 0; cursor: pointer; padding: 8px; border-radius: var(--radius);
	color: hsl(var(--muted-foreground));
}
.mdb-modal-close:hover { background: hsl(var(--muted) / 0.4); color: hsl(var(--foreground)); }
.mdb-modal-close svg { width: 20px; height: 20px; display: block; }
.mdb-modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.mdb-modal .mdb-modal-sub { color: hsl(var(--muted-foreground)); margin-bottom: 0; }
.mdb-modal h3.mdb-modal-h3 { font-size: 18px; font-weight: 600; margin: 24px 0 12px; display: flex; align-items: center; gap: 8px; }
.mdb-modal h3.mdb-modal-h3 svg { width: 20px; height: 20px; }
.mdb-modal p { color: hsl(var(--muted-foreground)); line-height: 1.65; }

/* ----------------------------------------------------------- Footer */
.mdb-footer { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.mdb-footer-main { padding: 48px 0; }
.mdb-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; margin-bottom: 32px; }
@media (min-width: 768px) { .mdb-footer-grid { grid-template-columns: repeat(3, 1fr); } }
.mdb-footer-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.mdb-footer-brand .box {
	display: flex; align-items: center; justify-content: center;
	width: 40px; height: 40px; border-radius: var(--radius);
	background: hsl(var(--primary-foreground) / 0.1);
}
.mdb-footer-brand .box svg { width: 24px; height: 24px; }
.mdb-footer-brand .name { font-size: 20px; font-weight: 700; color: hsl(var(--primary-foreground)); }
.mdb-footer p.tagline { color: hsl(var(--primary-foreground) / 0.8); line-height: 1.65; margin: 0; }
.mdb-footer h4 { color: hsl(var(--primary-foreground)); font-size: 16px; font-weight: 600; margin: 0 0 16px; }
.mdb-footer ul { list-style: none; margin: 0; padding: 0; }
.mdb-footer ul li { margin-bottom: 12px; }
.mdb-footer a { color: hsl(var(--primary-foreground) / 0.8); text-decoration: none; transition: color 200ms; }
.mdb-footer a:hover { color: hsl(var(--primary-foreground)); }
.mdb-footer .mdb-footer-contact a { display: flex; align-items: center; gap: 8px; }
.mdb-footer .mdb-footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; }
.mdb-footer-legal { padding: 32px 0 0; border-top: 1px solid hsl(var(--primary-foreground) / 0.1); }
.mdb-footer-legal-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
@media (min-width: 768px) { .mdb-footer-legal-inner { flex-direction: row; justify-content: space-between; } }
.mdb-footer-legal p { font-size: 14px; color: hsl(var(--primary-foreground) / 0.6); margin: 0; }
.mdb-footer-legal nav { display: flex; align-items: center; gap: 24px; }
.mdb-footer-legal nav a { font-size: 14px; color: hsl(var(--primary-foreground) / 0.6); }
.mdb-footer-legal nav a:hover { color: hsl(var(--primary-foreground)); }
.mdb-social { display: flex; align-items: center; gap: 16px; }
.mdb-social a { color: hsl(var(--primary-foreground) / 0.6); }
.mdb-social a:hover { color: hsl(var(--primary-foreground)); }
.mdb-social svg { width: 20px; height: 20px; display: block; }

/* --------------------------------------------------- WhatsApp widget */
.mdb-wa-widget {
	position: fixed; bottom: 20px; right: 20px; z-index: 50;
	display: flex; align-items: center; gap: 12px;
	opacity: 0; transform: scale(0.8) translateY(16px);
	transition: opacity 250ms ease-out, transform 250ms ease-out;
	pointer-events: none;
}
.mdb-wa-widget.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.mdb-wa-label {
	display: none; background: hsl(var(--card)); color: hsl(var(--card-foreground));
	border: 1px solid hsl(var(--border)); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.15);
	border-radius: 9999px; padding: 8px 16px; font-size: 14px; font-weight: 500;
}
@media (min-width: 640px) { .mdb-wa-label { display: block; } }
.mdb-wa-btn {
	display: flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 9999px; border: 0; cursor: pointer;
	background: var(--wa-green); color: #fff; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.2);
	transition: all 200ms;
}
.mdb-wa-btn:hover { background: var(--wa-green-hover); transform: scale(1.05); }
.mdb-wa-btn:active { transform: scale(0.95); }
.mdb-wa-btn svg { width: 28px; height: 28px; }

/* ---------------------------------------------- Páginas de flujo */
.mdb-flow-page { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.mdb-flow-box { text-align: center; max-width: 512px; }
.mdb-flow-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 80px; height: 80px; border-radius: 9999px; margin-bottom: 24px;
	background: hsl(var(--accent) / 0.2); color: hsl(var(--accent));
}
.mdb-flow-icon svg { width: 40px; height: 40px; }
.mdb-flow-icon-wa { width: 64px; height: 64px; background: rgba(37, 211, 102, 0.15); }
.mdb-flow-icon-wa svg { width: 32px; height: 32px; color: var(--wa-green); }
.mdb-flow-box h1 { font-size: 30px; font-weight: 700; margin-bottom: 16px; }
@media (min-width: 768px) { .mdb-flow-box h1 { font-size: 36px; } }
.mdb-flow-box .flow-sub { font-size: 18px; color: hsl(var(--muted-foreground)); line-height: 1.65; margin-bottom: 32px; }
.mdb-flow-box .flow-count { font-size: 14px; color: hsl(var(--muted-foreground)); margin-bottom: 24px; }
.mdb-flow-box a.textlink { color: hsl(var(--primary)); font-weight: 500; }

/* ------------------------------------------------------------- 404 */
.mdb-404 { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; }
.mdb-404 h1 { font-size: 36px; font-weight: 700; margin-bottom: 16px; }
.mdb-404 p { color: hsl(var(--muted-foreground)); margin-bottom: 24px; }
.mdb-404 a { color: hsl(var(--primary)); }

/* ------------------------------------------------------ Privacidad */
.mdb-prose h2 { font-size: 24px; font-weight: 700; color: hsl(var(--foreground)); margin: 48px 0 16px; }
.mdb-prose p, .mdb-prose li { color: hsl(var(--muted-foreground)); line-height: 1.75; }
.mdb-prose ul { padding-left: 24px; margin: 0 0 16px; }
.mdb-prose li { margin-bottom: 8px; }
.mdb-prose li::marker { color: hsl(var(--foreground)); }
.mdb-prose .mdb-lead { font-size: 18px; margin-bottom: 40px; }

/* ------------------------------------------------------ Animaciones */
/* Solo se ocultan con JS activo (clase .mdb-js en <html>): sin JS o con JS
   lento, el contenido siempre es visible. */
html.mdb-js .mdb-reveal {
	opacity: 0; transform: translateY(20px);
	transition: opacity 600ms cubic-bezier(0.21, 0.47, 0.32, 0.98), transform 600ms cubic-bezier(0.21, 0.47, 0.32, 0.98);
}
html.mdb-js .mdb-reveal.in { opacity: 1; transform: none; }
.mdb-reveal.d1 { transition-delay: 100ms; }
.mdb-reveal.d2 { transition-delay: 200ms; }
.mdb-reveal.d3 { transition-delay: 300ms; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.mdb-reveal { opacity: 1; transform: none; transition: none; }
	.mdb-wa-widget { transition: none; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* -------------------------------------------------------- Utilidades */
.mdb-text-center { text-align: center; }
.mdb-mt-12 { margin-top: 48px; }
.mdb-mb-20 { margin-bottom: 80px; }

#contact-section { scroll-margin-top: 96px; }

/* QA 1.1: icon dimensions and stable flex sizing in all contexts. */
:where(svg[aria-hidden="true"]) { width: 24px; height: 24px; flex-shrink: 0; }
.mdb-checklist li > svg { width: 20px; height: 20px; flex: 0 0 20px; margin-top: 2px; color: hsl(var(--accent)); }
.mdb-nav a { display: block; white-space: nowrap; }
.mdb-logo-link { flex-shrink: 0; }
.mdb-hero h1 { line-height: 1.25; }
.mdb-hero .mdb-hero-sub { line-height: 1.625; }
@media (prefers-reduced-motion: reduce) { html.mdb-js .mdb-reveal { opacity: 1; transform: none; transition: none; } }

.mdb-form-notice { color: #9b1c1c; margin: 16px 0; line-height: 1.5; }
.mdb-form-notice:empty { display: none; }
