/* ============================================================
   EP24 CALCULATOR — estilos completos
   ============================================================ */

@keyframes ep24FadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: translateY(0); }
}
@keyframes ep24Pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50%       { transform: scale(1.25); opacity: .7; }
}

.ep24-calc-wrap {
	margin: 2.5em 0;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Tarjeta contenedora */
.ep24-calc-card {
	background: #fff;
	border: 2px solid #f97316;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(8,19,12,.07), 0 1px 4px rgba(8,19,12,.04);
}

/* Header */
.ep24-calc-header {
	background: linear-gradient(135deg, #08130c 0%, #0d2417 60%, #133d20 100%);
	padding: 28px 30px 24px;
	display: flex;
	align-items: flex-start;
	gap: 16px;
}
.ep24-calc-header-icon {
	font-size: 2.2rem;
	line-height: 1;
	flex: none;
	margin-top: 2px;
}
.ep24-calc-header-text {}
.ep24-calc-header h2 {
	margin: 0 0 4px;
	font-size: 1.3rem;
	font-weight: 800;
	color: #fff;
	line-height: 1.2;
	letter-spacing: -.02em;
}
.ep24-calc-header p {
	margin: 0;
	font-size: .88rem;
	color: #9fb0a6;
	line-height: 1.4;
}

/* Barra de progreso */
.ep24-calc-progress {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 16px 30px;
	background: #f8faf8;
	border-bottom: 1px solid #e6e9ed;
}
.ep24-prog-dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #c8d0c9;
	transition: background .3s, transform .3s;
	flex: none;
}
.ep24-prog-dot.active {
	background: #0a7d34;
	animation: ep24Pulse 1.6s ease-in-out infinite;
}
.ep24-prog-dot.done {
	background: #0a7d34;
	animation: none;
}
.ep24-prog-line {
	flex: 1;
	height: 2px;
	background: #e6e9ed;
	border-radius: 2px;
	transition: background .4s;
}
.ep24-prog-line.done {
	background: #0a7d34;
}
.ep24-prog-label {
	font-size: .78rem;
	font-weight: 600;
	color: #5b6470;
	text-transform: uppercase;
	letter-spacing: .05em;
	margin-left: auto;
}

/* Pasos */
.ep24-calc-step {
	display: none;
	padding: 28px 30px;
	animation: ep24FadeIn .28s ease both;
}
.ep24-calc-step.ep24-step-active {
	display: block;
}
.ep24-calc-step h3 {
	margin: 0 0 20px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #08130c;
	line-height: 1.3;
}

/* Grid de objetivos (3 col) */
.ep24-goal-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}
@media (max-width: 560px) {
	.ep24-goal-grid { grid-template-columns: 1fr; }
}

