/* ==============================================================
   PRUEBAS DEPORTIVAS - CALCULADORAS DEPORTIVAS
   Estilos modernos, responsivos y optimizados para runners, ciclistas y triatletas
   ============================================================== */

.pd-calc-page {
	padding: 15px 0 50px;
	background: #f8fafc;
	min-height: calc(100vh - 220px);
	font-family: 'Lato', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1e293b;
}

/* Banner superior */
.pd-calc-header {
	text-align: center;
	margin: 10px 0 25px;
}
.pd-calc-header .pd-badge {
	display: inline-block;
	background: #ecfdf5;
	color: #059669;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding: 4px 12px;
	border-radius: 9999px;
	margin-bottom: 8px;
	border: 1px solid #a7f3d0;
}
.pd-calc-title {
	font-size: 32px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 10px;
	letter-spacing: -0.5px;
	line-height: 1.2;
}
.pd-calc-subtitle {
	font-size: 16px;
	color: #64748b;
	margin: 0 auto;
	max-width: 780px;
	line-height: 1.5;
}

/* Barra de navegación de calculadoras */
.pd-calc-nav-wrapper {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 12px 16px;
	margin-bottom: 25px;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.pd-calc-nav-title {
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
	margin-bottom: 10px;
	display: flex;
	align-items: center;
	gap: 6px;
}
.pd-calc-nav-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pd-calc-nav-pills li a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 14px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	background: #f1f5f9;
	text-decoration: none;
	transition: all 0.2s ease;
	border: 1px solid transparent;
}
.pd-calc-nav-pills li a:hover {
	background: #e2e8f0;
	color: #0f172a;
}
.pd-calc-nav-pills li.active a,
.pd-calc-nav-pills li a.active {
	background: #10b981;
	color: #ffffff;
	border-color: #059669;
	box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.pd-calc-nav-pills li a .badge-pill-tag {
	font-size: 10px;
	background: rgba(0,0,0,0.12);
	padding: 2px 6px;
	border-radius: 6px;
}

/* Tarjeta principal de la calculadora */
.pd-calc-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
	margin-bottom: 25px;
	overflow: hidden;
}
.pd-calc-card-header {
	padding: 20px 24px;
	border-bottom: 1px solid #f1f5f9;
	background: linear-gradient(to right, #f8fafc, #ffffff);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}
.pd-calc-card-header h2,
.pd-calc-card-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: 10px;
}
.pd-calc-card-header h2 i,
.pd-calc-card-header h3 i {
	color: #10b981;
}
.pd-calc-card-body {
	padding: 24px;
}

/* Form controls */
.pd-form-group {
	margin-bottom: 20px;
}
.pd-form-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: #334155;
	margin-bottom: 6px;
	letter-spacing: -0.2px;
}
.pd-form-label small {
	font-weight: 400;
	color: #64748b;
}
.pd-input-wrap {
	position: relative;
	display: flex;
	align-items: center;
}
.pd-input-icon {
	position: absolute;
	left: 14px;
	color: #94a3b8;
	font-size: 15px;
	pointer-events: none;
}
.pd-input-wrap input,
.pd-input-wrap select,
.pd-form-control {
	width: 100%;
	height: 44px;
	border: 1.5px solid #cbd5e1;
	border-radius: 9px;
	padding: 8px 14px;
	font-size: 15px;
	color: #0f172a;
	background: #ffffff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	font-weight: 500;
}
.pd-input-wrap.has-icon input,
.pd-input-wrap.has-icon select {
	padding-left: 40px;
}
.pd-input-addon-right {
	position: absolute;
	right: 12px;
	font-size: 12px;
	font-weight: 700;
	color: #64748b;
	pointer-events: none;
	text-transform: uppercase;
}
.pd-form-control:focus,
.pd-input-wrap input:focus,
.pd-input-wrap select:focus {
	outline: none;
	border-color: #10b981;
	box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

/* Range Slider personalizado */
.pd-range-wrap {
	margin: 10px 0 16px;
}
.pd-range-slider {
	-webkit-appearance: none;
	width: 100%;
	height: 8px;
	border-radius: 5px;
	background: #e2e8f0;
	outline: none;
	cursor: pointer;
}
.pd-range-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #10b981;
	cursor: pointer;
	border: 3px solid #ffffff;
	box-shadow: 0 2px 6px rgba(0,0,0,0.25);
	transition: transform 0.1s ease;
}
.pd-range-slider::-webkit-slider-thumb:hover {
	transform: scale(1.15);
}

/* Preset buttons (10K, Media, Maratón, etc.) */
.pd-presets-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 8px;
}
.pd-preset-btn {
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	color: #334155;
	font-size: 12px;
	font-weight: 700;
	padding: 5px 11px;
	border-radius: 7px;
	cursor: pointer;
	transition: all 0.15s ease;
}
.pd-preset-btn:hover {
	background: #0f172a;
	color: #ffffff;
	border-color: #0f172a;
}
.pd-preset-btn.active {
	background: #10b981;
	color: #ffffff;
	border-color: #059669;
}

