/* Generador de Reglas de Gym - estilos del form + imagen share card */

/* Steps */
.reglas-step { display: none; }
.reglas-step.active {
    display: block;
    animation: reglasFadeIn 0.3s ease-out;
}

@keyframes reglasFadeIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.reglas-progress-fill {
    background-color: var(--color-primary, #6366f1);
    transition: width 0.4s ease;
}

.reglas-helper {
    color: rgba(0, 0, 0, 0.65);
}

/* Toggles */
.reglas-toggle {
    cursor: pointer;
    border: 2px solid transparent !important;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    text-align: left;
    background: #fff;
    line-height: 1.45;
}
.reglas-toggle:hover {
    border-color: var(--color-primary, #6366f1) !important;
}
.reglas-toggle.reglas-selected {
    border-color: var(--color-primary, #6366f1) !important;
    background-color: rgba(99, 102, 241, 0.06);
}

/* Inputs numéricos */
.reglas-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.reglas-input {
    width: 100px;
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color 0.2s ease;
    background: #fff;
}
.reglas-input:focus {
    border-color: var(--color-primary, #6366f1);
}
.reglas-input-unit {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.65);
    font-size: 15px;
}

/* Navigation */
.reglas-nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}
.reglas-nav .reglas-prev { flex: 0 0 auto; }
.reglas-nav .reglas-next { flex: 1; }

/* Results */
#reglas-results,
#reglas-shared-view { display: none; }

.reglas-result-label {
    color: var(--color-primary, #6366f1);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.reglas-texto {
    line-height: 1.7;
    color: rgba(0, 0, 0, 0.85);
}
.reglas-texto strong {
    color: var(--color-primary, #6366f1);
    font-weight: 700;
}
.reglas-texto em {
    color: rgba(0, 0, 0, 0.5);
    font-style: italic;
    font-size: 0.9em;
}

.reglas-action-btn {
    text-align: left;
    transition: all 0.2s ease;
}
.reglas-action-btn:hover {
    border-color: var(--color-primary, #6366f1) !important;
    background-color: rgba(99, 102, 241, 0.04);
}
.reglas-action-btn.reglas-action-done {
    background-color: rgba(34, 197, 94, 0.12) !important;
    border-color: rgba(34, 197, 94, 0.6) !important;
    color: #15803d !important;
}
.reglas-action-btn[disabled] {
    opacity: 0.6;
    pointer-events: none;
}

.reglas-wa-btn {
    background-color: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
    padding: 14px 24px;
    font-size: 17px;
}
.reglas-wa-btn:hover {
    background-color: #1eb756 !important;
    border-color: #1eb756 !important;
}

/* Mobile */
@media (max-width: 640px) {
    .reglas-toggle {
        padding: 14px !important;
        font-size: 15px;
    }
    .reglas-input {
        width: 80px;
        font-size: 15px;
    }
}

/* ============================================================ */
/* SHARE CARD (imagen para descarga - inline styles para html2canvas) */
/* ============================================================ */

.reglas-img-card {
    width: 1080px;
    background: #ffffff;
    color: #1a1a2e;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: 0;
}

.reglas-img-header {
    background: linear-gradient(135deg, #12715B 0%, #178D72 100%);
    color: #fff;
    padding: 60px 64px 50px;
}
.reglas-img-eyebrow {
    font-size: 18px;
    letter-spacing: 6px;
    opacity: 0.75;
    font-weight: 600;
    margin-bottom: 14px;
}
.reglas-img-title {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.1;
}

.reglas-img-body {
    padding: 50px 64px 40px;
    background: #ffffff;
}

.reglas-img-section {
    margin-bottom: 36px;
}
.reglas-img-section:last-child { margin-bottom: 0; }

.reglas-img-section-title {
    font-size: 26px;
    font-weight: 800;
    color: #12715B;
    margin-bottom: 14px;
    letter-spacing: -0.3px;
}

.reglas-img-section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.reglas-img-section-list li {
    font-size: 22px;
    line-height: 1.5;
    padding-left: 32px;
    position: relative;
    margin-bottom: 10px;
    color: rgba(0, 0, 0, 0.82);
}
.reglas-img-section-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #178D72;
    font-weight: 800;
    font-size: 28px;
    line-height: 1;
    top: 2px;
}

.reglas-img-footer {
    background: #f5eee9;
    padding: 28px 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    border-top: 3px solid #12715B;
}
.reglas-img-logo {
    height: 44px;
    width: auto;
    display: block;
    flex-shrink: 0;
}
.reglas-img-footer-text {
    font-size: 18px;
    color: rgba(0, 0, 0, 0.75);
    text-align: right;
    line-height: 1.45;
    font-weight: 500;
}