/* Grid de objetivos (4 col / 2x2) */
.ep24-goal-grid-4 { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
@media(max-width: 500px) { .ep24-goal-grid-4 { grid-template-columns: 1fr; } }

.ep24-goal-card {
	border: 2px solid #e6e9ed;
	border-radius: 12px;
	padding: 18px 14px;
	text-align: center;
	cursor: pointer;
	background: #fff;
	transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
	user-select: none;
}
.ep24-goal-card:hover {
	border-color: #0a7d34;
	background: #f3fbf5;
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(10,125,52,.12);
}
.ep24-goal-card.selected {
	border-color: #0a7d34;
	background: linear-gradient(160deg, #f0fbf3 0%, #e6f7ec 100%);
	box-shadow: 0 4px 16px rgba(10,125,52,.15);
}
.ep24-goal-emoji {
	font-size: 2rem;
	display: block;
	margin-bottom: 8px;
	line-height: 1;
}
.ep24-goal-title {
	display: block;
	font-weight: 700;
	font-size: .98rem;
	color: #08130c;
	margin-bottom: 4px;
}
.ep24-goal-sub {
	display: block;
	font-size: .8rem;
	color: #5b6470;
	line-height: 1.4;
}

/* Toggle sexo / modalidad */
.ep24-sex-toggle {
	display: flex;
	background: #f4f6f8;
	border-radius: 999px;
	padding: 4px;
	gap: 4px;
	width: fit-content;
	margin-bottom: 20px;
}
.ep24-sex-btn {
	padding: 8px 22px;
	border: none;
	border-radius: 999px;
	font-size: .92rem;
	font-weight: 600;
	cursor: pointer;
	background: transparent;
	color: #5b6470;
	transition: background .2s, color .2s, box-shadow .2s;
}
.ep24-sex-btn.active {
	background: #fff;
	color: #08130c;
	box-shadow: 0 2px 8px rgba(0,0,0,.10);
}

/* Grid de inputs */
.ep24-input-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-bottom: 16px;
}
@media (max-width: 480px) {
	.ep24-input-grid { grid-template-columns: 1fr; }
}
.ep24-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.ep24-field label {
	font-size: .82rem;
	font-weight: 600;
	color: #5b6470;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.ep24-field input,
.ep24-field select {
	width: 100%;
	padding: 10px 14px;
	border: 1.5px solid #e6e9ed;
	border-radius: 8px;
	font-size: .98rem;
	color: #15171a;
	background: #fff;
	transition: border-color .2s, box-shadow .2s;
	outline: none;
	font-family: inherit;
	-moz-appearance: none;
	-webkit-appearance: none;
	appearance: none;
}
.ep24-field input:focus,
.ep24-field select:focus {
	border-color: #0a7d34;
	box-shadow: 0 0 0 3px rgba(10,125,52,.12);
}
.ep24-field-full {
	grid-column: 1 / -1;
}
.ep24-select-wrap {
	position: relative;
}
.ep24-select-wrap::after {
	content: '▾';
	position: absolute;
	right: 13px;
	top: 50%;
	transform: translateY(-50%);
	color: #5b6470;
	pointer-events: none;
	font-size: .9rem;
}
.ep24-select-wrap select {
	padding-right: 36px;
}

/* Navegación entre pasos */
.ep24-calc-nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 22px;
	gap: 12px;
}
.ep24-btn-back {
	background: none;
	border: 1.5px solid #e6e9ed;
	border-radius: 999px;
	padding: 10px 20px;
	font-size: .92rem;
	font-weight: 600;
	color: #5b6470;
	cursor: pointer;
	transition: border-color .18s, color .18s;
	font-family: inherit;
}
.ep24-btn-back:hover {
	border-color: #5b6470;
	color: #15171a;
}
.ep24-btn-calc {
	background: linear-gradient(135deg, #0a7d34, #075c26);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 12px 28px;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: transform .15s, box-shadow .2s, background .18s;
	font-family: inherit;
	box-shadow: 0 4px 14px rgba(10,125,52,.35);
}
.ep24-btn-calc:hover {
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(10,125,52,.45);
}
.ep24-btn-calc:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

/* Resultado */
.ep24-result-header {
	margin-bottom: 22px;
}
.ep24-result-header h3 {
	margin: 0 0 6px;
	font-size: 1.2rem;
	color: #08130c;
}
.ep24-result-summary {
	font-size: .92rem;
	color: #5b6470;
	margin: 0;
}

/* Tarjetas de resultado */
.ep24-result-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
@media (max-width: 500px) {
	.ep24-result-cards { grid-template-columns: 1fr; }
}
.ep24-result-card {
	border-radius: 12px;
	padding: 16px 14px;
	text-align: center;
}
.ep24-result-card.accent {
	background: #0a7d34;
}
.ep24-result-card.soft {
	background: #f4f6f8;
	border: 1px solid #e6e9ed;
}
.ep24-result-num {
	font-size: 2.2rem;
	font-weight: 800;
	line-height: 1;
	margin-bottom: 4px;
}
.ep24-result-card.accent .ep24-result-num { color: #fff; }
.ep24-result-card.soft .ep24-result-num { color: #08130c; }
.ep24-result-lbl {
	font-size: .8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.ep24-result-card.accent .ep24-result-lbl { color: rgba(255,255,255,.75); }
.ep24-result-card.soft .ep24-result-lbl { color: #5b6470; }

/* Detalle de consejo */
.ep24-result-detail {
	background: #f4f6f8;
	border-radius: 10px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
.ep24-result-detail ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.ep24-result-detail ul li {
	font-size: .9rem;
	color: #2d3748;
	padding-left: 22px;
	position: relative;
	line-height: 1.5;
}
.ep24-result-detail ul li::before {
	content: '✓';
	position: absolute;
	left: 0;
	color: #0a7d34;
	font-weight: 700;
}

/* Caja de lead capture */
.ep24-lead-box {
	background: linear-gradient(135deg, #08130c 0%, #0d2417 100%);
	border-radius: 14px;
	padding: 26px 26px 22px;
	margin-top: 0;
}
.ep24-lead-eyebrow {
	font-size: .72rem;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: #46d07e;
	margin: 0 0 8px;
}
.ep24-lead-box h4 {
	font-size: 1.12rem;
	font-weight: 800;
	color: #fff;
	margin: 0 0 10px;
	line-height: 1.25;
	letter-spacing: -.01em;
}
.ep24-lead-bullets {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.ep24-lead-bullets li {
	font-size: .87rem;
	color: #9fb0a6;
	padding-left: 18px;
	position: relative;
	line-height: 1.5;
}
.ep24-lead-bullets li::before {
	content: '→';
	position: absolute;
	left: 0;
	color: #46d07e;
}
.ep24-lead-box input[type="email"] {
	width: 100%;
	padding: 11px 16px;
	border: 1.5px solid rgba(255,255,255,.15);
	border-radius: 10px;
	background: rgba(255,255,255,.08);
	color: #fff;
	font-size: .97rem;
	font-family: inherit;
	outline: none;
	transition: border-color .2s, background .2s;
	box-sizing: border-box;
	margin-bottom: 12px;
}
.ep24-lead-box input[type="email"]::placeholder { color: rgba(255,255,255,.4); }
.ep24-lead-box input[type="email"]:focus {
	border-color: #46d07e;
	background: rgba(255,255,255,.12);
}
.ep24-gdpr-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin-bottom: 16px;
}
.ep24-gdpr-row input[type="checkbox"] {
	flex: none;
	margin-top: 2px;
	width: 16px;
	height: 16px;
	accent-color: #46d07e;
	cursor: pointer;
}
.ep24-gdpr-row label {
	font-size: .78rem;
	color: rgba(255,255,255,.55);
	line-height: 1.5;
	cursor: pointer;
}
.ep24-gdpr-row label a {
	color: #46d07e;
	text-underline-offset: 2px;
}

/* Botón naranja */
.ep24-btn-orange {
	width: 100%;
	background: #f97316;
	color: #fff;
	border: none;
	border-radius: 999px;
	font-size: 1rem;
	font-weight: 700;
	padding: 13px 28px;
	cursor: pointer;
	transition: background .18s, transform .15s, box-shadow .2s;
	font-family: inherit;
	box-shadow: 0 4px 16px rgba(249,115,22,.35);
}
.ep24-btn-orange:hover:not(:disabled) {
	background: #ea6c0a;
	transform: translateY(-1px);
	box-shadow: 0 8px 22px rgba(249,115,22,.45);
}
.ep24-btn-orange:disabled {
	opacity: .65;
	cursor: not-allowed;
	transform: none;
}

/* Mensaje de respuesta */
.ep24-lead-msg {
	display: none;
	margin-top: 14px;
	padding: 12px 16px;
	border-radius: 9px;
	font-size: .9rem;
	font-weight: 600;
	text-align: center;
	animation: ep24FadeIn .3s ease both;
}
.ep24-lead-msg.success {
	background: rgba(70,208,126,.15);
	border: 1px solid rgba(70,208,126,.3);
	color: #46d07e;
}
.ep24-lead-msg.error {
	background: rgba(214,54,56,.15);
	border: 1px solid rgba(214,54,56,.3);
	color: #ff8080;
}

/* Error de validación inline */
.ep24-field-error {
	font-size: .78rem;
	color: #d63638;
	margin-top: 3px;
}
.ep24-field input.has-error,
.ep24-field select.has-error {
	border-color: #d63638;
}

/* Supplement stack list */
.ep24-supl-stack { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ep24-supl-item { background: #f8faf8; border: 1px solid #e0ede4; border-radius: 10px; padding: 14px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.ep24-supl-item .supl-name { font-weight: 700; font-size: .95rem; color: #08130c; margin-bottom: 3px; }
.ep24-supl-item .supl-dosis { font-size: .82rem; color: #5b6470; line-height: 1.4; }
.ep24-supl-item .supl-timing { font-size: .76rem; color: #0a7d34; font-weight: 600; margin-top: 2px; }
.ep24-supl-item .supl-cost { font-size: .72rem; font-weight: 700; background: #0a7d34; color: #fff; padding: 3px 9px; border-radius: 999px; white-space: nowrap; flex: none; margin-top: 2px; }

/* Macro bars (nutricional) */
.ep24-macro-bar { margin: 16px 0; }
.ep24-macro-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.ep24-macro-label { width: 80px; font-weight: 600; color: #5b6470; text-transform: uppercase; font-size: .75rem; letter-spacing: .04em; }
.ep24-macro-track { flex: 1; height: 10px; background: #e6e9ed; border-radius: 99px; overflow: hidden; }
.ep24-macro-fill { height: 100%; border-radius: 99px; transition: width .6s ease; }
.ep24-macro-fill.prot { background: #0a7d34; }
.ep24-macro-fill.carb { background: #2271b1; }
.ep24-macro-fill.fat  { background: #f97316; }
.ep24-macro-val { width: 60px; text-align: right; font-weight: 700; font-size: .88rem; color: #15171a; }

/* Training day rows */
.ep24-training-days { display: flex; flex-direction: column; gap: 8px; margin: 0 0 20px; }
.ep24-day-row { background: #f8faf8; border: 1px solid #e0ede4; border-radius: 10px; padding: 11px 16px; display: flex; align-items: center; gap: 12px; }
.ep24-day-badge { font-size: .7rem; font-weight: 700; color: #fff; background: #0a7d34; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex: none; font-family: monospace; }
.ep24-day-name { font-weight: 700; font-size: .9rem; color: #08130c; flex: 1; }
.ep24-day-desc { font-size: .78rem; color: #5b6470; text-align: right; }

/* Trainer compare cards */
.ep24-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 20px; }
@media(max-width: 500px) { .ep24-compare-grid { grid-template-columns: 1fr; } }
.ep24-cmp-card { border-radius: 12px; padding: 18px 14px; text-align: center; }
.ep24-cmp-card.dim    { background: #f4f6f8; border: 1px solid #e6e9ed; }
.ep24-cmp-card.bright { background: #0a7d34; }
.ep24-cmp-lbl { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.ep24-cmp-card.dim    .ep24-cmp-lbl { color: #5b6470; }
.ep24-cmp-card.bright .ep24-cmp-lbl { color: rgba(255,255,255,.7); }
.ep24-cmp-num { font-size: 2.1rem; font-weight: 800; line-height: 1; }
.ep24-cmp-card.dim    .ep24-cmp-num { color: #08130c; }
.ep24-cmp-card.bright .ep24-cmp-num { color: #fff; }
.ep24-cmp-sub { font-size: .78rem; margin-top: 4px; }
.ep24-cmp-card.dim    .ep24-cmp-sub { color: #5b6470; }
.ep24-cmp-card.bright .ep24-cmp-sub { color: rgba(255,255,255,.8); }