/* Botones de acción */
.pd-calc-btn-primary {
	background: linear-gradient(135deg, #10b981, #059669);
	color: #ffffff;
	font-size: 16px;
	font-weight: 700;
	padding: 12px 24px;
	border-radius: 10px;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
	transition: all 0.2s ease;
	width: 100%;
}
.pd-calc-btn-primary:hover {
	background: linear-gradient(135deg, #059669, #047857);
	transform: translateY(-1px);
	box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
	color: #ffffff;
}
.pd-calc-btn-secondary {
	background: #f1f5f9;
	color: #334155;
	font-size: 14px;
	font-weight: 700;
	padding: 10px 18px;
	border-radius: 8px;
	border: 1px solid #cbd5e1;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.15s ease;
}
.pd-calc-btn-secondary:hover {
	background: #e2e8f0;
	color: #0f172a;
}

/* Tarjetas de resultados (Stats Cards) */
.pd-results-box {
	background: linear-gradient(135deg, #0f172a, #1e293b);
	color: #ffffff;
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 25px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
}
.pd-results-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	padding-bottom: 14px;
	margin-bottom: 20px;
	flex-wrap: wrap;
	gap: 10px;
}
.pd-results-title {
	font-size: 18px;
	font-weight: 700;
	color: #ffffff;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pd-results-title i {
	color: #34d399;
}
.pd-stat-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 16px;
}
.pd-stat-card {
	background: rgba(255, 255, 255, 0.06);
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 16px;
	text-align: center;
	transition: background 0.2s ease;
}
.pd-stat-card:hover {
	background: rgba(255, 255, 255, 0.1);
}
.pd-stat-label {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
	font-weight: 700;
	margin-bottom: 4px;
}
.pd-stat-value {
	font-size: 28px;
	font-weight: 800;
	color: #34d399;
	letter-spacing: -0.5px;
	line-height: 1.1;
}
.pd-stat-subvalue {
	font-size: 13px;
	color: #cbd5e1;
	margin-top: 4px;
}

/* Tablas de splits / parciales */
.pd-table-wrap {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 12px;
	overflow: hidden;
	margin-top: 15px;
}
.pd-calc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	text-align: left;
}
.pd-calc-table th {
	background: #f1f5f9;
	color: #475569;
	font-weight: 700;
	padding: 12px 16px;
	border-bottom: 2px solid #e2e8f0;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}
.pd-calc-table td {
	padding: 11px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #1e293b;
	vertical-align: middle;
}
.pd-calc-table tr:hover {
	background: #f8fafc;
}
.pd-calc-table tr.milestone {
	background: #ecfdf5 !important;
	font-weight: 700;
}
.pd-calc-table tr.milestone td {
	color: #065f46;
	border-bottom: 1px solid #a7f3d0;
}
.pd-badge-milestone {
	display: inline-block;
	background: #10b981;
	color: #ffffff;
	font-size: 11px;
	padding: 2px 7px;
	border-radius: 4px;
	font-weight: 700;
	margin-left: 6px;
}

/* Tabla editable de cambios de ritmo (Calculadora Avanzada) */
.pd-change-row {
	display: flex;
	gap: 10px;
	align-items: center;
	margin-bottom: 10px;
	background: #f8fafc;
	padding: 10px;
	border-radius: 8px;
	border: 1px solid #e2e8f0;
}
.pd-change-row .pd-input-wrap {
	flex: 1;
}
.pd-btn-remove-row {
	background: #fee2e2;
	color: #ef4444;
	border: 1px solid #fca5a5;
	width: 38px;
	height: 38px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.15s ease;
}
.pd-btn-remove-row:hover {
	background: #ef4444;
	color: #ffffff;
}

/* Zonas de frecuencia cardíaca */
.pd-zone-card {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 12px 16px;
	border-radius: 10px;
	margin-bottom: 10px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	transition: transform 0.15s ease;
}
.pd-zone-card:hover {
	transform: translateX(4px);
}
.pd-zone-badge {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 800;
	font-size: 16px;
	color: #ffffff;
	flex-shrink: 0;
}
.pd-zone-1 .pd-zone-badge { background: #64748b; }
.pd-zone-2 .pd-zone-badge { background: #10b981; }
.pd-zone-3 .pd-zone-badge { background: #f59e0b; }
.pd-zone-4 .pd-zone-badge { background: #f97316; }
.pd-zone-5 .pd-zone-badge { background: #ef4444; }
.pd-zone-info {
	flex: 1;
}
.pd-zone-name {
	font-weight: 700;
	font-size: 15px;
	color: #0f172a;
	margin: 0 0 2px;
}
.pd-zone-desc {
	font-size: 12px;
	color: #64748b;
	margin: 0;
}
.pd-zone-range {
	text-align: right;
}
.pd-zone-ppm {
	font-size: 18px;
	font-weight: 800;
	color: #0f172a;
}
.pd-zone-pct {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
}

/* Tarjetas de VDOT / Daniels */
.pd-vdot-badge-box {
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	color: #ffffff;
	border-radius: 14px;
	padding: 20px;
	text-align: center;
	margin-bottom: 20px;
}
.pd-vdot-score {
	font-size: 46px;
	font-weight: 900;
	line-height: 1;
	margin: 8px 0;
	color: #a7f3d0;
}

/* Hub principal de calculadoras */
.pd-hub-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
	gap: 20px;
	margin-top: 20px;
}
.pd-hub-card {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	text-decoration: none !important;
	color: #1e293b !important;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
	position: relative;
	overflow: hidden;
}
.pd-hub-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: #10b981;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.pd-hub-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.09);
	border-color: #cbd5e1;
}
.pd-hub-card:hover::before {
	opacity: 1;
}
.pd-hub-card-icon {
	width: 50px;
	height: 50px;
	border-radius: 12px;
	background: #ecfdf5;
	color: #059669;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	margin-bottom: 16px;
}
.pd-hub-card.card-cycling .pd-hub-card-icon {
	background: #eff6ff;
	color: #2563eb;
}
.pd-hub-card.card-cycling::before {
	background: #2563eb;
}
.pd-hub-card.card-heart .pd-hub-card-icon {
	background: #fef2f2;
	color: #dc2626;
}
.pd-hub-card.card-heart::before {
	background: #dc2626;
}
.pd-hub-card.card-triathlon .pd-hub-card-icon {
	background: #fdf4ff;
	color: #9333ea;
}
.pd-hub-card.card-triathlon::before {
	background: #9333ea;
}
.pd-hub-card.card-trail .pd-hub-card-icon {
	background: #fffbeb;
	color: #d97706;
}
.pd-hub-card.card-trail::before {
	background: #d97706;
}
.pd-hub-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 8px;
}
.pd-hub-card-desc {
	font-size: 13.5px;
	color: #64748b;
	line-height: 1.5;
	margin: 0 0 16px;
	flex: 1;
}
.pd-hub-card-link {
	font-size: 13px;
	font-weight: 700;
	color: #059669;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.pd-hub-card:hover .pd-hub-card-link {
	gap: 9px;
}

/* Guías explicativas y FAQs */
.pd-calc-guide {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 24px;
	margin-top: 30px;
}
.pd-calc-guide h3 {
	font-size: 18px;
	font-weight: 700;
	color: #0f172a;
	margin: 0 0 14px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.pd-calc-guide p {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin-bottom: 12px;
}
.pd-calc-guide ul {
	padding-left: 20px;
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
}

/* Modos de cálculo selector */
.pd-mode-selector {
	display: flex;
	background: #f1f5f9;
	border-radius: 10px;
	padding: 4px;
	margin-bottom: 20px;
	gap: 4px;
}
.pd-mode-btn {
	flex: 1;
	border: none;
	background: transparent;
	padding: 8px 12px;
	border-radius: 7px;
	font-size: 13px;
	font-weight: 700;
	color: #64748b;
	cursor: pointer;
	transition: all 0.15s ease;
	text-align: center;
}
.pd-mode-btn.active {
	background: #ffffff;
	color: #0f172a;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

/* Estilos de Impresión (@media print) para pulsera de ritmos */
@media print {
	body {
		background: #ffffff !important;
		color: #000000 !important;
	}
	header, footer, .menu, .mob-menu, .pd-calc-header, .pd-calc-nav-wrapper, .pd-calc-btn-primary, .pd-calc-btn-secondary, .pd-presets-bar, .pd-calc-guide {
		display: none !important;
	}
	.pd-calc-card, .pd-results-box, .pd-table-wrap {
		border: 1px solid #000000 !important;
		box-shadow: none !important;
		color: #000000 !important;
		background: #ffffff !important;
	}
	.pd-stat-value, .pd-results-title, .pd-stat-label, .pd-stat-subvalue {
		color: #000000 !important;
	}
	.pd-calc-table th {
		background: #eeeeee !important;
		color: #000000 !important;
	}
}

/* Responsividad */
@media (max-width: 768px) {
	.pd-calc-title {
		font-size: 24px;
	}
	.pd-calc-subtitle {
		font-size: 14px;
	}
	.pd-calc-card-header, .pd-calc-card-body {
		padding: 16px;
	}
	.pd-stat-value {
		font-size: 22px;
	}
	.pd-calc-table th, .pd-calc-table td {
		padding: 8px 10px;
		font-size: 12.5px;
	}
	.pd-mode-selector {
		flex-direction: column;
	}
}
